]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 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 | ||
f0983263 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 |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 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 *); | |
f0983263 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) | |
83448d71 | 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 | |
f0983263 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] | |
4e760a36 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] | |
4e760a36 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] | |
4e760a36 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 | ||
d03fd34d | 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){ | |
a64def11 RD |
1260 | #if wxUSE_UNICODE |
1261 | return self->m_uniChar; | |
1262 | #else | |
d14a1e28 | 1263 | return 0; |
a64def11 | 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++) { | |
a64def11 | 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 | } | |
1326 | ||
1327 | void wxApp_CleanUp() { | |
1328 | __wxPyCleanup(); | |
1329 | } | |
1330 | ||
1331 | ||
1332 | wxPyApp* wxGetApp() { | |
1333 | return (wxPyApp*)wxTheApp; | |
1334 | } | |
1335 | ||
1336 | ||
1337 | ||
423f194a | 1338 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1339 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1340 | wxWindowList& list = self->GetChildren(); | |
1341 | return wxPy_ConvertList(&list); | |
1342 | } | |
1343 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1344 | ||
1345 | ||
1346 | ||
423f194a | 1347 | return False; |
d14a1e28 RD |
1348 | |
1349 | } | |
1350 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1351 | ||
1352 | ||
1353 | ||
423f194a | 1354 | return False; |
d14a1e28 RD |
1355 | |
1356 | } | |
1357 | long wxWindow_GetHandle(wxWindow *self){ | |
1358 | return wxPyGetWinHandle(self); | |
1359 | } | |
1360 | ||
1361 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1362 | return wxWindow::FindWindowById(id, parent); | |
1363 | } | |
1364 | ||
1365 | wxWindow* wxFindWindowByName( const wxString& name, | |
1366 | const wxWindow *parent = NULL ) { | |
1367 | return wxWindow::FindWindowByName(name, parent); | |
1368 | } | |
1369 | ||
1370 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1371 | const wxWindow *parent = NULL ) { | |
1372 | return wxWindow::FindWindowByLabel(label, parent); | |
1373 | } | |
1374 | ||
1375 | ||
1376 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { | |
1377 | #ifdef __WXMSW__ | |
1378 | wxWindow* win = new wxWindow; | |
2f4c0a16 RD |
1379 | win->SetHWND((WXHWND)hWnd); |
1380 | win->SubclassWin((WXHWND)hWnd); | |
d14a1e28 RD |
1381 | return win; |
1382 | #else | |
cbd72d4f | 1383 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1384 | return NULL; |
1385 | #endif | |
1386 | } | |
1387 | ||
1388 | ||
1389 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1390 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1391 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1392 | ||
1393 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1394 | ||
1395 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1396 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1397 | wxMenuItemList& list = self->GetMenuItems(); | |
1398 | return wxPy_ConvertList(&list); | |
1399 | } | |
d03fd34d | 1400 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1401 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1402 | if (clientData) { | |
1403 | wxPyClientData* data = new wxPyClientData(clientData); | |
1404 | return self->Append(item, data); | |
1405 | } else | |
1406 | return self->Append(item); | |
1407 | } | |
1408 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1409 | if (clientData) { | |
1410 | wxPyClientData* data = new wxPyClientData(clientData); | |
1411 | return self->Insert(item, pos, data); | |
1412 | } else | |
1413 | return self->Insert(item, pos); | |
1414 | } | |
1415 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1416 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1417 | if (data) { | |
1418 | Py_INCREF(data->m_obj); | |
1419 | return data->m_obj; | |
1420 | } else { | |
1421 | Py_INCREF(Py_None); | |
1422 | return Py_None; | |
1423 | } | |
1424 | } | |
1425 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1426 | wxPyClientData* data = new wxPyClientData(clientData); | |
1427 | self->SetClientObject(n, data); | |
1428 | } | |
1429 | ||
1430 | ||
8edf1c75 | 1431 | |
2f4c0a16 RD |
1432 | #include <float.h> |
1433 | ||
8edf1c75 | 1434 | SWIGSTATIC(float) |
2f4c0a16 RD |
1435 | SWIG_FloatCast(double value) |
1436 | { | |
1437 | float f = 0; | |
1438 | if (!PyErr_Occurred()) { | |
1439 | if (value < FLT_MIN) { | |
1440 | PyObject *err = | |
1441 | PyString_FromFormat("value %g is less than float minimum %g", | |
1442 | value, FLT_MIN); | |
1443 | PyErr_SetObject(PyExc_OverflowError, err); | |
1444 | Py_DECREF(err); | |
1445 | } else if (value > FLT_MAX) { | |
1446 | PyObject *err = | |
1447 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1448 | value, FLT_MAX); | |
1449 | PyErr_SetObject(PyExc_OverflowError, err); | |
1450 | Py_DECREF(err); | |
1451 | } else { | |
1452 | f = swig_numeric_cast(float, value); | |
1453 | } | |
1454 | } | |
1455 | return f; | |
1456 | } | |
1457 | ||
1458 | ||
1459 | SWIGSTATICINLINE(float) | |
1460 | SWIG_AsFloat(PyObject *obj) | |
8edf1c75 | 1461 | { |
2f4c0a16 RD |
1462 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1463 | } | |
1464 | ||
1465 | ||
1466 | SWIGSTATICINLINE(int) | |
1467 | SWIG_CheckFloat(PyObject* obj) | |
1468 | { | |
1469 | SWIG_AsFloat(obj); | |
1470 | if (PyErr_Occurred()) { | |
1471 | PyErr_Clear(); | |
1472 | return 0; | |
1473 | } else { | |
1474 | return 1; | |
1475 | } | |
8edf1c75 RD |
1476 | } |
1477 | ||
d14a1e28 RD |
1478 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1479 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1480 | if (data) { | |
1481 | Py_INCREF(data->m_obj); | |
1482 | return data->m_obj; | |
1483 | } else { | |
1484 | Py_INCREF(Py_None); | |
1485 | return Py_None; | |
1486 | } | |
1487 | } | |
1488 | ||
1489 | // Figure out the type of the sizer item | |
1490 | ||
1491 | struct wxPySizerItemInfo { | |
1492 | wxPySizerItemInfo() | |
423f194a RD |
1493 | : window(NULL), sizer(NULL), gotSize(False), |
1494 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1495 | {} |
1496 | ||
1497 | wxWindow* window; | |
1498 | wxSizer* sizer; | |
1499 | bool gotSize; | |
1500 | wxSize size; | |
1501 | bool gotPos; | |
1502 | int pos; | |
1503 | }; | |
1504 | ||
1505 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1506 | ||
1507 | wxPySizerItemInfo info; | |
1508 | wxSize size; | |
1509 | wxSize* sizePtr = &size; | |
1510 | ||
1511 | // Find out what the type of the item is | |
1512 | // try wxWindow | |
1513 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1514 | PyErr_Clear(); | |
1515 | info.window = NULL; | |
1516 | ||
1517 | // try wxSizer | |
1518 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1519 | PyErr_Clear(); | |
1520 | info.sizer = NULL; | |
1521 | ||
1522 | // try wxSize or (w,h) | |
1523 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1524 | info.size = *sizePtr; | |
423f194a | 1525 | info.gotSize = True; |
d14a1e28 RD |
1526 | } |
1527 | ||
1528 | // or a single int | |
1529 | if (checkIdx && PyInt_Check(item)) { | |
1530 | info.pos = PyInt_AsLong(item); | |
423f194a | 1531 | info.gotPos = True; |
d14a1e28 RD |
1532 | } |
1533 | } | |
1534 | } | |
1535 | ||
1536 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1537 | // no expected type, figure out what kind of error message to generate | |
1538 | if ( !checkSize && !checkIdx ) | |
1539 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1540 | else if ( checkSize && !checkIdx ) | |
1541 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1542 | else if ( !checkSize && checkIdx) | |
1543 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1544 | else | |
1545 | // can this one happen? | |
1546 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1547 | } | |
1548 | ||
1549 | return info; | |
1550 | } | |
1551 | ||
1552 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1553 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1554 | } | |
1555 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1556 | ||
1557 | wxPyUserData* data = NULL; | |
1558 | wxPyBeginBlockThreads(); | |
423f194a | 1559 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1560 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1561 | data = new wxPyUserData(userData); | |
1562 | wxPyEndBlockThreads(); | |
1563 | ||
1564 | // Now call the real Add method if a valid item type was found | |
1565 | if ( info.window ) | |
1566 | self->Add(info.window, proportion, flag, border, data); | |
1567 | else if ( info.sizer ) | |
1568 | self->Add(info.sizer, proportion, flag, border, data); | |
1569 | else if (info.gotSize) | |
1570 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1571 | proportion, flag, border, data); | |
1572 | } | |
1573 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1574 | ||
1575 | wxPyUserData* data = NULL; | |
1576 | wxPyBeginBlockThreads(); | |
423f194a | 1577 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1578 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1579 | data = new wxPyUserData(userData); | |
1580 | wxPyEndBlockThreads(); | |
1581 | ||
1582 | // Now call the real Insert method if a valid item type was found | |
1583 | if ( info.window ) | |
1584 | self->Insert(before, info.window, proportion, flag, border, data); | |
1585 | else if ( info.sizer ) | |
1586 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1587 | else if (info.gotSize) | |
1588 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1589 | proportion, flag, border, data); | |
1590 | } | |
1591 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1592 | ||
1593 | wxPyUserData* data = NULL; | |
1594 | wxPyBeginBlockThreads(); | |
423f194a | 1595 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1596 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1597 | data = new wxPyUserData(userData); | |
1598 | wxPyEndBlockThreads(); | |
1599 | ||
1600 | // Now call the real Prepend method if a valid item type was found | |
1601 | if ( info.window ) | |
1602 | self->Prepend(info.window, proportion, flag, border, data); | |
1603 | else if ( info.sizer ) | |
1604 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1605 | else if (info.gotSize) | |
1606 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1607 | proportion, flag, border, data); | |
1608 | } | |
1609 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1610 | wxPyBeginBlockThreads(); | |
423f194a | 1611 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1612 | wxPyEndBlockThreads(); |
1613 | if ( info.window ) | |
1614 | return self->Remove(info.window); | |
1615 | else if ( info.sizer ) | |
1616 | return self->Remove(info.sizer); | |
1617 | else if ( info.gotPos ) | |
1618 | return self->Remove(info.pos); | |
1619 | else | |
423f194a | 1620 | return False; |
d14a1e28 | 1621 | } |
423f194a | 1622 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
d14a1e28 | 1623 | wxPyBeginBlockThreads(); |
423f194a | 1624 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
d14a1e28 RD |
1625 | wxPyEndBlockThreads(); |
1626 | if ( info.window ) | |
1627 | self->SetItemMinSize(info.window, size); | |
1628 | else if ( info.sizer ) | |
1629 | self->SetItemMinSize(info.sizer, size); | |
1630 | else if ( info.gotPos ) | |
1631 | self->SetItemMinSize(info.pos, size); | |
1632 | } | |
1633 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1634 | wxSizerItemList& list = self->GetChildren(); | |
1635 | return wxPy_ConvertList(&list); | |
1636 | } | |
1637 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1638 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1639 | if ( info.window ) |
1640 | self->Show(info.window, show); | |
1641 | else if ( info.sizer ) | |
1642 | self->Show(info.sizer, show); | |
1643 | } | |
1644 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1645 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1646 | if ( info.window ) |
1647 | self->Hide(info.window); | |
1648 | else if ( info.sizer ) | |
1649 | self->Hide(info.sizer); | |
1650 | } | |
1651 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1652 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1653 | if ( info.window ) |
1654 | return self->IsShown(info.window); | |
1655 | else if ( info.sizer ) | |
1656 | return self->IsShown(info.sizer); | |
1657 | else | |
423f194a | 1658 | return False; |
d14a1e28 RD |
1659 | } |
1660 | ||
1661 | // See pyclasses.h | |
1662 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1663 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1664 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1670 | { | |
1671 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1672 | } | |
1673 | ||
1674 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1675 | { | |
1676 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1677 | } | |
1678 | ||
1679 | ||
328fcd84 RD |
1680 | bool wxGBPosition___eq__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self == *other) : False; } |
1681 | bool wxGBPosition___ne__(wxGBPosition *self,wxGBPosition const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1682 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1683 | self->SetRow(row); | |
1684 | self->SetCol(col); | |
1685 | } | |
1686 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
d14a1e28 RD |
1687 | wxPyBeginBlockThreads(); |
1688 | PyObject* tup = PyTuple_New(2); | |
1689 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1690 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1691 | wxPyEndBlockThreads(); | |
1692 | return tup; | |
1693 | } | |
328fcd84 RD |
1694 | bool wxGBSpan___eq__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self == *other) : False; } |
1695 | bool wxGBSpan___ne__(wxGBSpan *self,wxGBSpan const *other){ return other ? (*self != *other) : True; } | |
423f194a RD |
1696 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1697 | self->SetRowspan(rowspan); | |
1698 | self->SetColspan(colspan); | |
1699 | } | |
1700 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
d14a1e28 RD |
1701 | wxPyBeginBlockThreads(); |
1702 | PyObject* tup = PyTuple_New(2); | |
1703 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1704 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1705 | wxPyEndBlockThreads(); | |
1706 | return tup; | |
1707 | } | |
1708 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1709 | ||
1710 | wxPyUserData* data = NULL; | |
1711 | wxPyBeginBlockThreads(); | |
423f194a | 1712 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1713 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1714 | data = new wxPyUserData(userData); | |
1715 | wxPyEndBlockThreads(); | |
1716 | ||
1717 | // Now call the real Add method if a valid item type was found | |
1718 | if ( info.window ) | |
1719 | return self->Add(info.window, pos, span, flag, border, data); | |
1720 | else if ( info.sizer ) | |
1721 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1722 | else if (info.gotSize) | |
1723 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1724 | pos, span, flag, border, data); | |
423f194a | 1725 | return False; |
d14a1e28 RD |
1726 | } |
1727 | ||
1728 | ||
1729 | #ifdef __cplusplus | |
1730 | extern "C" { | |
1731 | #endif | |
2f4c0a16 | 1732 | static int _wrap_EmptyString_set(PyObject *_val) { |
d03fd34d RD |
1733 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1734 | return 1; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject *_wrap_EmptyString_get() { | |
1739 | PyObject *pyobj; | |
1740 | ||
1741 | { | |
1742 | #if wxUSE_UNICODE | |
1743 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1744 | #else | |
1745 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1746 | #endif | |
1747 | } | |
1748 | return pyobj; | |
1749 | } | |
1750 | ||
1751 | ||
d14a1e28 RD |
1752 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1753 | PyObject *resultobj; | |
1754 | wxObject *arg1 = (wxObject *) 0 ; | |
1755 | wxString result; | |
1756 | PyObject * obj0 = 0 ; | |
1757 | char *kwnames[] = { | |
1758 | (char *) "self", NULL | |
1759 | }; | |
1760 | ||
1761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1764 | { |
1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1766 | result = wxObject_GetClassName(arg1); | |
1767 | ||
1768 | wxPyEndAllowThreads(__tstate); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
1771 | { | |
1772 | #if wxUSE_UNICODE | |
1773 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1774 | #else | |
1775 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1776 | #endif | |
1777 | } | |
1778 | return resultobj; | |
1779 | fail: | |
1780 | return NULL; | |
1781 | } | |
1782 | ||
1783 | ||
1784 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject *resultobj; | |
1786 | wxObject *arg1 = (wxObject *) 0 ; | |
1787 | PyObject * obj0 = 0 ; | |
1788 | char *kwnames[] = { | |
1789 | (char *) "self", NULL | |
1790 | }; | |
1791 | ||
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1795 | { |
1796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1797 | wxObject_Destroy(arg1); | |
1798 | ||
1799 | wxPyEndAllowThreads(__tstate); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | } | |
1802 | Py_INCREF(Py_None); resultobj = Py_None; | |
1803 | return resultobj; | |
1804 | fail: | |
1805 | return NULL; | |
1806 | } | |
1807 | ||
1808 | ||
1809 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1810 | PyObject *obj; | |
1811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1812 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1813 | Py_INCREF(obj); | |
1814 | return Py_BuildValue((char *)""); | |
1815 | } | |
1816 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1817 | PyObject *resultobj; | |
1818 | wxSize *arg1 = (wxSize *) 0 ; | |
1819 | int arg2 ; | |
1820 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1822 | char *kwnames[] = { |
1823 | (char *) "self",(char *) "x", NULL | |
1824 | }; | |
1825 | ||
8edf1c75 | 1826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1829 | arg2 = (int) SWIG_AsInt(obj1); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1831 | if (arg1) (arg1)->x = arg2; |
1832 | ||
1833 | Py_INCREF(Py_None); resultobj = Py_None; | |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
1840 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1841 | PyObject *resultobj; | |
1842 | wxSize *arg1 = (wxSize *) 0 ; | |
1843 | int result; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self", NULL | |
1847 | }; | |
1848 | ||
1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1852 | result = (int) ((arg1)->x); |
1853 | ||
2f4c0a16 | 1854 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1855 | return resultobj; |
1856 | fail: | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
1861 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject *resultobj; | |
1863 | wxSize *arg1 = (wxSize *) 0 ; | |
1864 | int arg2 ; | |
1865 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1867 | char *kwnames[] = { |
1868 | (char *) "self",(char *) "y", NULL | |
1869 | }; | |
1870 | ||
8edf1c75 | 1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1874 | arg2 = (int) SWIG_AsInt(obj1); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1876 | if (arg1) (arg1)->y = arg2; |
1877 | ||
1878 | Py_INCREF(Py_None); resultobj = Py_None; | |
1879 | return resultobj; | |
1880 | fail: | |
1881 | return NULL; | |
1882 | } | |
1883 | ||
1884 | ||
1885 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1886 | PyObject *resultobj; | |
1887 | wxSize *arg1 = (wxSize *) 0 ; | |
1888 | int result; | |
1889 | PyObject * obj0 = 0 ; | |
1890 | char *kwnames[] = { | |
1891 | (char *) "self", NULL | |
1892 | }; | |
1893 | ||
1894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1897 | result = (int) ((arg1)->y); |
1898 | ||
2f4c0a16 | 1899 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1900 | return resultobj; |
1901 | fail: | |
1902 | return NULL; | |
1903 | } | |
1904 | ||
1905 | ||
1906 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1907 | PyObject *resultobj; | |
1908 | int arg1 = (int) 0 ; | |
1909 | int arg2 = (int) 0 ; | |
1910 | wxSize *result; | |
8edf1c75 RD |
1911 | PyObject * obj0 = 0 ; |
1912 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1913 | char *kwnames[] = { |
1914 | (char *) "w",(char *) "h", NULL | |
1915 | }; | |
1916 | ||
8edf1c75 RD |
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1918 | if (obj0) { | |
2f4c0a16 RD |
1919 | arg1 = (int) SWIG_AsInt(obj0); |
1920 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1921 | } |
1922 | if (obj1) { | |
2f4c0a16 RD |
1923 | arg2 = (int) SWIG_AsInt(obj1); |
1924 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1925 | } |
d14a1e28 RD |
1926 | { |
1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1928 | result = (wxSize *)new wxSize(arg1,arg2); | |
1929 | ||
1930 | wxPyEndAllowThreads(__tstate); | |
1931 | if (PyErr_Occurred()) SWIG_fail; | |
1932 | } | |
2f4c0a16 | 1933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1934 | return resultobj; |
1935 | fail: | |
1936 | return NULL; | |
1937 | } | |
1938 | ||
1939 | ||
1940 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject *resultobj; | |
1942 | wxSize *arg1 = (wxSize *) 0 ; | |
1943 | PyObject * obj0 = 0 ; | |
1944 | char *kwnames[] = { | |
1945 | (char *) "self", NULL | |
1946 | }; | |
1947 | ||
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1951 | { |
1952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1953 | delete arg1; | |
1954 | ||
1955 | wxPyEndAllowThreads(__tstate); | |
1956 | if (PyErr_Occurred()) SWIG_fail; | |
1957 | } | |
1958 | Py_INCREF(Py_None); resultobj = Py_None; | |
1959 | return resultobj; | |
1960 | fail: | |
1961 | return NULL; | |
1962 | } | |
1963 | ||
1964 | ||
1965 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1966 | PyObject *resultobj; | |
1967 | wxSize *arg1 = (wxSize *) 0 ; | |
1968 | wxSize *arg2 = 0 ; | |
1969 | bool result; | |
1970 | wxSize temp2 ; | |
1971 | PyObject * obj0 = 0 ; | |
1972 | PyObject * obj1 = 0 ; | |
1973 | char *kwnames[] = { | |
1974 | (char *) "self",(char *) "sz", NULL | |
1975 | }; | |
1976 | ||
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1980 | { |
1981 | arg2 = &temp2; | |
1982 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1983 | } | |
1984 | { | |
1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 1986 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
1987 | |
1988 | wxPyEndAllowThreads(__tstate); | |
1989 | if (PyErr_Occurred()) SWIG_fail; | |
1990 | } | |
4e760a36 | 1991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1992 | return resultobj; |
1993 | fail: | |
1994 | return NULL; | |
1995 | } | |
1996 | ||
1997 | ||
1998 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1999 | PyObject *resultobj; | |
2000 | wxSize *arg1 = (wxSize *) 0 ; | |
2001 | wxSize *arg2 = 0 ; | |
2002 | bool result; | |
2003 | wxSize temp2 ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | PyObject * obj1 = 0 ; | |
2006 | char *kwnames[] = { | |
2007 | (char *) "self",(char *) "sz", NULL | |
2008 | }; | |
2009 | ||
2010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2013 | { |
2014 | arg2 = &temp2; | |
2015 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2016 | } | |
2017 | { | |
2018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2019 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2020 | |
2021 | wxPyEndAllowThreads(__tstate); | |
2022 | if (PyErr_Occurred()) SWIG_fail; | |
2023 | } | |
4e760a36 | 2024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2025 | return resultobj; |
2026 | fail: | |
2027 | return NULL; | |
2028 | } | |
2029 | ||
2030 | ||
2031 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2032 | PyObject *resultobj; | |
2033 | wxSize *arg1 = (wxSize *) 0 ; | |
2034 | wxSize *arg2 = 0 ; | |
2035 | wxSize result; | |
2036 | wxSize temp2 ; | |
2037 | PyObject * obj0 = 0 ; | |
2038 | PyObject * obj1 = 0 ; | |
2039 | char *kwnames[] = { | |
2040 | (char *) "self",(char *) "sz", NULL | |
2041 | }; | |
2042 | ||
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2046 | { |
2047 | arg2 = &temp2; | |
2048 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2049 | } | |
2050 | { | |
2051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2052 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2053 | ||
2054 | wxPyEndAllowThreads(__tstate); | |
2055 | if (PyErr_Occurred()) SWIG_fail; | |
2056 | } | |
2057 | { | |
2058 | wxSize * resultptr; | |
2059 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2061 | } |
2062 | return resultobj; | |
2063 | fail: | |
2064 | return NULL; | |
2065 | } | |
2066 | ||
2067 | ||
2068 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2069 | PyObject *resultobj; | |
2070 | wxSize *arg1 = (wxSize *) 0 ; | |
2071 | wxSize *arg2 = 0 ; | |
2072 | wxSize result; | |
2073 | wxSize temp2 ; | |
2074 | PyObject * obj0 = 0 ; | |
2075 | PyObject * obj1 = 0 ; | |
2076 | char *kwnames[] = { | |
2077 | (char *) "self",(char *) "sz", NULL | |
2078 | }; | |
2079 | ||
2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2083 | { |
2084 | arg2 = &temp2; | |
2085 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2086 | } | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
2094 | { | |
2095 | wxSize * resultptr; | |
2096 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2097 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2098 | } |
2099 | return resultobj; | |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
2105 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | wxSize *arg1 = (wxSize *) 0 ; | |
2108 | wxSize *arg2 = 0 ; | |
2109 | wxSize temp2 ; | |
2110 | PyObject * obj0 = 0 ; | |
2111 | PyObject * obj1 = 0 ; | |
2112 | char *kwnames[] = { | |
2113 | (char *) "self",(char *) "sz", NULL | |
2114 | }; | |
2115 | ||
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2119 | { |
2120 | arg2 = &temp2; | |
2121 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2122 | } | |
2123 | { | |
2124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2125 | (arg1)->IncTo((wxSize const &)*arg2); | |
2126 | ||
2127 | wxPyEndAllowThreads(__tstate); | |
2128 | if (PyErr_Occurred()) SWIG_fail; | |
2129 | } | |
2130 | Py_INCREF(Py_None); resultobj = Py_None; | |
2131 | return resultobj; | |
2132 | fail: | |
2133 | return NULL; | |
2134 | } | |
2135 | ||
2136 | ||
2137 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject *resultobj; | |
2139 | wxSize *arg1 = (wxSize *) 0 ; | |
2140 | wxSize *arg2 = 0 ; | |
2141 | wxSize temp2 ; | |
2142 | PyObject * obj0 = 0 ; | |
2143 | PyObject * obj1 = 0 ; | |
2144 | char *kwnames[] = { | |
2145 | (char *) "self",(char *) "sz", NULL | |
2146 | }; | |
2147 | ||
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2151 | { |
2152 | arg2 = &temp2; | |
2153 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2154 | } | |
2155 | { | |
2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2157 | (arg1)->DecTo((wxSize const &)*arg2); | |
2158 | ||
2159 | wxPyEndAllowThreads(__tstate); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | } | |
2162 | Py_INCREF(Py_None); resultobj = Py_None; | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject *resultobj; | |
2171 | wxSize *arg1 = (wxSize *) 0 ; | |
2172 | int arg2 ; | |
2173 | int arg3 ; | |
2174 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2175 | PyObject * obj1 = 0 ; |
2176 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2177 | char *kwnames[] = { |
423f194a | 2178 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2179 | }; |
2180 | ||
8edf1c75 | 2181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2184 | arg2 = (int) SWIG_AsInt(obj1); | |
2185 | if (PyErr_Occurred()) SWIG_fail; | |
2186 | arg3 = (int) SWIG_AsInt(obj2); | |
2187 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2188 | { |
2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2190 | (arg1)->Set(arg2,arg3); | |
2191 | ||
2192 | wxPyEndAllowThreads(__tstate); | |
2193 | if (PyErr_Occurred()) SWIG_fail; | |
2194 | } | |
2195 | Py_INCREF(Py_None); resultobj = Py_None; | |
2196 | return resultobj; | |
2197 | fail: | |
2198 | return NULL; | |
2199 | } | |
2200 | ||
2201 | ||
2202 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject *resultobj; | |
2204 | wxSize *arg1 = (wxSize *) 0 ; | |
2205 | int arg2 ; | |
2206 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2207 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2208 | char *kwnames[] = { |
2209 | (char *) "self",(char *) "w", NULL | |
2210 | }; | |
2211 | ||
8edf1c75 | 2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2215 | arg2 = (int) SWIG_AsInt(obj1); | |
2216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2217 | { |
2218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2219 | (arg1)->SetWidth(arg2); | |
2220 | ||
2221 | wxPyEndAllowThreads(__tstate); | |
2222 | if (PyErr_Occurred()) SWIG_fail; | |
2223 | } | |
2224 | Py_INCREF(Py_None); resultobj = Py_None; | |
2225 | return resultobj; | |
2226 | fail: | |
2227 | return NULL; | |
2228 | } | |
2229 | ||
2230 | ||
2231 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2232 | PyObject *resultobj; | |
2233 | wxSize *arg1 = (wxSize *) 0 ; | |
2234 | int arg2 ; | |
2235 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2237 | char *kwnames[] = { |
2238 | (char *) "self",(char *) "h", NULL | |
2239 | }; | |
2240 | ||
8edf1c75 | 2241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2244 | arg2 = (int) SWIG_AsInt(obj1); | |
2245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2246 | { |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | (arg1)->SetHeight(arg2); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2261 | PyObject *resultobj; | |
2262 | wxSize *arg1 = (wxSize *) 0 ; | |
2263 | int result; | |
2264 | PyObject * obj0 = 0 ; | |
2265 | char *kwnames[] = { | |
2266 | (char *) "self", NULL | |
2267 | }; | |
2268 | ||
2269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2272 | { |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2f4c0a16 | 2279 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2280 | return resultobj; |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxSize *arg1 = (wxSize *) 0 ; | |
2289 | int result; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | char *kwnames[] = { | |
2292 | (char *) "self", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2298 | { |
2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2300 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2301 | ||
2302 | wxPyEndAllowThreads(__tstate); | |
2303 | if (PyErr_Occurred()) SWIG_fail; | |
2304 | } | |
2f4c0a16 | 2305 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2306 | return resultobj; |
2307 | fail: | |
2308 | return NULL; | |
2309 | } | |
2310 | ||
2311 | ||
423f194a | 2312 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2313 | PyObject *resultobj; |
2314 | wxSize *arg1 = (wxSize *) 0 ; | |
2315 | PyObject *result; | |
2316 | PyObject * obj0 = 0 ; | |
2317 | char *kwnames[] = { | |
2318 | (char *) "self", NULL | |
2319 | }; | |
2320 | ||
423f194a | 2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2324 | { |
2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2326 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2327 | |
2328 | wxPyEndAllowThreads(__tstate); | |
2329 | if (PyErr_Occurred()) SWIG_fail; | |
2330 | } | |
2331 | resultobj = result; | |
2332 | return resultobj; | |
2333 | fail: | |
2334 | return NULL; | |
2335 | } | |
2336 | ||
2337 | ||
2338 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2339 | PyObject *obj; | |
2340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2341 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2342 | Py_INCREF(obj); | |
2343 | return Py_BuildValue((char *)""); | |
2344 | } | |
2345 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject *resultobj; | |
2347 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2348 | double arg2 ; | |
2349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2351 | char *kwnames[] = { |
2352 | (char *) "self",(char *) "x", NULL | |
2353 | }; | |
2354 | ||
8edf1c75 | 2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2358 | arg2 = (double) SWIG_AsDouble(obj1); | |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2360 | if (arg1) (arg1)->x = arg2; |
2361 | ||
2362 | Py_INCREF(Py_None); resultobj = Py_None; | |
2363 | return resultobj; | |
2364 | fail: | |
2365 | return NULL; | |
2366 | } | |
2367 | ||
2368 | ||
2369 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject *resultobj; | |
2371 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2372 | double result; | |
2373 | PyObject * obj0 = 0 ; | |
2374 | char *kwnames[] = { | |
2375 | (char *) "self", NULL | |
2376 | }; | |
2377 | ||
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2381 | result = (double) ((arg1)->x); |
2382 | ||
2f4c0a16 | 2383 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2384 | return resultobj; |
2385 | fail: | |
2386 | return NULL; | |
2387 | } | |
2388 | ||
2389 | ||
2390 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2391 | PyObject *resultobj; | |
2392 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2393 | double arg2 ; | |
2394 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2395 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2396 | char *kwnames[] = { |
2397 | (char *) "self",(char *) "y", NULL | |
2398 | }; | |
2399 | ||
8edf1c75 | 2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2403 | arg2 = (double) SWIG_AsDouble(obj1); | |
2404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2405 | if (arg1) (arg1)->y = arg2; |
2406 | ||
2407 | Py_INCREF(Py_None); resultobj = Py_None; | |
2408 | return resultobj; | |
2409 | fail: | |
2410 | return NULL; | |
2411 | } | |
2412 | ||
2413 | ||
2414 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2415 | PyObject *resultobj; | |
2416 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2417 | double result; | |
2418 | PyObject * obj0 = 0 ; | |
2419 | char *kwnames[] = { | |
2420 | (char *) "self", NULL | |
2421 | }; | |
2422 | ||
2423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2426 | result = (double) ((arg1)->y); |
2427 | ||
2f4c0a16 | 2428 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2429 | return resultobj; |
2430 | fail: | |
2431 | return NULL; | |
2432 | } | |
2433 | ||
2434 | ||
2435 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject *resultobj; | |
2437 | double arg1 = (double) 0.0 ; | |
2438 | double arg2 = (double) 0.0 ; | |
2439 | wxRealPoint *result; | |
8edf1c75 RD |
2440 | PyObject * obj0 = 0 ; |
2441 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2442 | char *kwnames[] = { |
2443 | (char *) "x",(char *) "y", NULL | |
2444 | }; | |
2445 | ||
8edf1c75 RD |
2446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2447 | if (obj0) { | |
2f4c0a16 RD |
2448 | arg1 = (double) SWIG_AsDouble(obj0); |
2449 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2450 | } |
2451 | if (obj1) { | |
2f4c0a16 RD |
2452 | arg2 = (double) SWIG_AsDouble(obj1); |
2453 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2454 | } |
d14a1e28 RD |
2455 | { |
2456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2457 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2458 | ||
2459 | wxPyEndAllowThreads(__tstate); | |
2460 | if (PyErr_Occurred()) SWIG_fail; | |
2461 | } | |
2f4c0a16 | 2462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2463 | return resultobj; |
2464 | fail: | |
2465 | return NULL; | |
2466 | } | |
2467 | ||
2468 | ||
2469 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2470 | PyObject *resultobj; | |
2471 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2472 | PyObject * obj0 = 0 ; | |
2473 | char *kwnames[] = { | |
2474 | (char *) "self", NULL | |
2475 | }; | |
2476 | ||
2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2480 | { |
2481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2482 | delete arg1; | |
2483 | ||
2484 | wxPyEndAllowThreads(__tstate); | |
2485 | if (PyErr_Occurred()) SWIG_fail; | |
2486 | } | |
2487 | Py_INCREF(Py_None); resultobj = Py_None; | |
2488 | return resultobj; | |
2489 | fail: | |
2490 | return NULL; | |
2491 | } | |
2492 | ||
2493 | ||
423f194a | 2494 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2495 | PyObject *resultobj; |
2496 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2497 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2498 | bool result; |
d14a1e28 RD |
2499 | wxRealPoint temp2 ; |
2500 | PyObject * obj0 = 0 ; | |
2501 | PyObject * obj1 = 0 ; | |
2502 | char *kwnames[] = { | |
2503 | (char *) "self",(char *) "pt", NULL | |
2504 | }; | |
2505 | ||
423f194a | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2509 | { |
2510 | arg2 = &temp2; | |
2511 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2512 | } | |
2513 | { | |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2515 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2516 | |
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) SWIG_fail; | |
2519 | } | |
4e760a36 | 2520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2521 | return resultobj; |
2522 | fail: | |
2523 | return NULL; | |
2524 | } | |
2525 | ||
2526 | ||
423f194a | 2527 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2528 | PyObject *resultobj; |
2529 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2530 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2531 | bool result; |
d14a1e28 RD |
2532 | wxRealPoint temp2 ; |
2533 | PyObject * obj0 = 0 ; | |
2534 | PyObject * obj1 = 0 ; | |
2535 | char *kwnames[] = { | |
2536 | (char *) "self",(char *) "pt", NULL | |
2537 | }; | |
2538 | ||
423f194a | 2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2542 | { |
2543 | arg2 = &temp2; | |
2544 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2545 | } | |
2546 | { | |
2547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2548 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2549 | |
2550 | wxPyEndAllowThreads(__tstate); | |
2551 | if (PyErr_Occurred()) SWIG_fail; | |
2552 | } | |
4e760a36 | 2553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2554 | return resultobj; |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
423f194a | 2560 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2561 | PyObject *resultobj; |
2562 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2563 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2564 | wxRealPoint result; |
d14a1e28 RD |
2565 | wxRealPoint temp2 ; |
2566 | PyObject * obj0 = 0 ; | |
2567 | PyObject * obj1 = 0 ; | |
2568 | char *kwnames[] = { | |
2569 | (char *) "self",(char *) "pt", NULL | |
2570 | }; | |
2571 | ||
423f194a | 2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2575 | { |
2576 | arg2 = &temp2; | |
2577 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2578 | } | |
2579 | { | |
2580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2581 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2582 | |
2583 | wxPyEndAllowThreads(__tstate); | |
2584 | if (PyErr_Occurred()) SWIG_fail; | |
2585 | } | |
423f194a RD |
2586 | { |
2587 | wxRealPoint * resultptr; | |
2588 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2589 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2590 | } |
d14a1e28 RD |
2591 | return resultobj; |
2592 | fail: | |
2593 | return NULL; | |
2594 | } | |
2595 | ||
2596 | ||
423f194a | 2597 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2598 | PyObject *resultobj; |
2599 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2600 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2601 | wxRealPoint result; |
d14a1e28 RD |
2602 | wxRealPoint temp2 ; |
2603 | PyObject * obj0 = 0 ; | |
2604 | PyObject * obj1 = 0 ; | |
2605 | char *kwnames[] = { | |
2606 | (char *) "self",(char *) "pt", NULL | |
2607 | }; | |
2608 | ||
423f194a | 2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2612 | { |
2613 | arg2 = &temp2; | |
2614 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2615 | } | |
2616 | { | |
2617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2618 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2619 | |
2620 | wxPyEndAllowThreads(__tstate); | |
2621 | if (PyErr_Occurred()) SWIG_fail; | |
2622 | } | |
423f194a RD |
2623 | { |
2624 | wxRealPoint * resultptr; | |
2625 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2627 | } |
d14a1e28 RD |
2628 | return resultobj; |
2629 | fail: | |
2630 | return NULL; | |
2631 | } | |
2632 | ||
2633 | ||
2634 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject *resultobj; | |
2636 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2637 | double arg2 ; | |
2638 | double arg3 ; | |
2639 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2640 | PyObject * obj1 = 0 ; |
2641 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2642 | char *kwnames[] = { |
2643 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2644 | }; | |
2645 | ||
8edf1c75 | 2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2649 | arg2 = (double) SWIG_AsDouble(obj1); | |
2650 | if (PyErr_Occurred()) SWIG_fail; | |
2651 | arg3 = (double) SWIG_AsDouble(obj2); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2653 | { |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | wxRealPoint_Set(arg1,arg2,arg3); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) SWIG_fail; | |
2659 | } | |
2660 | Py_INCREF(Py_None); resultobj = Py_None; | |
2661 | return resultobj; | |
2662 | fail: | |
2663 | return NULL; | |
2664 | } | |
2665 | ||
2666 | ||
423f194a | 2667 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2668 | PyObject *resultobj; |
2669 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2670 | PyObject *result; | |
2671 | PyObject * obj0 = 0 ; | |
2672 | char *kwnames[] = { | |
2673 | (char *) "self", NULL | |
2674 | }; | |
2675 | ||
423f194a | 2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2679 | { |
2680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2681 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2682 | |
2683 | wxPyEndAllowThreads(__tstate); | |
2684 | if (PyErr_Occurred()) SWIG_fail; | |
2685 | } | |
2686 | resultobj = result; | |
2687 | return resultobj; | |
2688 | fail: | |
2689 | return NULL; | |
2690 | } | |
2691 | ||
2692 | ||
2693 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2694 | PyObject *obj; | |
2695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2696 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2697 | Py_INCREF(obj); | |
2698 | return Py_BuildValue((char *)""); | |
2699 | } | |
2700 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2701 | PyObject *resultobj; | |
2702 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2703 | int arg2 ; | |
2704 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2706 | char *kwnames[] = { |
2707 | (char *) "self",(char *) "x", NULL | |
2708 | }; | |
2709 | ||
8edf1c75 | 2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2713 | arg2 = (int) SWIG_AsInt(obj1); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2715 | if (arg1) (arg1)->x = arg2; |
2716 | ||
2717 | Py_INCREF(Py_None); resultobj = Py_None; | |
2718 | return resultobj; | |
2719 | fail: | |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
2724 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject *resultobj; | |
2726 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2727 | int result; | |
2728 | PyObject * obj0 = 0 ; | |
2729 | char *kwnames[] = { | |
2730 | (char *) "self", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2736 | result = (int) ((arg1)->x); |
2737 | ||
2f4c0a16 | 2738 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2739 | return resultobj; |
2740 | fail: | |
2741 | return NULL; | |
2742 | } | |
2743 | ||
2744 | ||
2745 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2746 | PyObject *resultobj; | |
2747 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2748 | int arg2 ; | |
2749 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2750 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2751 | char *kwnames[] = { |
2752 | (char *) "self",(char *) "y", NULL | |
2753 | }; | |
2754 | ||
8edf1c75 | 2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2758 | arg2 = (int) SWIG_AsInt(obj1); | |
2759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2760 | if (arg1) (arg1)->y = arg2; |
2761 | ||
2762 | Py_INCREF(Py_None); resultobj = Py_None; | |
2763 | return resultobj; | |
2764 | fail: | |
2765 | return NULL; | |
2766 | } | |
2767 | ||
2768 | ||
2769 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject *resultobj; | |
2771 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2772 | int result; | |
2773 | PyObject * obj0 = 0 ; | |
2774 | char *kwnames[] = { | |
2775 | (char *) "self", NULL | |
2776 | }; | |
2777 | ||
2778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2781 | result = (int) ((arg1)->y); |
2782 | ||
2f4c0a16 | 2783 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2784 | return resultobj; |
2785 | fail: | |
2786 | return NULL; | |
2787 | } | |
2788 | ||
2789 | ||
2790 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2791 | PyObject *resultobj; | |
2792 | int arg1 = (int) 0 ; | |
2793 | int arg2 = (int) 0 ; | |
2794 | wxPoint *result; | |
8edf1c75 RD |
2795 | PyObject * obj0 = 0 ; |
2796 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2797 | char *kwnames[] = { |
2798 | (char *) "x",(char *) "y", NULL | |
2799 | }; | |
2800 | ||
8edf1c75 RD |
2801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2802 | if (obj0) { | |
2f4c0a16 RD |
2803 | arg1 = (int) SWIG_AsInt(obj0); |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2805 | } |
2806 | if (obj1) { | |
2f4c0a16 RD |
2807 | arg2 = (int) SWIG_AsInt(obj1); |
2808 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2809 | } |
d14a1e28 RD |
2810 | { |
2811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2812 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2813 | ||
2814 | wxPyEndAllowThreads(__tstate); | |
2815 | if (PyErr_Occurred()) SWIG_fail; | |
2816 | } | |
2f4c0a16 | 2817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2818 | return resultobj; |
2819 | fail: | |
2820 | return NULL; | |
2821 | } | |
2822 | ||
2823 | ||
2824 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject *resultobj; | |
2826 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2827 | PyObject * obj0 = 0 ; | |
2828 | char *kwnames[] = { | |
2829 | (char *) "self", NULL | |
2830 | }; | |
2831 | ||
2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2835 | { |
2836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2837 | delete arg1; | |
2838 | ||
2839 | wxPyEndAllowThreads(__tstate); | |
2840 | if (PyErr_Occurred()) SWIG_fail; | |
2841 | } | |
2842 | Py_INCREF(Py_None); resultobj = Py_None; | |
2843 | return resultobj; | |
2844 | fail: | |
2845 | return NULL; | |
2846 | } | |
2847 | ||
2848 | ||
2849 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject *resultobj; | |
2851 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2852 | wxPoint *arg2 = 0 ; | |
2853 | bool result; | |
2854 | wxPoint temp2 ; | |
2855 | PyObject * obj0 = 0 ; | |
2856 | PyObject * obj1 = 0 ; | |
2857 | char *kwnames[] = { | |
423f194a | 2858 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2859 | }; |
2860 | ||
2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2864 | { |
2865 | arg2 = &temp2; | |
2866 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2867 | } | |
2868 | { | |
2869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2870 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2871 | |
2872 | wxPyEndAllowThreads(__tstate); | |
2873 | if (PyErr_Occurred()) SWIG_fail; | |
2874 | } | |
4e760a36 | 2875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2876 | return resultobj; |
2877 | fail: | |
2878 | return NULL; | |
2879 | } | |
2880 | ||
2881 | ||
2882 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2883 | PyObject *resultobj; | |
2884 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2885 | wxPoint *arg2 = 0 ; | |
2886 | bool result; | |
2887 | wxPoint temp2 ; | |
2888 | PyObject * obj0 = 0 ; | |
2889 | PyObject * obj1 = 0 ; | |
2890 | char *kwnames[] = { | |
423f194a | 2891 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2892 | }; |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2897 | { |
2898 | arg2 = &temp2; | |
2899 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2900 | } | |
2901 | { | |
2902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2903 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2904 | |
2905 | wxPyEndAllowThreads(__tstate); | |
2906 | if (PyErr_Occurred()) SWIG_fail; | |
2907 | } | |
4e760a36 | 2908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2909 | return resultobj; |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2915 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2916 | PyObject *resultobj; | |
2917 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2918 | wxPoint *arg2 = 0 ; | |
2919 | wxPoint result; | |
2920 | wxPoint temp2 ; | |
2921 | PyObject * obj0 = 0 ; | |
2922 | PyObject * obj1 = 0 ; | |
2923 | char *kwnames[] = { | |
423f194a | 2924 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2925 | }; |
2926 | ||
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2930 | { |
2931 | arg2 = &temp2; | |
2932 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2933 | } | |
2934 | { | |
2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2936 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2937 | |
2938 | wxPyEndAllowThreads(__tstate); | |
2939 | if (PyErr_Occurred()) SWIG_fail; | |
2940 | } | |
2941 | { | |
2942 | wxPoint * resultptr; | |
2943 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2944 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2945 | } |
2946 | return resultobj; | |
2947 | fail: | |
2948 | return NULL; | |
2949 | } | |
2950 | ||
2951 | ||
2952 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject *resultobj; | |
2954 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2955 | wxPoint *arg2 = 0 ; | |
2956 | wxPoint result; | |
2957 | wxPoint temp2 ; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | PyObject * obj1 = 0 ; | |
2960 | char *kwnames[] = { | |
423f194a | 2961 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2962 | }; |
2963 | ||
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2967 | { |
2968 | arg2 = &temp2; | |
2969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2970 | } | |
2971 | { | |
2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2973 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
2974 | |
2975 | wxPyEndAllowThreads(__tstate); | |
2976 | if (PyErr_Occurred()) SWIG_fail; | |
2977 | } | |
2978 | { | |
2979 | wxPoint * resultptr; | |
2980 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2982 | } |
2983 | return resultobj; | |
2984 | fail: | |
2985 | return NULL; | |
2986 | } | |
2987 | ||
2988 | ||
2989 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2990 | PyObject *resultobj; | |
2991 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2992 | wxPoint *arg2 = 0 ; | |
2993 | wxPoint *result; | |
2994 | wxPoint temp2 ; | |
2995 | PyObject * obj0 = 0 ; | |
2996 | PyObject * obj1 = 0 ; | |
2997 | char *kwnames[] = { | |
423f194a | 2998 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2999 | }; |
3000 | ||
3001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3004 | { |
3005 | arg2 = &temp2; | |
3006 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3007 | } | |
3008 | { | |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | { | |
3011 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3012 | result = (wxPoint *) &_result_ref; | |
3013 | } | |
3014 | ||
3015 | wxPyEndAllowThreads(__tstate); | |
3016 | if (PyErr_Occurred()) SWIG_fail; | |
3017 | } | |
2f4c0a16 | 3018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3019 | return resultobj; |
3020 | fail: | |
3021 | return NULL; | |
3022 | } | |
3023 | ||
3024 | ||
3025 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject *resultobj; | |
3027 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3028 | wxPoint *arg2 = 0 ; | |
3029 | wxPoint *result; | |
3030 | wxPoint temp2 ; | |
3031 | PyObject * obj0 = 0 ; | |
3032 | PyObject * obj1 = 0 ; | |
3033 | char *kwnames[] = { | |
423f194a | 3034 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3035 | }; |
3036 | ||
3037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3040 | { |
3041 | arg2 = &temp2; | |
3042 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3043 | } | |
3044 | { | |
3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3046 | { | |
3047 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3048 | result = (wxPoint *) &_result_ref; | |
3049 | } | |
3050 | ||
3051 | wxPyEndAllowThreads(__tstate); | |
3052 | if (PyErr_Occurred()) SWIG_fail; | |
3053 | } | |
2f4c0a16 | 3054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3055 | return resultobj; |
3056 | fail: | |
3057 | return NULL; | |
3058 | } | |
3059 | ||
3060 | ||
3061 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3062 | PyObject *resultobj; | |
3063 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3064 | long arg2 ; | |
3065 | long arg3 ; | |
3066 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3067 | PyObject * obj1 = 0 ; |
3068 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3069 | char *kwnames[] = { |
3070 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3071 | }; | |
3072 | ||
8edf1c75 | 3073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3076 | arg2 = (long) SWIG_AsLong(obj1); | |
3077 | if (PyErr_Occurred()) SWIG_fail; | |
3078 | arg3 = (long) SWIG_AsLong(obj2); | |
3079 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3080 | { |
3081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3082 | wxPoint_Set(arg1,arg2,arg3); | |
3083 | ||
3084 | wxPyEndAllowThreads(__tstate); | |
3085 | if (PyErr_Occurred()) SWIG_fail; | |
3086 | } | |
3087 | Py_INCREF(Py_None); resultobj = Py_None; | |
3088 | return resultobj; | |
3089 | fail: | |
3090 | return NULL; | |
3091 | } | |
3092 | ||
3093 | ||
423f194a | 3094 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3095 | PyObject *resultobj; |
3096 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3097 | PyObject *result; | |
3098 | PyObject * obj0 = 0 ; | |
3099 | char *kwnames[] = { | |
3100 | (char *) "self", NULL | |
3101 | }; | |
3102 | ||
423f194a | 3103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3106 | { |
3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3108 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3109 | |
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) SWIG_fail; | |
3112 | } | |
3113 | resultobj = result; | |
3114 | return resultobj; | |
3115 | fail: | |
3116 | return NULL; | |
3117 | } | |
3118 | ||
3119 | ||
3120 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3121 | PyObject *obj; | |
3122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3123 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3124 | Py_INCREF(obj); | |
3125 | return Py_BuildValue((char *)""); | |
3126 | } | |
3127 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3128 | PyObject *resultobj; | |
3129 | int arg1 = (int) 0 ; | |
3130 | int arg2 = (int) 0 ; | |
3131 | int arg3 = (int) 0 ; | |
3132 | int arg4 = (int) 0 ; | |
3133 | wxRect *result; | |
8edf1c75 RD |
3134 | PyObject * obj0 = 0 ; |
3135 | PyObject * obj1 = 0 ; | |
3136 | PyObject * obj2 = 0 ; | |
3137 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3138 | char *kwnames[] = { |
3139 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3140 | }; | |
3141 | ||
8edf1c75 RD |
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3143 | if (obj0) { | |
2f4c0a16 RD |
3144 | arg1 = (int) SWIG_AsInt(obj0); |
3145 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3146 | } |
3147 | if (obj1) { | |
2f4c0a16 RD |
3148 | arg2 = (int) SWIG_AsInt(obj1); |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3150 | } |
3151 | if (obj2) { | |
2f4c0a16 RD |
3152 | arg3 = (int) SWIG_AsInt(obj2); |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3154 | } |
3155 | if (obj3) { | |
2f4c0a16 RD |
3156 | arg4 = (int) SWIG_AsInt(obj3); |
3157 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3158 | } |
d14a1e28 RD |
3159 | { |
3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3161 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3162 | ||
3163 | wxPyEndAllowThreads(__tstate); | |
3164 | if (PyErr_Occurred()) SWIG_fail; | |
3165 | } | |
2f4c0a16 | 3166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3167 | return resultobj; |
3168 | fail: | |
3169 | return NULL; | |
3170 | } | |
3171 | ||
3172 | ||
3173 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3174 | PyObject *resultobj; | |
3175 | wxPoint *arg1 = 0 ; | |
3176 | wxPoint *arg2 = 0 ; | |
3177 | wxRect *result; | |
3178 | wxPoint temp1 ; | |
3179 | wxPoint temp2 ; | |
3180 | PyObject * obj0 = 0 ; | |
3181 | PyObject * obj1 = 0 ; | |
3182 | char *kwnames[] = { | |
3183 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3184 | }; | |
3185 | ||
3186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3187 | { | |
3188 | arg1 = &temp1; | |
3189 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3190 | } | |
3191 | { | |
3192 | arg2 = &temp2; | |
3193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3194 | } | |
3195 | { | |
3196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3197 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3198 | ||
3199 | wxPyEndAllowThreads(__tstate); | |
3200 | if (PyErr_Occurred()) SWIG_fail; | |
3201 | } | |
2f4c0a16 | 3202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3203 | return resultobj; |
3204 | fail: | |
3205 | return NULL; | |
3206 | } | |
3207 | ||
3208 | ||
3209 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3210 | PyObject *resultobj; | |
3211 | wxPoint *arg1 = 0 ; | |
3212 | wxSize *arg2 = 0 ; | |
3213 | wxRect *result; | |
3214 | wxPoint temp1 ; | |
3215 | wxSize temp2 ; | |
3216 | PyObject * obj0 = 0 ; | |
3217 | PyObject * obj1 = 0 ; | |
3218 | char *kwnames[] = { | |
3219 | (char *) "pos",(char *) "size", NULL | |
3220 | }; | |
3221 | ||
3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3223 | { | |
3224 | arg1 = &temp1; | |
3225 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3226 | } | |
3227 | { | |
3228 | arg2 = &temp2; | |
3229 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3230 | } | |
3231 | { | |
3232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3233 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3234 | ||
3235 | wxPyEndAllowThreads(__tstate); | |
3236 | if (PyErr_Occurred()) SWIG_fail; | |
3237 | } | |
2f4c0a16 | 3238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3239 | return resultobj; |
3240 | fail: | |
3241 | return NULL; | |
3242 | } | |
3243 | ||
3244 | ||
3245 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3246 | PyObject *resultobj; | |
3247 | wxRect *arg1 = (wxRect *) 0 ; | |
3248 | PyObject * obj0 = 0 ; | |
3249 | char *kwnames[] = { | |
3250 | (char *) "self", NULL | |
3251 | }; | |
3252 | ||
3253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3256 | { |
3257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3258 | delete arg1; | |
3259 | ||
3260 | wxPyEndAllowThreads(__tstate); | |
3261 | if (PyErr_Occurred()) SWIG_fail; | |
3262 | } | |
3263 | Py_INCREF(Py_None); resultobj = Py_None; | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | return NULL; | |
3267 | } | |
3268 | ||
3269 | ||
3270 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3271 | PyObject *resultobj; | |
3272 | wxRect *arg1 = (wxRect *) 0 ; | |
3273 | int result; | |
3274 | PyObject * obj0 = 0 ; | |
3275 | char *kwnames[] = { | |
3276 | (char *) "self", NULL | |
3277 | }; | |
3278 | ||
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3282 | { |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (int)((wxRect const *)arg1)->GetX(); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
2f4c0a16 | 3289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3290 | return resultobj; |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxRect *arg1 = (wxRect *) 0 ; | |
3299 | int arg2 ; | |
3300 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3302 | char *kwnames[] = { |
3303 | (char *) "self",(char *) "x", NULL | |
3304 | }; | |
3305 | ||
8edf1c75 | 3306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3309 | arg2 = (int) SWIG_AsInt(obj1); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3311 | { |
3312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3313 | (arg1)->SetX(arg2); | |
3314 | ||
3315 | wxPyEndAllowThreads(__tstate); | |
3316 | if (PyErr_Occurred()) SWIG_fail; | |
3317 | } | |
3318 | Py_INCREF(Py_None); resultobj = Py_None; | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | return NULL; | |
3322 | } | |
3323 | ||
3324 | ||
3325 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3326 | PyObject *resultobj; | |
3327 | wxRect *arg1 = (wxRect *) 0 ; | |
3328 | int result; | |
3329 | PyObject * obj0 = 0 ; | |
3330 | char *kwnames[] = { | |
3331 | (char *) "self", NULL | |
3332 | }; | |
3333 | ||
3334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3337 | { |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | result = (int)(arg1)->GetY(); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
2f4c0a16 | 3344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3345 | return resultobj; |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
3351 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject *resultobj; | |
3353 | wxRect *arg1 = (wxRect *) 0 ; | |
3354 | int arg2 ; | |
3355 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3357 | char *kwnames[] = { |
3358 | (char *) "self",(char *) "y", NULL | |
3359 | }; | |
3360 | ||
8edf1c75 | 3361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3364 | arg2 = (int) SWIG_AsInt(obj1); | |
3365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3366 | { |
3367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3368 | (arg1)->SetY(arg2); | |
3369 | ||
3370 | wxPyEndAllowThreads(__tstate); | |
3371 | if (PyErr_Occurred()) SWIG_fail; | |
3372 | } | |
3373 | Py_INCREF(Py_None); resultobj = Py_None; | |
3374 | return resultobj; | |
3375 | fail: | |
3376 | return NULL; | |
3377 | } | |
3378 | ||
3379 | ||
3380 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3381 | PyObject *resultobj; | |
3382 | wxRect *arg1 = (wxRect *) 0 ; | |
3383 | int result; | |
3384 | PyObject * obj0 = 0 ; | |
3385 | char *kwnames[] = { | |
3386 | (char *) "self", NULL | |
3387 | }; | |
3388 | ||
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3392 | { |
3393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3394 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3395 | ||
3396 | wxPyEndAllowThreads(__tstate); | |
3397 | if (PyErr_Occurred()) SWIG_fail; | |
3398 | } | |
2f4c0a16 | 3399 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3400 | return resultobj; |
3401 | fail: | |
3402 | return NULL; | |
3403 | } | |
3404 | ||
3405 | ||
3406 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject *resultobj; | |
3408 | wxRect *arg1 = (wxRect *) 0 ; | |
3409 | int arg2 ; | |
3410 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3411 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3412 | char *kwnames[] = { |
3413 | (char *) "self",(char *) "w", NULL | |
3414 | }; | |
3415 | ||
8edf1c75 | 3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3419 | arg2 = (int) SWIG_AsInt(obj1); | |
3420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3421 | { |
3422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3423 | (arg1)->SetWidth(arg2); | |
3424 | ||
3425 | wxPyEndAllowThreads(__tstate); | |
3426 | if (PyErr_Occurred()) SWIG_fail; | |
3427 | } | |
3428 | Py_INCREF(Py_None); resultobj = Py_None; | |
3429 | return resultobj; | |
3430 | fail: | |
3431 | return NULL; | |
3432 | } | |
3433 | ||
3434 | ||
3435 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3436 | PyObject *resultobj; | |
3437 | wxRect *arg1 = (wxRect *) 0 ; | |
3438 | int result; | |
3439 | PyObject * obj0 = 0 ; | |
3440 | char *kwnames[] = { | |
3441 | (char *) "self", NULL | |
3442 | }; | |
3443 | ||
3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3447 | { |
3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3449 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3450 | ||
3451 | wxPyEndAllowThreads(__tstate); | |
3452 | if (PyErr_Occurred()) SWIG_fail; | |
3453 | } | |
2f4c0a16 | 3454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3455 | return resultobj; |
3456 | fail: | |
3457 | return NULL; | |
3458 | } | |
3459 | ||
3460 | ||
3461 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3462 | PyObject *resultobj; | |
3463 | wxRect *arg1 = (wxRect *) 0 ; | |
3464 | int arg2 ; | |
3465 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3467 | char *kwnames[] = { |
3468 | (char *) "self",(char *) "h", NULL | |
3469 | }; | |
3470 | ||
8edf1c75 | 3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3474 | arg2 = (int) SWIG_AsInt(obj1); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3476 | { |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | (arg1)->SetHeight(arg2); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | Py_INCREF(Py_None); resultobj = Py_None; | |
3484 | return resultobj; | |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxRect *arg1 = (wxRect *) 0 ; | |
3493 | wxPoint result; | |
3494 | PyObject * obj0 = 0 ; | |
3495 | char *kwnames[] = { | |
3496 | (char *) "self", NULL | |
3497 | }; | |
3498 | ||
3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3502 | { |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3504 | result = ((wxRect const *)arg1)->GetPosition(); | |
3505 | ||
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | { | |
3510 | wxPoint * resultptr; | |
3511 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3513 | } |
3514 | return resultobj; | |
3515 | fail: | |
3516 | return NULL; | |
3517 | } | |
3518 | ||
3519 | ||
3520 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject *resultobj; | |
3522 | wxRect *arg1 = (wxRect *) 0 ; | |
3523 | wxPoint *arg2 = 0 ; | |
3524 | wxPoint temp2 ; | |
3525 | PyObject * obj0 = 0 ; | |
3526 | PyObject * obj1 = 0 ; | |
3527 | char *kwnames[] = { | |
3528 | (char *) "self",(char *) "p", NULL | |
3529 | }; | |
3530 | ||
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3534 | { |
3535 | arg2 = &temp2; | |
3536 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3537 | } | |
3538 | { | |
3539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3540 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3541 | ||
3542 | wxPyEndAllowThreads(__tstate); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
3544 | } | |
3545 | Py_INCREF(Py_None); resultobj = Py_None; | |
3546 | return resultobj; | |
3547 | fail: | |
3548 | return NULL; | |
3549 | } | |
3550 | ||
3551 | ||
3552 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3553 | PyObject *resultobj; | |
3554 | wxRect *arg1 = (wxRect *) 0 ; | |
3555 | wxSize result; | |
3556 | PyObject * obj0 = 0 ; | |
3557 | char *kwnames[] = { | |
3558 | (char *) "self", NULL | |
3559 | }; | |
3560 | ||
3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3564 | { |
3565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3566 | result = ((wxRect const *)arg1)->GetSize(); | |
3567 | ||
3568 | wxPyEndAllowThreads(__tstate); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | } | |
3571 | { | |
3572 | wxSize * resultptr; | |
3573 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3575 | } |
3576 | return resultobj; | |
3577 | fail: | |
3578 | return NULL; | |
3579 | } | |
3580 | ||
3581 | ||
3582 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3583 | PyObject *resultobj; | |
3584 | wxRect *arg1 = (wxRect *) 0 ; | |
3585 | wxSize *arg2 = 0 ; | |
3586 | wxSize temp2 ; | |
3587 | PyObject * obj0 = 0 ; | |
3588 | PyObject * obj1 = 0 ; | |
3589 | char *kwnames[] = { | |
3590 | (char *) "self",(char *) "s", NULL | |
3591 | }; | |
3592 | ||
3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3596 | { |
3597 | arg2 = &temp2; | |
3598 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3599 | } | |
3600 | { | |
3601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3602 | (arg1)->SetSize((wxSize const &)*arg2); | |
3603 | ||
3604 | wxPyEndAllowThreads(__tstate); | |
3605 | if (PyErr_Occurred()) SWIG_fail; | |
3606 | } | |
3607 | Py_INCREF(Py_None); resultobj = Py_None; | |
3608 | return resultobj; | |
3609 | fail: | |
3610 | return NULL; | |
3611 | } | |
3612 | ||
3613 | ||
9fd4be55 RD |
3614 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3615 | PyObject *resultobj; | |
3616 | wxRect *arg1 = (wxRect *) 0 ; | |
3617 | wxPoint result; | |
3618 | PyObject * obj0 = 0 ; | |
3619 | char *kwnames[] = { | |
3620 | (char *) "self", NULL | |
3621 | }; | |
3622 | ||
3623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3626 | { |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | { | |
3634 | wxPoint * resultptr; | |
3635 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3637 | } |
3638 | return resultobj; | |
3639 | fail: | |
3640 | return NULL; | |
3641 | } | |
3642 | ||
3643 | ||
3644 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3645 | PyObject *resultobj; | |
3646 | wxRect *arg1 = (wxRect *) 0 ; | |
3647 | wxPoint *arg2 = 0 ; | |
3648 | wxPoint temp2 ; | |
3649 | PyObject * obj0 = 0 ; | |
3650 | PyObject * obj1 = 0 ; | |
3651 | char *kwnames[] = { | |
3652 | (char *) "self",(char *) "p", NULL | |
3653 | }; | |
3654 | ||
3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3658 | { |
3659 | arg2 = &temp2; | |
3660 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3661 | } | |
3662 | { | |
3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3664 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3665 | ||
3666 | wxPyEndAllowThreads(__tstate); | |
3667 | if (PyErr_Occurred()) SWIG_fail; | |
3668 | } | |
3669 | Py_INCREF(Py_None); resultobj = Py_None; | |
3670 | return resultobj; | |
3671 | fail: | |
3672 | return NULL; | |
3673 | } | |
3674 | ||
3675 | ||
3676 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | wxRect *arg1 = (wxRect *) 0 ; | |
3679 | wxPoint result; | |
3680 | PyObject * obj0 = 0 ; | |
3681 | char *kwnames[] = { | |
3682 | (char *) "self", NULL | |
3683 | }; | |
3684 | ||
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3688 | { |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | { | |
3696 | wxPoint * resultptr; | |
3697 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3699 | } |
3700 | return resultobj; | |
3701 | fail: | |
3702 | return NULL; | |
3703 | } | |
3704 | ||
3705 | ||
3706 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3707 | PyObject *resultobj; | |
3708 | wxRect *arg1 = (wxRect *) 0 ; | |
3709 | wxPoint *arg2 = 0 ; | |
3710 | wxPoint temp2 ; | |
3711 | PyObject * obj0 = 0 ; | |
3712 | PyObject * obj1 = 0 ; | |
3713 | char *kwnames[] = { | |
3714 | (char *) "self",(char *) "p", NULL | |
3715 | }; | |
3716 | ||
3717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3720 | { |
3721 | arg2 = &temp2; | |
3722 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3723 | } | |
3724 | { | |
3725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3726 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3727 | ||
3728 | wxPyEndAllowThreads(__tstate); | |
3729 | if (PyErr_Occurred()) SWIG_fail; | |
3730 | } | |
3731 | Py_INCREF(Py_None); resultobj = Py_None; | |
3732 | return resultobj; | |
3733 | fail: | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
d14a1e28 RD |
3738 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3739 | PyObject *resultobj; | |
3740 | wxRect *arg1 = (wxRect *) 0 ; | |
3741 | int result; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "self", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3750 | { |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3752 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3753 | ||
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
2f4c0a16 | 3757 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3758 | return resultobj; |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
3764 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject *resultobj; | |
3766 | wxRect *arg1 = (wxRect *) 0 ; | |
3767 | int result; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "self", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3776 | { |
3777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3778 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3779 | ||
3780 | wxPyEndAllowThreads(__tstate); | |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
3782 | } | |
2f4c0a16 | 3783 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3784 | return resultobj; |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject *resultobj; | |
3792 | wxRect *arg1 = (wxRect *) 0 ; | |
3793 | int result; | |
3794 | PyObject * obj0 = 0 ; | |
3795 | char *kwnames[] = { | |
3796 | (char *) "self", NULL | |
3797 | }; | |
3798 | ||
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3802 | { |
3803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3804 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3805 | ||
3806 | wxPyEndAllowThreads(__tstate); | |
3807 | if (PyErr_Occurred()) SWIG_fail; | |
3808 | } | |
2f4c0a16 | 3809 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3810 | return resultobj; |
3811 | fail: | |
3812 | return NULL; | |
3813 | } | |
3814 | ||
3815 | ||
3816 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3817 | PyObject *resultobj; | |
3818 | wxRect *arg1 = (wxRect *) 0 ; | |
3819 | int result; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3828 | { |
3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3830 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3831 | ||
3832 | wxPyEndAllowThreads(__tstate); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | } | |
2f4c0a16 | 3835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3836 | return resultobj; |
3837 | fail: | |
3838 | return NULL; | |
3839 | } | |
3840 | ||
3841 | ||
3842 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3843 | PyObject *resultobj; | |
3844 | wxRect *arg1 = (wxRect *) 0 ; | |
3845 | int arg2 ; | |
3846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3848 | char *kwnames[] = { |
3849 | (char *) "self",(char *) "left", NULL | |
3850 | }; | |
3851 | ||
8edf1c75 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3855 | arg2 = (int) SWIG_AsInt(obj1); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3857 | { |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3859 | (arg1)->SetLeft(arg2); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
3864 | Py_INCREF(Py_None); resultobj = Py_None; | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxRect *arg1 = (wxRect *) 0 ; | |
3874 | int arg2 ; | |
3875 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3877 | char *kwnames[] = { |
3878 | (char *) "self",(char *) "right", NULL | |
3879 | }; | |
3880 | ||
8edf1c75 | 3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3884 | arg2 = (int) SWIG_AsInt(obj1); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3886 | { |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | (arg1)->SetRight(arg2); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | Py_INCREF(Py_None); resultobj = Py_None; | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxRect *arg1 = (wxRect *) 0 ; | |
3903 | int arg2 ; | |
3904 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3906 | char *kwnames[] = { |
3907 | (char *) "self",(char *) "top", NULL | |
3908 | }; | |
3909 | ||
8edf1c75 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | arg2 = (int) SWIG_AsInt(obj1); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3915 | { |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3917 | (arg1)->SetTop(arg2); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | Py_INCREF(Py_None); resultobj = Py_None; | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | return NULL; | |
3926 | } | |
3927 | ||
3928 | ||
3929 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject *resultobj; | |
3931 | wxRect *arg1 = (wxRect *) 0 ; | |
3932 | int arg2 ; | |
3933 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3935 | char *kwnames[] = { |
3936 | (char *) "self",(char *) "bottom", NULL | |
3937 | }; | |
3938 | ||
8edf1c75 | 3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3942 | arg2 = (int) SWIG_AsInt(obj1); | |
3943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3944 | { |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | (arg1)->SetBottom(arg2); | |
3947 | ||
3948 | wxPyEndAllowThreads(__tstate); | |
3949 | if (PyErr_Occurred()) SWIG_fail; | |
3950 | } | |
3951 | Py_INCREF(Py_None); resultobj = Py_None; | |
3952 | return resultobj; | |
3953 | fail: | |
3954 | return NULL; | |
3955 | } | |
3956 | ||
3957 | ||
3958 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3959 | PyObject *resultobj; | |
3960 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3961 | int arg2 ; |
3962 | int arg3 ; | |
d14a1e28 RD |
3963 | wxRect *result; |
3964 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3965 | PyObject * obj1 = 0 ; |
3966 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3967 | char *kwnames[] = { |
3968 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3969 | }; | |
3970 | ||
8edf1c75 | 3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3974 | arg2 = (int) SWIG_AsInt(obj1); | |
3975 | if (PyErr_Occurred()) SWIG_fail; | |
3976 | arg3 = (int) SWIG_AsInt(obj2); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3978 | { |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | { | |
3981 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
3982 | result = (wxRect *) &_result_ref; | |
3983 | } | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
2f4c0a16 | 3988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
3989 | return resultobj; |
3990 | fail: | |
3991 | return NULL; | |
3992 | } | |
3993 | ||
3994 | ||
3995 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3996 | PyObject *resultobj; | |
3997 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3998 | int arg2 ; |
3999 | int arg3 ; | |
d14a1e28 RD |
4000 | wxRect *result; |
4001 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4002 | PyObject * obj1 = 0 ; |
4003 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4004 | char *kwnames[] = { |
4005 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4006 | }; | |
4007 | ||
8edf1c75 | 4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4011 | arg2 = (int) SWIG_AsInt(obj1); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | arg3 = (int) SWIG_AsInt(obj2); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4015 | { |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | { | |
4018 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4019 | result = (wxRect *) &_result_ref; | |
4020 | } | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
2f4c0a16 | 4025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4026 | return resultobj; |
4027 | fail: | |
4028 | return NULL; | |
4029 | } | |
4030 | ||
4031 | ||
4032 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4033 | PyObject *resultobj; | |
4034 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4035 | int arg2 ; |
4036 | int arg3 ; | |
d14a1e28 | 4037 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4038 | PyObject * obj1 = 0 ; |
4039 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4040 | char *kwnames[] = { |
4041 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4042 | }; | |
4043 | ||
8edf1c75 | 4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4047 | arg2 = (int) SWIG_AsInt(obj1); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | arg3 = (int) SWIG_AsInt(obj2); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4051 | { |
4052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4053 | (arg1)->Offset(arg2,arg3); | |
4054 | ||
4055 | wxPyEndAllowThreads(__tstate); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
4057 | } | |
4058 | Py_INCREF(Py_None); resultobj = Py_None; | |
4059 | return resultobj; | |
4060 | fail: | |
4061 | return NULL; | |
4062 | } | |
4063 | ||
4064 | ||
4065 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4066 | PyObject *resultobj; | |
4067 | wxRect *arg1 = (wxRect *) 0 ; | |
4068 | wxPoint *arg2 = 0 ; | |
4069 | wxPoint temp2 ; | |
4070 | PyObject * obj0 = 0 ; | |
4071 | PyObject * obj1 = 0 ; | |
4072 | char *kwnames[] = { | |
4073 | (char *) "self",(char *) "pt", NULL | |
4074 | }; | |
4075 | ||
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4079 | { |
4080 | arg2 = &temp2; | |
4081 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4082 | } | |
4083 | { | |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | (arg1)->Offset((wxPoint const &)*arg2); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | Py_INCREF(Py_None); resultobj = Py_None; | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
4097 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4098 | PyObject *resultobj; | |
4099 | wxRect *arg1 = (wxRect *) 0 ; | |
4100 | wxRect *arg2 = 0 ; | |
4101 | wxRect *result; | |
4102 | wxRect temp2 ; | |
4103 | PyObject * obj0 = 0 ; | |
4104 | PyObject * obj1 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "self",(char *) "rect", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4112 | { |
4113 | arg2 = &temp2; | |
4114 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4115 | } | |
4116 | { | |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | { | |
4119 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4120 | result = (wxRect *) &_result_ref; | |
4121 | } | |
4122 | ||
4123 | wxPyEndAllowThreads(__tstate); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
4125 | } | |
2f4c0a16 | 4126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4127 | return resultobj; |
4128 | fail: | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
4133 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4134 | PyObject *resultobj; | |
4135 | wxRect *arg1 = (wxRect *) 0 ; | |
4136 | wxRect *arg2 = 0 ; | |
4137 | wxRect result; | |
4138 | wxRect temp2 ; | |
4139 | PyObject * obj0 = 0 ; | |
4140 | PyObject * obj1 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "self",(char *) "rect", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4148 | { |
4149 | arg2 = &temp2; | |
4150 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4151 | } | |
4152 | { | |
4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4154 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4155 | ||
4156 | wxPyEndAllowThreads(__tstate); | |
4157 | if (PyErr_Occurred()) SWIG_fail; | |
4158 | } | |
4159 | { | |
4160 | wxRect * resultptr; | |
4161 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 4162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4163 | } |
4164 | return resultobj; | |
4165 | fail: | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | wxRect *arg1 = (wxRect *) 0 ; | |
4173 | wxRect *arg2 = 0 ; | |
4174 | wxRect *result; | |
4175 | wxRect temp2 ; | |
4176 | PyObject * obj0 = 0 ; | |
4177 | PyObject * obj1 = 0 ; | |
4178 | char *kwnames[] = { | |
4179 | (char *) "self",(char *) "rect", NULL | |
4180 | }; | |
4181 | ||
4182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4185 | { |
4186 | arg2 = &temp2; | |
4187 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4188 | } | |
4189 | { | |
4190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4191 | { | |
4192 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4193 | result = (wxRect *) &_result_ref; | |
4194 | } | |
4195 | ||
4196 | wxPyEndAllowThreads(__tstate); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
2f4c0a16 | 4199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4200 | return resultobj; |
4201 | fail: | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
4206 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4207 | PyObject *resultobj; | |
4208 | wxRect *arg1 = (wxRect *) 0 ; | |
4209 | wxRect *arg2 = 0 ; | |
4210 | bool result; | |
4211 | wxRect temp2 ; | |
4212 | PyObject * obj0 = 0 ; | |
4213 | PyObject * obj1 = 0 ; | |
4214 | char *kwnames[] = { | |
4215 | (char *) "self",(char *) "rect", NULL | |
4216 | }; | |
4217 | ||
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4221 | { |
4222 | arg2 = &temp2; | |
4223 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4224 | } | |
4225 | { | |
4226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4227 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4228 | ||
4229 | wxPyEndAllowThreads(__tstate); | |
4230 | if (PyErr_Occurred()) SWIG_fail; | |
4231 | } | |
4e760a36 | 4232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4233 | return resultobj; |
4234 | fail: | |
4235 | return NULL; | |
4236 | } | |
4237 | ||
4238 | ||
4239 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4240 | PyObject *resultobj; | |
4241 | wxRect *arg1 = (wxRect *) 0 ; | |
4242 | wxRect *arg2 = 0 ; | |
4243 | bool result; | |
4244 | wxRect temp2 ; | |
4245 | PyObject * obj0 = 0 ; | |
4246 | PyObject * obj1 = 0 ; | |
4247 | char *kwnames[] = { | |
4248 | (char *) "self",(char *) "rect", NULL | |
4249 | }; | |
4250 | ||
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4254 | { |
4255 | arg2 = &temp2; | |
4256 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4257 | } | |
4258 | { | |
4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4260 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4261 | ||
4262 | wxPyEndAllowThreads(__tstate); | |
4263 | if (PyErr_Occurred()) SWIG_fail; | |
4264 | } | |
4e760a36 | 4265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4266 | return resultobj; |
4267 | fail: | |
4268 | return NULL; | |
4269 | } | |
4270 | ||
4271 | ||
4272 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4273 | PyObject *resultobj; | |
4274 | wxRect *arg1 = (wxRect *) 0 ; | |
4275 | int arg2 ; | |
4276 | int arg3 ; | |
4277 | bool result; | |
4278 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4279 | PyObject * obj1 = 0 ; |
4280 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4281 | char *kwnames[] = { |
4282 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4283 | }; | |
4284 | ||
8edf1c75 | 4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4288 | arg2 = (int) SWIG_AsInt(obj1); | |
4289 | if (PyErr_Occurred()) SWIG_fail; | |
4290 | arg3 = (int) SWIG_AsInt(obj2); | |
4291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4292 | { |
4293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4294 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4295 | ||
4296 | wxPyEndAllowThreads(__tstate); | |
4297 | if (PyErr_Occurred()) SWIG_fail; | |
4298 | } | |
4e760a36 | 4299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4300 | return resultobj; |
4301 | fail: | |
4302 | return NULL; | |
4303 | } | |
4304 | ||
4305 | ||
4306 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4307 | PyObject *resultobj; | |
4308 | wxRect *arg1 = (wxRect *) 0 ; | |
4309 | wxPoint *arg2 = 0 ; | |
4310 | bool result; | |
4311 | wxPoint temp2 ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | char *kwnames[] = { | |
4315 | (char *) "self",(char *) "pt", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4321 | { |
4322 | arg2 = &temp2; | |
4323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4324 | } | |
4325 | { | |
4326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4327 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4328 | ||
4329 | wxPyEndAllowThreads(__tstate); | |
4330 | if (PyErr_Occurred()) SWIG_fail; | |
4331 | } | |
4e760a36 | 4332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4333 | return resultobj; |
4334 | fail: | |
4335 | return NULL; | |
4336 | } | |
4337 | ||
4338 | ||
4339 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject *resultobj; | |
4341 | wxRect *arg1 = (wxRect *) 0 ; | |
4342 | wxRect *arg2 = 0 ; | |
4343 | bool result; | |
4344 | wxRect temp2 ; | |
4345 | PyObject * obj0 = 0 ; | |
4346 | PyObject * obj1 = 0 ; | |
4347 | char *kwnames[] = { | |
4348 | (char *) "self",(char *) "rect", NULL | |
4349 | }; | |
4350 | ||
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4354 | { |
4355 | arg2 = &temp2; | |
4356 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4357 | } | |
4358 | { | |
4359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4360 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4361 | ||
4362 | wxPyEndAllowThreads(__tstate); | |
4363 | if (PyErr_Occurred()) SWIG_fail; | |
4364 | } | |
4e760a36 | 4365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4366 | return resultobj; |
4367 | fail: | |
4368 | return NULL; | |
4369 | } | |
4370 | ||
4371 | ||
4372 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject *resultobj; | |
4374 | wxRect *arg1 = (wxRect *) 0 ; | |
4375 | int arg2 ; | |
4376 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4378 | char *kwnames[] = { |
4379 | (char *) "self",(char *) "x", NULL | |
4380 | }; | |
4381 | ||
8edf1c75 | 4382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4385 | arg2 = (int) SWIG_AsInt(obj1); | |
4386 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4387 | if (arg1) (arg1)->x = arg2; |
4388 | ||
4389 | Py_INCREF(Py_None); resultobj = Py_None; | |
4390 | return resultobj; | |
4391 | fail: | |
4392 | return NULL; | |
4393 | } | |
4394 | ||
4395 | ||
4396 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject *resultobj; | |
4398 | wxRect *arg1 = (wxRect *) 0 ; | |
4399 | int result; | |
4400 | PyObject * obj0 = 0 ; | |
4401 | char *kwnames[] = { | |
4402 | (char *) "self", NULL | |
4403 | }; | |
4404 | ||
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4408 | result = (int) ((arg1)->x); |
4409 | ||
2f4c0a16 | 4410 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4411 | return resultobj; |
4412 | fail: | |
4413 | return NULL; | |
4414 | } | |
4415 | ||
4416 | ||
4417 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4418 | PyObject *resultobj; | |
4419 | wxRect *arg1 = (wxRect *) 0 ; | |
4420 | int arg2 ; | |
4421 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4423 | char *kwnames[] = { |
4424 | (char *) "self",(char *) "y", NULL | |
4425 | }; | |
4426 | ||
8edf1c75 | 4427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4430 | arg2 = (int) SWIG_AsInt(obj1); | |
4431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4432 | if (arg1) (arg1)->y = arg2; |
4433 | ||
4434 | Py_INCREF(Py_None); resultobj = Py_None; | |
4435 | return resultobj; | |
4436 | fail: | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject *resultobj; | |
4443 | wxRect *arg1 = (wxRect *) 0 ; | |
4444 | int result; | |
4445 | PyObject * obj0 = 0 ; | |
4446 | char *kwnames[] = { | |
4447 | (char *) "self", NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4453 | result = (int) ((arg1)->y); |
4454 | ||
2f4c0a16 | 4455 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4456 | return resultobj; |
4457 | fail: | |
4458 | return NULL; | |
4459 | } | |
4460 | ||
4461 | ||
4462 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4463 | PyObject *resultobj; | |
4464 | wxRect *arg1 = (wxRect *) 0 ; | |
4465 | int arg2 ; | |
4466 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4468 | char *kwnames[] = { |
4469 | (char *) "self",(char *) "width", NULL | |
4470 | }; | |
4471 | ||
8edf1c75 | 4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4475 | arg2 = (int) SWIG_AsInt(obj1); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4477 | if (arg1) (arg1)->width = arg2; |
4478 | ||
4479 | Py_INCREF(Py_None); resultobj = Py_None; | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4487 | PyObject *resultobj; | |
4488 | wxRect *arg1 = (wxRect *) 0 ; | |
4489 | int result; | |
4490 | PyObject * obj0 = 0 ; | |
4491 | char *kwnames[] = { | |
4492 | (char *) "self", NULL | |
4493 | }; | |
4494 | ||
4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4498 | result = (int) ((arg1)->width); |
4499 | ||
2f4c0a16 | 4500 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4501 | return resultobj; |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxRect *arg1 = (wxRect *) 0 ; | |
4510 | int arg2 ; | |
4511 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4513 | char *kwnames[] = { |
4514 | (char *) "self",(char *) "height", NULL | |
4515 | }; | |
4516 | ||
8edf1c75 | 4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4520 | arg2 = (int) SWIG_AsInt(obj1); | |
4521 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4522 | if (arg1) (arg1)->height = arg2; |
4523 | ||
4524 | Py_INCREF(Py_None); resultobj = Py_None; | |
4525 | return resultobj; | |
4526 | fail: | |
4527 | return NULL; | |
4528 | } | |
4529 | ||
4530 | ||
4531 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject *resultobj; | |
4533 | wxRect *arg1 = (wxRect *) 0 ; | |
4534 | int result; | |
4535 | PyObject * obj0 = 0 ; | |
4536 | char *kwnames[] = { | |
4537 | (char *) "self", NULL | |
4538 | }; | |
4539 | ||
4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4543 | result = (int) ((arg1)->height); |
4544 | ||
2f4c0a16 | 4545 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4546 | return resultobj; |
4547 | fail: | |
4548 | return NULL; | |
4549 | } | |
4550 | ||
4551 | ||
4552 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject *resultobj; | |
4554 | wxRect *arg1 = (wxRect *) 0 ; | |
4555 | int arg2 = (int) 0 ; | |
4556 | int arg3 = (int) 0 ; | |
4557 | int arg4 = (int) 0 ; | |
4558 | int arg5 = (int) 0 ; | |
4559 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4560 | PyObject * obj1 = 0 ; |
4561 | PyObject * obj2 = 0 ; | |
4562 | PyObject * obj3 = 0 ; | |
4563 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4564 | char *kwnames[] = { |
4565 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4566 | }; | |
4567 | ||
8edf1c75 | 4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4571 | if (obj1) { |
2f4c0a16 RD |
4572 | arg2 = (int) SWIG_AsInt(obj1); |
4573 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4574 | } |
4575 | if (obj2) { | |
2f4c0a16 RD |
4576 | arg3 = (int) SWIG_AsInt(obj2); |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4578 | } |
4579 | if (obj3) { | |
2f4c0a16 RD |
4580 | arg4 = (int) SWIG_AsInt(obj3); |
4581 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4582 | } |
4583 | if (obj4) { | |
2f4c0a16 RD |
4584 | arg5 = (int) SWIG_AsInt(obj4); |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4586 | } |
d14a1e28 RD |
4587 | { |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4590 | ||
4591 | wxPyEndAllowThreads(__tstate); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | Py_INCREF(Py_None); resultobj = Py_None; | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
423f194a | 4601 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4602 | PyObject *resultobj; |
4603 | wxRect *arg1 = (wxRect *) 0 ; | |
4604 | PyObject *result; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | char *kwnames[] = { | |
4607 | (char *) "self", NULL | |
4608 | }; | |
4609 | ||
423f194a | 4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4613 | { |
4614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4615 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4616 | |
4617 | wxPyEndAllowThreads(__tstate); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
4619 | } | |
4620 | resultobj = result; | |
4621 | return resultobj; | |
4622 | fail: | |
4623 | return NULL; | |
4624 | } | |
4625 | ||
4626 | ||
4627 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4628 | PyObject *obj; | |
4629 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4630 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4631 | Py_INCREF(obj); | |
4632 | return Py_BuildValue((char *)""); | |
4633 | } | |
4634 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4635 | PyObject *resultobj; | |
4636 | wxRect *arg1 = (wxRect *) 0 ; | |
4637 | wxRect *arg2 = (wxRect *) 0 ; | |
4638 | PyObject *result; | |
4639 | PyObject * obj0 = 0 ; | |
4640 | PyObject * obj1 = 0 ; | |
4641 | char *kwnames[] = { | |
4642 | (char *) "r1",(char *) "r2", NULL | |
4643 | }; | |
4644 | ||
4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4650 | { |
4651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4652 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4653 | ||
4654 | wxPyEndAllowThreads(__tstate); | |
4655 | if (PyErr_Occurred()) SWIG_fail; | |
4656 | } | |
4657 | resultobj = result; | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | double arg1 = (double) 0.0 ; | |
4667 | double arg2 = (double) 0.0 ; | |
4668 | wxPoint2D *result; | |
8edf1c75 RD |
4669 | PyObject * obj0 = 0 ; |
4670 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4671 | char *kwnames[] = { |
4672 | (char *) "x",(char *) "y", NULL | |
4673 | }; | |
4674 | ||
8edf1c75 RD |
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4676 | if (obj0) { | |
2f4c0a16 RD |
4677 | arg1 = (double) SWIG_AsDouble(obj0); |
4678 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4679 | } |
4680 | if (obj1) { | |
2f4c0a16 RD |
4681 | arg2 = (double) SWIG_AsDouble(obj1); |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4683 | } |
d14a1e28 RD |
4684 | { |
4685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4686 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4687 | ||
4688 | wxPyEndAllowThreads(__tstate); | |
4689 | if (PyErr_Occurred()) SWIG_fail; | |
4690 | } | |
2f4c0a16 | 4691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4692 | return resultobj; |
4693 | fail: | |
4694 | return NULL; | |
4695 | } | |
4696 | ||
4697 | ||
4698 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4699 | PyObject *resultobj; | |
4700 | wxPoint2D *arg1 = 0 ; | |
4701 | wxPoint2D *result; | |
4702 | wxPoint2D temp1 ; | |
4703 | PyObject * obj0 = 0 ; | |
4704 | char *kwnames[] = { | |
4705 | (char *) "pt", NULL | |
4706 | }; | |
4707 | ||
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4709 | { | |
4710 | arg1 = &temp1; | |
4711 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4712 | } | |
4713 | { | |
4714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4715 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4716 | ||
4717 | wxPyEndAllowThreads(__tstate); | |
4718 | if (PyErr_Occurred()) SWIG_fail; | |
4719 | } | |
2f4c0a16 | 4720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4721 | return resultobj; |
4722 | fail: | |
4723 | return NULL; | |
4724 | } | |
4725 | ||
4726 | ||
4727 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4728 | PyObject *resultobj; | |
4729 | wxPoint *arg1 = 0 ; | |
4730 | wxPoint2D *result; | |
4731 | wxPoint temp1 ; | |
4732 | PyObject * obj0 = 0 ; | |
4733 | char *kwnames[] = { | |
4734 | (char *) "pt", NULL | |
4735 | }; | |
4736 | ||
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4738 | { | |
4739 | arg1 = &temp1; | |
4740 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4741 | } | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) SWIG_fail; | |
4748 | } | |
2f4c0a16 | 4749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4750 | return resultobj; |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4759 | int *arg2 = (int *) 0 ; | |
4760 | int *arg3 = (int *) 0 ; | |
4761 | int temp2 ; | |
4762 | int temp3 ; | |
4763 | PyObject * obj0 = 0 ; | |
4764 | char *kwnames[] = { | |
4765 | (char *) "self", NULL | |
4766 | }; | |
4767 | ||
4768 | arg2 = &temp2; | |
4769 | arg3 = &temp3; | |
4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4773 | { |
4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4775 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4776 | ||
4777 | wxPyEndAllowThreads(__tstate); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4780 | Py_INCREF(Py_None); resultobj = Py_None; | |
4781 | { | |
4782 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4783 | resultobj = t_output_helper(resultobj,o); | |
4784 | } | |
4785 | { | |
4786 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4787 | resultobj = t_output_helper(resultobj,o); | |
4788 | } | |
4789 | return resultobj; | |
4790 | fail: | |
4791 | return NULL; | |
4792 | } | |
4793 | ||
4794 | ||
4795 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4796 | PyObject *resultobj; | |
4797 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4798 | int *arg2 = (int *) 0 ; | |
4799 | int *arg3 = (int *) 0 ; | |
4800 | int temp2 ; | |
4801 | int temp3 ; | |
4802 | PyObject * obj0 = 0 ; | |
4803 | char *kwnames[] = { | |
4804 | (char *) "self", NULL | |
4805 | }; | |
4806 | ||
4807 | arg2 = &temp2; | |
4808 | arg3 = &temp3; | |
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4812 | { |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4814 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4819 | Py_INCREF(Py_None); resultobj = Py_None; | |
4820 | { | |
4821 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4822 | resultobj = t_output_helper(resultobj,o); | |
4823 | } | |
4824 | { | |
4825 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4826 | resultobj = t_output_helper(resultobj,o); | |
4827 | } | |
4828 | return resultobj; | |
4829 | fail: | |
4830 | return NULL; | |
4831 | } | |
4832 | ||
4833 | ||
4834 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4835 | PyObject *resultobj; | |
4836 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4837 | double result; | |
4838 | PyObject * obj0 = 0 ; | |
4839 | char *kwnames[] = { | |
4840 | (char *) "self", NULL | |
4841 | }; | |
4842 | ||
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4846 | { |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
2f4c0a16 | 4853 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4854 | return resultobj; |
4855 | fail: | |
4856 | return NULL; | |
4857 | } | |
4858 | ||
4859 | ||
4860 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4861 | PyObject *resultobj; | |
4862 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4863 | double result; | |
4864 | PyObject * obj0 = 0 ; | |
4865 | char *kwnames[] = { | |
4866 | (char *) "self", NULL | |
4867 | }; | |
4868 | ||
4869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4872 | { |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4874 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4875 | ||
4876 | wxPyEndAllowThreads(__tstate); | |
4877 | if (PyErr_Occurred()) SWIG_fail; | |
4878 | } | |
2f4c0a16 | 4879 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4880 | return resultobj; |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
4886 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject *resultobj; | |
4888 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4889 | double arg2 ; | |
4890 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4891 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4892 | char *kwnames[] = { |
4893 | (char *) "self",(char *) "length", NULL | |
4894 | }; | |
4895 | ||
8edf1c75 | 4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4899 | arg2 = (double) SWIG_AsDouble(obj1); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4901 | { |
4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4903 | (arg1)->SetVectorLength(arg2); | |
4904 | ||
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
4908 | Py_INCREF(Py_None); resultobj = Py_None; | |
4909 | return resultobj; | |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4916 | PyObject *resultobj; | |
4917 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4918 | double arg2 ; | |
4919 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4920 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4921 | char *kwnames[] = { |
4922 | (char *) "self",(char *) "degrees", NULL | |
4923 | }; | |
4924 | ||
8edf1c75 | 4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4928 | arg2 = (double) SWIG_AsDouble(obj1); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4930 | { |
4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4932 | (arg1)->SetVectorAngle(arg2); | |
4933 | ||
4934 | wxPyEndAllowThreads(__tstate); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
4937 | Py_INCREF(Py_None); resultobj = Py_None; | |
4938 | return resultobj; | |
4939 | fail: | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
4944 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4945 | PyObject *resultobj; | |
4946 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4947 | wxPoint2D *arg2 = 0 ; | |
4948 | double result; | |
4949 | wxPoint2D temp2 ; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | PyObject * obj1 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self",(char *) "pt", NULL | |
4954 | }; | |
4955 | ||
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4959 | { |
4960 | arg2 = &temp2; | |
4961 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4962 | } | |
4963 | { | |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
2f4c0a16 | 4970 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4971 | return resultobj; |
4972 | fail: | |
4973 | return NULL; | |
4974 | } | |
4975 | ||
4976 | ||
4977 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4978 | PyObject *resultobj; | |
4979 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4980 | wxPoint2D *arg2 = 0 ; | |
4981 | double result; | |
4982 | wxPoint2D temp2 ; | |
4983 | PyObject * obj0 = 0 ; | |
4984 | PyObject * obj1 = 0 ; | |
4985 | char *kwnames[] = { | |
4986 | (char *) "self",(char *) "pt", NULL | |
4987 | }; | |
4988 | ||
4989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4992 | { |
4993 | arg2 = &temp2; | |
4994 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
4995 | } | |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
2f4c0a16 | 5003 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5004 | return resultobj; |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5010 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject *resultobj; | |
5012 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5013 | wxPoint2D *arg2 = 0 ; | |
5014 | double result; | |
5015 | wxPoint2D temp2 ; | |
5016 | PyObject * obj0 = 0 ; | |
5017 | PyObject * obj1 = 0 ; | |
5018 | char *kwnames[] = { | |
5019 | (char *) "self",(char *) "vec", NULL | |
5020 | }; | |
5021 | ||
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5025 | { |
5026 | arg2 = &temp2; | |
5027 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5028 | } | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
2f4c0a16 | 5036 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5037 | return resultobj; |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5046 | wxPoint2D *arg2 = 0 ; | |
5047 | double result; | |
5048 | wxPoint2D temp2 ; | |
5049 | PyObject * obj0 = 0 ; | |
5050 | PyObject * obj1 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "self",(char *) "vec", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5058 | { |
5059 | arg2 = &temp2; | |
5060 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5061 | } | |
5062 | { | |
5063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5064 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5065 | ||
5066 | wxPyEndAllowThreads(__tstate); | |
5067 | if (PyErr_Occurred()) SWIG_fail; | |
5068 | } | |
2f4c0a16 | 5069 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5070 | return resultobj; |
5071 | fail: | |
5072 | return NULL; | |
5073 | } | |
5074 | ||
5075 | ||
5076 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject *resultobj; | |
5078 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5079 | wxPoint2D result; | |
5080 | PyObject * obj0 = 0 ; | |
5081 | char *kwnames[] = { | |
5082 | (char *) "self", NULL | |
5083 | }; | |
5084 | ||
5085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5088 | { |
5089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5090 | result = (arg1)->operator -(); | |
5091 | ||
5092 | wxPyEndAllowThreads(__tstate); | |
5093 | if (PyErr_Occurred()) SWIG_fail; | |
5094 | } | |
5095 | { | |
5096 | wxPoint2D * resultptr; | |
5097 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
2f4c0a16 | 5098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5099 | } |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
5106 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj; | |
5108 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5109 | wxPoint2D *arg2 = 0 ; | |
5110 | wxPoint2D *result; | |
5111 | wxPoint2D temp2 ; | |
5112 | PyObject * obj0 = 0 ; | |
5113 | PyObject * obj1 = 0 ; | |
5114 | char *kwnames[] = { | |
5115 | (char *) "self",(char *) "pt", NULL | |
5116 | }; | |
5117 | ||
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5121 | { |
5122 | arg2 = &temp2; | |
5123 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5124 | } | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | { | |
5128 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5129 | result = (wxPoint2D *) &_result_ref; | |
5130 | } | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
2f4c0a16 | 5135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5136 | return resultobj; |
5137 | fail: | |
5138 | return NULL; | |
5139 | } | |
5140 | ||
5141 | ||
5142 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5143 | PyObject *resultobj; | |
5144 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5145 | wxPoint2D *arg2 = 0 ; | |
5146 | wxPoint2D *result; | |
5147 | wxPoint2D temp2 ; | |
5148 | PyObject * obj0 = 0 ; | |
5149 | PyObject * obj1 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "self",(char *) "pt", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5157 | { |
5158 | arg2 = &temp2; | |
5159 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5160 | } | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | { | |
5164 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5165 | result = (wxPoint2D *) &_result_ref; | |
5166 | } | |
5167 | ||
5168 | wxPyEndAllowThreads(__tstate); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | } | |
2f4c0a16 | 5171 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5172 | return resultobj; |
5173 | fail: | |
5174 | return NULL; | |
5175 | } | |
5176 | ||
5177 | ||
5178 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5179 | PyObject *resultobj; | |
5180 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5181 | wxPoint2D *arg2 = 0 ; | |
5182 | wxPoint2D *result; | |
5183 | wxPoint2D temp2 ; | |
5184 | PyObject * obj0 = 0 ; | |
5185 | PyObject * obj1 = 0 ; | |
5186 | char *kwnames[] = { | |
5187 | (char *) "self",(char *) "pt", NULL | |
5188 | }; | |
5189 | ||
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5193 | { |
5194 | arg2 = &temp2; | |
5195 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5196 | } | |
5197 | { | |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | { | |
5200 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5201 | result = (wxPoint2D *) &_result_ref; | |
5202 | } | |
5203 | ||
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
2f4c0a16 | 5207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5208 | return resultobj; |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
5214 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject *resultobj; | |
5216 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5217 | wxPoint2D *arg2 = 0 ; | |
5218 | wxPoint2D *result; | |
5219 | wxPoint2D temp2 ; | |
5220 | PyObject * obj0 = 0 ; | |
5221 | PyObject * obj1 = 0 ; | |
5222 | char *kwnames[] = { | |
5223 | (char *) "self",(char *) "pt", NULL | |
5224 | }; | |
5225 | ||
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5229 | { |
5230 | arg2 = &temp2; | |
5231 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5232 | } | |
5233 | { | |
5234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5235 | { | |
5236 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5237 | result = (wxPoint2D *) &_result_ref; | |
5238 | } | |
5239 | ||
5240 | wxPyEndAllowThreads(__tstate); | |
5241 | if (PyErr_Occurred()) SWIG_fail; | |
5242 | } | |
2f4c0a16 | 5243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5244 | return resultobj; |
5245 | fail: | |
5246 | return NULL; | |
5247 | } | |
5248 | ||
5249 | ||
5250 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5251 | PyObject *resultobj; | |
5252 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5253 | wxPoint2D *arg2 = 0 ; | |
5254 | bool result; | |
5255 | wxPoint2D temp2 ; | |
5256 | PyObject * obj0 = 0 ; | |
5257 | PyObject * obj1 = 0 ; | |
5258 | char *kwnames[] = { | |
5259 | (char *) "self",(char *) "pt", NULL | |
5260 | }; | |
5261 | ||
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5265 | { |
5266 | arg2 = &temp2; | |
5267 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5268 | } | |
5269 | { | |
5270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5271 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5272 | ||
5273 | wxPyEndAllowThreads(__tstate); | |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
5275 | } | |
4e760a36 | 5276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5277 | return resultobj; |
5278 | fail: | |
5279 | return NULL; | |
5280 | } | |
5281 | ||
5282 | ||
5283 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject *resultobj; | |
5285 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5286 | wxPoint2D *arg2 = 0 ; | |
5287 | bool result; | |
5288 | wxPoint2D temp2 ; | |
5289 | PyObject * obj0 = 0 ; | |
5290 | PyObject * obj1 = 0 ; | |
5291 | char *kwnames[] = { | |
5292 | (char *) "self",(char *) "pt", NULL | |
5293 | }; | |
5294 | ||
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5298 | { |
5299 | arg2 = &temp2; | |
5300 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5301 | } | |
5302 | { | |
5303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5304 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5305 | ||
5306 | wxPyEndAllowThreads(__tstate); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | } | |
4e760a36 | 5309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5310 | return resultobj; |
5311 | fail: | |
5312 | return NULL; | |
5313 | } | |
5314 | ||
5315 | ||
d14a1e28 RD |
5316 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5317 | PyObject *resultobj; | |
5318 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5319 | double arg2 ; | |
5320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5322 | char *kwnames[] = { |
5323 | (char *) "self",(char *) "m_x", NULL | |
5324 | }; | |
5325 | ||
8edf1c75 | 5326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5329 | arg2 = (double) SWIG_AsDouble(obj1); | |
5330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5331 | if (arg1) (arg1)->m_x = arg2; |
5332 | ||
5333 | Py_INCREF(Py_None); resultobj = Py_None; | |
5334 | return resultobj; | |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
5340 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5341 | PyObject *resultobj; | |
5342 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5343 | double result; | |
5344 | PyObject * obj0 = 0 ; | |
5345 | char *kwnames[] = { | |
5346 | (char *) "self", NULL | |
5347 | }; | |
5348 | ||
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5352 | result = (double) ((arg1)->m_x); |
5353 | ||
2f4c0a16 | 5354 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5355 | return resultobj; |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
5361 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5362 | PyObject *resultobj; | |
5363 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5364 | double arg2 ; | |
5365 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5366 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5367 | char *kwnames[] = { |
5368 | (char *) "self",(char *) "m_y", NULL | |
5369 | }; | |
5370 | ||
8edf1c75 | 5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5374 | arg2 = (double) SWIG_AsDouble(obj1); | |
5375 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5376 | if (arg1) (arg1)->m_y = arg2; |
5377 | ||
5378 | Py_INCREF(Py_None); resultobj = Py_None; | |
5379 | return resultobj; | |
5380 | fail: | |
5381 | return NULL; | |
5382 | } | |
5383 | ||
5384 | ||
5385 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5386 | PyObject *resultobj; | |
5387 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5388 | double result; | |
5389 | PyObject * obj0 = 0 ; | |
5390 | char *kwnames[] = { | |
5391 | (char *) "self", NULL | |
5392 | }; | |
5393 | ||
5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5397 | result = (double) ((arg1)->m_y); |
5398 | ||
2f4c0a16 | 5399 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5400 | return resultobj; |
5401 | fail: | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5409 | double arg2 = (double) 0 ; | |
5410 | double arg3 = (double) 0 ; | |
5411 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5412 | PyObject * obj1 = 0 ; |
5413 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5414 | char *kwnames[] = { |
5415 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5416 | }; | |
5417 | ||
8edf1c75 | 5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5421 | if (obj1) { |
2f4c0a16 RD |
5422 | arg2 = (double) SWIG_AsDouble(obj1); |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5424 | } |
5425 | if (obj2) { | |
2f4c0a16 RD |
5426 | arg3 = (double) SWIG_AsDouble(obj2); |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5428 | } |
d14a1e28 RD |
5429 | { |
5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5431 | wxPoint2D_Set(arg1,arg2,arg3); | |
5432 | ||
5433 | wxPyEndAllowThreads(__tstate); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
5436 | Py_INCREF(Py_None); resultobj = Py_None; | |
5437 | return resultobj; | |
5438 | fail: | |
5439 | return NULL; | |
5440 | } | |
5441 | ||
5442 | ||
423f194a | 5443 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5444 | PyObject *resultobj; |
5445 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5446 | PyObject *result; | |
5447 | PyObject * obj0 = 0 ; | |
5448 | char *kwnames[] = { | |
5449 | (char *) "self", NULL | |
5450 | }; | |
5451 | ||
423f194a | 5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
5453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5455 | { |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5457 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5458 | |
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
5461 | } | |
5462 | resultobj = result; | |
5463 | return resultobj; | |
5464 | fail: | |
5465 | return NULL; | |
5466 | } | |
5467 | ||
5468 | ||
5469 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5470 | PyObject *obj; | |
5471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5472 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5473 | Py_INCREF(obj); | |
5474 | return Py_BuildValue((char *)""); | |
5475 | } | |
2f4c0a16 | 5476 | static int _wrap_DefaultPosition_set(PyObject *_val) { |
d14a1e28 RD |
5477 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5478 | return 1; | |
5479 | } | |
5480 | ||
5481 | ||
5482 | static PyObject *_wrap_DefaultPosition_get() { | |
5483 | PyObject *pyobj; | |
5484 | ||
2f4c0a16 | 5485 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5486 | return pyobj; |
5487 | } | |
5488 | ||
5489 | ||
2f4c0a16 | 5490 | static int _wrap_DefaultSize_set(PyObject *_val) { |
d14a1e28 RD |
5491 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5492 | return 1; | |
5493 | } | |
5494 | ||
5495 | ||
5496 | static PyObject *_wrap_DefaultSize_get() { | |
5497 | PyObject *pyobj; | |
5498 | ||
2f4c0a16 | 5499 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5500 | return pyobj; |
5501 | } | |
5502 | ||
5503 | ||
5504 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5505 | PyObject *resultobj; | |
5506 | PyObject *arg1 = (PyObject *) 0 ; | |
5507 | wxPyInputStream *result; | |
5508 | PyObject * obj0 = 0 ; | |
5509 | char *kwnames[] = { | |
5510 | (char *) "p", NULL | |
5511 | }; | |
5512 | ||
5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5514 | arg1 = obj0; | |
5515 | { | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5518 | ||
5519 | wxPyEndAllowThreads(__tstate); | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | } | |
2f4c0a16 | 5522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5523 | return resultobj; |
5524 | fail: | |
5525 | return NULL; | |
5526 | } | |
5527 | ||
5528 | ||
5529 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5530 | PyObject *resultobj; | |
5531 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5532 | PyObject * obj0 = 0 ; | |
5533 | char *kwnames[] = { | |
5534 | (char *) "self", NULL | |
5535 | }; | |
5536 | ||
5537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5540 | { |
5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5542 | (arg1)->close(); | |
5543 | ||
5544 | wxPyEndAllowThreads(__tstate); | |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
5546 | } | |
5547 | Py_INCREF(Py_None); resultobj = Py_None; | |
5548 | return resultobj; | |
5549 | fail: | |
5550 | return NULL; | |
5551 | } | |
5552 | ||
5553 | ||
5554 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject *resultobj; | |
5556 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5557 | PyObject * obj0 = 0 ; | |
5558 | char *kwnames[] = { | |
5559 | (char *) "self", NULL | |
5560 | }; | |
5561 | ||
5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5565 | { |
5566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5567 | (arg1)->flush(); | |
5568 | ||
5569 | wxPyEndAllowThreads(__tstate); | |
5570 | if (PyErr_Occurred()) SWIG_fail; | |
5571 | } | |
5572 | Py_INCREF(Py_None); resultobj = Py_None; | |
5573 | return resultobj; | |
5574 | fail: | |
5575 | return NULL; | |
5576 | } | |
5577 | ||
5578 | ||
5579 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5580 | PyObject *resultobj; | |
5581 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5582 | bool result; | |
5583 | PyObject * obj0 = 0 ; | |
5584 | char *kwnames[] = { | |
5585 | (char *) "self", NULL | |
5586 | }; | |
5587 | ||
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5591 | { |
5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5593 | result = (bool)(arg1)->eof(); | |
5594 | ||
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
4e760a36 | 5598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5599 | return resultobj; |
5600 | fail: | |
5601 | return NULL; | |
5602 | } | |
5603 | ||
5604 | ||
5605 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject *resultobj; | |
5607 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5608 | int arg2 = (int) -1 ; | |
5609 | PyObject *result; | |
5610 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5611 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5612 | char *kwnames[] = { |
5613 | (char *) "self",(char *) "size", NULL | |
5614 | }; | |
5615 | ||
8edf1c75 | 5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5619 | if (obj1) { |
2f4c0a16 RD |
5620 | arg2 = (int) SWIG_AsInt(obj1); |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5622 | } |
d14a1e28 RD |
5623 | { |
5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5625 | result = (PyObject *)(arg1)->read(arg2); | |
5626 | ||
5627 | wxPyEndAllowThreads(__tstate); | |
5628 | if (PyErr_Occurred()) SWIG_fail; | |
5629 | } | |
5630 | resultobj = result; | |
5631 | return resultobj; | |
5632 | fail: | |
5633 | return NULL; | |
5634 | } | |
5635 | ||
5636 | ||
5637 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject *resultobj; | |
5639 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5640 | int arg2 = (int) -1 ; | |
5641 | PyObject *result; | |
5642 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5644 | char *kwnames[] = { |
5645 | (char *) "self",(char *) "size", NULL | |
5646 | }; | |
5647 | ||
8edf1c75 | 5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5651 | if (obj1) { |
2f4c0a16 RD |
5652 | arg2 = (int) SWIG_AsInt(obj1); |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5654 | } |
d14a1e28 RD |
5655 | { |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | result = (PyObject *)(arg1)->readline(arg2); | |
5658 | ||
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | resultobj = result; | |
5663 | return resultobj; | |
5664 | fail: | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5672 | int arg2 = (int) -1 ; | |
5673 | PyObject *result; | |
5674 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5676 | char *kwnames[] = { |
5677 | (char *) "self",(char *) "sizehint", NULL | |
5678 | }; | |
5679 | ||
8edf1c75 | 5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5683 | if (obj1) { |
2f4c0a16 RD |
5684 | arg2 = (int) SWIG_AsInt(obj1); |
5685 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5686 | } |
d14a1e28 RD |
5687 | { |
5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5689 | result = (PyObject *)(arg1)->readlines(arg2); | |
5690 | ||
5691 | wxPyEndAllowThreads(__tstate); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | resultobj = result; | |
5695 | return resultobj; | |
5696 | fail: | |
5697 | return NULL; | |
5698 | } | |
5699 | ||
5700 | ||
5701 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5702 | PyObject *resultobj; | |
5703 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5704 | int arg2 ; | |
5705 | int arg3 = (int) 0 ; | |
5706 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5707 | PyObject * obj1 = 0 ; |
5708 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5709 | char *kwnames[] = { |
5710 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5711 | }; | |
5712 | ||
8edf1c75 | 5713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5716 | arg2 = (int) SWIG_AsInt(obj1); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5718 | if (obj2) { |
2f4c0a16 RD |
5719 | arg3 = (int) SWIG_AsInt(obj2); |
5720 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5721 | } |
d14a1e28 RD |
5722 | { |
5723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5724 | (arg1)->seek(arg2,arg3); | |
5725 | ||
5726 | wxPyEndAllowThreads(__tstate); | |
5727 | if (PyErr_Occurred()) SWIG_fail; | |
5728 | } | |
5729 | Py_INCREF(Py_None); resultobj = Py_None; | |
5730 | return resultobj; | |
5731 | fail: | |
5732 | return NULL; | |
5733 | } | |
5734 | ||
5735 | ||
5736 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject *resultobj; | |
5738 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5739 | int result; | |
5740 | PyObject * obj0 = 0 ; | |
5741 | char *kwnames[] = { | |
5742 | (char *) "self", NULL | |
5743 | }; | |
5744 | ||
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5748 | { |
5749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5750 | result = (int)(arg1)->tell(); | |
5751 | ||
5752 | wxPyEndAllowThreads(__tstate); | |
5753 | if (PyErr_Occurred()) SWIG_fail; | |
5754 | } | |
2f4c0a16 | 5755 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5756 | return resultobj; |
5757 | fail: | |
5758 | return NULL; | |
5759 | } | |
5760 | ||
5761 | ||
5762 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5763 | PyObject *resultobj; | |
5764 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5765 | char result; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | char *kwnames[] = { | |
5768 | (char *) "self", NULL | |
5769 | }; | |
5770 | ||
5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5774 | { |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5776 | result = (char)(arg1)->Peek(); | |
5777 | ||
5778 | wxPyEndAllowThreads(__tstate); | |
5779 | if (PyErr_Occurred()) SWIG_fail; | |
5780 | } | |
2f4c0a16 | 5781 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5782 | return resultobj; |
5783 | fail: | |
5784 | return NULL; | |
5785 | } | |
5786 | ||
5787 | ||
5788 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5789 | PyObject *resultobj; | |
5790 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5791 | char result; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | char *kwnames[] = { | |
5794 | (char *) "self", NULL | |
5795 | }; | |
5796 | ||
5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5800 | { |
5801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5802 | result = (char)(arg1)->GetC(); | |
5803 | ||
5804 | wxPyEndAllowThreads(__tstate); | |
5805 | if (PyErr_Occurred()) SWIG_fail; | |
5806 | } | |
2f4c0a16 | 5807 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5808 | return resultobj; |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
5814 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5815 | PyObject *resultobj; | |
5816 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5817 | size_t result; | |
5818 | PyObject * obj0 = 0 ; | |
5819 | char *kwnames[] = { | |
5820 | (char *) "self", NULL | |
5821 | }; | |
5822 | ||
5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5826 | { |
5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5828 | result = (size_t)(arg1)->LastRead(); | |
5829 | ||
5830 | wxPyEndAllowThreads(__tstate); | |
5831 | if (PyErr_Occurred()) SWIG_fail; | |
5832 | } | |
2f4c0a16 | 5833 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5834 | return resultobj; |
5835 | fail: | |
5836 | return NULL; | |
5837 | } | |
5838 | ||
5839 | ||
5840 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5841 | PyObject *resultobj; | |
5842 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5843 | bool result; | |
5844 | PyObject * obj0 = 0 ; | |
5845 | char *kwnames[] = { | |
5846 | (char *) "self", NULL | |
5847 | }; | |
5848 | ||
5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5852 | { |
5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5854 | result = (bool)(arg1)->CanRead(); | |
5855 | ||
5856 | wxPyEndAllowThreads(__tstate); | |
5857 | if (PyErr_Occurred()) SWIG_fail; | |
5858 | } | |
4e760a36 | 5859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5860 | return resultobj; |
5861 | fail: | |
5862 | return NULL; | |
5863 | } | |
5864 | ||
5865 | ||
5866 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5867 | PyObject *resultobj; | |
5868 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5869 | bool result; | |
5870 | PyObject * obj0 = 0 ; | |
5871 | char *kwnames[] = { | |
5872 | (char *) "self", NULL | |
5873 | }; | |
5874 | ||
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5878 | { |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | result = (bool)(arg1)->Eof(); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
4e760a36 | 5885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5886 | return resultobj; |
5887 | fail: | |
5888 | return NULL; | |
5889 | } | |
5890 | ||
5891 | ||
5892 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5893 | PyObject *resultobj; | |
5894 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5895 | char arg2 ; | |
5896 | bool result; | |
5897 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5899 | char *kwnames[] = { |
5900 | (char *) "self",(char *) "c", NULL | |
5901 | }; | |
5902 | ||
8edf1c75 | 5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5906 | arg2 = (char) SWIG_AsChar(obj1); | |
5907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5908 | { |
5909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5910 | result = (bool)(arg1)->Ungetch(arg2); | |
5911 | ||
5912 | wxPyEndAllowThreads(__tstate); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | } | |
4e760a36 | 5915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5916 | return resultobj; |
5917 | fail: | |
5918 | return NULL; | |
5919 | } | |
5920 | ||
5921 | ||
5922 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5923 | PyObject *resultobj; | |
5924 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5925 | long arg2 ; | |
5926 | int arg3 = (int) wxFromStart ; | |
5927 | long result; | |
5928 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5929 | PyObject * obj1 = 0 ; |
5930 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5931 | char *kwnames[] = { |
5932 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5933 | }; | |
5934 | ||
8edf1c75 | 5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5938 | arg2 = (long) SWIG_AsLong(obj1); | |
5939 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5940 | if (obj2) { |
2f4c0a16 RD |
5941 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
5942 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5943 | } |
d14a1e28 RD |
5944 | { |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5947 | ||
5948 | wxPyEndAllowThreads(__tstate); | |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
5950 | } | |
2f4c0a16 | 5951 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5952 | return resultobj; |
5953 | fail: | |
5954 | return NULL; | |
5955 | } | |
5956 | ||
5957 | ||
5958 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5959 | PyObject *resultobj; | |
5960 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5961 | long result; | |
5962 | PyObject * obj0 = 0 ; | |
5963 | char *kwnames[] = { | |
5964 | (char *) "self", NULL | |
5965 | }; | |
5966 | ||
5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5970 | { |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | result = (long)(arg1)->TellI(); | |
5973 | ||
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
2f4c0a16 | 5977 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
5978 | return resultobj; |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
5984 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
5985 | PyObject *obj; | |
5986 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5987 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
5988 | Py_INCREF(obj); | |
5989 | return Py_BuildValue((char *)""); | |
5990 | } | |
5991 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5992 | PyObject *resultobj; | |
5993 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
5994 | PyObject *arg2 = (PyObject *) 0 ; | |
5995 | PyObject * obj0 = 0 ; | |
5996 | PyObject * obj1 = 0 ; | |
5997 | char *kwnames[] = { | |
5998 | (char *) "self",(char *) "obj", NULL | |
5999 | }; | |
6000 | ||
6001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6004 | arg2 = obj1; |
6005 | { | |
6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6007 | wxOutputStream_write(arg1,arg2); | |
6008 | ||
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
6012 | Py_INCREF(Py_None); resultobj = Py_None; | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
6019 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6020 | PyObject *obj; | |
6021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6022 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6023 | Py_INCREF(obj); | |
6024 | return Py_BuildValue((char *)""); | |
6025 | } | |
6026 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6027 | PyObject *resultobj; | |
6028 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6029 | wxString *arg2 = 0 ; | |
6030 | wxString *arg3 = 0 ; | |
6031 | wxString *arg4 = 0 ; | |
6032 | wxDateTime arg5 ; | |
6033 | wxFSFile *result; | |
6034 | wxPyInputStream *temp1 ; | |
6035 | bool created1 ; | |
423f194a RD |
6036 | bool temp2 = False ; |
6037 | bool temp3 = False ; | |
6038 | bool temp4 = False ; | |
d14a1e28 RD |
6039 | wxDateTime *argp5 ; |
6040 | PyObject * obj0 = 0 ; | |
6041 | PyObject * obj1 = 0 ; | |
6042 | PyObject * obj2 = 0 ; | |
6043 | PyObject * obj3 = 0 ; | |
6044 | PyObject * obj4 = 0 ; | |
6045 | char *kwnames[] = { | |
6046 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6047 | }; | |
6048 | ||
6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6050 | { | |
6051 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6052 | arg1 = temp1->m_wxis; | |
423f194a | 6053 | created1 = False; |
d14a1e28 RD |
6054 | } else { |
6055 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 6056 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6057 | if (arg1 == NULL) { |
6058 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6059 | SWIG_fail; | |
6060 | } | |
423f194a | 6061 | created1 = True; |
d14a1e28 RD |
6062 | } |
6063 | } | |
6064 | { | |
6065 | arg2 = wxString_in_helper(obj1); | |
6066 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6067 | temp2 = True; |
d14a1e28 RD |
6068 | } |
6069 | { | |
6070 | arg3 = wxString_in_helper(obj2); | |
6071 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6072 | temp3 = True; |
d14a1e28 RD |
6073 | } |
6074 | { | |
6075 | arg4 = wxString_in_helper(obj3); | |
6076 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6077 | temp4 = True; |
d14a1e28 | 6078 | } |
2f4c0a16 RD |
6079 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6080 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6081 | arg5 = *argp5; | |
d14a1e28 RD |
6082 | { |
6083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6084 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6085 | ||
6086 | wxPyEndAllowThreads(__tstate); | |
6087 | if (PyErr_Occurred()) SWIG_fail; | |
6088 | } | |
6089 | { | |
6090 | resultobj = wxPyMake_wxObject(result); | |
6091 | } | |
6092 | { | |
6093 | if (created1) | |
6094 | delete arg1; | |
6095 | } | |
6096 | { | |
6097 | if (temp2) | |
6098 | delete arg2; | |
6099 | } | |
6100 | { | |
6101 | if (temp3) | |
6102 | delete arg3; | |
6103 | } | |
6104 | { | |
6105 | if (temp4) | |
6106 | delete arg4; | |
6107 | } | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | { | |
6111 | if (created1) | |
6112 | delete arg1; | |
6113 | } | |
6114 | { | |
6115 | if (temp2) | |
6116 | delete arg2; | |
6117 | } | |
6118 | { | |
6119 | if (temp3) | |
6120 | delete arg3; | |
6121 | } | |
6122 | { | |
6123 | if (temp4) | |
6124 | delete arg4; | |
6125 | } | |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6131 | PyObject *resultobj; | |
6132 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6141 | { |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | delete arg1; | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | Py_INCREF(Py_None); resultobj = Py_None; | |
6149 | return resultobj; | |
6150 | fail: | |
6151 | return NULL; | |
6152 | } | |
6153 | ||
6154 | ||
6155 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject *resultobj; | |
6157 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6158 | wxInputStream *result; | |
6159 | PyObject * obj0 = 0 ; | |
6160 | char *kwnames[] = { | |
6161 | (char *) "self", NULL | |
6162 | }; | |
6163 | ||
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6167 | { |
6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6169 | result = (wxInputStream *)(arg1)->GetStream(); | |
6170 | ||
6171 | wxPyEndAllowThreads(__tstate); | |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
6173 | } | |
6174 | { | |
6175 | wxPyInputStream * _ptr = NULL; | |
6176 | ||
6177 | if (result) { | |
6178 | _ptr = new wxPyInputStream(result); | |
6179 | } | |
423f194a | 6180 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6181 | } |
6182 | return resultobj; | |
6183 | fail: | |
6184 | return NULL; | |
6185 | } | |
6186 | ||
6187 | ||
6188 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6189 | PyObject *resultobj; | |
6190 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6191 | wxString *result; | |
6192 | PyObject * obj0 = 0 ; | |
6193 | char *kwnames[] = { | |
6194 | (char *) "self", NULL | |
6195 | }; | |
6196 | ||
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6200 | { |
6201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6202 | { | |
6203 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6204 | result = (wxString *) &_result_ref; | |
6205 | } | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
f0983263 RD |
6210 | { |
6211 | #if wxUSE_UNICODE | |
6212 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6213 | #else | |
6214 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6215 | #endif | |
6216 | } | |
d14a1e28 RD |
6217 | return resultobj; |
6218 | fail: | |
6219 | return NULL; | |
6220 | } | |
6221 | ||
6222 | ||
6223 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6224 | PyObject *resultobj; | |
6225 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6226 | wxString *result; | |
6227 | PyObject * obj0 = 0 ; | |
6228 | char *kwnames[] = { | |
6229 | (char *) "self", NULL | |
6230 | }; | |
6231 | ||
6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6235 | { |
6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6237 | { | |
6238 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6239 | result = (wxString *) &_result_ref; | |
6240 | } | |
6241 | ||
6242 | wxPyEndAllowThreads(__tstate); | |
6243 | if (PyErr_Occurred()) SWIG_fail; | |
6244 | } | |
f0983263 RD |
6245 | { |
6246 | #if wxUSE_UNICODE | |
6247 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6248 | #else | |
6249 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6250 | #endif | |
6251 | } | |
d14a1e28 RD |
6252 | return resultobj; |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
6258 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6259 | PyObject *resultobj; | |
6260 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6261 | wxString *result; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "self", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6270 | { |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | { | |
6273 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6274 | result = (wxString *) &_result_ref; | |
6275 | } | |
6276 | ||
6277 | wxPyEndAllowThreads(__tstate); | |
6278 | if (PyErr_Occurred()) SWIG_fail; | |
6279 | } | |
f0983263 RD |
6280 | { |
6281 | #if wxUSE_UNICODE | |
6282 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6283 | #else | |
6284 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6285 | #endif | |
6286 | } | |
d14a1e28 RD |
6287 | return resultobj; |
6288 | fail: | |
6289 | return NULL; | |
6290 | } | |
6291 | ||
6292 | ||
6293 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6294 | PyObject *resultobj; | |
6295 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6296 | wxDateTime result; | |
6297 | PyObject * obj0 = 0 ; | |
6298 | char *kwnames[] = { | |
6299 | (char *) "self", NULL | |
6300 | }; | |
6301 | ||
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6305 | { |
6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6307 | result = (arg1)->GetModificationTime(); | |
6308 | ||
6309 | wxPyEndAllowThreads(__tstate); | |
6310 | if (PyErr_Occurred()) SWIG_fail; | |
6311 | } | |
6312 | { | |
6313 | wxDateTime * resultptr; | |
6314 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 6315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6316 | } |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6324 | PyObject *obj; | |
6325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6326 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6327 | Py_INCREF(obj); | |
6328 | return Py_BuildValue((char *)""); | |
6329 | } | |
6330 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6331 | PyObject *obj; | |
6332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6333 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6334 | Py_INCREF(obj); | |
6335 | return Py_BuildValue((char *)""); | |
6336 | } | |
6337 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6338 | PyObject *resultobj; | |
6339 | wxPyFileSystemHandler *result; | |
6340 | char *kwnames[] = { | |
6341 | NULL | |
6342 | }; | |
6343 | ||
6344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
2f4c0a16 | 6352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6353 | return resultobj; |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
6359 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6360 | PyObject *resultobj; | |
6361 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6362 | PyObject *arg2 = (PyObject *) 0 ; | |
6363 | PyObject *arg3 = (PyObject *) 0 ; | |
6364 | PyObject * obj0 = 0 ; | |
6365 | PyObject * obj1 = 0 ; | |
6366 | PyObject * obj2 = 0 ; | |
6367 | char *kwnames[] = { | |
6368 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6369 | }; | |
6370 | ||
6371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6374 | arg2 = obj1; |
6375 | arg3 = obj2; | |
6376 | { | |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6379 | ||
6380 | wxPyEndAllowThreads(__tstate); | |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
6382 | } | |
6383 | Py_INCREF(Py_None); resultobj = Py_None; | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
6390 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6391 | PyObject *resultobj; | |
6392 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6393 | wxString *arg2 = 0 ; | |
6394 | bool result; | |
423f194a | 6395 | bool temp2 = False ; |
d14a1e28 RD |
6396 | PyObject * obj0 = 0 ; |
6397 | PyObject * obj1 = 0 ; | |
6398 | char *kwnames[] = { | |
6399 | (char *) "self",(char *) "location", NULL | |
6400 | }; | |
6401 | ||
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6405 | { |
6406 | arg2 = wxString_in_helper(obj1); | |
6407 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6408 | temp2 = True; |
d14a1e28 RD |
6409 | } |
6410 | { | |
6411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6412 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6413 | ||
6414 | wxPyEndAllowThreads(__tstate); | |
6415 | if (PyErr_Occurred()) SWIG_fail; | |
6416 | } | |
4e760a36 | 6417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6418 | { |
6419 | if (temp2) | |
6420 | delete arg2; | |
6421 | } | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | { | |
6425 | if (temp2) | |
6426 | delete arg2; | |
6427 | } | |
6428 | return NULL; | |
6429 | } | |
6430 | ||
6431 | ||
6432 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject *resultobj; | |
6434 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6435 | wxFileSystem *arg2 = 0 ; | |
6436 | wxString *arg3 = 0 ; | |
6437 | wxFSFile *result; | |
423f194a | 6438 | bool temp3 = False ; |
d14a1e28 RD |
6439 | PyObject * obj0 = 0 ; |
6440 | PyObject * obj1 = 0 ; | |
6441 | PyObject * obj2 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6451 | SWIG_fail; | |
d14a1e28 | 6452 | if (arg2 == NULL) { |
2f4c0a16 RD |
6453 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6454 | SWIG_fail; | |
d14a1e28 RD |
6455 | } |
6456 | { | |
6457 | arg3 = wxString_in_helper(obj2); | |
6458 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6459 | temp3 = True; |
d14a1e28 RD |
6460 | } |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | { | |
6469 | resultobj = wxPyMake_wxObject(result); | |
6470 | } | |
6471 | { | |
6472 | if (temp3) | |
6473 | delete arg3; | |
6474 | } | |
6475 | return resultobj; | |
6476 | fail: | |
6477 | { | |
6478 | if (temp3) | |
6479 | delete arg3; | |
6480 | } | |
6481 | return NULL; | |
6482 | } | |
6483 | ||
6484 | ||
6485 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6486 | PyObject *resultobj; | |
6487 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6488 | wxString *arg2 = 0 ; | |
6489 | int arg3 = (int) 0 ; | |
6490 | wxString result; | |
423f194a | 6491 | bool temp2 = False ; |
d14a1e28 RD |
6492 | PyObject * obj0 = 0 ; |
6493 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6494 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6495 | char *kwnames[] = { |
6496 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6497 | }; | |
6498 | ||
8edf1c75 | 6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6502 | { |
6503 | arg2 = wxString_in_helper(obj1); | |
6504 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6505 | temp2 = True; |
d14a1e28 | 6506 | } |
8edf1c75 | 6507 | if (obj2) { |
2f4c0a16 RD |
6508 | arg3 = (int) SWIG_AsInt(obj2); |
6509 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6510 | } |
d14a1e28 RD |
6511 | { |
6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6513 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6514 | ||
6515 | wxPyEndAllowThreads(__tstate); | |
6516 | if (PyErr_Occurred()) SWIG_fail; | |
6517 | } | |
6518 | { | |
6519 | #if wxUSE_UNICODE | |
6520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6521 | #else | |
6522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6523 | #endif | |
6524 | } | |
6525 | { | |
6526 | if (temp2) | |
6527 | delete arg2; | |
6528 | } | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | { | |
6532 | if (temp2) | |
6533 | delete arg2; | |
6534 | } | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
6539 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject *resultobj; | |
6541 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6542 | wxString result; | |
6543 | PyObject * obj0 = 0 ; | |
6544 | char *kwnames[] = { | |
6545 | (char *) "self", NULL | |
6546 | }; | |
6547 | ||
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6551 | { |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6553 | result = (arg1)->FindNext(); | |
6554 | ||
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | { | |
6559 | #if wxUSE_UNICODE | |
6560 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6561 | #else | |
6562 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6563 | #endif | |
6564 | } | |
6565 | return resultobj; | |
6566 | fail: | |
6567 | return NULL; | |
6568 | } | |
6569 | ||
6570 | ||
6571 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6572 | PyObject *resultobj; | |
6573 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6574 | wxString *arg2 = 0 ; | |
6575 | wxString result; | |
423f194a | 6576 | bool temp2 = False ; |
d14a1e28 RD |
6577 | PyObject * obj0 = 0 ; |
6578 | PyObject * obj1 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "self",(char *) "location", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6586 | { |
6587 | arg2 = wxString_in_helper(obj1); | |
6588 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6589 | temp2 = True; |
d14a1e28 RD |
6590 | } |
6591 | { | |
6592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6593 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6594 | ||
6595 | wxPyEndAllowThreads(__tstate); | |
6596 | if (PyErr_Occurred()) SWIG_fail; | |
6597 | } | |
6598 | { | |
6599 | #if wxUSE_UNICODE | |
6600 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6601 | #else | |
6602 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6603 | #endif | |
6604 | } | |
6605 | { | |
6606 | if (temp2) | |
6607 | delete arg2; | |
6608 | } | |
6609 | return resultobj; | |
6610 | fail: | |
6611 | { | |
6612 | if (temp2) | |
6613 | delete arg2; | |
6614 | } | |
6615 | return NULL; | |
6616 | } | |
6617 | ||
6618 | ||
6619 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6620 | PyObject *resultobj; | |
6621 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6622 | wxString *arg2 = 0 ; | |
6623 | wxString result; | |
423f194a | 6624 | bool temp2 = False ; |
d14a1e28 RD |
6625 | PyObject * obj0 = 0 ; |
6626 | PyObject * obj1 = 0 ; | |
6627 | char *kwnames[] = { | |
6628 | (char *) "self",(char *) "location", NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6634 | { |
6635 | arg2 = wxString_in_helper(obj1); | |
6636 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6637 | temp2 = True; |
d14a1e28 RD |
6638 | } |
6639 | { | |
6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6641 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6642 | ||
6643 | wxPyEndAllowThreads(__tstate); | |
6644 | if (PyErr_Occurred()) SWIG_fail; | |
6645 | } | |
6646 | { | |
6647 | #if wxUSE_UNICODE | |
6648 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6649 | #else | |
6650 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6651 | #endif | |
6652 | } | |
6653 | { | |
6654 | if (temp2) | |
6655 | delete arg2; | |
6656 | } | |
6657 | return resultobj; | |
6658 | fail: | |
6659 | { | |
6660 | if (temp2) | |
6661 | delete arg2; | |
6662 | } | |
6663 | return NULL; | |
6664 | } | |
6665 | ||
6666 | ||
6667 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6668 | PyObject *resultobj; | |
6669 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6670 | wxString *arg2 = 0 ; | |
6671 | wxString result; | |
423f194a | 6672 | bool temp2 = False ; |
d14a1e28 RD |
6673 | PyObject * obj0 = 0 ; |
6674 | PyObject * obj1 = 0 ; | |
6675 | char *kwnames[] = { | |
6676 | (char *) "self",(char *) "location", NULL | |
6677 | }; | |
6678 | ||
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6682 | { |
6683 | arg2 = wxString_in_helper(obj1); | |
6684 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6685 | temp2 = True; |
d14a1e28 RD |
6686 | } |
6687 | { | |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | { | |
6695 | #if wxUSE_UNICODE | |
6696 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6697 | #else | |
6698 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6699 | #endif | |
6700 | } | |
6701 | { | |
6702 | if (temp2) | |
6703 | delete arg2; | |
6704 | } | |
6705 | return resultobj; | |
6706 | fail: | |
6707 | { | |
6708 | if (temp2) | |
6709 | delete arg2; | |
6710 | } | |
6711 | return NULL; | |
6712 | } | |
6713 | ||
6714 | ||
6715 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject *resultobj; | |
6717 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6718 | wxString *arg2 = 0 ; | |
6719 | wxString result; | |
423f194a | 6720 | bool temp2 = False ; |
d14a1e28 RD |
6721 | PyObject * obj0 = 0 ; |
6722 | PyObject * obj1 = 0 ; | |
6723 | char *kwnames[] = { | |
6724 | (char *) "self",(char *) "location", NULL | |
6725 | }; | |
6726 | ||
6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6730 | { |
6731 | arg2 = wxString_in_helper(obj1); | |
6732 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6733 | temp2 = True; |
d14a1e28 RD |
6734 | } |
6735 | { | |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | { | |
6743 | #if wxUSE_UNICODE | |
6744 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6745 | #else | |
6746 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6747 | #endif | |
6748 | } | |
6749 | { | |
6750 | if (temp2) | |
6751 | delete arg2; | |
6752 | } | |
6753 | return resultobj; | |
6754 | fail: | |
6755 | { | |
6756 | if (temp2) | |
6757 | delete arg2; | |
6758 | } | |
6759 | return NULL; | |
6760 | } | |
6761 | ||
6762 | ||
6763 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6764 | PyObject *resultobj; | |
6765 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6766 | wxString *arg2 = 0 ; | |
6767 | wxString result; | |
423f194a | 6768 | bool temp2 = False ; |
d14a1e28 RD |
6769 | PyObject * obj0 = 0 ; |
6770 | PyObject * obj1 = 0 ; | |
6771 | char *kwnames[] = { | |
6772 | (char *) "self",(char *) "location", NULL | |
6773 | }; | |
6774 | ||
6775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6778 | { |
6779 | arg2 = wxString_in_helper(obj1); | |
6780 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6781 | temp2 = True; |
d14a1e28 RD |
6782 | } |
6783 | { | |
6784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6785 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6786 | ||
6787 | wxPyEndAllowThreads(__tstate); | |
6788 | if (PyErr_Occurred()) SWIG_fail; | |
6789 | } | |
6790 | { | |
6791 | #if wxUSE_UNICODE | |
6792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6793 | #else | |
6794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6795 | #endif | |
6796 | } | |
6797 | { | |
6798 | if (temp2) | |
6799 | delete arg2; | |
6800 | } | |
6801 | return resultobj; | |
6802 | fail: | |
6803 | { | |
6804 | if (temp2) | |
6805 | delete arg2; | |
6806 | } | |
6807 | return NULL; | |
6808 | } | |
6809 | ||
6810 | ||
6811 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6812 | PyObject *obj; | |
6813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6814 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6815 | Py_INCREF(obj); | |
6816 | return Py_BuildValue((char *)""); | |
6817 | } | |
6818 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject *resultobj; | |
6820 | wxFileSystem *result; | |
6821 | char *kwnames[] = { | |
6822 | NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | result = (wxFileSystem *)new wxFileSystem(); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
6833 | { | |
6834 | resultobj = wxPyMake_wxObject(result); | |
6835 | } | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
6842 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6843 | PyObject *resultobj; | |
6844 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6845 | PyObject * obj0 = 0 ; | |
6846 | char *kwnames[] = { | |
6847 | (char *) "self", NULL | |
6848 | }; | |
6849 | ||
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6853 | { |
6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6855 | delete arg1; | |
6856 | ||
6857 | wxPyEndAllowThreads(__tstate); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
6859 | } | |
6860 | Py_INCREF(Py_None); resultobj = Py_None; | |
6861 | return resultobj; | |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6870 | wxString *arg2 = 0 ; | |
423f194a RD |
6871 | bool arg3 = (bool) False ; |
6872 | bool temp2 = False ; | |
d14a1e28 RD |
6873 | PyObject * obj0 = 0 ; |
6874 | PyObject * obj1 = 0 ; | |
6875 | PyObject * obj2 = 0 ; | |
6876 | char *kwnames[] = { | |
6877 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6878 | }; | |
6879 | ||
6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6883 | { |
6884 | arg2 = wxString_in_helper(obj1); | |
6885 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6886 | temp2 = True; |
d14a1e28 RD |
6887 | } |
6888 | if (obj2) { | |
2f4c0a16 RD |
6889 | arg3 = (bool) SWIG_AsBool(obj2); |
6890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6891 | } |
6892 | { | |
6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6894 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6895 | ||
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
6899 | Py_INCREF(Py_None); resultobj = Py_None; | |
6900 | { | |
6901 | if (temp2) | |
6902 | delete arg2; | |
6903 | } | |
6904 | return resultobj; | |
6905 | fail: | |
6906 | { | |
6907 | if (temp2) | |
6908 | delete arg2; | |
6909 | } | |
6910 | return NULL; | |
6911 | } | |
6912 | ||
6913 | ||
6914 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject *resultobj; | |
6916 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6917 | wxString result; | |
6918 | PyObject * obj0 = 0 ; | |
6919 | char *kwnames[] = { | |
6920 | (char *) "self", NULL | |
6921 | }; | |
6922 | ||
6923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6926 | { |
6927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6928 | result = (arg1)->GetPath(); | |
6929 | ||
6930 | wxPyEndAllowThreads(__tstate); | |
6931 | if (PyErr_Occurred()) SWIG_fail; | |
6932 | } | |
6933 | { | |
6934 | #if wxUSE_UNICODE | |
6935 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6936 | #else | |
6937 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6938 | #endif | |
6939 | } | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6949 | wxString *arg2 = 0 ; | |
6950 | wxFSFile *result; | |
423f194a | 6951 | bool temp2 = False ; |
d14a1e28 RD |
6952 | PyObject * obj0 = 0 ; |
6953 | PyObject * obj1 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "self",(char *) "location", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6961 | { |
6962 | arg2 = wxString_in_helper(obj1); | |
6963 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6964 | temp2 = True; |
d14a1e28 RD |
6965 | } |
6966 | { | |
6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6968 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
6969 | ||
6970 | wxPyEndAllowThreads(__tstate); | |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
6972 | } | |
6973 | { | |
6974 | resultobj = wxPyMake_wxObject(result); | |
6975 | } | |
6976 | { | |
6977 | if (temp2) | |
6978 | delete arg2; | |
6979 | } | |
6980 | return resultobj; | |
6981 | fail: | |
6982 | { | |
6983 | if (temp2) | |
6984 | delete arg2; | |
6985 | } | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6993 | wxString *arg2 = 0 ; | |
6994 | int arg3 = (int) 0 ; | |
6995 | wxString result; | |
423f194a | 6996 | bool temp2 = False ; |
d14a1e28 RD |
6997 | PyObject * obj0 = 0 ; |
6998 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6999 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7000 | char *kwnames[] = { |
7001 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7002 | }; | |
7003 | ||
8edf1c75 | 7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7007 | { |
7008 | arg2 = wxString_in_helper(obj1); | |
7009 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7010 | temp2 = True; |
d14a1e28 | 7011 | } |
8edf1c75 | 7012 | if (obj2) { |
2f4c0a16 RD |
7013 | arg3 = (int) SWIG_AsInt(obj2); |
7014 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7015 | } |
d14a1e28 RD |
7016 | { |
7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7018 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7019 | ||
7020 | wxPyEndAllowThreads(__tstate); | |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
7022 | } | |
7023 | { | |
7024 | #if wxUSE_UNICODE | |
7025 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7026 | #else | |
7027 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7028 | #endif | |
7029 | } | |
7030 | { | |
7031 | if (temp2) | |
7032 | delete arg2; | |
7033 | } | |
7034 | return resultobj; | |
7035 | fail: | |
7036 | { | |
7037 | if (temp2) | |
7038 | delete arg2; | |
7039 | } | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
7046 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7047 | wxString result; | |
7048 | PyObject * obj0 = 0 ; | |
7049 | char *kwnames[] = { | |
7050 | (char *) "self", NULL | |
7051 | }; | |
7052 | ||
7053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7056 | { |
7057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7058 | result = (arg1)->FindNext(); | |
7059 | ||
7060 | wxPyEndAllowThreads(__tstate); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | { | |
7064 | #if wxUSE_UNICODE | |
7065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7066 | #else | |
7067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7068 | #endif | |
7069 | } | |
7070 | return resultobj; | |
7071 | fail: | |
7072 | return NULL; | |
7073 | } | |
7074 | ||
7075 | ||
7076 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7077 | PyObject *resultobj; | |
7078 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | char *kwnames[] = { | |
7081 | (char *) "handler", NULL | |
7082 | }; | |
7083 | ||
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7087 | { |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | wxFileSystem::AddHandler(arg1); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
7101 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7102 | PyObject *resultobj; | |
7103 | char *kwnames[] = { | |
7104 | NULL | |
7105 | }; | |
7106 | ||
7107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7108 | { | |
7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7110 | wxFileSystem::CleanUpHandlers(); | |
7111 | ||
7112 | wxPyEndAllowThreads(__tstate); | |
7113 | if (PyErr_Occurred()) SWIG_fail; | |
7114 | } | |
7115 | Py_INCREF(Py_None); resultobj = Py_None; | |
7116 | return resultobj; | |
7117 | fail: | |
7118 | return NULL; | |
7119 | } | |
7120 | ||
7121 | ||
7122 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7123 | PyObject *resultobj; | |
7124 | wxString *arg1 = 0 ; | |
7125 | wxString result; | |
423f194a | 7126 | bool temp1 = False ; |
d14a1e28 RD |
7127 | PyObject * obj0 = 0 ; |
7128 | char *kwnames[] = { | |
7129 | (char *) "filename", NULL | |
7130 | }; | |
7131 | ||
7132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7133 | { | |
7134 | arg1 = wxString_in_helper(obj0); | |
7135 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7136 | temp1 = True; |
d14a1e28 RD |
7137 | } |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | { | |
7146 | #if wxUSE_UNICODE | |
7147 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7148 | #else | |
7149 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7150 | #endif | |
7151 | } | |
7152 | { | |
7153 | if (temp1) | |
7154 | delete arg1; | |
7155 | } | |
7156 | return resultobj; | |
7157 | fail: | |
7158 | { | |
7159 | if (temp1) | |
7160 | delete arg1; | |
7161 | } | |
7162 | return NULL; | |
7163 | } | |
7164 | ||
7165 | ||
7166 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7167 | PyObject *obj; | |
7168 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7169 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7170 | Py_INCREF(obj); | |
7171 | return Py_BuildValue((char *)""); | |
7172 | } | |
7173 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7174 | PyObject *resultobj; | |
7175 | wxString *arg1 = 0 ; | |
7176 | wxString result; | |
423f194a | 7177 | bool temp1 = False ; |
d14a1e28 RD |
7178 | PyObject * obj0 = 0 ; |
7179 | char *kwnames[] = { | |
7180 | (char *) "url", NULL | |
7181 | }; | |
7182 | ||
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7184 | { | |
7185 | arg1 = wxString_in_helper(obj0); | |
7186 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7187 | temp1 = True; |
d14a1e28 RD |
7188 | } |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
7196 | { | |
7197 | #if wxUSE_UNICODE | |
7198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7199 | #else | |
7200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7201 | #endif | |
7202 | } | |
7203 | { | |
7204 | if (temp1) | |
7205 | delete arg1; | |
7206 | } | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | { | |
7210 | if (temp1) | |
7211 | delete arg1; | |
7212 | } | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject *resultobj; | |
7219 | wxInternetFSHandler *result; | |
7220 | char *kwnames[] = { | |
7221 | NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7225 | { | |
7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7227 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7228 | ||
7229 | wxPyEndAllowThreads(__tstate); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | } | |
2f4c0a16 | 7232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7233 | return resultobj; |
7234 | fail: | |
7235 | return NULL; | |
7236 | } | |
7237 | ||
7238 | ||
7239 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject *resultobj; | |
7241 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7242 | wxString *arg2 = 0 ; | |
7243 | bool result; | |
423f194a | 7244 | bool temp2 = False ; |
d14a1e28 RD |
7245 | PyObject * obj0 = 0 ; |
7246 | PyObject * obj1 = 0 ; | |
7247 | char *kwnames[] = { | |
7248 | (char *) "self",(char *) "location", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7254 | { |
7255 | arg2 = wxString_in_helper(obj1); | |
7256 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7257 | temp2 = True; |
d14a1e28 RD |
7258 | } |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
4e760a36 | 7266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7267 | { |
7268 | if (temp2) | |
7269 | delete arg2; | |
7270 | } | |
7271 | return resultobj; | |
7272 | fail: | |
7273 | { | |
7274 | if (temp2) | |
7275 | delete arg2; | |
7276 | } | |
7277 | return NULL; | |
7278 | } | |
7279 | ||
7280 | ||
7281 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7282 | PyObject *resultobj; | |
7283 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7284 | wxFileSystem *arg2 = 0 ; | |
7285 | wxString *arg3 = 0 ; | |
7286 | wxFSFile *result; | |
423f194a | 7287 | bool temp3 = False ; |
d14a1e28 RD |
7288 | PyObject * obj0 = 0 ; |
7289 | PyObject * obj1 = 0 ; | |
7290 | PyObject * obj2 = 0 ; | |
7291 | char *kwnames[] = { | |
7292 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7293 | }; | |
7294 | ||
7295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7299 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7300 | SWIG_fail; | |
d14a1e28 | 7301 | if (arg2 == NULL) { |
2f4c0a16 RD |
7302 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7303 | SWIG_fail; | |
d14a1e28 RD |
7304 | } |
7305 | { | |
7306 | arg3 = wxString_in_helper(obj2); | |
7307 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7308 | temp3 = True; |
d14a1e28 RD |
7309 | } |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | { | |
7318 | resultobj = wxPyMake_wxObject(result); | |
7319 | } | |
7320 | { | |
7321 | if (temp3) | |
7322 | delete arg3; | |
7323 | } | |
7324 | return resultobj; | |
7325 | fail: | |
7326 | { | |
7327 | if (temp3) | |
7328 | delete arg3; | |
7329 | } | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7335 | PyObject *obj; | |
7336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7337 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7338 | Py_INCREF(obj); | |
7339 | return Py_BuildValue((char *)""); | |
7340 | } | |
7341 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj; | |
7343 | wxZipFSHandler *result; | |
7344 | char *kwnames[] = { | |
7345 | NULL | |
7346 | }; | |
7347 | ||
7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7349 | { | |
7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7351 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7352 | ||
7353 | wxPyEndAllowThreads(__tstate); | |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | } | |
2f4c0a16 | 7356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7357 | return resultobj; |
7358 | fail: | |
7359 | return NULL; | |
7360 | } | |
7361 | ||
7362 | ||
7363 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7364 | PyObject *resultobj; | |
7365 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7366 | wxString *arg2 = 0 ; | |
7367 | bool result; | |
423f194a | 7368 | bool temp2 = False ; |
d14a1e28 RD |
7369 | PyObject * obj0 = 0 ; |
7370 | PyObject * obj1 = 0 ; | |
7371 | char *kwnames[] = { | |
7372 | (char *) "self",(char *) "location", NULL | |
7373 | }; | |
7374 | ||
7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7378 | { |
7379 | arg2 = wxString_in_helper(obj1); | |
7380 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7381 | temp2 = True; |
d14a1e28 RD |
7382 | } |
7383 | { | |
7384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7385 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7386 | ||
7387 | wxPyEndAllowThreads(__tstate); | |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
4e760a36 | 7390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7391 | { |
7392 | if (temp2) | |
7393 | delete arg2; | |
7394 | } | |
7395 | return resultobj; | |
7396 | fail: | |
7397 | { | |
7398 | if (temp2) | |
7399 | delete arg2; | |
7400 | } | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
7405 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7408 | wxFileSystem *arg2 = 0 ; | |
7409 | wxString *arg3 = 0 ; | |
7410 | wxFSFile *result; | |
423f194a | 7411 | bool temp3 = False ; |
d14a1e28 RD |
7412 | PyObject * obj0 = 0 ; |
7413 | PyObject * obj1 = 0 ; | |
7414 | PyObject * obj2 = 0 ; | |
7415 | char *kwnames[] = { | |
7416 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7417 | }; | |
7418 | ||
7419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7423 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7424 | SWIG_fail; | |
d14a1e28 | 7425 | if (arg2 == NULL) { |
2f4c0a16 RD |
7426 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7427 | SWIG_fail; | |
d14a1e28 RD |
7428 | } |
7429 | { | |
7430 | arg3 = wxString_in_helper(obj2); | |
7431 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7432 | temp3 = True; |
d14a1e28 RD |
7433 | } |
7434 | { | |
7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7436 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7437 | ||
7438 | wxPyEndAllowThreads(__tstate); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
7441 | { | |
7442 | resultobj = wxPyMake_wxObject(result); | |
7443 | } | |
7444 | { | |
7445 | if (temp3) | |
7446 | delete arg3; | |
7447 | } | |
7448 | return resultobj; | |
7449 | fail: | |
7450 | { | |
7451 | if (temp3) | |
7452 | delete arg3; | |
7453 | } | |
7454 | return NULL; | |
7455 | } | |
7456 | ||
7457 | ||
7458 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7459 | PyObject *resultobj; | |
7460 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7461 | wxString *arg2 = 0 ; | |
7462 | int arg3 = (int) 0 ; | |
7463 | wxString result; | |
423f194a | 7464 | bool temp2 = False ; |
d14a1e28 RD |
7465 | PyObject * obj0 = 0 ; |
7466 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7467 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7468 | char *kwnames[] = { |
7469 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7470 | }; | |
7471 | ||
8edf1c75 | 7472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7475 | { |
7476 | arg2 = wxString_in_helper(obj1); | |
7477 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7478 | temp2 = True; |
d14a1e28 | 7479 | } |
8edf1c75 | 7480 | if (obj2) { |
2f4c0a16 RD |
7481 | arg3 = (int) SWIG_AsInt(obj2); |
7482 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7483 | } |
d14a1e28 RD |
7484 | { |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
7491 | { | |
7492 | #if wxUSE_UNICODE | |
7493 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7494 | #else | |
7495 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7496 | #endif | |
7497 | } | |
7498 | { | |
7499 | if (temp2) | |
7500 | delete arg2; | |
7501 | } | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | { | |
7505 | if (temp2) | |
7506 | delete arg2; | |
7507 | } | |
7508 | return NULL; | |
7509 | } | |
7510 | ||
7511 | ||
7512 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject *resultobj; | |
7514 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7515 | wxString result; | |
7516 | PyObject * obj0 = 0 ; | |
7517 | char *kwnames[] = { | |
7518 | (char *) "self", NULL | |
7519 | }; | |
7520 | ||
7521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7524 | { |
7525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7526 | result = (arg1)->FindNext(); | |
7527 | ||
7528 | wxPyEndAllowThreads(__tstate); | |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
7530 | } | |
7531 | { | |
7532 | #if wxUSE_UNICODE | |
7533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7534 | #else | |
7535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7536 | #endif | |
7537 | } | |
7538 | return resultobj; | |
7539 | fail: | |
7540 | return NULL; | |
7541 | } | |
7542 | ||
7543 | ||
7544 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7545 | PyObject *obj; | |
7546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7547 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7548 | Py_INCREF(obj); | |
7549 | return Py_BuildValue((char *)""); | |
7550 | } | |
7551 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7552 | PyObject *resultobj; | |
7553 | wxString *arg1 = 0 ; | |
7554 | wxImage *arg2 = 0 ; | |
7555 | long arg3 ; | |
423f194a | 7556 | bool temp1 = False ; |
d14a1e28 RD |
7557 | PyObject * obj0 = 0 ; |
7558 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7559 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7560 | char *kwnames[] = { |
7561 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7562 | }; | |
7563 | ||
8edf1c75 | 7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7565 | { |
7566 | arg1 = wxString_in_helper(obj0); | |
7567 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7568 | temp1 = True; |
d14a1e28 | 7569 | } |
2f4c0a16 RD |
7570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7572 | SWIG_fail; | |
d14a1e28 | 7573 | if (arg2 == NULL) { |
2f4c0a16 RD |
7574 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7575 | SWIG_fail; | |
8edf1c75 | 7576 | } |
2f4c0a16 RD |
7577 | arg3 = (long) SWIG_AsLong(obj2); |
7578 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7579 | { |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | Py_INCREF(Py_None); resultobj = Py_None; | |
7587 | { | |
7588 | if (temp1) | |
7589 | delete arg1; | |
7590 | } | |
7591 | return resultobj; | |
7592 | fail: | |
7593 | { | |
7594 | if (temp1) | |
7595 | delete arg1; | |
7596 | } | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject *resultobj; | |
7603 | wxString *arg1 = 0 ; | |
7604 | wxBitmap *arg2 = 0 ; | |
7605 | long arg3 ; | |
423f194a | 7606 | bool temp1 = False ; |
d14a1e28 RD |
7607 | PyObject * obj0 = 0 ; |
7608 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7609 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7610 | char *kwnames[] = { |
7611 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7612 | }; | |
7613 | ||
8edf1c75 | 7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7615 | { |
7616 | arg1 = wxString_in_helper(obj0); | |
7617 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7618 | temp1 = True; |
d14a1e28 | 7619 | } |
2f4c0a16 RD |
7620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7622 | SWIG_fail; | |
d14a1e28 | 7623 | if (arg2 == NULL) { |
2f4c0a16 RD |
7624 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7625 | SWIG_fail; | |
8edf1c75 | 7626 | } |
2f4c0a16 RD |
7627 | arg3 = (long) SWIG_AsLong(obj2); |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7629 | { |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7632 | ||
7633 | wxPyEndAllowThreads(__tstate); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | } | |
7636 | Py_INCREF(Py_None); resultobj = Py_None; | |
7637 | { | |
7638 | if (temp1) | |
7639 | delete arg1; | |
7640 | } | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | { | |
7644 | if (temp1) | |
7645 | delete arg1; | |
7646 | } | |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
7651 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7652 | PyObject *resultobj; | |
7653 | wxString *arg1 = 0 ; | |
7654 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7655 | bool temp1 = False ; |
d14a1e28 RD |
7656 | PyObject * obj0 = 0 ; |
7657 | PyObject * obj1 = 0 ; | |
7658 | char *kwnames[] = { | |
7659 | (char *) "filename",(char *) "data", NULL | |
7660 | }; | |
7661 | ||
7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7663 | { | |
7664 | arg1 = wxString_in_helper(obj0); | |
7665 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7666 | temp1 = True; |
d14a1e28 RD |
7667 | } |
7668 | arg2 = obj1; | |
7669 | { | |
7670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7671 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7672 | ||
7673 | wxPyEndAllowThreads(__tstate); | |
7674 | if (PyErr_Occurred()) SWIG_fail; | |
7675 | } | |
7676 | Py_INCREF(Py_None); resultobj = Py_None; | |
7677 | { | |
7678 | if (temp1) | |
7679 | delete arg1; | |
7680 | } | |
7681 | return resultobj; | |
7682 | fail: | |
7683 | { | |
7684 | if (temp1) | |
7685 | delete arg1; | |
7686 | } | |
7687 | return NULL; | |
7688 | } | |
7689 | ||
7690 | ||
7691 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7692 | PyObject *resultobj; | |
7693 | wxMemoryFSHandler *result; | |
7694 | char *kwnames[] = { | |
7695 | NULL | |
7696 | }; | |
7697 | ||
7698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7699 | { | |
7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7701 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7702 | ||
7703 | wxPyEndAllowThreads(__tstate); | |
7704 | if (PyErr_Occurred()) SWIG_fail; | |
7705 | } | |
2f4c0a16 | 7706 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7707 | return resultobj; |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxString *arg1 = 0 ; | |
423f194a | 7716 | bool temp1 = False ; |
d14a1e28 RD |
7717 | PyObject * obj0 = 0 ; |
7718 | char *kwnames[] = { | |
7719 | (char *) "filename", NULL | |
7720 | }; | |
7721 | ||
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7723 | { | |
7724 | arg1 = wxString_in_helper(obj0); | |
7725 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7726 | temp1 = True; |
d14a1e28 RD |
7727 | } |
7728 | { | |
7729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7730 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7731 | ||
7732 | wxPyEndAllowThreads(__tstate); | |
7733 | if (PyErr_Occurred()) SWIG_fail; | |
7734 | } | |
7735 | Py_INCREF(Py_None); resultobj = Py_None; | |
7736 | { | |
7737 | if (temp1) | |
7738 | delete arg1; | |
7739 | } | |
7740 | return resultobj; | |
7741 | fail: | |
7742 | { | |
7743 | if (temp1) | |
7744 | delete arg1; | |
7745 | } | |
7746 | return NULL; | |
7747 | } | |
7748 | ||
7749 | ||
7750 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7751 | PyObject *resultobj; | |
7752 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7753 | wxString *arg2 = 0 ; | |
7754 | bool result; | |
423f194a | 7755 | bool temp2 = False ; |
d14a1e28 RD |
7756 | PyObject * obj0 = 0 ; |
7757 | PyObject * obj1 = 0 ; | |
7758 | char *kwnames[] = { | |
7759 | (char *) "self",(char *) "location", NULL | |
7760 | }; | |
7761 | ||
7762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7765 | { |
7766 | arg2 = wxString_in_helper(obj1); | |
7767 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7768 | temp2 = True; |
d14a1e28 RD |
7769 | } |
7770 | { | |
7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7772 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | } | |
4e760a36 | 7777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7778 | { |
7779 | if (temp2) | |
7780 | delete arg2; | |
7781 | } | |
7782 | return resultobj; | |
7783 | fail: | |
7784 | { | |
7785 | if (temp2) | |
7786 | delete arg2; | |
7787 | } | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7793 | PyObject *resultobj; | |
7794 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7795 | wxFileSystem *arg2 = 0 ; | |
7796 | wxString *arg3 = 0 ; | |
7797 | wxFSFile *result; | |
423f194a | 7798 | bool temp3 = False ; |
d14a1e28 RD |
7799 | PyObject * obj0 = 0 ; |
7800 | PyObject * obj1 = 0 ; | |
7801 | PyObject * obj2 = 0 ; | |
7802 | char *kwnames[] = { | |
7803 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7804 | }; | |
7805 | ||
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7810 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7811 | SWIG_fail; | |
d14a1e28 | 7812 | if (arg2 == NULL) { |
2f4c0a16 RD |
7813 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7814 | SWIG_fail; | |
d14a1e28 RD |
7815 | } |
7816 | { | |
7817 | arg3 = wxString_in_helper(obj2); | |
7818 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7819 | temp3 = True; |
d14a1e28 RD |
7820 | } |
7821 | { | |
7822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7823 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7824 | ||
7825 | wxPyEndAllowThreads(__tstate); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
7827 | } | |
7828 | { | |
7829 | resultobj = wxPyMake_wxObject(result); | |
7830 | } | |
7831 | { | |
7832 | if (temp3) | |
7833 | delete arg3; | |
7834 | } | |
7835 | return resultobj; | |
7836 | fail: | |
7837 | { | |
7838 | if (temp3) | |
7839 | delete arg3; | |
7840 | } | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
7845 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7848 | wxString *arg2 = 0 ; | |
7849 | int arg3 = (int) 0 ; | |
7850 | wxString result; | |
423f194a | 7851 | bool temp2 = False ; |
d14a1e28 RD |
7852 | PyObject * obj0 = 0 ; |
7853 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7854 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7855 | char *kwnames[] = { |
7856 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7857 | }; | |
7858 | ||
8edf1c75 | 7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7862 | { |
7863 | arg2 = wxString_in_helper(obj1); | |
7864 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7865 | temp2 = True; |
d14a1e28 | 7866 | } |
8edf1c75 | 7867 | if (obj2) { |
2f4c0a16 RD |
7868 | arg3 = (int) SWIG_AsInt(obj2); |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7870 | } |
d14a1e28 RD |
7871 | { |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | { | |
7879 | #if wxUSE_UNICODE | |
7880 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7881 | #else | |
7882 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7883 | #endif | |
7884 | } | |
7885 | { | |
7886 | if (temp2) | |
7887 | delete arg2; | |
7888 | } | |
7889 | return resultobj; | |
7890 | fail: | |
7891 | { | |
7892 | if (temp2) | |
7893 | delete arg2; | |
7894 | } | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj; | |
7901 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7902 | wxString result; | |
7903 | PyObject * obj0 = 0 ; | |
7904 | char *kwnames[] = { | |
7905 | (char *) "self", NULL | |
7906 | }; | |
7907 | ||
7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7911 | { |
7912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7913 | result = (arg1)->FindNext(); | |
7914 | ||
7915 | wxPyEndAllowThreads(__tstate); | |
7916 | if (PyErr_Occurred()) SWIG_fail; | |
7917 | } | |
7918 | { | |
7919 | #if wxUSE_UNICODE | |
7920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7921 | #else | |
7922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7923 | #endif | |
7924 | } | |
7925 | return resultobj; | |
7926 | fail: | |
7927 | return NULL; | |
7928 | } | |
7929 | ||
7930 | ||
7931 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7932 | PyObject *obj; | |
7933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7934 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7935 | Py_INCREF(obj); | |
7936 | return Py_BuildValue((char *)""); | |
7937 | } | |
7938 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7939 | PyObject *resultobj; | |
7940 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7941 | wxString result; | |
7942 | PyObject * obj0 = 0 ; | |
7943 | char *kwnames[] = { | |
7944 | (char *) "self", NULL | |
7945 | }; | |
7946 | ||
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
7949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7950 | { |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | result = (arg1)->GetName(); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | { | |
7958 | #if wxUSE_UNICODE | |
7959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7960 | #else | |
7961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7962 | #endif | |
7963 | } | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7973 | wxString result; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | char *kwnames[] = { | |
7976 | (char *) "self", NULL | |
7977 | }; | |
7978 | ||
7979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
7981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7982 | { |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | result = (arg1)->GetExtension(); | |
7985 | ||
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | } | |
7989 | { | |
7990 | #if wxUSE_UNICODE | |
7991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7992 | #else | |
7993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7994 | #endif | |
7995 | } | |
7996 | return resultobj; | |
7997 | fail: | |
7998 | return NULL; | |
7999 | } | |
8000 | ||
8001 | ||
8002 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8003 | PyObject *resultobj; | |
8004 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8005 | long result; | |
8006 | PyObject * obj0 = 0 ; | |
8007 | char *kwnames[] = { | |
8008 | (char *) "self", NULL | |
8009 | }; | |
8010 | ||
8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8014 | { |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | result = (long)(arg1)->GetType(); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
2f4c0a16 | 8021 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8022 | return resultobj; |
8023 | fail: | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject *resultobj; | |
8030 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8031 | wxString result; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8040 | { |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (arg1)->GetMimeType(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | { | |
8048 | #if wxUSE_UNICODE | |
8049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8050 | #else | |
8051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8052 | #endif | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
8060 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8061 | PyObject *resultobj; | |
8062 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8063 | wxString *arg2 = 0 ; | |
8064 | bool result; | |
423f194a | 8065 | bool temp2 = False ; |
d14a1e28 RD |
8066 | PyObject * obj0 = 0 ; |
8067 | PyObject * obj1 = 0 ; | |
8068 | char *kwnames[] = { | |
8069 | (char *) "self",(char *) "name", NULL | |
8070 | }; | |
8071 | ||
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8075 | { |
8076 | arg2 = wxString_in_helper(obj1); | |
8077 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8078 | temp2 = True; |
d14a1e28 RD |
8079 | } |
8080 | { | |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
4e760a36 | 8087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8088 | { |
8089 | if (temp2) | |
8090 | delete arg2; | |
8091 | } | |
8092 | return resultobj; | |
8093 | fail: | |
8094 | { | |
8095 | if (temp2) | |
8096 | delete arg2; | |
8097 | } | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8103 | PyObject *resultobj; | |
8104 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8105 | wxString *arg2 = 0 ; | |
423f194a | 8106 | bool temp2 = False ; |
d14a1e28 RD |
8107 | PyObject * obj0 = 0 ; |
8108 | PyObject * obj1 = 0 ; | |
8109 | char *kwnames[] = { | |
8110 | (char *) "self",(char *) "name", NULL | |
8111 | }; | |
8112 | ||
8113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8116 | { |
8117 | arg2 = wxString_in_helper(obj1); | |
8118 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8119 | temp2 = True; |
d14a1e28 RD |
8120 | } |
8121 | { | |
8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8123 | (arg1)->SetName((wxString const &)*arg2); | |
8124 | ||
8125 | wxPyEndAllowThreads(__tstate); | |
8126 | if (PyErr_Occurred()) SWIG_fail; | |
8127 | } | |
8128 | Py_INCREF(Py_None); resultobj = Py_None; | |
8129 | { | |
8130 | if (temp2) | |
8131 | delete arg2; | |
8132 | } | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | { | |
8136 | if (temp2) | |
8137 | delete arg2; | |
8138 | } | |
8139 | return NULL; | |
8140 | } | |
8141 | ||
8142 | ||
8143 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8144 | PyObject *resultobj; | |
8145 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8146 | wxString *arg2 = 0 ; | |
423f194a | 8147 | bool temp2 = False ; |
d14a1e28 RD |
8148 | PyObject * obj0 = 0 ; |
8149 | PyObject * obj1 = 0 ; | |
8150 | char *kwnames[] = { | |
8151 | (char *) "self",(char *) "extension", NULL | |
8152 | }; | |
8153 | ||
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8157 | { |
8158 | arg2 = wxString_in_helper(obj1); | |
8159 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8160 | temp2 = True; |
d14a1e28 RD |
8161 | } |
8162 | { | |
8163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8164 | (arg1)->SetExtension((wxString const &)*arg2); | |
8165 | ||
8166 | wxPyEndAllowThreads(__tstate); | |
8167 | if (PyErr_Occurred()) SWIG_fail; | |
8168 | } | |
8169 | Py_INCREF(Py_None); resultobj = Py_None; | |
8170 | { | |
8171 | if (temp2) | |
8172 | delete arg2; | |
8173 | } | |
8174 | return resultobj; | |
8175 | fail: | |
8176 | { | |
8177 | if (temp2) | |
8178 | delete arg2; | |
8179 | } | |
8180 | return NULL; | |
8181 | } | |
8182 | ||
8183 | ||
8184 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8185 | PyObject *resultobj; | |
8186 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8187 | long arg2 ; | |
8188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8190 | char *kwnames[] = { |
8191 | (char *) "self",(char *) "type", NULL | |
8192 | }; | |
8193 | ||
8edf1c75 | 8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8197 | arg2 = (long) SWIG_AsLong(obj1); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8199 | { |
8200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8201 | (arg1)->SetType(arg2); | |
8202 | ||
8203 | wxPyEndAllowThreads(__tstate); | |
8204 | if (PyErr_Occurred()) SWIG_fail; | |
8205 | } | |
8206 | Py_INCREF(Py_None); resultobj = Py_None; | |
8207 | return resultobj; | |
8208 | fail: | |
8209 | return NULL; | |
8210 | } | |
8211 | ||
8212 | ||
8213 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8214 | PyObject *resultobj; | |
8215 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8216 | wxString *arg2 = 0 ; | |
423f194a | 8217 | bool temp2 = False ; |
d14a1e28 RD |
8218 | PyObject * obj0 = 0 ; |
8219 | PyObject * obj1 = 0 ; | |
8220 | char *kwnames[] = { | |
8221 | (char *) "self",(char *) "mimetype", NULL | |
8222 | }; | |
8223 | ||
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8227 | { |
8228 | arg2 = wxString_in_helper(obj1); | |
8229 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8230 | temp2 = True; |
d14a1e28 RD |
8231 | } |
8232 | { | |
8233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8234 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8235 | ||
8236 | wxPyEndAllowThreads(__tstate); | |
8237 | if (PyErr_Occurred()) SWIG_fail; | |
8238 | } | |
8239 | Py_INCREF(Py_None); resultobj = Py_None; | |
8240 | { | |
8241 | if (temp2) | |
8242 | delete arg2; | |
8243 | } | |
8244 | return resultobj; | |
8245 | fail: | |
8246 | { | |
8247 | if (temp2) | |
8248 | delete arg2; | |
8249 | } | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8255 | PyObject *obj; | |
8256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8257 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8258 | Py_INCREF(obj); | |
8259 | return Py_BuildValue((char *)""); | |
8260 | } | |
8261 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8262 | PyObject *resultobj; | |
8263 | wxImageHistogram *result; | |
8264 | char *kwnames[] = { | |
8265 | NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8269 | { | |
8270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8271 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8272 | ||
8273 | wxPyEndAllowThreads(__tstate); | |
8274 | if (PyErr_Occurred()) SWIG_fail; | |
8275 | } | |
2f4c0a16 | 8276 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8277 | return resultobj; |
8278 | fail: | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject *resultobj; | |
8285 | unsigned char arg1 ; | |
8286 | unsigned char arg2 ; | |
8287 | unsigned char arg3 ; | |
8288 | unsigned long result; | |
8289 | PyObject * obj0 = 0 ; | |
8290 | PyObject * obj1 = 0 ; | |
8291 | PyObject * obj2 = 0 ; | |
8292 | char *kwnames[] = { | |
8293 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8294 | }; | |
8295 | ||
8296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8297 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8300 | if (PyErr_Occurred()) SWIG_fail; | |
8301 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8302 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8303 | { |
8304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8305 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8306 | ||
8307 | wxPyEndAllowThreads(__tstate); | |
8308 | if (PyErr_Occurred()) SWIG_fail; | |
8309 | } | |
2f4c0a16 | 8310 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8311 | return resultobj; |
8312 | fail: | |
8313 | return NULL; | |
8314 | } | |
8315 | ||
8316 | ||
8317 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8318 | PyObject *resultobj; | |
8319 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8320 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8321 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8322 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8323 | unsigned char arg5 = (unsigned char) 1 ; | |
8324 | unsigned char arg6 = (unsigned char) 0 ; | |
8325 | unsigned char arg7 = (unsigned char) 0 ; | |
8326 | bool result; | |
8327 | unsigned char temp2 ; | |
8328 | unsigned char temp3 ; | |
8329 | unsigned char temp4 ; | |
8330 | PyObject * obj0 = 0 ; | |
8331 | PyObject * obj1 = 0 ; | |
8332 | PyObject * obj2 = 0 ; | |
8333 | PyObject * obj3 = 0 ; | |
8334 | char *kwnames[] = { | |
8335 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8336 | }; | |
8337 | ||
8338 | arg2 = &temp2; | |
8339 | arg3 = &temp3; | |
8340 | arg4 = &temp4; | |
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
8342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8344 | if (obj1) { |
2f4c0a16 RD |
8345 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8347 | } |
8348 | if (obj2) { | |
2f4c0a16 RD |
8349 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8351 | } |
8352 | if (obj3) { | |
2f4c0a16 RD |
8353 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8355 | } |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
4e760a36 | 8363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8364 | { |
8365 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8366 | resultobj = t_output_helper(resultobj,o); | |
8367 | } | |
8368 | { | |
8369 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8370 | resultobj = t_output_helper(resultobj,o); | |
8371 | } | |
8372 | { | |
8373 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8374 | resultobj = t_output_helper(resultobj,o); | |
8375 | } | |
8376 | return resultobj; | |
8377 | fail: | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
8382 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8383 | PyObject *obj; | |
8384 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8385 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8386 | Py_INCREF(obj); | |
8387 | return Py_BuildValue((char *)""); | |
8388 | } | |
8389 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8390 | PyObject *resultobj; | |
8391 | wxString *arg1 = 0 ; | |
8392 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8393 | int arg3 = (int) -1 ; | |
8394 | wxImage *result; | |
423f194a | 8395 | bool temp1 = False ; |
d14a1e28 | 8396 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8397 | PyObject * obj1 = 0 ; |
8398 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8399 | char *kwnames[] = { |
8400 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8401 | }; | |
8402 | ||
8edf1c75 | 8403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8404 | { |
8405 | arg1 = wxString_in_helper(obj0); | |
8406 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8407 | temp1 = True; |
d14a1e28 | 8408 | } |
8edf1c75 | 8409 | if (obj1) { |
2f4c0a16 RD |
8410 | arg2 = (long) SWIG_AsLong(obj1); |
8411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8412 | } |
8413 | if (obj2) { | |
2f4c0a16 RD |
8414 | arg3 = (int) SWIG_AsInt(obj2); |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8416 | } |
d14a1e28 RD |
8417 | { |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
2f4c0a16 | 8424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8425 | { |
8426 | if (temp1) | |
8427 | delete arg1; | |
8428 | } | |
8429 | return resultobj; | |
8430 | fail: | |
8431 | { | |
8432 | if (temp1) | |
8433 | delete arg1; | |
8434 | } | |
8435 | return NULL; | |
8436 | } | |
8437 | ||
8438 | ||
8439 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8440 | PyObject *resultobj; | |
8441 | wxImage *arg1 = (wxImage *) 0 ; | |
8442 | PyObject * obj0 = 0 ; | |
8443 | char *kwnames[] = { | |
8444 | (char *) "self", NULL | |
8445 | }; | |
8446 | ||
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8450 | { |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | delete arg1; | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | Py_INCREF(Py_None); resultobj = Py_None; | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject *resultobj; | |
8466 | wxString *arg1 = 0 ; | |
8467 | wxString *arg2 = 0 ; | |
8468 | int arg3 = (int) -1 ; | |
8469 | wxImage *result; | |
423f194a RD |
8470 | bool temp1 = False ; |
8471 | bool temp2 = False ; | |
d14a1e28 RD |
8472 | PyObject * obj0 = 0 ; |
8473 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8474 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8475 | char *kwnames[] = { |
8476 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8477 | }; | |
8478 | ||
8edf1c75 | 8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8480 | { |
8481 | arg1 = wxString_in_helper(obj0); | |
8482 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8483 | temp1 = True; |
d14a1e28 RD |
8484 | } |
8485 | { | |
8486 | arg2 = wxString_in_helper(obj1); | |
8487 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8488 | temp2 = True; |
d14a1e28 | 8489 | } |
8edf1c75 | 8490 | if (obj2) { |
2f4c0a16 RD |
8491 | arg3 = (int) SWIG_AsInt(obj2); |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8493 | } |
d14a1e28 RD |
8494 | { |
8495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8496 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8497 | ||
8498 | wxPyEndAllowThreads(__tstate); | |
8499 | if (PyErr_Occurred()) SWIG_fail; | |
8500 | } | |
2f4c0a16 | 8501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8502 | { |
8503 | if (temp1) | |
8504 | delete arg1; | |
8505 | } | |
8506 | { | |
8507 | if (temp2) | |
8508 | delete arg2; | |
8509 | } | |
8510 | return resultobj; | |
8511 | fail: | |
8512 | { | |
8513 | if (temp1) | |
8514 | delete arg1; | |
8515 | } | |
8516 | { | |
8517 | if (temp2) | |
8518 | delete arg2; | |
8519 | } | |
8520 | return NULL; | |
8521 | } | |
8522 | ||
8523 | ||
8524 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject *resultobj; | |
8526 | wxInputStream *arg1 = 0 ; | |
8527 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8528 | int arg3 = (int) -1 ; | |
8529 | wxImage *result; | |
8530 | wxPyInputStream *temp1 ; | |
8531 | bool created1 ; | |
8532 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8533 | PyObject * obj1 = 0 ; |
8534 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8535 | char *kwnames[] = { |
8536 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8537 | }; | |
8538 | ||
8edf1c75 | 8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8540 | { |
8541 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8542 | arg1 = temp1->m_wxis; | |
423f194a | 8543 | created1 = False; |
d14a1e28 RD |
8544 | } else { |
8545 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8546 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8547 | if (arg1 == NULL) { |
8548 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8549 | SWIG_fail; | |
8550 | } | |
423f194a | 8551 | created1 = True; |
d14a1e28 RD |
8552 | } |
8553 | } | |
8edf1c75 | 8554 | if (obj1) { |
2f4c0a16 RD |
8555 | arg2 = (long) SWIG_AsLong(obj1); |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8557 | } |
8558 | if (obj2) { | |
2f4c0a16 RD |
8559 | arg3 = (int) SWIG_AsInt(obj2); |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8561 | } |
d14a1e28 RD |
8562 | { |
8563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8564 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8565 | ||
8566 | wxPyEndAllowThreads(__tstate); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
2f4c0a16 | 8569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8570 | { |
8571 | if (created1) | |
8572 | delete arg1; | |
8573 | } | |
8574 | return resultobj; | |
8575 | fail: | |
8576 | { | |
8577 | if (created1) | |
8578 | delete arg1; | |
8579 | } | |
8580 | return NULL; | |
8581 | } | |
8582 | ||
8583 | ||
8584 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8585 | PyObject *resultobj; | |
8586 | wxInputStream *arg1 = 0 ; | |
8587 | wxString *arg2 = 0 ; | |
8588 | int arg3 = (int) -1 ; | |
8589 | wxImage *result; | |
8590 | wxPyInputStream *temp1 ; | |
8591 | bool created1 ; | |
423f194a | 8592 | bool temp2 = False ; |
d14a1e28 RD |
8593 | PyObject * obj0 = 0 ; |
8594 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8595 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8596 | char *kwnames[] = { |
8597 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8598 | }; | |
8599 | ||
8edf1c75 | 8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8601 | { |
8602 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8603 | arg1 = temp1->m_wxis; | |
423f194a | 8604 | created1 = False; |
d14a1e28 RD |
8605 | } else { |
8606 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8607 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8608 | if (arg1 == NULL) { |
8609 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8610 | SWIG_fail; | |
8611 | } | |
423f194a | 8612 | created1 = True; |
d14a1e28 RD |
8613 | } |
8614 | } | |
8615 | { | |
8616 | arg2 = wxString_in_helper(obj1); | |
8617 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8618 | temp2 = True; |
d14a1e28 | 8619 | } |
8edf1c75 | 8620 | if (obj2) { |
2f4c0a16 RD |
8621 | arg3 = (int) SWIG_AsInt(obj2); |
8622 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8623 | } |
d14a1e28 RD |
8624 | { |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
2f4c0a16 | 8631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8632 | { |
8633 | if (created1) | |
8634 | delete arg1; | |
8635 | } | |
8636 | { | |
8637 | if (temp2) | |
8638 | delete arg2; | |
8639 | } | |
8640 | return resultobj; | |
8641 | fail: | |
8642 | { | |
8643 | if (created1) | |
8644 | delete arg1; | |
8645 | } | |
8646 | { | |
8647 | if (temp2) | |
8648 | delete arg2; | |
8649 | } | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8655 | PyObject *resultobj; | |
8656 | int arg1 = (int) 0 ; | |
8657 | int arg2 = (int) 0 ; | |
423f194a | 8658 | bool arg3 = (bool) True ; |
d14a1e28 | 8659 | wxImage *result; |
8edf1c75 RD |
8660 | PyObject * obj0 = 0 ; |
8661 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8662 | PyObject * obj2 = 0 ; |
8663 | char *kwnames[] = { | |
8664 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8665 | }; | |
8666 | ||
8edf1c75 RD |
8667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8668 | if (obj0) { | |
2f4c0a16 RD |
8669 | arg1 = (int) SWIG_AsInt(obj0); |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8671 | } |
8672 | if (obj1) { | |
2f4c0a16 RD |
8673 | arg2 = (int) SWIG_AsInt(obj1); |
8674 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8675 | } |
d14a1e28 | 8676 | if (obj2) { |
2f4c0a16 RD |
8677 | arg3 = (bool) SWIG_AsBool(obj2); |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8679 | } |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
2f4c0a16 | 8687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8688 | return resultobj; |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxBitmap *arg1 = 0 ; | |
8697 | wxImage *result; | |
8698 | PyObject * obj0 = 0 ; | |
8699 | char *kwnames[] = { | |
8700 | (char *) "bitmap", NULL | |
8701 | }; | |
8702 | ||
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8706 | SWIG_fail; | |
d14a1e28 | 8707 | if (arg1 == NULL) { |
2f4c0a16 RD |
8708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8709 | SWIG_fail; | |
d14a1e28 RD |
8710 | } |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
2f4c0a16 | 8718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8719 | return resultobj; |
8720 | fail: | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | int arg1 ; | |
8728 | int arg2 ; | |
8729 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8730 | wxImage *result; | |
8edf1c75 RD |
8731 | PyObject * obj0 = 0 ; |
8732 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8733 | PyObject * obj2 = 0 ; |
8734 | char *kwnames[] = { | |
8735 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8736 | }; | |
8737 | ||
8edf1c75 | 8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8739 | arg1 = (int) SWIG_AsInt(obj0); |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
8741 | arg2 = (int) SWIG_AsInt(obj1); | |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8743 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8745 | { |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
2f4c0a16 | 8752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8753 | return resultobj; |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj; | |
8761 | wxImage *arg1 = (wxImage *) 0 ; | |
8762 | int arg2 ; | |
8763 | int arg3 ; | |
8764 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8765 | PyObject * obj1 = 0 ; |
8766 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8767 | char *kwnames[] = { |
8768 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8769 | }; | |
8770 | ||
8edf1c75 | 8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8774 | arg2 = (int) SWIG_AsInt(obj1); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | arg3 = (int) SWIG_AsInt(obj2); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8778 | { |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | (arg1)->Create(arg2,arg3); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
8785 | Py_INCREF(Py_None); resultobj = Py_None; | |
8786 | return resultobj; | |
8787 | fail: | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
8792 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject *resultobj; | |
8794 | wxImage *arg1 = (wxImage *) 0 ; | |
8795 | PyObject * obj0 = 0 ; | |
8796 | char *kwnames[] = { | |
8797 | (char *) "self", NULL | |
8798 | }; | |
8799 | ||
8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8803 | { |
8804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8805 | (arg1)->Destroy(); | |
8806 | ||
8807 | wxPyEndAllowThreads(__tstate); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | } | |
8810 | Py_INCREF(Py_None); resultobj = Py_None; | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxImage *arg1 = (wxImage *) 0 ; | |
8820 | int arg2 ; | |
8821 | int arg3 ; | |
8822 | SwigValueWrapper< wxImage > result; | |
8823 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8824 | PyObject * obj1 = 0 ; |
8825 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8826 | char *kwnames[] = { |
8827 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8828 | }; | |
8829 | ||
8edf1c75 | 8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8833 | arg2 = (int) SWIG_AsInt(obj1); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | arg3 = (int) SWIG_AsInt(obj2); | |
8836 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8837 | { |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | result = (arg1)->Scale(arg2,arg3); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | { | |
8845 | wxImage * resultptr; | |
8846 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8848 | } |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxImage *arg1 = (wxImage *) 0 ; | |
8858 | int arg2 ; | |
8859 | int arg3 ; | |
8860 | SwigValueWrapper< wxImage > result; | |
8861 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8862 | PyObject * obj1 = 0 ; |
8863 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8864 | char *kwnames[] = { |
8865 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8866 | }; | |
8867 | ||
8edf1c75 | 8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8871 | arg2 = (int) SWIG_AsInt(obj1); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
8873 | arg3 = (int) SWIG_AsInt(obj2); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8875 | { |
8876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8877 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8878 | ||
8879 | wxPyEndAllowThreads(__tstate); | |
8880 | if (PyErr_Occurred()) SWIG_fail; | |
8881 | } | |
8882 | { | |
8883 | wxImage * resultptr; | |
8884 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8886 | } |
8887 | return resultobj; | |
8888 | fail: | |
8889 | return NULL; | |
8890 | } | |
8891 | ||
8892 | ||
8893 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8894 | PyObject *resultobj; | |
8895 | wxImage *arg1 = (wxImage *) 0 ; | |
8896 | int arg2 ; | |
8897 | int arg3 ; | |
8898 | wxImage *result; | |
8899 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8900 | PyObject * obj1 = 0 ; |
8901 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8902 | char *kwnames[] = { |
8903 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8904 | }; | |
8905 | ||
8edf1c75 | 8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8909 | arg2 = (int) SWIG_AsInt(obj1); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | arg3 = (int) SWIG_AsInt(obj2); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8913 | { |
8914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8915 | { | |
8916 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8917 | result = (wxImage *) &_result_ref; | |
8918 | } | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
2f4c0a16 | 8923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
8924 | return resultobj; |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
8930 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8931 | PyObject *resultobj; | |
8932 | wxImage *arg1 = (wxImage *) 0 ; | |
8933 | int arg2 ; | |
8934 | int arg3 ; | |
8935 | unsigned char arg4 ; | |
8936 | unsigned char arg5 ; | |
8937 | unsigned char arg6 ; | |
8938 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8939 | PyObject * obj1 = 0 ; |
8940 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8941 | PyObject * obj3 = 0 ; |
8942 | PyObject * obj4 = 0 ; | |
8943 | PyObject * obj5 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
8946 | }; | |
8947 | ||
8edf1c75 | 8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
8949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8951 | arg2 = (int) SWIG_AsInt(obj1); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | arg3 = (int) SWIG_AsInt(obj2); | |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8961 | { |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | Py_INCREF(Py_None); resultobj = Py_None; | |
8969 | return resultobj; | |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj; | |
8977 | wxImage *arg1 = (wxImage *) 0 ; | |
8978 | int arg2 ; | |
8979 | int arg3 ; | |
8980 | unsigned char result; | |
8981 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8982 | PyObject * obj1 = 0 ; |
8983 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8984 | char *kwnames[] = { |
8985 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8986 | }; | |
8987 | ||
8edf1c75 | 8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8991 | arg2 = (int) SWIG_AsInt(obj1); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | arg3 = (int) SWIG_AsInt(obj2); | |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8995 | { |
8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8997 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
8998 | ||
8999 | wxPyEndAllowThreads(__tstate); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | } | |
2f4c0a16 | 9002 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9003 | return resultobj; |
9004 | fail: | |
9005 | return NULL; | |
9006 | } | |
9007 | ||
9008 | ||
9009 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9010 | PyObject *resultobj; | |
9011 | wxImage *arg1 = (wxImage *) 0 ; | |
9012 | int arg2 ; | |
9013 | int arg3 ; | |
9014 | unsigned char result; | |
9015 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9016 | PyObject * obj1 = 0 ; |
9017 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9018 | char *kwnames[] = { |
9019 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9020 | }; | |
9021 | ||
8edf1c75 | 9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9025 | arg2 = (int) SWIG_AsInt(obj1); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | arg3 = (int) SWIG_AsInt(obj2); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9029 | { |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
2f4c0a16 | 9036 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9037 | return resultobj; |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
9043 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxImage *arg1 = (wxImage *) 0 ; | |
9046 | int arg2 ; | |
9047 | int arg3 ; | |
9048 | unsigned char result; | |
9049 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9050 | PyObject * obj1 = 0 ; |
9051 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9052 | char *kwnames[] = { |
9053 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9054 | }; | |
9055 | ||
8edf1c75 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9059 | arg2 = (int) SWIG_AsInt(obj1); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | arg3 = (int) SWIG_AsInt(obj2); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9063 | { |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9065 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9066 | ||
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
2f4c0a16 | 9070 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9071 | return resultobj; |
9072 | fail: | |
9073 | return NULL; | |
9074 | } | |
9075 | ||
9076 | ||
9077 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject *resultobj; | |
9079 | wxImage *arg1 = (wxImage *) 0 ; | |
9080 | int arg2 ; | |
9081 | int arg3 ; | |
9082 | unsigned char arg4 ; | |
9083 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9084 | PyObject * obj1 = 0 ; |
9085 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9086 | PyObject * obj3 = 0 ; |
9087 | char *kwnames[] = { | |
9088 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9089 | }; | |
9090 | ||
8edf1c75 | 9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9094 | arg2 = (int) SWIG_AsInt(obj1); | |
9095 | if (PyErr_Occurred()) SWIG_fail; | |
9096 | arg3 = (int) SWIG_AsInt(obj2); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9100 | { |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | Py_INCREF(Py_None); resultobj = Py_None; | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxImage *arg1 = (wxImage *) 0 ; | |
9117 | int arg2 ; | |
9118 | int arg3 ; | |
9119 | unsigned char result; | |
9120 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9121 | PyObject * obj1 = 0 ; |
9122 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9123 | char *kwnames[] = { |
9124 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9125 | }; | |
9126 | ||
8edf1c75 | 9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9130 | arg2 = (int) SWIG_AsInt(obj1); | |
9131 | if (PyErr_Occurred()) SWIG_fail; | |
9132 | arg3 = (int) SWIG_AsInt(obj2); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9134 | { |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9136 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9137 | ||
9138 | wxPyEndAllowThreads(__tstate); | |
9139 | if (PyErr_Occurred()) SWIG_fail; | |
9140 | } | |
2f4c0a16 | 9141 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9142 | return resultobj; |
9143 | fail: | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
9148 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9149 | PyObject *resultobj; | |
9150 | wxImage *arg1 = (wxImage *) 0 ; | |
9151 | bool result; | |
9152 | PyObject * obj0 = 0 ; | |
9153 | char *kwnames[] = { | |
9154 | (char *) "self", NULL | |
9155 | }; | |
9156 | ||
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9160 | { |
9161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9162 | result = (bool)(arg1)->HasAlpha(); | |
9163 | ||
9164 | wxPyEndAllowThreads(__tstate); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | } | |
4e760a36 | 9167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9168 | return resultobj; |
9169 | fail: | |
9170 | return NULL; | |
9171 | } | |
9172 | ||
9173 | ||
9174 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject *resultobj; | |
9176 | wxImage *arg1 = (wxImage *) 0 ; | |
9177 | byte *arg2 = (byte *) 0 ; | |
9178 | byte *arg3 = (byte *) 0 ; | |
9179 | byte *arg4 = (byte *) 0 ; | |
9180 | byte arg5 = (byte) 0 ; | |
9181 | byte arg6 = (byte) 0 ; | |
9182 | byte arg7 = (byte) 0 ; | |
9183 | bool result; | |
9184 | byte temp2 ; | |
9185 | byte temp3 ; | |
9186 | byte temp4 ; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | PyObject * obj1 = 0 ; | |
9189 | PyObject * obj2 = 0 ; | |
9190 | PyObject * obj3 = 0 ; | |
9191 | char *kwnames[] = { | |
9192 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9193 | }; | |
9194 | ||
9195 | arg2 = &temp2; | |
9196 | arg3 = &temp3; | |
9197 | arg4 = &temp4; | |
9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9201 | if (obj1) { |
2f4c0a16 RD |
9202 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9204 | } |
9205 | if (obj2) { | |
2f4c0a16 RD |
9206 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9208 | } |
9209 | if (obj3) { | |
2f4c0a16 RD |
9210 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9211 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9212 | } |
9213 | { | |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9216 | ||
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
4e760a36 | 9220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9221 | { |
9222 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9223 | resultobj = t_output_helper(resultobj,o); | |
9224 | } | |
9225 | { | |
9226 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9227 | resultobj = t_output_helper(resultobj,o); | |
9228 | } | |
9229 | { | |
9230 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9231 | resultobj = t_output_helper(resultobj,o); | |
9232 | } | |
9233 | return resultobj; | |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
9239 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9240 | PyObject *resultobj; | |
9241 | wxImage *arg1 = (wxImage *) 0 ; | |
9242 | wxImage *arg2 = 0 ; | |
9243 | byte arg3 ; | |
9244 | byte arg4 ; | |
9245 | byte arg5 ; | |
9246 | bool result; | |
9247 | PyObject * obj0 = 0 ; | |
9248 | PyObject * obj1 = 0 ; | |
9249 | PyObject * obj2 = 0 ; | |
9250 | PyObject * obj3 = 0 ; | |
9251 | PyObject * obj4 = 0 ; | |
9252 | char *kwnames[] = { | |
9253 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9254 | }; | |
9255 | ||
9256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
9257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9259 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9260 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9261 | SWIG_fail; | |
d14a1e28 | 9262 | if (arg2 == NULL) { |
2f4c0a16 RD |
9263 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9264 | SWIG_fail; | |
83448d71 | 9265 | } |
2f4c0a16 RD |
9266 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9267 | if (PyErr_Occurred()) SWIG_fail; | |
9268 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9272 | { |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
4e760a36 | 9279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9280 | return resultobj; |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxString *arg1 = 0 ; | |
9289 | bool result; | |
423f194a | 9290 | bool temp1 = False ; |
d14a1e28 RD |
9291 | PyObject * obj0 = 0 ; |
9292 | char *kwnames[] = { | |
9293 | (char *) "name", NULL | |
9294 | }; | |
9295 | ||
9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9297 | { | |
9298 | arg1 = wxString_in_helper(obj0); | |
9299 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9300 | temp1 = True; |
d14a1e28 RD |
9301 | } |
9302 | { | |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9304 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9305 | ||
9306 | wxPyEndAllowThreads(__tstate); | |
9307 | if (PyErr_Occurred()) SWIG_fail; | |
9308 | } | |
4e760a36 | 9309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9310 | { |
9311 | if (temp1) | |
9312 | delete arg1; | |
9313 | } | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | { | |
9317 | if (temp1) | |
9318 | delete arg1; | |
9319 | } | |
9320 | return NULL; | |
9321 | } | |
9322 | ||
9323 | ||
9324 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9325 | PyObject *resultobj; | |
9326 | wxString *arg1 = 0 ; | |
9327 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9328 | int result; | |
423f194a | 9329 | bool temp1 = False ; |
d14a1e28 | 9330 | PyObject * obj0 = 0 ; |
8edf1c75 | 9331 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9332 | char *kwnames[] = { |
9333 | (char *) "name",(char *) "type", NULL | |
9334 | }; | |
9335 | ||
8edf1c75 | 9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9337 | { |
9338 | arg1 = wxString_in_helper(obj0); | |
9339 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9340 | temp1 = True; |
d14a1e28 | 9341 | } |
8edf1c75 | 9342 | if (obj1) { |
2f4c0a16 RD |
9343 | arg2 = (long) SWIG_AsLong(obj1); |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9345 | } |
d14a1e28 RD |
9346 | { |
9347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9348 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9349 | ||
9350 | wxPyEndAllowThreads(__tstate); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | } | |
2f4c0a16 | 9353 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9354 | { |
9355 | if (temp1) | |
9356 | delete arg1; | |
9357 | } | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | { | |
9361 | if (temp1) | |
9362 | delete arg1; | |
9363 | } | |
9364 | return NULL; | |
9365 | } | |
9366 | ||
9367 | ||
9368 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9369 | PyObject *resultobj; | |
9370 | wxImage *arg1 = (wxImage *) 0 ; | |
9371 | wxString *arg2 = 0 ; | |
9372 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9373 | int arg4 = (int) -1 ; | |
9374 | bool result; | |
423f194a | 9375 | bool temp2 = False ; |
d14a1e28 RD |
9376 | PyObject * obj0 = 0 ; |
9377 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9378 | PyObject * obj2 = 0 ; |
9379 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9380 | char *kwnames[] = { |
9381 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9382 | }; | |
9383 | ||
8edf1c75 | 9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9387 | { |
9388 | arg2 = wxString_in_helper(obj1); | |
9389 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9390 | temp2 = True; |
d14a1e28 | 9391 | } |
8edf1c75 | 9392 | if (obj2) { |
2f4c0a16 RD |
9393 | arg3 = (long) SWIG_AsLong(obj2); |
9394 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9395 | } |
9396 | if (obj3) { | |
2f4c0a16 RD |
9397 | arg4 = (int) SWIG_AsInt(obj3); |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9399 | } |
d14a1e28 RD |
9400 | { |
9401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9402 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9403 | ||
9404 | wxPyEndAllowThreads(__tstate); | |
9405 | if (PyErr_Occurred()) SWIG_fail; | |
9406 | } | |
4e760a36 | 9407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9408 | { |
9409 | if (temp2) | |
9410 | delete arg2; | |
9411 | } | |
9412 | return resultobj; | |
9413 | fail: | |
9414 | { | |
9415 | if (temp2) | |
9416 | delete arg2; | |
9417 | } | |
9418 | return NULL; | |
9419 | } | |
9420 | ||
9421 | ||
9422 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject *resultobj; | |
9424 | wxImage *arg1 = (wxImage *) 0 ; | |
9425 | wxString *arg2 = 0 ; | |
9426 | wxString *arg3 = 0 ; | |
9427 | int arg4 = (int) -1 ; | |
9428 | bool result; | |
423f194a RD |
9429 | bool temp2 = False ; |
9430 | bool temp3 = False ; | |
d14a1e28 RD |
9431 | PyObject * obj0 = 0 ; |
9432 | PyObject * obj1 = 0 ; | |
9433 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9434 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9435 | char *kwnames[] = { |
9436 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9437 | }; | |
9438 | ||
8edf1c75 | 9439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9442 | { |
9443 | arg2 = wxString_in_helper(obj1); | |
9444 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9445 | temp2 = True; |
d14a1e28 RD |
9446 | } |
9447 | { | |
9448 | arg3 = wxString_in_helper(obj2); | |
9449 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9450 | temp3 = True; |
d14a1e28 | 9451 | } |
8edf1c75 | 9452 | if (obj3) { |
2f4c0a16 RD |
9453 | arg4 = (int) SWIG_AsInt(obj3); |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9455 | } |
d14a1e28 RD |
9456 | { |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
4e760a36 | 9463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9464 | { |
9465 | if (temp2) | |
9466 | delete arg2; | |
9467 | } | |
9468 | { | |
9469 | if (temp3) | |
9470 | delete arg3; | |
9471 | } | |
9472 | return resultobj; | |
9473 | fail: | |
9474 | { | |
9475 | if (temp2) | |
9476 | delete arg2; | |
9477 | } | |
9478 | { | |
9479 | if (temp3) | |
9480 | delete arg3; | |
9481 | } | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj; | |
9488 | wxImage *arg1 = (wxImage *) 0 ; | |
9489 | wxString *arg2 = 0 ; | |
9490 | int arg3 ; | |
9491 | bool result; | |
423f194a | 9492 | bool temp2 = False ; |
d14a1e28 RD |
9493 | PyObject * obj0 = 0 ; |
9494 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9495 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9496 | char *kwnames[] = { |
9497 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9498 | }; | |
9499 | ||
8edf1c75 | 9500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9503 | { |
9504 | arg2 = wxString_in_helper(obj1); | |
9505 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9506 | temp2 = True; |
d14a1e28 | 9507 | } |
2f4c0a16 RD |
9508 | arg3 = (int) SWIG_AsInt(obj2); |
9509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9510 | { |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
4e760a36 | 9517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9518 | { |
9519 | if (temp2) | |
9520 | delete arg2; | |
9521 | } | |
9522 | return resultobj; | |
9523 | fail: | |
9524 | { | |
9525 | if (temp2) | |
9526 | delete arg2; | |
9527 | } | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj; | |
9534 | wxImage *arg1 = (wxImage *) 0 ; | |
9535 | wxString *arg2 = 0 ; | |
9536 | wxString *arg3 = 0 ; | |
9537 | bool result; | |
423f194a RD |
9538 | bool temp2 = False ; |
9539 | bool temp3 = False ; | |
d14a1e28 RD |
9540 | PyObject * obj0 = 0 ; |
9541 | PyObject * obj1 = 0 ; | |
9542 | PyObject * obj2 = 0 ; | |
9543 | char *kwnames[] = { | |
9544 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9545 | }; | |
9546 | ||
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9550 | { |
9551 | arg2 = wxString_in_helper(obj1); | |
9552 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9553 | temp2 = True; |
d14a1e28 RD |
9554 | } |
9555 | { | |
9556 | arg3 = wxString_in_helper(obj2); | |
9557 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9558 | temp3 = True; |
d14a1e28 RD |
9559 | } |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9562 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9563 | ||
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
4e760a36 | 9567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9568 | { |
9569 | if (temp2) | |
9570 | delete arg2; | |
9571 | } | |
9572 | { | |
9573 | if (temp3) | |
9574 | delete arg3; | |
9575 | } | |
9576 | return resultobj; | |
9577 | fail: | |
9578 | { | |
9579 | if (temp2) | |
9580 | delete arg2; | |
9581 | } | |
9582 | { | |
9583 | if (temp3) | |
9584 | delete arg3; | |
9585 | } | |
9586 | return NULL; | |
9587 | } | |
9588 | ||
9589 | ||
9590 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject *resultobj; | |
9592 | wxInputStream *arg1 = 0 ; | |
9593 | bool result; | |
9594 | wxPyInputStream *temp1 ; | |
9595 | bool created1 ; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | char *kwnames[] = { | |
9598 | (char *) "stream", NULL | |
9599 | }; | |
9600 | ||
9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9602 | { | |
9603 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9604 | arg1 = temp1->m_wxis; | |
423f194a | 9605 | created1 = False; |
d14a1e28 RD |
9606 | } else { |
9607 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9608 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9609 | if (arg1 == NULL) { |
9610 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9611 | SWIG_fail; | |
9612 | } | |
423f194a | 9613 | created1 = True; |
d14a1e28 RD |
9614 | } |
9615 | } | |
9616 | { | |
9617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9618 | result = (bool)wxImage::CanRead(*arg1); | |
9619 | ||
9620 | wxPyEndAllowThreads(__tstate); | |
9621 | if (PyErr_Occurred()) SWIG_fail; | |
9622 | } | |
4e760a36 | 9623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9624 | { |
9625 | if (created1) | |
9626 | delete arg1; | |
9627 | } | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | { | |
9631 | if (created1) | |
9632 | delete arg1; | |
9633 | } | |
9634 | return NULL; | |
9635 | } | |
9636 | ||
9637 | ||
9638 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9639 | PyObject *resultobj; | |
9640 | wxImage *arg1 = (wxImage *) 0 ; | |
9641 | wxInputStream *arg2 = 0 ; | |
9642 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9643 | int arg4 = (int) -1 ; | |
9644 | bool result; | |
9645 | wxPyInputStream *temp2 ; | |
9646 | bool created2 ; | |
9647 | PyObject * obj0 = 0 ; | |
9648 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9649 | PyObject * obj2 = 0 ; |
9650 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9651 | char *kwnames[] = { |
9652 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9653 | }; | |
9654 | ||
8edf1c75 | 9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9658 | { |
9659 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9660 | arg2 = temp2->m_wxis; | |
423f194a | 9661 | created2 = False; |
d14a1e28 RD |
9662 | } else { |
9663 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9664 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9665 | if (arg2 == NULL) { |
9666 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9667 | SWIG_fail; | |
9668 | } | |
423f194a | 9669 | created2 = True; |
d14a1e28 RD |
9670 | } |
9671 | } | |
8edf1c75 | 9672 | if (obj2) { |
2f4c0a16 RD |
9673 | arg3 = (long) SWIG_AsLong(obj2); |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9675 | } |
9676 | if (obj3) { | |
2f4c0a16 RD |
9677 | arg4 = (int) SWIG_AsInt(obj3); |
9678 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9679 | } |
d14a1e28 RD |
9680 | { |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
4e760a36 | 9687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9688 | { |
9689 | if (created2) | |
9690 | delete arg2; | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | { | |
9695 | if (created2) | |
9696 | delete arg2; | |
9697 | } | |
9698 | return NULL; | |
9699 | } | |
9700 | ||
9701 | ||
9702 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject *resultobj; | |
9704 | wxImage *arg1 = (wxImage *) 0 ; | |
9705 | wxInputStream *arg2 = 0 ; | |
9706 | wxString *arg3 = 0 ; | |
9707 | int arg4 = (int) -1 ; | |
9708 | bool result; | |
9709 | wxPyInputStream *temp2 ; | |
9710 | bool created2 ; | |
423f194a | 9711 | bool temp3 = False ; |
d14a1e28 RD |
9712 | PyObject * obj0 = 0 ; |
9713 | PyObject * obj1 = 0 ; | |
9714 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9715 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9716 | char *kwnames[] = { |
9717 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9718 | }; | |
9719 | ||
8edf1c75 | 9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9723 | { |
9724 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9725 | arg2 = temp2->m_wxis; | |
423f194a | 9726 | created2 = False; |
d14a1e28 RD |
9727 | } else { |
9728 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9729 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9730 | if (arg2 == NULL) { |
9731 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9732 | SWIG_fail; | |
9733 | } | |
423f194a | 9734 | created2 = True; |
d14a1e28 RD |
9735 | } |
9736 | } | |
9737 | { | |
9738 | arg3 = wxString_in_helper(obj2); | |
9739 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9740 | temp3 = True; |
d14a1e28 | 9741 | } |
8edf1c75 | 9742 | if (obj3) { |
2f4c0a16 RD |
9743 | arg4 = (int) SWIG_AsInt(obj3); |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9745 | } |
d14a1e28 RD |
9746 | { |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9748 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
9752 | } | |
4e760a36 | 9753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9754 | { |
9755 | if (created2) | |
9756 | delete arg2; | |
9757 | } | |
9758 | { | |
9759 | if (temp3) | |
9760 | delete arg3; | |
9761 | } | |
9762 | return resultobj; | |
9763 | fail: | |
9764 | { | |
9765 | if (created2) | |
9766 | delete arg2; | |
9767 | } | |
9768 | { | |
9769 | if (temp3) | |
9770 | delete arg3; | |
9771 | } | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj; | |
9778 | wxImage *arg1 = (wxImage *) 0 ; | |
9779 | bool result; | |
9780 | PyObject * obj0 = 0 ; | |
9781 | char *kwnames[] = { | |
9782 | (char *) "self", NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9788 | { |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (bool)(arg1)->Ok(); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
4e760a36 | 9795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9796 | return resultobj; |
9797 | fail: | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
9802 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject *resultobj; | |
9804 | wxImage *arg1 = (wxImage *) 0 ; | |
9805 | int result; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9814 | { |
9815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9816 | result = (int)(arg1)->GetWidth(); | |
9817 | ||
9818 | wxPyEndAllowThreads(__tstate); | |
9819 | if (PyErr_Occurred()) SWIG_fail; | |
9820 | } | |
2f4c0a16 | 9821 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9822 | return resultobj; |
9823 | fail: | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxImage *arg1 = (wxImage *) 0 ; | |
9831 | int result; | |
9832 | PyObject * obj0 = 0 ; | |
9833 | char *kwnames[] = { | |
9834 | (char *) "self", NULL | |
9835 | }; | |
9836 | ||
9837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9840 | { |
9841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9842 | result = (int)(arg1)->GetHeight(); | |
9843 | ||
9844 | wxPyEndAllowThreads(__tstate); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
2f4c0a16 | 9847 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9848 | return resultobj; |
9849 | fail: | |
9850 | return NULL; | |
9851 | } | |
9852 | ||
9853 | ||
9854 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9855 | PyObject *resultobj; | |
9856 | wxImage *arg1 = (wxImage *) 0 ; | |
9857 | wxRect *arg2 = 0 ; | |
9858 | SwigValueWrapper< wxImage > result; | |
9859 | wxRect temp2 ; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | PyObject * obj1 = 0 ; | |
9862 | char *kwnames[] = { | |
9863 | (char *) "self",(char *) "rect", NULL | |
9864 | }; | |
9865 | ||
9866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9869 | { |
9870 | arg2 = &temp2; | |
9871 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9872 | } | |
9873 | { | |
9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9875 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9876 | ||
9877 | wxPyEndAllowThreads(__tstate); | |
9878 | if (PyErr_Occurred()) SWIG_fail; | |
9879 | } | |
9880 | { | |
9881 | wxImage * resultptr; | |
9882 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9883 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9884 | } |
9885 | return resultobj; | |
9886 | fail: | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
9891 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9892 | PyObject *resultobj; | |
9893 | wxImage *arg1 = (wxImage *) 0 ; | |
9894 | SwigValueWrapper< wxImage > result; | |
9895 | PyObject * obj0 = 0 ; | |
9896 | char *kwnames[] = { | |
9897 | (char *) "self", NULL | |
9898 | }; | |
9899 | ||
9900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9903 | { |
9904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9905 | result = (arg1)->Copy(); | |
9906 | ||
9907 | wxPyEndAllowThreads(__tstate); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
9910 | { | |
9911 | wxImage * resultptr; | |
9912 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9914 | } |
9915 | return resultobj; | |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
9921 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject *resultobj; | |
9923 | wxImage *arg1 = (wxImage *) 0 ; | |
9924 | wxImage *arg2 = 0 ; | |
9925 | int arg3 ; | |
9926 | int arg4 ; | |
9927 | PyObject * obj0 = 0 ; | |
9928 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9929 | PyObject * obj2 = 0 ; |
9930 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9931 | char *kwnames[] = { |
9932 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
9933 | }; | |
9934 | ||
8edf1c75 | 9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9940 | SWIG_fail; | |
d14a1e28 | 9941 | if (arg2 == NULL) { |
2f4c0a16 RD |
9942 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9943 | SWIG_fail; | |
8edf1c75 | 9944 | } |
2f4c0a16 RD |
9945 | arg3 = (int) SWIG_AsInt(obj2); |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | arg4 = (int) SWIG_AsInt(obj3); | |
9948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9949 | { |
9950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9951 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
9952 | ||
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
9956 | Py_INCREF(Py_None); resultobj = Py_None; | |
9957 | return resultobj; | |
9958 | fail: | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
9963 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9964 | PyObject *resultobj; | |
9965 | wxImage *arg1 = (wxImage *) 0 ; | |
9966 | PyObject *result; | |
9967 | PyObject * obj0 = 0 ; | |
9968 | char *kwnames[] = { | |
9969 | (char *) "self", NULL | |
9970 | }; | |
9971 | ||
9972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9975 | { |
9976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9977 | result = (PyObject *)wxImage_GetData(arg1); | |
9978 | ||
9979 | wxPyEndAllowThreads(__tstate); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | } | |
9982 | resultobj = result; | |
9983 | return resultobj; | |
9984 | fail: | |
9985 | return NULL; | |
9986 | } | |
9987 | ||
9988 | ||
9989 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9990 | PyObject *resultobj; | |
9991 | wxImage *arg1 = (wxImage *) 0 ; | |
9992 | PyObject *arg2 = (PyObject *) 0 ; | |
9993 | PyObject * obj0 = 0 ; | |
9994 | PyObject * obj1 = 0 ; | |
9995 | char *kwnames[] = { | |
9996 | (char *) "self",(char *) "data", NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10002 | arg2 = obj1; |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | wxImage_SetData(arg1,arg2); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | Py_INCREF(Py_None); resultobj = Py_None; | |
10011 | return resultobj; | |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxImage *arg1 = (wxImage *) 0 ; | |
10020 | PyObject *result; | |
10021 | PyObject * obj0 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "self", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10029 | { |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | resultobj = result; | |
10037 | return resultobj; | |
10038 | fail: | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
10043 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10044 | PyObject *resultobj; | |
10045 | wxImage *arg1 = (wxImage *) 0 ; | |
10046 | PyObject *arg2 = (PyObject *) 0 ; | |
10047 | PyObject * obj0 = 0 ; | |
10048 | PyObject * obj1 = 0 ; | |
10049 | char *kwnames[] = { | |
10050 | (char *) "self",(char *) "data", NULL | |
10051 | }; | |
10052 | ||
10053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10056 | arg2 = obj1; |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | wxImage_SetDataBuffer(arg1,arg2); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
10064 | Py_INCREF(Py_None); resultobj = Py_None; | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj; | |
10073 | wxImage *arg1 = (wxImage *) 0 ; | |
10074 | PyObject *result; | |
10075 | PyObject * obj0 = 0 ; | |
10076 | char *kwnames[] = { | |
10077 | (char *) "self", NULL | |
10078 | }; | |
10079 | ||
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10083 | { |
10084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10085 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10086 | ||
10087 | wxPyEndAllowThreads(__tstate); | |
10088 | if (PyErr_Occurred()) SWIG_fail; | |
10089 | } | |
10090 | resultobj = result; | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | wxImage *arg1 = (wxImage *) 0 ; | |
10100 | PyObject *arg2 = (PyObject *) 0 ; | |
10101 | PyObject * obj0 = 0 ; | |
10102 | PyObject * obj1 = 0 ; | |
10103 | char *kwnames[] = { | |
10104 | (char *) "self",(char *) "data", NULL | |
10105 | }; | |
10106 | ||
10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10110 | arg2 = obj1; |
10111 | { | |
10112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10113 | wxImage_SetAlphaData(arg1,arg2); | |
10114 | ||
10115 | wxPyEndAllowThreads(__tstate); | |
10116 | if (PyErr_Occurred()) SWIG_fail; | |
10117 | } | |
10118 | Py_INCREF(Py_None); resultobj = Py_None; | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | return NULL; | |
10122 | } | |
10123 | ||
10124 | ||
10125 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10126 | PyObject *resultobj; | |
10127 | wxImage *arg1 = (wxImage *) 0 ; | |
10128 | PyObject *result; | |
10129 | PyObject * obj0 = 0 ; | |
10130 | char *kwnames[] = { | |
10131 | (char *) "self", NULL | |
10132 | }; | |
10133 | ||
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10137 | { |
10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10139 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10140 | ||
10141 | wxPyEndAllowThreads(__tstate); | |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
10143 | } | |
10144 | resultobj = result; | |
10145 | return resultobj; | |
10146 | fail: | |
10147 | return NULL; | |
10148 | } | |
10149 | ||
10150 | ||
10151 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10152 | PyObject *resultobj; | |
10153 | wxImage *arg1 = (wxImage *) 0 ; | |
10154 | PyObject *arg2 = (PyObject *) 0 ; | |
10155 | PyObject * obj0 = 0 ; | |
10156 | PyObject * obj1 = 0 ; | |
10157 | char *kwnames[] = { | |
10158 | (char *) "self",(char *) "data", NULL | |
10159 | }; | |
10160 | ||
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10164 | arg2 = obj1; |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
10172 | Py_INCREF(Py_None); resultobj = Py_None; | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxImage *arg1 = (wxImage *) 0 ; | |
10182 | unsigned char arg2 ; | |
10183 | unsigned char arg3 ; | |
10184 | unsigned char arg4 ; | |
10185 | PyObject * obj0 = 0 ; | |
10186 | PyObject * obj1 = 0 ; | |
10187 | PyObject * obj2 = 0 ; | |
10188 | PyObject * obj3 = 0 ; | |
10189 | char *kwnames[] = { | |
10190 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10191 | }; | |
10192 | ||
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10196 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10201 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10202 | { |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
10209 | Py_INCREF(Py_None); resultobj = Py_None; | |
10210 | return resultobj; | |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
10216 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject *resultobj; | |
10218 | wxImage *arg1 = (wxImage *) 0 ; | |
10219 | unsigned char result; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10228 | { |
10229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10230 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10231 | ||
10232 | wxPyEndAllowThreads(__tstate); | |
10233 | if (PyErr_Occurred()) SWIG_fail; | |
10234 | } | |
2f4c0a16 | 10235 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10236 | return resultobj; |
10237 | fail: | |
10238 | return NULL; | |
10239 | } | |
10240 | ||
10241 | ||
10242 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10243 | PyObject *resultobj; | |
10244 | wxImage *arg1 = (wxImage *) 0 ; | |
10245 | unsigned char result; | |
10246 | PyObject * obj0 = 0 ; | |
10247 | char *kwnames[] = { | |
10248 | (char *) "self", NULL | |
10249 | }; | |
10250 | ||
10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10254 | { |
10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10256 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10257 | ||
10258 | wxPyEndAllowThreads(__tstate); | |
10259 | if (PyErr_Occurred()) SWIG_fail; | |
10260 | } | |
2f4c0a16 | 10261 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10262 | return resultobj; |
10263 | fail: | |
10264 | return NULL; | |
10265 | } | |
10266 | ||
10267 | ||
10268 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10269 | PyObject *resultobj; | |
10270 | wxImage *arg1 = (wxImage *) 0 ; | |
10271 | unsigned char result; | |
10272 | PyObject * obj0 = 0 ; | |
10273 | char *kwnames[] = { | |
10274 | (char *) "self", NULL | |
10275 | }; | |
10276 | ||
10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10280 | { |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
2f4c0a16 | 10287 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10288 | return resultobj; |
10289 | fail: | |
10290 | return NULL; | |
10291 | } | |
10292 | ||
10293 | ||
10294 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10295 | PyObject *resultobj; | |
10296 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10297 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10298 | PyObject * obj0 = 0 ; |
10299 | PyObject * obj1 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self",(char *) "mask", NULL | |
10302 | }; | |
10303 | ||
10304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10307 | if (obj1) { |
2f4c0a16 RD |
10308 | arg2 = (bool) SWIG_AsBool(obj1); |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10310 | } |
10311 | { | |
10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10313 | (arg1)->SetMask(arg2); | |
10314 | ||
10315 | wxPyEndAllowThreads(__tstate); | |
10316 | if (PyErr_Occurred()) SWIG_fail; | |
10317 | } | |
10318 | Py_INCREF(Py_None); resultobj = Py_None; | |
10319 | return resultobj; | |
10320 | fail: | |
10321 | return NULL; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject *resultobj; | |
10327 | wxImage *arg1 = (wxImage *) 0 ; | |
10328 | bool result; | |
10329 | PyObject * obj0 = 0 ; | |
10330 | char *kwnames[] = { | |
10331 | (char *) "self", NULL | |
10332 | }; | |
10333 | ||
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10337 | { |
10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10339 | result = (bool)(arg1)->HasMask(); | |
10340 | ||
10341 | wxPyEndAllowThreads(__tstate); | |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
4e760a36 | 10344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10345 | return resultobj; |
10346 | fail: | |
10347 | return NULL; | |
10348 | } | |
10349 | ||
10350 | ||
10351 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10352 | PyObject *resultobj; | |
10353 | wxImage *arg1 = (wxImage *) 0 ; | |
10354 | double arg2 ; | |
10355 | wxPoint *arg3 = 0 ; | |
423f194a | 10356 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10357 | wxPoint *arg5 = (wxPoint *) NULL ; |
10358 | SwigValueWrapper< wxImage > result; | |
10359 | wxPoint temp3 ; | |
10360 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10362 | PyObject * obj2 = 0 ; |
10363 | PyObject * obj3 = 0 ; | |
10364 | PyObject * obj4 = 0 ; | |
10365 | char *kwnames[] = { | |
10366 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10367 | }; | |
10368 | ||
8edf1c75 | 10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10372 | arg2 = (double) SWIG_AsDouble(obj1); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10374 | { |
10375 | arg3 = &temp3; | |
10376 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10377 | } | |
10378 | if (obj3) { | |
2f4c0a16 RD |
10379 | arg4 = (bool) SWIG_AsBool(obj3); |
10380 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10381 | } |
10382 | if (obj4) { | |
2f4c0a16 RD |
10383 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10385 | } |
10386 | { | |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
10393 | { | |
10394 | wxImage * resultptr; | |
10395 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10396 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10397 | } |
10398 | return resultobj; | |
10399 | fail: | |
10400 | return NULL; | |
10401 | } | |
10402 | ||
10403 | ||
10404 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10405 | PyObject *resultobj; | |
10406 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10407 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10408 | SwigValueWrapper< wxImage > result; |
10409 | PyObject * obj0 = 0 ; | |
10410 | PyObject * obj1 = 0 ; | |
10411 | char *kwnames[] = { | |
10412 | (char *) "self",(char *) "clockwise", NULL | |
10413 | }; | |
10414 | ||
10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10418 | if (obj1) { |
2f4c0a16 RD |
10419 | arg2 = (bool) SWIG_AsBool(obj1); |
10420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10421 | } |
10422 | { | |
10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10424 | result = (arg1)->Rotate90(arg2); | |
10425 | ||
10426 | wxPyEndAllowThreads(__tstate); | |
10427 | if (PyErr_Occurred()) SWIG_fail; | |
10428 | } | |
10429 | { | |
10430 | wxImage * resultptr; | |
10431 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10432 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10433 | } |
10434 | return resultobj; | |
10435 | fail: | |
10436 | return NULL; | |
10437 | } | |
10438 | ||
10439 | ||
10440 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10441 | PyObject *resultobj; | |
10442 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10443 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10444 | SwigValueWrapper< wxImage > result; |
10445 | PyObject * obj0 = 0 ; | |
10446 | PyObject * obj1 = 0 ; | |
10447 | char *kwnames[] = { | |
10448 | (char *) "self",(char *) "horizontally", NULL | |
10449 | }; | |
10450 | ||
10451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10454 | if (obj1) { |
2f4c0a16 RD |
10455 | arg2 = (bool) SWIG_AsBool(obj1); |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10457 | } |
10458 | { | |
10459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10460 | result = (arg1)->Mirror(arg2); | |
10461 | ||
10462 | wxPyEndAllowThreads(__tstate); | |
10463 | if (PyErr_Occurred()) SWIG_fail; | |
10464 | } | |
10465 | { | |
10466 | wxImage * resultptr; | |
10467 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10469 | } |
10470 | return resultobj; | |
10471 | fail: | |
10472 | return NULL; | |
10473 | } | |
10474 | ||
10475 | ||
10476 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10477 | PyObject *resultobj; | |
10478 | wxImage *arg1 = (wxImage *) 0 ; | |
10479 | unsigned char arg2 ; | |
10480 | unsigned char arg3 ; | |
10481 | unsigned char arg4 ; | |
10482 | unsigned char arg5 ; | |
10483 | unsigned char arg6 ; | |
10484 | unsigned char arg7 ; | |
10485 | PyObject * obj0 = 0 ; | |
10486 | PyObject * obj1 = 0 ; | |
10487 | PyObject * obj2 = 0 ; | |
10488 | PyObject * obj3 = 0 ; | |
10489 | PyObject * obj4 = 0 ; | |
10490 | PyObject * obj5 = 0 ; | |
10491 | PyObject * obj6 = 0 ; | |
10492 | char *kwnames[] = { | |
10493 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10494 | }; | |
10495 | ||
10496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2f4c0a16 RD |
10497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10499 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10502 | if (PyErr_Occurred()) SWIG_fail; | |
10503 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10506 | if (PyErr_Occurred()) SWIG_fail; | |
10507 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10511 | { |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10514 | ||
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
10518 | Py_INCREF(Py_None); resultobj = Py_None; | |
10519 | return resultobj; | |
10520 | fail: | |
10521 | return NULL; | |
10522 | } | |
10523 | ||
10524 | ||
10525 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10526 | PyObject *resultobj; | |
10527 | wxImage *arg1 = (wxImage *) 0 ; | |
10528 | unsigned char arg2 ; | |
10529 | unsigned char arg3 ; | |
10530 | unsigned char arg4 ; | |
10531 | SwigValueWrapper< wxImage > result; | |
10532 | PyObject * obj0 = 0 ; | |
10533 | PyObject * obj1 = 0 ; | |
10534 | PyObject * obj2 = 0 ; | |
10535 | PyObject * obj3 = 0 ; | |
10536 | char *kwnames[] = { | |
10537 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10538 | }; | |
10539 | ||
10540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10543 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10544 | if (PyErr_Occurred()) SWIG_fail; | |
10545 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10549 | { |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | { | |
10557 | wxImage * resultptr; | |
10558 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10559 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10560 | } |
10561 | return resultobj; | |
10562 | fail: | |
10563 | return NULL; | |
10564 | } | |
10565 | ||
10566 | ||
10567 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10568 | PyObject *resultobj; | |
10569 | wxImage *arg1 = (wxImage *) 0 ; | |
10570 | wxString *arg2 = 0 ; | |
10571 | wxString *arg3 = 0 ; | |
423f194a RD |
10572 | bool temp2 = False ; |
10573 | bool temp3 = False ; | |
d14a1e28 RD |
10574 | PyObject * obj0 = 0 ; |
10575 | PyObject * obj1 = 0 ; | |
10576 | PyObject * obj2 = 0 ; | |
10577 | char *kwnames[] = { | |
10578 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10579 | }; | |
10580 | ||
10581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10584 | { |
10585 | arg2 = wxString_in_helper(obj1); | |
10586 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10587 | temp2 = True; |
d14a1e28 RD |
10588 | } |
10589 | { | |
10590 | arg3 = wxString_in_helper(obj2); | |
10591 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10592 | temp3 = True; |
d14a1e28 RD |
10593 | } |
10594 | { | |
10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10596 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10597 | ||
10598 | wxPyEndAllowThreads(__tstate); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | } | |
10601 | Py_INCREF(Py_None); resultobj = Py_None; | |
10602 | { | |
10603 | if (temp2) | |
10604 | delete arg2; | |
10605 | } | |
10606 | { | |
10607 | if (temp3) | |
10608 | delete arg3; | |
10609 | } | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | { | |
10613 | if (temp2) | |
10614 | delete arg2; | |
10615 | } | |
10616 | { | |
10617 | if (temp3) | |
10618 | delete arg3; | |
10619 | } | |
10620 | return NULL; | |
10621 | } | |
10622 | ||
10623 | ||
10624 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10625 | PyObject *resultobj; | |
10626 | wxImage *arg1 = (wxImage *) 0 ; | |
10627 | wxString *arg2 = 0 ; | |
10628 | int arg3 ; | |
423f194a | 10629 | bool temp2 = False ; |
d14a1e28 RD |
10630 | PyObject * obj0 = 0 ; |
10631 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10632 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10633 | char *kwnames[] = { |
10634 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10635 | }; | |
10636 | ||
8edf1c75 | 10637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10640 | { |
10641 | arg2 = wxString_in_helper(obj1); | |
10642 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10643 | temp2 = True; |
d14a1e28 | 10644 | } |
2f4c0a16 RD |
10645 | arg3 = (int) SWIG_AsInt(obj2); |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10647 | { |
10648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10649 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10650 | ||
10651 | wxPyEndAllowThreads(__tstate); | |
10652 | if (PyErr_Occurred()) SWIG_fail; | |
10653 | } | |
10654 | Py_INCREF(Py_None); resultobj = Py_None; | |
10655 | { | |
10656 | if (temp2) | |
10657 | delete arg2; | |
10658 | } | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | { | |
10662 | if (temp2) | |
10663 | delete arg2; | |
10664 | } | |
10665 | return NULL; | |
10666 | } | |
10667 | ||
10668 | ||
10669 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10670 | PyObject *resultobj; | |
10671 | wxImage *arg1 = (wxImage *) 0 ; | |
10672 | wxString *arg2 = 0 ; | |
10673 | wxString result; | |
423f194a | 10674 | bool temp2 = False ; |
d14a1e28 RD |
10675 | PyObject * obj0 = 0 ; |
10676 | PyObject * obj1 = 0 ; | |
10677 | char *kwnames[] = { | |
10678 | (char *) "self",(char *) "name", NULL | |
10679 | }; | |
10680 | ||
10681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10684 | { |
10685 | arg2 = wxString_in_helper(obj1); | |
10686 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10687 | temp2 = True; |
d14a1e28 RD |
10688 | } |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | } | |
10696 | { | |
10697 | #if wxUSE_UNICODE | |
10698 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10699 | #else | |
10700 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10701 | #endif | |
10702 | } | |
10703 | { | |
10704 | if (temp2) | |
10705 | delete arg2; | |
10706 | } | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | { | |
10710 | if (temp2) | |
10711 | delete arg2; | |
10712 | } | |
10713 | return NULL; | |
10714 | } | |
10715 | ||
10716 | ||
10717 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10718 | PyObject *resultobj; | |
10719 | wxImage *arg1 = (wxImage *) 0 ; | |
10720 | wxString *arg2 = 0 ; | |
10721 | int result; | |
423f194a | 10722 | bool temp2 = False ; |
d14a1e28 RD |
10723 | PyObject * obj0 = 0 ; |
10724 | PyObject * obj1 = 0 ; | |
10725 | char *kwnames[] = { | |
10726 | (char *) "self",(char *) "name", NULL | |
10727 | }; | |
10728 | ||
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10732 | { |
10733 | arg2 = wxString_in_helper(obj1); | |
10734 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10735 | temp2 = True; |
d14a1e28 RD |
10736 | } |
10737 | { | |
10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10739 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10740 | ||
10741 | wxPyEndAllowThreads(__tstate); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | } | |
2f4c0a16 | 10744 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10745 | { |
10746 | if (temp2) | |
10747 | delete arg2; | |
10748 | } | |
10749 | return resultobj; | |
10750 | fail: | |
10751 | { | |
10752 | if (temp2) | |
10753 | delete arg2; | |
10754 | } | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
10759 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10760 | PyObject *resultobj; | |
10761 | wxImage *arg1 = (wxImage *) 0 ; | |
10762 | wxString *arg2 = 0 ; | |
10763 | bool result; | |
423f194a | 10764 | bool temp2 = False ; |
d14a1e28 RD |
10765 | PyObject * obj0 = 0 ; |
10766 | PyObject * obj1 = 0 ; | |
10767 | char *kwnames[] = { | |
10768 | (char *) "self",(char *) "name", NULL | |
10769 | }; | |
10770 | ||
10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10774 | { |
10775 | arg2 = wxString_in_helper(obj1); | |
10776 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10777 | temp2 = True; |
d14a1e28 RD |
10778 | } |
10779 | { | |
10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10781 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10782 | ||
10783 | wxPyEndAllowThreads(__tstate); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
4e760a36 | 10786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10787 | { |
10788 | if (temp2) | |
10789 | delete arg2; | |
10790 | } | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | { | |
10794 | if (temp2) | |
10795 | delete arg2; | |
10796 | } | |
10797 | return NULL; | |
10798 | } | |
10799 | ||
10800 | ||
10801 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10802 | PyObject *resultobj; | |
10803 | wxImage *arg1 = (wxImage *) 0 ; | |
10804 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10805 | unsigned long result; | |
10806 | PyObject * obj0 = 0 ; | |
10807 | PyObject * obj1 = 0 ; | |
10808 | char *kwnames[] = { | |
10809 | (char *) "self",(char *) "stopafter", NULL | |
10810 | }; | |
10811 | ||
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10815 | if (obj1) { |
2f4c0a16 RD |
10816 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10818 | } |
10819 | { | |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
2f4c0a16 | 10826 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10827 | return resultobj; |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10834 | PyObject *resultobj; | |
10835 | wxImage *arg1 = (wxImage *) 0 ; | |
10836 | wxImageHistogram *arg2 = 0 ; | |
10837 | unsigned long result; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | PyObject * obj1 = 0 ; | |
10840 | char *kwnames[] = { | |
10841 | (char *) "self",(char *) "h", NULL | |
10842 | }; | |
10843 | ||
10844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
10848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10849 | SWIG_fail; | |
d14a1e28 | 10850 | if (arg2 == NULL) { |
2f4c0a16 RD |
10851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10852 | SWIG_fail; | |
d14a1e28 RD |
10853 | } |
10854 | { | |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10857 | ||
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | } | |
2f4c0a16 | 10861 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10862 | return resultobj; |
10863 | fail: | |
10864 | return NULL; | |
10865 | } | |
10866 | ||
10867 | ||
10868 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10869 | PyObject *resultobj; | |
10870 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10871 | PyObject * obj0 = 0 ; | |
10872 | char *kwnames[] = { | |
10873 | (char *) "handler", NULL | |
10874 | }; | |
10875 | ||
10876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10879 | { |
10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10881 | wxImage::AddHandler(arg1); | |
10882 | ||
10883 | wxPyEndAllowThreads(__tstate); | |
10884 | if (PyErr_Occurred()) SWIG_fail; | |
10885 | } | |
10886 | Py_INCREF(Py_None); resultobj = Py_None; | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10894 | PyObject *resultobj; | |
10895 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | char *kwnames[] = { | |
10898 | (char *) "handler", NULL | |
10899 | }; | |
10900 | ||
10901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10904 | { |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | wxImage::InsertHandler(arg1); | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | Py_INCREF(Py_None); resultobj = Py_None; | |
10912 | return resultobj; | |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
10918 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10919 | PyObject *resultobj; | |
10920 | wxString *arg1 = 0 ; | |
10921 | bool result; | |
423f194a | 10922 | bool temp1 = False ; |
d14a1e28 RD |
10923 | PyObject * obj0 = 0 ; |
10924 | char *kwnames[] = { | |
10925 | (char *) "name", NULL | |
10926 | }; | |
10927 | ||
10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
10929 | { | |
10930 | arg1 = wxString_in_helper(obj0); | |
10931 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10932 | temp1 = True; |
d14a1e28 RD |
10933 | } |
10934 | { | |
10935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10936 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
10937 | ||
10938 | wxPyEndAllowThreads(__tstate); | |
10939 | if (PyErr_Occurred()) SWIG_fail; | |
10940 | } | |
4e760a36 | 10941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10942 | { |
10943 | if (temp1) | |
10944 | delete arg1; | |
10945 | } | |
10946 | return resultobj; | |
10947 | fail: | |
10948 | { | |
10949 | if (temp1) | |
10950 | delete arg1; | |
10951 | } | |
10952 | return NULL; | |
10953 | } | |
10954 | ||
10955 | ||
10956 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10957 | PyObject *resultobj; | |
10958 | wxString result; | |
10959 | char *kwnames[] = { | |
10960 | NULL | |
10961 | }; | |
10962 | ||
10963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
10964 | { | |
10965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10966 | result = wxImage::GetImageExtWildcard(); | |
10967 | ||
10968 | wxPyEndAllowThreads(__tstate); | |
10969 | if (PyErr_Occurred()) SWIG_fail; | |
10970 | } | |
10971 | { | |
10972 | #if wxUSE_UNICODE | |
10973 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10974 | #else | |
10975 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10976 | #endif | |
10977 | } | |
10978 | return resultobj; | |
10979 | fail: | |
10980 | return NULL; | |
10981 | } | |
10982 | ||
10983 | ||
10984 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10985 | PyObject *resultobj; | |
10986 | wxImage *arg1 = (wxImage *) 0 ; | |
10987 | wxBitmap result; | |
10988 | PyObject * obj0 = 0 ; | |
10989 | char *kwnames[] = { | |
10990 | (char *) "self", NULL | |
10991 | }; | |
10992 | ||
10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10996 | { |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | result = wxImage_ConvertToBitmap(arg1); | |
10999 | ||
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
11003 | { | |
11004 | wxBitmap * resultptr; | |
11005 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11007 | } |
11008 | return resultobj; | |
11009 | fail: | |
11010 | return NULL; | |
11011 | } | |
11012 | ||
11013 | ||
11014 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11015 | PyObject *resultobj; | |
11016 | wxImage *arg1 = (wxImage *) 0 ; | |
11017 | unsigned char arg2 ; | |
11018 | unsigned char arg3 ; | |
11019 | unsigned char arg4 ; | |
11020 | wxBitmap result; | |
11021 | PyObject * obj0 = 0 ; | |
11022 | PyObject * obj1 = 0 ; | |
11023 | PyObject * obj2 = 0 ; | |
11024 | PyObject * obj3 = 0 ; | |
11025 | char *kwnames[] = { | |
11026 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11027 | }; | |
11028 | ||
11029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11032 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11033 | if (PyErr_Occurred()) SWIG_fail; | |
11034 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11038 | { |
11039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11040 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11041 | ||
11042 | wxPyEndAllowThreads(__tstate); | |
11043 | if (PyErr_Occurred()) SWIG_fail; | |
11044 | } | |
11045 | { | |
11046 | wxBitmap * resultptr; | |
11047 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11049 | } |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11057 | PyObject *obj; | |
11058 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11059 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11060 | Py_INCREF(obj); | |
11061 | return Py_BuildValue((char *)""); | |
11062 | } | |
11063 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject *resultobj; | |
11065 | char *kwnames[] = { | |
11066 | NULL | |
11067 | }; | |
11068 | ||
11069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | wxInitAllImageHandlers(); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | Py_INCREF(Py_None); resultobj = Py_None; | |
11078 | return resultobj; | |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
2f4c0a16 | 11084 | static int _wrap_NullImage_set(PyObject *_val) { |
d14a1e28 RD |
11085 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11086 | return 1; | |
11087 | } | |
11088 | ||
11089 | ||
11090 | static PyObject *_wrap_NullImage_get() { | |
11091 | PyObject *pyobj; | |
11092 | ||
2f4c0a16 | 11093 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11094 | return pyobj; |
11095 | } | |
11096 | ||
11097 | ||
2f4c0a16 | 11098 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { |
d14a1e28 RD |
11099 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11100 | return 1; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11105 | PyObject *pyobj; | |
11106 | ||
11107 | { | |
11108 | #if wxUSE_UNICODE | |
11109 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11110 | #else | |
11111 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11112 | #endif | |
11113 | } | |
11114 | return pyobj; | |
11115 | } | |
11116 | ||
11117 | ||
2f4c0a16 | 11118 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { |
d14a1e28 RD |
11119 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11120 | return 1; | |
11121 | } | |
11122 | ||
11123 | ||
11124 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11125 | PyObject *pyobj; | |
11126 | ||
11127 | { | |
11128 | #if wxUSE_UNICODE | |
11129 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11130 | #else | |
11131 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11132 | #endif | |
11133 | } | |
11134 | return pyobj; | |
11135 | } | |
11136 | ||
11137 | ||
2f4c0a16 | 11138 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { |
d14a1e28 RD |
11139 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11140 | return 1; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11145 | PyObject *pyobj; | |
11146 | ||
11147 | { | |
11148 | #if wxUSE_UNICODE | |
11149 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11150 | #else | |
11151 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11152 | #endif | |
11153 | } | |
11154 | return pyobj; | |
11155 | } | |
11156 | ||
11157 | ||
2f4c0a16 | 11158 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { |
d14a1e28 RD |
11159 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11160 | return 1; | |
11161 | } | |
11162 | ||
11163 | ||
11164 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11165 | PyObject *pyobj; | |
11166 | ||
11167 | { | |
11168 | #if wxUSE_UNICODE | |
11169 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11170 | #else | |
11171 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11172 | #endif | |
11173 | } | |
11174 | return pyobj; | |
11175 | } | |
11176 | ||
11177 | ||
2f4c0a16 | 11178 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { |
d14a1e28 RD |
11179 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11180 | return 1; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11185 | PyObject *pyobj; | |
11186 | ||
11187 | { | |
11188 | #if wxUSE_UNICODE | |
11189 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11190 | #else | |
11191 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11192 | #endif | |
11193 | } | |
11194 | return pyobj; | |
11195 | } | |
11196 | ||
11197 | ||
11198 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject *resultobj; | |
11200 | wxBMPHandler *result; | |
11201 | char *kwnames[] = { | |
11202 | NULL | |
11203 | }; | |
11204 | ||
11205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
2f4c0a16 | 11213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11214 | return resultobj; |
11215 | fail: | |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
11220 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11221 | PyObject *obj; | |
11222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11223 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11224 | Py_INCREF(obj); | |
11225 | return Py_BuildValue((char *)""); | |
11226 | } | |
11227 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxICOHandler *result; | |
11230 | char *kwnames[] = { | |
11231 | NULL | |
11232 | }; | |
11233 | ||
11234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11235 | { | |
11236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11237 | result = (wxICOHandler *)new wxICOHandler(); | |
11238 | ||
11239 | wxPyEndAllowThreads(__tstate); | |
11240 | if (PyErr_Occurred()) SWIG_fail; | |
11241 | } | |
2f4c0a16 | 11242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11243 | return resultobj; |
11244 | fail: | |
11245 | return NULL; | |
11246 | } | |
11247 | ||
11248 | ||
11249 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11250 | PyObject *obj; | |
11251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11252 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11253 | Py_INCREF(obj); | |
11254 | return Py_BuildValue((char *)""); | |
11255 | } | |
11256 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11257 | PyObject *resultobj; | |
11258 | wxCURHandler *result; | |
11259 | char *kwnames[] = { | |
11260 | NULL | |
11261 | }; | |
11262 | ||
11263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | result = (wxCURHandler *)new wxCURHandler(); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
2f4c0a16 | 11271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11272 | return resultobj; |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11279 | PyObject *obj; | |
11280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11281 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11282 | Py_INCREF(obj); | |
11283 | return Py_BuildValue((char *)""); | |
11284 | } | |
11285 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11286 | PyObject *resultobj; | |
11287 | wxANIHandler *result; | |
11288 | char *kwnames[] = { | |
11289 | NULL | |
11290 | }; | |
11291 | ||
11292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11293 | { | |
11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11295 | result = (wxANIHandler *)new wxANIHandler(); | |
11296 | ||
11297 | wxPyEndAllowThreads(__tstate); | |
11298 | if (PyErr_Occurred()) SWIG_fail; | |
11299 | } | |
2f4c0a16 | 11300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11301 | return resultobj; |
11302 | fail: | |
11303 | return NULL; | |
11304 | } | |
11305 | ||
11306 | ||
11307 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11308 | PyObject *obj; | |
11309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11310 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11311 | Py_INCREF(obj); | |
11312 | return Py_BuildValue((char *)""); | |
11313 | } | |
11314 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11315 | PyObject *resultobj; | |
11316 | wxPNGHandler *result; | |
11317 | char *kwnames[] = { | |
11318 | NULL | |
11319 | }; | |
11320 | ||
11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11322 | { | |
11323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11324 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11325 | ||
11326 | wxPyEndAllowThreads(__tstate); | |
11327 | if (PyErr_Occurred()) SWIG_fail; | |
11328 | } | |
2f4c0a16 | 11329 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11330 | return resultobj; |
11331 | fail: | |
11332 | return NULL; | |
11333 | } | |
11334 | ||
11335 | ||
11336 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11337 | PyObject *obj; | |
11338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11339 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11340 | Py_INCREF(obj); | |
11341 | return Py_BuildValue((char *)""); | |
11342 | } | |
11343 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11344 | PyObject *resultobj; | |
11345 | wxGIFHandler *result; | |
11346 | char *kwnames[] = { | |
11347 | NULL | |
11348 | }; | |
11349 | ||
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11351 | { | |
11352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11353 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11354 | ||
11355 | wxPyEndAllowThreads(__tstate); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
11357 | } | |
2f4c0a16 | 11358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11359 | return resultobj; |
11360 | fail: | |
11361 | return NULL; | |
11362 | } | |
11363 | ||
11364 | ||
11365 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11366 | PyObject *obj; | |
11367 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11368 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11369 | Py_INCREF(obj); | |
11370 | return Py_BuildValue((char *)""); | |
11371 | } | |
11372 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11373 | PyObject *resultobj; | |
11374 | wxPCXHandler *result; | |
11375 | char *kwnames[] = { | |
11376 | NULL | |
11377 | }; | |
11378 | ||
11379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11380 | { | |
11381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11382 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11383 | ||
11384 | wxPyEndAllowThreads(__tstate); | |
11385 | if (PyErr_Occurred()) SWIG_fail; | |
11386 | } | |
2f4c0a16 | 11387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11388 | return resultobj; |
11389 | fail: | |
11390 | return NULL; | |
11391 | } | |
11392 | ||
11393 | ||
11394 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11395 | PyObject *obj; | |
11396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11397 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11398 | Py_INCREF(obj); | |
11399 | return Py_BuildValue((char *)""); | |
11400 | } | |
11401 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxJPEGHandler *result; | |
11404 | char *kwnames[] = { | |
11405 | NULL | |
11406 | }; | |
11407 | ||
11408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11409 | { | |
11410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11411 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11412 | ||
11413 | wxPyEndAllowThreads(__tstate); | |
11414 | if (PyErr_Occurred()) SWIG_fail; | |
11415 | } | |
2f4c0a16 | 11416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11417 | return resultobj; |
11418 | fail: | |
11419 | return NULL; | |
11420 | } | |
11421 | ||
11422 | ||
11423 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11424 | PyObject *obj; | |
11425 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11426 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11427 | Py_INCREF(obj); | |
11428 | return Py_BuildValue((char *)""); | |
11429 | } | |
11430 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11431 | PyObject *resultobj; | |
11432 | wxPNMHandler *result; | |
11433 | char *kwnames[] = { | |
11434 | NULL | |
11435 | }; | |
11436 | ||
11437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11438 | { | |
11439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11440 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11441 | ||
11442 | wxPyEndAllowThreads(__tstate); | |
11443 | if (PyErr_Occurred()) SWIG_fail; | |
11444 | } | |
2f4c0a16 | 11445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11446 | return resultobj; |
11447 | fail: | |
11448 | return NULL; | |
11449 | } | |
11450 | ||
11451 | ||
11452 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11453 | PyObject *obj; | |
11454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11455 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11456 | Py_INCREF(obj); | |
11457 | return Py_BuildValue((char *)""); | |
11458 | } | |
11459 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11460 | PyObject *resultobj; | |
11461 | wxXPMHandler *result; | |
11462 | char *kwnames[] = { | |
11463 | NULL | |
11464 | }; | |
11465 | ||
11466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11467 | { | |
11468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11469 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11470 | ||
11471 | wxPyEndAllowThreads(__tstate); | |
11472 | if (PyErr_Occurred()) SWIG_fail; | |
11473 | } | |
2f4c0a16 | 11474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11475 | return resultobj; |
11476 | fail: | |
11477 | return NULL; | |
11478 | } | |
11479 | ||
11480 | ||
11481 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11482 | PyObject *obj; | |
11483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11484 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11485 | Py_INCREF(obj); | |
11486 | return Py_BuildValue((char *)""); | |
11487 | } | |
11488 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11489 | PyObject *resultobj; | |
11490 | wxTIFFHandler *result; | |
11491 | char *kwnames[] = { | |
11492 | NULL | |
11493 | }; | |
11494 | ||
11495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11496 | { | |
11497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11498 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11499 | ||
11500 | wxPyEndAllowThreads(__tstate); | |
11501 | if (PyErr_Occurred()) SWIG_fail; | |
11502 | } | |
2f4c0a16 | 11503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11504 | return resultobj; |
11505 | fail: | |
11506 | return NULL; | |
11507 | } | |
11508 | ||
11509 | ||
11510 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11511 | PyObject *obj; | |
11512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11513 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11514 | Py_INCREF(obj); | |
11515 | return Py_BuildValue((char *)""); | |
11516 | } | |
11517 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11518 | PyObject *resultobj; | |
11519 | wxEvtHandler *result; | |
11520 | char *kwnames[] = { | |
11521 | NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | { | |
11533 | resultobj = wxPyMake_wxObject(result); | |
11534 | } | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11544 | wxEvtHandler *result; | |
11545 | PyObject * obj0 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11553 | { |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | { | |
11561 | resultobj = wxPyMake_wxObject(result); | |
11562 | } | |
11563 | return resultobj; | |
11564 | fail: | |
11565 | return NULL; | |
11566 | } | |
11567 | ||
11568 | ||
11569 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11570 | PyObject *resultobj; | |
11571 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11572 | wxEvtHandler *result; | |
11573 | PyObject * obj0 = 0 ; | |
11574 | char *kwnames[] = { | |
11575 | (char *) "self", NULL | |
11576 | }; | |
11577 | ||
11578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11581 | { |
11582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11583 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11584 | ||
11585 | wxPyEndAllowThreads(__tstate); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | } | |
11588 | { | |
11589 | resultobj = wxPyMake_wxObject(result); | |
11590 | } | |
11591 | return resultobj; | |
11592 | fail: | |
11593 | return NULL; | |
11594 | } | |
11595 | ||
11596 | ||
11597 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject *resultobj; | |
11599 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11600 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11601 | PyObject * obj0 = 0 ; | |
11602 | PyObject * obj1 = 0 ; | |
11603 | char *kwnames[] = { | |
11604 | (char *) "self",(char *) "handler", NULL | |
11605 | }; | |
11606 | ||
11607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11612 | { |
11613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11614 | (arg1)->SetNextHandler(arg2); | |
11615 | ||
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
11619 | Py_INCREF(Py_None); resultobj = Py_None; | |
11620 | return resultobj; | |
11621 | fail: | |
11622 | return NULL; | |
11623 | } | |
11624 | ||
11625 | ||
11626 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11627 | PyObject *resultobj; | |
11628 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11629 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11630 | PyObject * obj0 = 0 ; | |
11631 | PyObject * obj1 = 0 ; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "self",(char *) "handler", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11639 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11641 | { |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | (arg1)->SetPreviousHandler(arg2); | |
11644 | ||
11645 | wxPyEndAllowThreads(__tstate); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | Py_INCREF(Py_None); resultobj = Py_None; | |
11649 | return resultobj; | |
11650 | fail: | |
11651 | return NULL; | |
11652 | } | |
11653 | ||
11654 | ||
11655 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11656 | PyObject *resultobj; | |
11657 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11658 | bool result; | |
11659 | PyObject * obj0 = 0 ; | |
11660 | char *kwnames[] = { | |
11661 | (char *) "self", NULL | |
11662 | }; | |
11663 | ||
11664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11667 | { |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11670 | ||
11671 | wxPyEndAllowThreads(__tstate); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
4e760a36 | 11674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11675 | return resultobj; |
11676 | fail: | |
11677 | return NULL; | |
11678 | } | |
11679 | ||
11680 | ||
11681 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11682 | PyObject *resultobj; | |
11683 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11684 | bool arg2 ; | |
11685 | PyObject * obj0 = 0 ; | |
11686 | PyObject * obj1 = 0 ; | |
11687 | char *kwnames[] = { | |
11688 | (char *) "self",(char *) "enabled", NULL | |
11689 | }; | |
11690 | ||
11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11694 | arg2 = (bool) SWIG_AsBool(obj1); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11696 | { |
11697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11698 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11699 | ||
11700 | wxPyEndAllowThreads(__tstate); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | Py_INCREF(Py_None); resultobj = Py_None; | |
11704 | return resultobj; | |
11705 | fail: | |
11706 | return NULL; | |
11707 | } | |
11708 | ||
11709 | ||
11710 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11711 | PyObject *resultobj; | |
11712 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11713 | wxEvent *arg2 = 0 ; | |
11714 | bool result; | |
11715 | PyObject * obj0 = 0 ; | |
11716 | PyObject * obj1 = 0 ; | |
11717 | char *kwnames[] = { | |
11718 | (char *) "self",(char *) "event", NULL | |
11719 | }; | |
11720 | ||
11721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11726 | SWIG_fail; | |
d14a1e28 | 11727 | if (arg2 == NULL) { |
2f4c0a16 RD |
11728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11729 | SWIG_fail; | |
d14a1e28 RD |
11730 | } |
11731 | { | |
11732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11733 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11734 | ||
11735 | wxPyEndAllowThreads(__tstate); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | } | |
4e760a36 | 11738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11739 | return resultobj; |
11740 | fail: | |
11741 | return NULL; | |
11742 | } | |
11743 | ||
11744 | ||
11745 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11746 | PyObject *resultobj; | |
11747 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11748 | wxEvent *arg2 = 0 ; | |
11749 | PyObject * obj0 = 0 ; | |
11750 | PyObject * obj1 = 0 ; | |
11751 | char *kwnames[] = { | |
11752 | (char *) "self",(char *) "event", NULL | |
11753 | }; | |
11754 | ||
11755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11760 | SWIG_fail; | |
d14a1e28 | 11761 | if (arg2 == NULL) { |
2f4c0a16 RD |
11762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11763 | SWIG_fail; | |
d14a1e28 RD |
11764 | } |
11765 | { | |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | (arg1)->AddPendingEvent(*arg2); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | Py_INCREF(Py_None); resultobj = Py_None; | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | return NULL; | |
11776 | } | |
11777 | ||
11778 | ||
11779 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11780 | PyObject *resultobj; | |
11781 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11782 | PyObject * obj0 = 0 ; | |
11783 | char *kwnames[] = { | |
11784 | (char *) "self", NULL | |
11785 | }; | |
11786 | ||
11787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11790 | { |
11791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11792 | (arg1)->ProcessPendingEvents(); | |
11793 | ||
11794 | wxPyEndAllowThreads(__tstate); | |
11795 | if (PyErr_Occurred()) SWIG_fail; | |
11796 | } | |
11797 | Py_INCREF(Py_None); resultobj = Py_None; | |
11798 | return resultobj; | |
11799 | fail: | |
11800 | return NULL; | |
11801 | } | |
11802 | ||
11803 | ||
11804 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11805 | PyObject *resultobj; | |
11806 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11807 | int arg2 ; | |
11808 | int arg3 ; | |
11809 | int arg4 ; | |
11810 | PyObject *arg5 = (PyObject *) 0 ; | |
11811 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11812 | PyObject * obj1 = 0 ; |
11813 | PyObject * obj2 = 0 ; | |
11814 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11815 | PyObject * obj4 = 0 ; |
11816 | char *kwnames[] = { | |
11817 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11818 | }; | |
11819 | ||
8edf1c75 | 11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11823 | arg2 = (int) SWIG_AsInt(obj1); | |
11824 | if (PyErr_Occurred()) SWIG_fail; | |
11825 | arg3 = (int) SWIG_AsInt(obj2); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | arg4 = (int) SWIG_AsInt(obj3); | |
11828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11829 | arg5 = obj4; |
11830 | { | |
11831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11832 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11833 | ||
11834 | wxPyEndAllowThreads(__tstate); | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | } | |
11837 | Py_INCREF(Py_None); resultobj = Py_None; | |
11838 | return resultobj; | |
11839 | fail: | |
11840 | return NULL; | |
11841 | } | |
11842 | ||
11843 | ||
11844 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11845 | PyObject *resultobj; | |
11846 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11847 | int arg2 ; | |
11848 | int arg3 = (int) -1 ; | |
11849 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11850 | bool result; | |
11851 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11852 | PyObject * obj1 = 0 ; |
11853 | PyObject * obj2 = 0 ; | |
11854 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11855 | char *kwnames[] = { |
11856 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11857 | }; | |
11858 | ||
8edf1c75 | 11859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11862 | arg2 = (int) SWIG_AsInt(obj1); | |
11863 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11864 | if (obj2) { |
2f4c0a16 RD |
11865 | arg3 = (int) SWIG_AsInt(obj2); |
11866 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11867 | } |
11868 | if (obj3) { | |
2f4c0a16 RD |
11869 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11871 | } |
d14a1e28 RD |
11872 | { |
11873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11874 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11875 | ||
11876 | wxPyEndAllowThreads(__tstate); | |
11877 | if (PyErr_Occurred()) SWIG_fail; | |
11878 | } | |
4e760a36 | 11879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11880 | return resultobj; |
11881 | fail: | |
11882 | return NULL; | |
11883 | } | |
11884 | ||
11885 | ||
11886 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11887 | PyObject *resultobj; | |
11888 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11889 | PyObject *arg2 = (PyObject *) 0 ; | |
11890 | PyObject * obj0 = 0 ; | |
11891 | PyObject * obj1 = 0 ; | |
11892 | char *kwnames[] = { | |
11893 | (char *) "self",(char *) "_self", NULL | |
11894 | }; | |
11895 | ||
11896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11899 | arg2 = obj1; |
11900 | { | |
11901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11902 | wxEvtHandler__setOORInfo(arg1,arg2); | |
11903 | ||
11904 | wxPyEndAllowThreads(__tstate); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | Py_INCREF(Py_None); resultobj = Py_None; | |
11908 | return resultobj; | |
11909 | fail: | |
11910 | return NULL; | |
11911 | } | |
11912 | ||
11913 | ||
11914 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
11915 | PyObject *obj; | |
11916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11917 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
11918 | Py_INCREF(obj); | |
11919 | return Py_BuildValue((char *)""); | |
11920 | } | |
11921 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11922 | PyObject *resultobj; | |
11923 | wxEventType result; | |
11924 | char *kwnames[] = { | |
11925 | NULL | |
11926 | }; | |
11927 | ||
11928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
11929 | { | |
11930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11931 | result = (wxEventType)wxNewEventType(); | |
11932 | ||
11933 | wxPyEndAllowThreads(__tstate); | |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
11935 | } | |
2f4c0a16 | 11936 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11937 | return resultobj; |
11938 | fail: | |
11939 | return NULL; | |
11940 | } | |
11941 | ||
11942 | ||
11943 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11944 | PyObject *resultobj; | |
11945 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11946 | PyObject * obj0 = 0 ; | |
11947 | char *kwnames[] = { | |
11948 | (char *) "self", NULL | |
11949 | }; | |
11950 | ||
11951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
11953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11954 | { |
11955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11956 | delete arg1; | |
11957 | ||
11958 | wxPyEndAllowThreads(__tstate); | |
11959 | if (PyErr_Occurred()) SWIG_fail; | |
11960 | } | |
11961 | Py_INCREF(Py_None); resultobj = Py_None; | |
11962 | return resultobj; | |
11963 | fail: | |
11964 | return NULL; | |
11965 | } | |
11966 | ||
11967 | ||
11968 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11969 | PyObject *resultobj; | |
11970 | wxEvent *arg1 = (wxEvent *) 0 ; | |
11971 | wxEventType arg2 ; | |
11972 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11974 | char *kwnames[] = { |
11975 | (char *) "self",(char *) "typ", NULL | |
11976 | }; | |
11977 | ||
8edf1c75 | 11978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
11980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11981 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
11982 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11983 | { |
11984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11985 | (arg1)->SetEventType(arg2); | |
11986 | ||
11987 | wxPyEndAllowThreads(__tstate); | |
11988 | if (PyErr_Occurred()) SWIG_fail; | |
11989 | } | |
11990 | Py_INCREF(Py_None); resultobj = Py_None; | |
11991 | return resultobj; | |
11992 | fail: | |
11993 | return NULL; | |
11994 | } | |
11995 | ||
11996 | ||
11997 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11998 | PyObject *resultobj; | |
11999 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12000 | wxEventType result; | |
12001 | PyObject * obj0 = 0 ; | |
12002 | char *kwnames[] = { | |
12003 | (char *) "self", NULL | |
12004 | }; | |
12005 | ||
12006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12009 | { |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12011 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12012 | ||
12013 | wxPyEndAllowThreads(__tstate); | |
12014 | if (PyErr_Occurred()) SWIG_fail; | |
12015 | } | |
2f4c0a16 | 12016 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12017 | return resultobj; |
12018 | fail: | |
12019 | return NULL; | |
12020 | } | |
12021 | ||
12022 | ||
12023 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12024 | PyObject *resultobj; | |
12025 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12026 | wxObject *result; | |
12027 | PyObject * obj0 = 0 ; | |
12028 | char *kwnames[] = { | |
12029 | (char *) "self", NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12035 | { |
12036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12037 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12038 | ||
12039 | wxPyEndAllowThreads(__tstate); | |
12040 | if (PyErr_Occurred()) SWIG_fail; | |
12041 | } | |
12042 | { | |
12043 | resultobj = wxPyMake_wxObject(result); | |
12044 | } | |
12045 | return resultobj; | |
12046 | fail: | |
12047 | return NULL; | |
12048 | } | |
12049 | ||
12050 | ||
12051 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12052 | PyObject *resultobj; | |
12053 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12054 | wxObject *arg2 = (wxObject *) 0 ; | |
12055 | PyObject * obj0 = 0 ; | |
12056 | PyObject * obj1 = 0 ; | |
12057 | char *kwnames[] = { | |
12058 | (char *) "self",(char *) "obj", NULL | |
12059 | }; | |
12060 | ||
12061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12066 | { |
12067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12068 | (arg1)->SetEventObject(arg2); | |
12069 | ||
12070 | wxPyEndAllowThreads(__tstate); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
12073 | Py_INCREF(Py_None); resultobj = Py_None; | |
12074 | return resultobj; | |
12075 | fail: | |
12076 | return NULL; | |
12077 | } | |
12078 | ||
12079 | ||
12080 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12081 | PyObject *resultobj; | |
12082 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12083 | long result; | |
12084 | PyObject * obj0 = 0 ; | |
12085 | char *kwnames[] = { | |
12086 | (char *) "self", NULL | |
12087 | }; | |
12088 | ||
12089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12092 | { |
12093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12094 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12095 | ||
12096 | wxPyEndAllowThreads(__tstate); | |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
12098 | } | |
2f4c0a16 | 12099 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12100 | return resultobj; |
12101 | fail: | |
12102 | return NULL; | |
12103 | } | |
12104 | ||
12105 | ||
12106 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12107 | PyObject *resultobj; | |
12108 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12109 | long arg2 = (long) 0 ; | |
12110 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12112 | char *kwnames[] = { |
12113 | (char *) "self",(char *) "ts", NULL | |
12114 | }; | |
12115 | ||
8edf1c75 | 12116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 12119 | if (obj1) { |
2f4c0a16 RD |
12120 | arg2 = (long) SWIG_AsLong(obj1); |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12122 | } |
d14a1e28 RD |
12123 | { |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | (arg1)->SetTimestamp(arg2); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12140 | int result; | |
12141 | PyObject * obj0 = 0 ; | |
12142 | char *kwnames[] = { | |
12143 | (char *) "self", NULL | |
12144 | }; | |
12145 | ||
12146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12149 | { |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
2f4c0a16 | 12156 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12157 | return resultobj; |
12158 | fail: | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
12163 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12164 | PyObject *resultobj; | |
12165 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12166 | int arg2 ; | |
12167 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12169 | char *kwnames[] = { |
12170 | (char *) "self",(char *) "Id", NULL | |
12171 | }; | |
12172 | ||
8edf1c75 | 12173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12176 | arg2 = (int) SWIG_AsInt(obj1); | |
12177 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12178 | { |
12179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12180 | (arg1)->SetId(arg2); | |
12181 | ||
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | Py_INCREF(Py_None); resultobj = Py_None; | |
12186 | return resultobj; | |
12187 | fail: | |
12188 | return NULL; | |
12189 | } | |
12190 | ||
12191 | ||
12192 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12193 | PyObject *resultobj; | |
12194 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12195 | bool result; | |
12196 | PyObject * obj0 = 0 ; | |
12197 | char *kwnames[] = { | |
12198 | (char *) "self", NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12204 | { |
12205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12206 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12207 | ||
12208 | wxPyEndAllowThreads(__tstate); | |
12209 | if (PyErr_Occurred()) SWIG_fail; | |
12210 | } | |
4e760a36 | 12211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12212 | return resultobj; |
12213 | fail: | |
12214 | return NULL; | |
12215 | } | |
12216 | ||
12217 | ||
12218 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12219 | PyObject *resultobj; | |
12220 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 12221 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12222 | PyObject * obj0 = 0 ; |
12223 | PyObject * obj1 = 0 ; | |
12224 | char *kwnames[] = { | |
12225 | (char *) "self",(char *) "skip", NULL | |
12226 | }; | |
12227 | ||
12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12231 | if (obj1) { |
2f4c0a16 RD |
12232 | arg2 = (bool) SWIG_AsBool(obj1); |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12234 | } |
12235 | { | |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | (arg1)->Skip(arg2); | |
12238 | ||
12239 | wxPyEndAllowThreads(__tstate); | |
12240 | if (PyErr_Occurred()) SWIG_fail; | |
12241 | } | |
12242 | Py_INCREF(Py_None); resultobj = Py_None; | |
12243 | return resultobj; | |
12244 | fail: | |
12245 | return NULL; | |
12246 | } | |
12247 | ||
12248 | ||
12249 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12250 | PyObject *resultobj; | |
12251 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12252 | bool result; | |
12253 | PyObject * obj0 = 0 ; | |
12254 | char *kwnames[] = { | |
12255 | (char *) "self", NULL | |
12256 | }; | |
12257 | ||
12258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12261 | { |
12262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12263 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12264 | ||
12265 | wxPyEndAllowThreads(__tstate); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
4e760a36 | 12268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12269 | return resultobj; |
12270 | fail: | |
12271 | return NULL; | |
12272 | } | |
12273 | ||
12274 | ||
12275 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12276 | PyObject *resultobj; | |
12277 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12278 | bool result; | |
12279 | PyObject * obj0 = 0 ; | |
12280 | char *kwnames[] = { | |
12281 | (char *) "self", NULL | |
12282 | }; | |
12283 | ||
12284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12287 | { |
12288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12289 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12290 | ||
12291 | wxPyEndAllowThreads(__tstate); | |
12292 | if (PyErr_Occurred()) SWIG_fail; | |
12293 | } | |
4e760a36 | 12294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12295 | return resultobj; |
12296 | fail: | |
12297 | return NULL; | |
12298 | } | |
12299 | ||
12300 | ||
12301 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12302 | PyObject *resultobj; | |
12303 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12304 | int result; | |
12305 | PyObject * obj0 = 0 ; | |
12306 | char *kwnames[] = { | |
12307 | (char *) "self", NULL | |
12308 | }; | |
12309 | ||
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12313 | { |
12314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12315 | result = (int)(arg1)->StopPropagation(); | |
12316 | ||
12317 | wxPyEndAllowThreads(__tstate); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | } | |
2f4c0a16 | 12320 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12321 | return resultobj; |
12322 | fail: | |
12323 | return NULL; | |
12324 | } | |
12325 | ||
12326 | ||
12327 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12328 | PyObject *resultobj; | |
12329 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12330 | int arg2 ; | |
12331 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12333 | char *kwnames[] = { |
12334 | (char *) "self",(char *) "propagationLevel", NULL | |
12335 | }; | |
12336 | ||
8edf1c75 | 12337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12340 | arg2 = (int) SWIG_AsInt(obj1); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12342 | { |
12343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12344 | (arg1)->ResumePropagation(arg2); | |
12345 | ||
12346 | wxPyEndAllowThreads(__tstate); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | } | |
12349 | Py_INCREF(Py_None); resultobj = Py_None; | |
12350 | return resultobj; | |
12351 | fail: | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
12356 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12357 | PyObject *resultobj; | |
12358 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12359 | wxEvent *result; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12368 | { |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | result = (wxEvent *)(arg1)->Clone(); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
2f4c0a16 | 12375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12376 | return resultobj; |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12383 | PyObject *obj; | |
12384 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12385 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12386 | Py_INCREF(obj); | |
12387 | return Py_BuildValue((char *)""); | |
12388 | } | |
12389 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12390 | PyObject *resultobj; | |
12391 | wxEvent *arg1 = 0 ; | |
12392 | wxPropagationDisabler *result; | |
12393 | PyObject * obj0 = 0 ; | |
12394 | char *kwnames[] = { | |
12395 | (char *) "event", NULL | |
12396 | }; | |
12397 | ||
12398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12401 | SWIG_fail; | |
d14a1e28 | 12402 | if (arg1 == NULL) { |
2f4c0a16 RD |
12403 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12404 | SWIG_fail; | |
d14a1e28 RD |
12405 | } |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
2f4c0a16 | 12413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12414 | return resultobj; |
12415 | fail: | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12421 | PyObject *resultobj; | |
12422 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12423 | PyObject * obj0 = 0 ; | |
12424 | char *kwnames[] = { | |
12425 | (char *) "self", NULL | |
12426 | }; | |
12427 | ||
12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12431 | { |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | delete arg1; | |
12434 | ||
12435 | wxPyEndAllowThreads(__tstate); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
12437 | } | |
12438 | Py_INCREF(Py_None); resultobj = Py_None; | |
12439 | return resultobj; | |
12440 | fail: | |
12441 | return NULL; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12446 | PyObject *obj; | |
12447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12448 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12449 | Py_INCREF(obj); | |
12450 | return Py_BuildValue((char *)""); | |
12451 | } | |
12452 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12453 | PyObject *resultobj; | |
12454 | wxEvent *arg1 = 0 ; | |
12455 | wxPropagateOnce *result; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "event", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12464 | SWIG_fail; | |
d14a1e28 | 12465 | if (arg1 == NULL) { |
2f4c0a16 RD |
12466 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12467 | SWIG_fail; | |
d14a1e28 RD |
12468 | } |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
2f4c0a16 | 12476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12477 | return resultobj; |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
12483 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12484 | PyObject *resultobj; | |
12485 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12486 | PyObject * obj0 = 0 ; | |
12487 | char *kwnames[] = { | |
12488 | (char *) "self", NULL | |
12489 | }; | |
12490 | ||
12491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12494 | { |
12495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12496 | delete arg1; | |
12497 | ||
12498 | wxPyEndAllowThreads(__tstate); | |
12499 | if (PyErr_Occurred()) SWIG_fail; | |
12500 | } | |
12501 | Py_INCREF(Py_None); resultobj = Py_None; | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
12508 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12509 | PyObject *obj; | |
12510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12511 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12512 | Py_INCREF(obj); | |
12513 | return Py_BuildValue((char *)""); | |
12514 | } | |
12515 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12516 | PyObject *resultobj; | |
12517 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12518 | int arg2 = (int) 0 ; | |
12519 | wxCommandEvent *result; | |
8edf1c75 RD |
12520 | PyObject * obj0 = 0 ; |
12521 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12522 | char *kwnames[] = { |
12523 | (char *) "commandType",(char *) "winid", NULL | |
12524 | }; | |
12525 | ||
8edf1c75 RD |
12526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12527 | if (obj0) { | |
2f4c0a16 RD |
12528 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12530 | } |
12531 | if (obj1) { | |
2f4c0a16 RD |
12532 | arg2 = (int) SWIG_AsInt(obj1); |
12533 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12534 | } |
d14a1e28 RD |
12535 | { |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12537 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12538 | ||
12539 | wxPyEndAllowThreads(__tstate); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
2f4c0a16 | 12542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12543 | return resultobj; |
12544 | fail: | |
12545 | return NULL; | |
12546 | } | |
12547 | ||
12548 | ||
12549 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12550 | PyObject *resultobj; | |
12551 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12552 | int result; | |
12553 | PyObject * obj0 = 0 ; | |
12554 | char *kwnames[] = { | |
12555 | (char *) "self", NULL | |
12556 | }; | |
12557 | ||
12558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12561 | { |
12562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12563 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12564 | ||
12565 | wxPyEndAllowThreads(__tstate); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | } | |
2f4c0a16 | 12568 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12569 | return resultobj; |
12570 | fail: | |
12571 | return NULL; | |
12572 | } | |
12573 | ||
12574 | ||
12575 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12576 | PyObject *resultobj; | |
12577 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12578 | wxString *arg2 = 0 ; | |
423f194a | 12579 | bool temp2 = False ; |
d14a1e28 RD |
12580 | PyObject * obj0 = 0 ; |
12581 | PyObject * obj1 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self",(char *) "s", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12589 | { |
12590 | arg2 = wxString_in_helper(obj1); | |
12591 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12592 | temp2 = True; |
d14a1e28 RD |
12593 | } |
12594 | { | |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | (arg1)->SetString((wxString const &)*arg2); | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | Py_INCREF(Py_None); resultobj = Py_None; | |
12602 | { | |
12603 | if (temp2) | |
12604 | delete arg2; | |
12605 | } | |
12606 | return resultobj; | |
12607 | fail: | |
12608 | { | |
12609 | if (temp2) | |
12610 | delete arg2; | |
12611 | } | |
12612 | return NULL; | |
12613 | } | |
12614 | ||
12615 | ||
12616 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12617 | PyObject *resultobj; | |
12618 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12619 | wxString result; | |
12620 | PyObject * obj0 = 0 ; | |
12621 | char *kwnames[] = { | |
12622 | (char *) "self", NULL | |
12623 | }; | |
12624 | ||
12625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12628 | { |
12629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12630 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12631 | ||
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | { | |
12636 | #if wxUSE_UNICODE | |
12637 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12638 | #else | |
12639 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12640 | #endif | |
12641 | } | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12649 | PyObject *resultobj; | |
12650 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12651 | bool result; | |
12652 | PyObject * obj0 = 0 ; | |
12653 | char *kwnames[] = { | |
12654 | (char *) "self", NULL | |
12655 | }; | |
12656 | ||
12657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12660 | { |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12663 | ||
12664 | wxPyEndAllowThreads(__tstate); | |
12665 | if (PyErr_Occurred()) SWIG_fail; | |
12666 | } | |
4e760a36 | 12667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12668 | return resultobj; |
12669 | fail: | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12675 | PyObject *resultobj; | |
12676 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12677 | bool result; | |
12678 | PyObject * obj0 = 0 ; | |
12679 | char *kwnames[] = { | |
12680 | (char *) "self", NULL | |
12681 | }; | |
12682 | ||
12683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12686 | { |
12687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12688 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12689 | ||
12690 | wxPyEndAllowThreads(__tstate); | |
12691 | if (PyErr_Occurred()) SWIG_fail; | |
12692 | } | |
4e760a36 | 12693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12694 | return resultobj; |
12695 | fail: | |
12696 | return NULL; | |
12697 | } | |
12698 | ||
12699 | ||
12700 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12701 | PyObject *resultobj; | |
12702 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12703 | long arg2 ; | |
12704 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12706 | char *kwnames[] = { |
12707 | (char *) "self",(char *) "extraLong", NULL | |
12708 | }; | |
12709 | ||
8edf1c75 | 12710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12713 | arg2 = (long) SWIG_AsLong(obj1); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12715 | { |
12716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12717 | (arg1)->SetExtraLong(arg2); | |
12718 | ||
12719 | wxPyEndAllowThreads(__tstate); | |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
12721 | } | |
12722 | Py_INCREF(Py_None); resultobj = Py_None; | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
12729 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12730 | PyObject *resultobj; | |
12731 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12732 | long result; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "self", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12741 | { |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
2f4c0a16 | 12748 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12749 | return resultobj; |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
12755 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12756 | PyObject *resultobj; | |
12757 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12758 | int arg2 ; | |
12759 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12761 | char *kwnames[] = { |
12762 | (char *) "self",(char *) "i", NULL | |
12763 | }; | |
12764 | ||
8edf1c75 | 12765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12768 | arg2 = (int) SWIG_AsInt(obj1); | |
12769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12770 | { |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | (arg1)->SetInt(arg2); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | Py_INCREF(Py_None); resultobj = Py_None; | |
12778 | return resultobj; | |
12779 | fail: | |
12780 | return NULL; | |
12781 | } | |
12782 | ||
12783 | ||
12784 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12785 | PyObject *resultobj; | |
12786 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12787 | long result; | |
12788 | PyObject * obj0 = 0 ; | |
12789 | char *kwnames[] = { | |
12790 | (char *) "self", NULL | |
12791 | }; | |
12792 | ||
12793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12796 | { |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12799 | ||
12800 | wxPyEndAllowThreads(__tstate); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
2f4c0a16 | 12803 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12804 | return resultobj; |
12805 | fail: | |
12806 | return NULL; | |
12807 | } | |
12808 | ||
12809 | ||
12810 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12811 | PyObject *resultobj; | |
12812 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12813 | wxEvent *result; | |
12814 | PyObject * obj0 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "self", NULL | |
12817 | }; | |
12818 | ||
12819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12822 | { |
12823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12824 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12825 | ||
12826 | wxPyEndAllowThreads(__tstate); | |
12827 | if (PyErr_Occurred()) SWIG_fail; | |
12828 | } | |
2f4c0a16 | 12829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12830 | return resultobj; |
12831 | fail: | |
12832 | return NULL; | |
12833 | } | |
12834 | ||
12835 | ||
12836 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12837 | PyObject *obj; | |
12838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12839 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12840 | Py_INCREF(obj); | |
12841 | return Py_BuildValue((char *)""); | |
12842 | } | |
12843 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12844 | PyObject *resultobj; | |
12845 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12846 | int arg2 = (int) 0 ; | |
12847 | wxNotifyEvent *result; | |
8edf1c75 RD |
12848 | PyObject * obj0 = 0 ; |
12849 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12850 | char *kwnames[] = { |
12851 | (char *) "commandType",(char *) "winid", NULL | |
12852 | }; | |
12853 | ||
8edf1c75 RD |
12854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12855 | if (obj0) { | |
2f4c0a16 RD |
12856 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12857 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12858 | } |
12859 | if (obj1) { | |
2f4c0a16 RD |
12860 | arg2 = (int) SWIG_AsInt(obj1); |
12861 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12862 | } |
d14a1e28 RD |
12863 | { |
12864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12865 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12866 | ||
12867 | wxPyEndAllowThreads(__tstate); | |
12868 | if (PyErr_Occurred()) SWIG_fail; | |
12869 | } | |
2f4c0a16 | 12870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
12871 | return resultobj; |
12872 | fail: | |
12873 | return NULL; | |
12874 | } | |
12875 | ||
12876 | ||
12877 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12878 | PyObject *resultobj; | |
12879 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12880 | PyObject * obj0 = 0 ; | |
12881 | char *kwnames[] = { | |
12882 | (char *) "self", NULL | |
12883 | }; | |
12884 | ||
12885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12888 | { |
12889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12890 | (arg1)->Veto(); | |
12891 | ||
12892 | wxPyEndAllowThreads(__tstate); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | Py_INCREF(Py_None); resultobj = Py_None; | |
12896 | return resultobj; | |
12897 | fail: | |
12898 | return NULL; | |
12899 | } | |
12900 | ||
12901 | ||
12902 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12903 | PyObject *resultobj; | |
12904 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | char *kwnames[] = { | |
12907 | (char *) "self", NULL | |
12908 | }; | |
12909 | ||
12910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12913 | { |
12914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12915 | (arg1)->Allow(); | |
12916 | ||
12917 | wxPyEndAllowThreads(__tstate); | |
12918 | if (PyErr_Occurred()) SWIG_fail; | |
12919 | } | |
12920 | Py_INCREF(Py_None); resultobj = Py_None; | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | return NULL; | |
12924 | } | |
12925 | ||
12926 | ||
12927 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12928 | PyObject *resultobj; | |
12929 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12930 | bool result; | |
12931 | PyObject * obj0 = 0 ; | |
12932 | char *kwnames[] = { | |
12933 | (char *) "self", NULL | |
12934 | }; | |
12935 | ||
12936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12939 | { |
12940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12941 | result = (bool)(arg1)->IsAllowed(); | |
12942 | ||
12943 | wxPyEndAllowThreads(__tstate); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | } | |
4e760a36 | 12946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12947 | return resultobj; |
12948 | fail: | |
12949 | return NULL; | |
12950 | } | |
12951 | ||
12952 | ||
12953 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
12954 | PyObject *obj; | |
12955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12956 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
12957 | Py_INCREF(obj); | |
12958 | return Py_BuildValue((char *)""); | |
12959 | } | |
12960 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12963 | int arg2 = (int) 0 ; | |
12964 | int arg3 = (int) 0 ; | |
12965 | int arg4 = (int) 0 ; | |
12966 | wxScrollEvent *result; | |
8edf1c75 RD |
12967 | PyObject * obj0 = 0 ; |
12968 | PyObject * obj1 = 0 ; | |
12969 | PyObject * obj2 = 0 ; | |
12970 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12971 | char *kwnames[] = { |
12972 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
12973 | }; | |
12974 | ||
8edf1c75 RD |
12975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
12976 | if (obj0) { | |
2f4c0a16 RD |
12977 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12978 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12979 | } |
12980 | if (obj1) { | |
2f4c0a16 RD |
12981 | arg2 = (int) SWIG_AsInt(obj1); |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12983 | } |
12984 | if (obj2) { | |
2f4c0a16 RD |
12985 | arg3 = (int) SWIG_AsInt(obj2); |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12987 | } |
12988 | if (obj3) { | |
2f4c0a16 RD |
12989 | arg4 = (int) SWIG_AsInt(obj3); |
12990 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12991 | } |
d14a1e28 RD |
12992 | { |
12993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12994 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
12995 | ||
12996 | wxPyEndAllowThreads(__tstate); | |
12997 | if (PyErr_Occurred()) SWIG_fail; | |
12998 | } | |
2f4c0a16 | 12999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13000 | return resultobj; |
13001 | fail: | |
13002 | return NULL; | |
13003 | } | |
13004 | ||
13005 | ||
13006 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13007 | PyObject *resultobj; | |
13008 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13009 | int result; | |
13010 | PyObject * obj0 = 0 ; | |
13011 | char *kwnames[] = { | |
13012 | (char *) "self", NULL | |
13013 | }; | |
13014 | ||
13015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13018 | { |
13019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13020 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13021 | ||
13022 | wxPyEndAllowThreads(__tstate); | |
13023 | if (PyErr_Occurred()) SWIG_fail; | |
13024 | } | |
2f4c0a16 | 13025 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13026 | return resultobj; |
13027 | fail: | |
13028 | return NULL; | |
13029 | } | |
13030 | ||
13031 | ||
13032 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13033 | PyObject *resultobj; | |
13034 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13035 | int result; | |
13036 | PyObject * obj0 = 0 ; | |
13037 | char *kwnames[] = { | |
13038 | (char *) "self", NULL | |
13039 | }; | |
13040 | ||
13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13044 | { |
13045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13046 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13047 | ||
13048 | wxPyEndAllowThreads(__tstate); | |
13049 | if (PyErr_Occurred()) SWIG_fail; | |
13050 | } | |
2f4c0a16 | 13051 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13052 | return resultobj; |
13053 | fail: | |
13054 | return NULL; | |
13055 | } | |
13056 | ||
13057 | ||
13058 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13059 | PyObject *resultobj; | |
13060 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13061 | int arg2 ; | |
13062 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13064 | char *kwnames[] = { |
13065 | (char *) "self",(char *) "orient", NULL | |
13066 | }; | |
13067 | ||
8edf1c75 | 13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13071 | arg2 = (int) SWIG_AsInt(obj1); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13073 | { |
13074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13075 | (arg1)->SetOrientation(arg2); | |
13076 | ||
13077 | wxPyEndAllowThreads(__tstate); | |
13078 | if (PyErr_Occurred()) SWIG_fail; | |
13079 | } | |
13080 | Py_INCREF(Py_None); resultobj = Py_None; | |
13081 | return resultobj; | |
13082 | fail: | |
13083 | return NULL; | |
13084 | } | |
13085 | ||
13086 | ||
13087 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13088 | PyObject *resultobj; | |
13089 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13090 | int arg2 ; | |
13091 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13093 | char *kwnames[] = { |
13094 | (char *) "self",(char *) "pos", NULL | |
13095 | }; | |
13096 | ||
8edf1c75 | 13097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13100 | arg2 = (int) SWIG_AsInt(obj1); | |
13101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13102 | { |
13103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13104 | (arg1)->SetPosition(arg2); | |
13105 | ||
13106 | wxPyEndAllowThreads(__tstate); | |
13107 | if (PyErr_Occurred()) SWIG_fail; | |
13108 | } | |
13109 | Py_INCREF(Py_None); resultobj = Py_None; | |
13110 | return resultobj; | |
13111 | fail: | |
13112 | return NULL; | |
13113 | } | |
13114 | ||
13115 | ||
13116 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13117 | PyObject *obj; | |
13118 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13119 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13120 | Py_INCREF(obj); | |
13121 | return Py_BuildValue((char *)""); | |
13122 | } | |
13123 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13124 | PyObject *resultobj; | |
13125 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13126 | int arg2 = (int) 0 ; | |
13127 | int arg3 = (int) 0 ; | |
13128 | wxScrollWinEvent *result; | |
8edf1c75 RD |
13129 | PyObject * obj0 = 0 ; |
13130 | PyObject * obj1 = 0 ; | |
13131 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13132 | char *kwnames[] = { |
13133 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13134 | }; | |
13135 | ||
8edf1c75 RD |
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13137 | if (obj0) { | |
2f4c0a16 RD |
13138 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13140 | } |
13141 | if (obj1) { | |
2f4c0a16 RD |
13142 | arg2 = (int) SWIG_AsInt(obj1); |
13143 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13144 | } |
13145 | if (obj2) { | |
2f4c0a16 RD |
13146 | arg3 = (int) SWIG_AsInt(obj2); |
13147 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13148 | } |
d14a1e28 RD |
13149 | { |
13150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13151 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13152 | ||
13153 | wxPyEndAllowThreads(__tstate); | |
13154 | if (PyErr_Occurred()) SWIG_fail; | |
13155 | } | |
2f4c0a16 | 13156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13157 | return resultobj; |
13158 | fail: | |
13159 | return NULL; | |
13160 | } | |
13161 | ||
13162 | ||
13163 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13164 | PyObject *resultobj; | |
13165 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13166 | int result; | |
13167 | PyObject * obj0 = 0 ; | |
13168 | char *kwnames[] = { | |
13169 | (char *) "self", NULL | |
13170 | }; | |
13171 | ||
13172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13175 | { |
13176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13177 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13178 | ||
13179 | wxPyEndAllowThreads(__tstate); | |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
13181 | } | |
2f4c0a16 | 13182 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13183 | return resultobj; |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13190 | PyObject *resultobj; | |
13191 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13192 | int result; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | char *kwnames[] = { | |
13195 | (char *) "self", NULL | |
13196 | }; | |
13197 | ||
13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13201 | { |
13202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13203 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13204 | ||
13205 | wxPyEndAllowThreads(__tstate); | |
13206 | if (PyErr_Occurred()) SWIG_fail; | |
13207 | } | |
2f4c0a16 | 13208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13209 | return resultobj; |
13210 | fail: | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13218 | int arg2 ; | |
13219 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13220 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13221 | char *kwnames[] = { |
13222 | (char *) "self",(char *) "orient", NULL | |
13223 | }; | |
13224 | ||
8edf1c75 | 13225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13228 | arg2 = (int) SWIG_AsInt(obj1); | |
13229 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13230 | { |
13231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13232 | (arg1)->SetOrientation(arg2); | |
13233 | ||
13234 | wxPyEndAllowThreads(__tstate); | |
13235 | if (PyErr_Occurred()) SWIG_fail; | |
13236 | } | |
13237 | Py_INCREF(Py_None); resultobj = Py_None; | |
13238 | return resultobj; | |
13239 | fail: | |
13240 | return NULL; | |
13241 | } | |
13242 | ||
13243 | ||
13244 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13245 | PyObject *resultobj; | |
13246 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13247 | int arg2 ; | |
13248 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13250 | char *kwnames[] = { |
13251 | (char *) "self",(char *) "pos", NULL | |
13252 | }; | |
13253 | ||
8edf1c75 | 13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13257 | arg2 = (int) SWIG_AsInt(obj1); | |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13259 | { |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | (arg1)->SetPosition(arg2); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
13266 | Py_INCREF(Py_None); resultobj = Py_None; | |
13267 | return resultobj; | |
13268 | fail: | |
13269 | return NULL; | |
13270 | } | |
13271 | ||
13272 | ||
13273 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13274 | PyObject *obj; | |
13275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13276 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13277 | Py_INCREF(obj); | |
13278 | return Py_BuildValue((char *)""); | |
13279 | } | |
13280 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13281 | PyObject *resultobj; | |
13282 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13283 | wxMouseEvent *result; | |
8edf1c75 | 13284 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13285 | char *kwnames[] = { |
13286 | (char *) "mouseType", NULL | |
13287 | }; | |
13288 | ||
8edf1c75 RD |
13289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13290 | if (obj0) { | |
2f4c0a16 RD |
13291 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13292 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13293 | } |
d14a1e28 RD |
13294 | { |
13295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13296 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13297 | ||
13298 | wxPyEndAllowThreads(__tstate); | |
13299 | if (PyErr_Occurred()) SWIG_fail; | |
13300 | } | |
13301 | { | |
13302 | resultobj = wxPyMake_wxObject(result); | |
13303 | } | |
13304 | return resultobj; | |
13305 | fail: | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
13310 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13311 | PyObject *resultobj; | |
13312 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13313 | bool result; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | char *kwnames[] = { | |
13316 | (char *) "self", NULL | |
13317 | }; | |
13318 | ||
13319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13322 | { |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
4e760a36 | 13329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13330 | return resultobj; |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
13336 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13337 | PyObject *resultobj; | |
13338 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13339 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13340 | bool result; | |
13341 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13342 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13343 | char *kwnames[] = { |
13344 | (char *) "self",(char *) "but", NULL | |
13345 | }; | |
13346 | ||
8edf1c75 | 13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13350 | if (obj1) { |
2f4c0a16 RD |
13351 | arg2 = (int) SWIG_AsInt(obj1); |
13352 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13353 | } |
d14a1e28 RD |
13354 | { |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
4e760a36 | 13361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13362 | return resultobj; |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13369 | PyObject *resultobj; | |
13370 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13371 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13372 | bool result; | |
13373 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13374 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13375 | char *kwnames[] = { |
13376 | (char *) "self",(char *) "but", NULL | |
13377 | }; | |
13378 | ||
8edf1c75 | 13379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13382 | if (obj1) { |
2f4c0a16 RD |
13383 | arg2 = (int) SWIG_AsInt(obj1); |
13384 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13385 | } |
d14a1e28 RD |
13386 | { |
13387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13388 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13389 | ||
13390 | wxPyEndAllowThreads(__tstate); | |
13391 | if (PyErr_Occurred()) SWIG_fail; | |
13392 | } | |
4e760a36 | 13393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13394 | return resultobj; |
13395 | fail: | |
13396 | return NULL; | |
13397 | } | |
13398 | ||
13399 | ||
13400 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13401 | PyObject *resultobj; | |
13402 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13403 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13404 | bool result; | |
13405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13407 | char *kwnames[] = { |
13408 | (char *) "self",(char *) "but", NULL | |
13409 | }; | |
13410 | ||
8edf1c75 | 13411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13414 | if (obj1) { |
2f4c0a16 RD |
13415 | arg2 = (int) SWIG_AsInt(obj1); |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13417 | } |
d14a1e28 RD |
13418 | { |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13421 | ||
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
4e760a36 | 13425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13426 | return resultobj; |
13427 | fail: | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
13432 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13433 | PyObject *resultobj; | |
13434 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13435 | int arg2 ; | |
13436 | bool result; | |
13437 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13439 | char *kwnames[] = { |
13440 | (char *) "self",(char *) "but", NULL | |
13441 | }; | |
13442 | ||
8edf1c75 | 13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | arg2 = (int) SWIG_AsInt(obj1); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13448 | { |
13449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13450 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13451 | ||
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
4e760a36 | 13455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13456 | return resultobj; |
13457 | fail: | |
13458 | return NULL; | |
13459 | } | |
13460 | ||
13461 | ||
13462 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13463 | PyObject *resultobj; | |
13464 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13465 | int arg2 ; | |
13466 | bool result; | |
13467 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13469 | char *kwnames[] = { |
13470 | (char *) "self",(char *) "but", NULL | |
13471 | }; | |
13472 | ||
8edf1c75 | 13473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13476 | arg2 = (int) SWIG_AsInt(obj1); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13478 | { |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13481 | ||
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
4e760a36 | 13485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13486 | return resultobj; |
13487 | fail: | |
13488 | return NULL; | |
13489 | } | |
13490 | ||
13491 | ||
13492 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13493 | PyObject *resultobj; | |
13494 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13495 | int result; | |
13496 | PyObject * obj0 = 0 ; | |
13497 | char *kwnames[] = { | |
13498 | (char *) "self", NULL | |
13499 | }; | |
13500 | ||
13501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13504 | { |
13505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13506 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13507 | ||
13508 | wxPyEndAllowThreads(__tstate); | |
13509 | if (PyErr_Occurred()) SWIG_fail; | |
13510 | } | |
2f4c0a16 | 13511 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13512 | return resultobj; |
13513 | fail: | |
13514 | return NULL; | |
13515 | } | |
13516 | ||
13517 | ||
13518 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13519 | PyObject *resultobj; | |
13520 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13521 | bool result; | |
13522 | PyObject * obj0 = 0 ; | |
13523 | char *kwnames[] = { | |
13524 | (char *) "self", NULL | |
13525 | }; | |
13526 | ||
13527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13530 | { |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13532 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13533 | ||
13534 | wxPyEndAllowThreads(__tstate); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
4e760a36 | 13537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13538 | return resultobj; |
13539 | fail: | |
13540 | return NULL; | |
13541 | } | |
13542 | ||
13543 | ||
13544 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13545 | PyObject *resultobj; | |
13546 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13547 | bool result; | |
13548 | PyObject * obj0 = 0 ; | |
13549 | char *kwnames[] = { | |
13550 | (char *) "self", NULL | |
13551 | }; | |
13552 | ||
13553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13556 | { |
13557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13558 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13559 | ||
13560 | wxPyEndAllowThreads(__tstate); | |
13561 | if (PyErr_Occurred()) SWIG_fail; | |
13562 | } | |
4e760a36 | 13563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13564 | return resultobj; |
13565 | fail: | |
13566 | return NULL; | |
13567 | } | |
13568 | ||
13569 | ||
13570 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13571 | PyObject *resultobj; | |
13572 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13573 | bool result; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "self", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13582 | { |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
4e760a36 | 13589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13590 | return resultobj; |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13597 | PyObject *resultobj; | |
13598 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13599 | bool result; | |
13600 | PyObject * obj0 = 0 ; | |
13601 | char *kwnames[] = { | |
13602 | (char *) "self", NULL | |
13603 | }; | |
13604 | ||
13605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13608 | { |
13609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13610 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13611 | ||
13612 | wxPyEndAllowThreads(__tstate); | |
13613 | if (PyErr_Occurred()) SWIG_fail; | |
13614 | } | |
4e760a36 | 13615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13616 | return resultobj; |
13617 | fail: | |
13618 | return NULL; | |
13619 | } | |
13620 | ||
13621 | ||
13622 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13623 | PyObject *resultobj; | |
13624 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13625 | bool result; | |
13626 | PyObject * obj0 = 0 ; | |
13627 | char *kwnames[] = { | |
13628 | (char *) "self", NULL | |
13629 | }; | |
13630 | ||
13631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13634 | { |
13635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13636 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13637 | ||
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
4e760a36 | 13641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13642 | return resultobj; |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
13648 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13649 | PyObject *resultobj; | |
13650 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13651 | bool result; | |
13652 | PyObject * obj0 = 0 ; | |
13653 | char *kwnames[] = { | |
13654 | (char *) "self", NULL | |
13655 | }; | |
13656 | ||
13657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13660 | { |
13661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13662 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13663 | ||
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
4e760a36 | 13667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13668 | return resultobj; |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13675 | PyObject *resultobj; | |
13676 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13677 | bool result; | |
13678 | PyObject * obj0 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "self", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13686 | { |
13687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13688 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13689 | ||
13690 | wxPyEndAllowThreads(__tstate); | |
13691 | if (PyErr_Occurred()) SWIG_fail; | |
13692 | } | |
4e760a36 | 13693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13694 | return resultobj; |
13695 | fail: | |
13696 | return NULL; | |
13697 | } | |
13698 | ||
13699 | ||
13700 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13701 | PyObject *resultobj; | |
13702 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13703 | bool result; | |
13704 | PyObject * obj0 = 0 ; | |
13705 | char *kwnames[] = { | |
13706 | (char *) "self", NULL | |
13707 | }; | |
13708 | ||
13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13712 | { |
13713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13714 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13715 | ||
13716 | wxPyEndAllowThreads(__tstate); | |
13717 | if (PyErr_Occurred()) SWIG_fail; | |
13718 | } | |
4e760a36 | 13719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13720 | return resultobj; |
13721 | fail: | |
13722 | return NULL; | |
13723 | } | |
13724 | ||
13725 | ||
13726 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13727 | PyObject *resultobj; | |
13728 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13729 | bool result; | |
13730 | PyObject * obj0 = 0 ; | |
13731 | char *kwnames[] = { | |
13732 | (char *) "self", NULL | |
13733 | }; | |
13734 | ||
13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13738 | { |
13739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13740 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13741 | ||
13742 | wxPyEndAllowThreads(__tstate); | |
13743 | if (PyErr_Occurred()) SWIG_fail; | |
13744 | } | |
4e760a36 | 13745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13746 | return resultobj; |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13753 | PyObject *resultobj; | |
13754 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13755 | bool result; | |
13756 | PyObject * obj0 = 0 ; | |
13757 | char *kwnames[] = { | |
13758 | (char *) "self", NULL | |
13759 | }; | |
13760 | ||
13761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13764 | { |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
4e760a36 | 13771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13772 | return resultobj; |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj; | |
13780 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13781 | bool result; | |
13782 | PyObject * obj0 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13790 | { |
13791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13792 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13793 | ||
13794 | wxPyEndAllowThreads(__tstate); | |
13795 | if (PyErr_Occurred()) SWIG_fail; | |
13796 | } | |
4e760a36 | 13797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13798 | return resultobj; |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13807 | bool result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13816 | { |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13818 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13819 | ||
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
4e760a36 | 13823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13824 | return resultobj; |
13825 | fail: | |
13826 | return NULL; | |
13827 | } | |
13828 | ||
13829 | ||
13830 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13831 | PyObject *resultobj; | |
13832 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13833 | bool result; | |
13834 | PyObject * obj0 = 0 ; | |
13835 | char *kwnames[] = { | |
13836 | (char *) "self", NULL | |
13837 | }; | |
13838 | ||
13839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13842 | { |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13845 | ||
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
4e760a36 | 13849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13850 | return resultobj; |
13851 | fail: | |
13852 | return NULL; | |
13853 | } | |
13854 | ||
13855 | ||
13856 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13857 | PyObject *resultobj; | |
13858 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13859 | bool result; | |
13860 | PyObject * obj0 = 0 ; | |
13861 | char *kwnames[] = { | |
13862 | (char *) "self", NULL | |
13863 | }; | |
13864 | ||
13865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13868 | { |
13869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13870 | result = (bool)(arg1)->LeftIsDown(); | |
13871 | ||
13872 | wxPyEndAllowThreads(__tstate); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | } | |
4e760a36 | 13875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13876 | return resultobj; |
13877 | fail: | |
13878 | return NULL; | |
13879 | } | |
13880 | ||
13881 | ||
13882 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13883 | PyObject *resultobj; | |
13884 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13885 | bool result; | |
13886 | PyObject * obj0 = 0 ; | |
13887 | char *kwnames[] = { | |
13888 | (char *) "self", NULL | |
13889 | }; | |
13890 | ||
13891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13894 | { |
13895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13896 | result = (bool)(arg1)->MiddleIsDown(); | |
13897 | ||
13898 | wxPyEndAllowThreads(__tstate); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
13900 | } | |
4e760a36 | 13901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13902 | return resultobj; |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
13908 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13911 | bool result; | |
13912 | PyObject * obj0 = 0 ; | |
13913 | char *kwnames[] = { | |
13914 | (char *) "self", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13920 | { |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | result = (bool)(arg1)->RightIsDown(); | |
13923 | ||
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
4e760a36 | 13927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13928 | return resultobj; |
13929 | fail: | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj; | |
13936 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13937 | bool result; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | char *kwnames[] = { | |
13940 | (char *) "self", NULL | |
13941 | }; | |
13942 | ||
13943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13946 | { |
13947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13948 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
13949 | ||
13950 | wxPyEndAllowThreads(__tstate); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
13952 | } | |
4e760a36 | 13953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13954 | return resultobj; |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13961 | PyObject *resultobj; | |
13962 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13963 | bool result; | |
13964 | PyObject * obj0 = 0 ; | |
13965 | char *kwnames[] = { | |
13966 | (char *) "self", NULL | |
13967 | }; | |
13968 | ||
13969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13972 | { |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
4e760a36 | 13979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13980 | return resultobj; |
13981 | fail: | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
13986 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13987 | PyObject *resultobj; | |
13988 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13989 | bool result; | |
13990 | PyObject * obj0 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13998 | { |
13999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14000 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14001 | ||
14002 | wxPyEndAllowThreads(__tstate); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
4e760a36 | 14005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14006 | return resultobj; |
14007 | fail: | |
14008 | return NULL; | |
14009 | } | |
14010 | ||
14011 | ||
14012 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14013 | PyObject *resultobj; | |
14014 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14015 | bool result; | |
14016 | PyObject * obj0 = 0 ; | |
14017 | char *kwnames[] = { | |
14018 | (char *) "self", NULL | |
14019 | }; | |
14020 | ||
14021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14024 | { |
14025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14026 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14027 | ||
14028 | wxPyEndAllowThreads(__tstate); | |
14029 | if (PyErr_Occurred()) SWIG_fail; | |
14030 | } | |
4e760a36 | 14031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14032 | return resultobj; |
14033 | fail: | |
14034 | return NULL; | |
14035 | } | |
14036 | ||
14037 | ||
14038 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14039 | PyObject *resultobj; | |
14040 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14041 | wxPoint result; | |
14042 | PyObject * obj0 = 0 ; | |
14043 | char *kwnames[] = { | |
14044 | (char *) "self", NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14050 | { |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (arg1)->GetPosition(); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
14057 | { | |
14058 | wxPoint * resultptr; | |
14059 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14061 | } |
14062 | return resultobj; | |
14063 | fail: | |
14064 | return NULL; | |
14065 | } | |
14066 | ||
14067 | ||
14068 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14069 | PyObject *resultobj; | |
14070 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14071 | long *arg2 = (long *) 0 ; | |
14072 | long *arg3 = (long *) 0 ; | |
14073 | long temp2 ; | |
14074 | long temp3 ; | |
14075 | PyObject * obj0 = 0 ; | |
14076 | char *kwnames[] = { | |
14077 | (char *) "self", NULL | |
14078 | }; | |
14079 | ||
14080 | arg2 = &temp2; | |
14081 | arg3 = &temp3; | |
14082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14085 | { |
14086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14087 | (arg1)->GetPosition(arg2,arg3); | |
14088 | ||
14089 | wxPyEndAllowThreads(__tstate); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
14092 | Py_INCREF(Py_None); resultobj = Py_None; | |
14093 | { | |
14094 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14095 | resultobj = t_output_helper(resultobj,o); | |
14096 | } | |
14097 | { | |
14098 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14099 | resultobj = t_output_helper(resultobj,o); | |
14100 | } | |
14101 | return resultobj; | |
14102 | fail: | |
14103 | return NULL; | |
14104 | } | |
14105 | ||
14106 | ||
14107 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14108 | PyObject *resultobj; | |
14109 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14110 | wxDC *arg2 = 0 ; | |
14111 | wxPoint result; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | PyObject * obj1 = 0 ; | |
14114 | char *kwnames[] = { | |
14115 | (char *) "self",(char *) "dc", NULL | |
14116 | }; | |
14117 | ||
14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14123 | SWIG_fail; | |
d14a1e28 | 14124 | if (arg2 == NULL) { |
2f4c0a16 RD |
14125 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14126 | SWIG_fail; | |
d14a1e28 RD |
14127 | } |
14128 | { | |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
14135 | { | |
14136 | wxPoint * resultptr; | |
14137 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14139 | } |
14140 | return resultobj; | |
14141 | fail: | |
14142 | return NULL; | |
14143 | } | |
14144 | ||
14145 | ||
14146 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14147 | PyObject *resultobj; | |
14148 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14149 | int result; |
d14a1e28 RD |
14150 | PyObject * obj0 = 0 ; |
14151 | char *kwnames[] = { | |
14152 | (char *) "self", NULL | |
14153 | }; | |
14154 | ||
14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14158 | { |
14159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14160 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14161 | |
14162 | wxPyEndAllowThreads(__tstate); | |
14163 | if (PyErr_Occurred()) SWIG_fail; | |
14164 | } | |
2f4c0a16 | 14165 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14166 | return resultobj; |
14167 | fail: | |
14168 | return NULL; | |
14169 | } | |
14170 | ||
14171 | ||
14172 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14173 | PyObject *resultobj; | |
14174 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14175 | int result; |
d14a1e28 RD |
14176 | PyObject * obj0 = 0 ; |
14177 | char *kwnames[] = { | |
14178 | (char *) "self", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14184 | { |
14185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14186 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14187 | |
14188 | wxPyEndAllowThreads(__tstate); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | } | |
2f4c0a16 | 14191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14192 | return resultobj; |
14193 | fail: | |
14194 | return NULL; | |
14195 | } | |
14196 | ||
14197 | ||
14198 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14199 | PyObject *resultobj; | |
14200 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14201 | int result; | |
14202 | PyObject * obj0 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14210 | { |
14211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14212 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14213 | ||
14214 | wxPyEndAllowThreads(__tstate); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
2f4c0a16 | 14217 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14218 | return resultobj; |
14219 | fail: | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
14224 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14225 | PyObject *resultobj; | |
14226 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14227 | int result; | |
14228 | PyObject * obj0 = 0 ; | |
14229 | char *kwnames[] = { | |
14230 | (char *) "self", NULL | |
14231 | }; | |
14232 | ||
14233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14236 | { |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
2f4c0a16 | 14243 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14244 | return resultobj; |
14245 | fail: | |
14246 | return NULL; | |
14247 | } | |
14248 | ||
14249 | ||
14250 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14251 | PyObject *resultobj; | |
14252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14253 | int result; | |
14254 | PyObject * obj0 = 0 ; | |
14255 | char *kwnames[] = { | |
14256 | (char *) "self", NULL | |
14257 | }; | |
14258 | ||
14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14262 | { |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14265 | ||
14266 | wxPyEndAllowThreads(__tstate); | |
14267 | if (PyErr_Occurred()) SWIG_fail; | |
14268 | } | |
2f4c0a16 | 14269 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14270 | return resultobj; |
14271 | fail: | |
14272 | return NULL; | |
14273 | } | |
14274 | ||
14275 | ||
14276 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14277 | PyObject *resultobj; | |
14278 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14279 | bool result; | |
14280 | PyObject * obj0 = 0 ; | |
14281 | char *kwnames[] = { | |
14282 | (char *) "self", NULL | |
14283 | }; | |
14284 | ||
14285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14288 | { |
14289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14290 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14291 | ||
14292 | wxPyEndAllowThreads(__tstate); | |
14293 | if (PyErr_Occurred()) SWIG_fail; | |
14294 | } | |
4e760a36 | 14295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14296 | return resultobj; |
14297 | fail: | |
14298 | return NULL; | |
14299 | } | |
14300 | ||
14301 | ||
14302 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14303 | PyObject *resultobj; | |
14304 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14305 | int arg2 ; |
d14a1e28 | 14306 | PyObject * obj0 = 0 ; |
8edf1c75 | 14307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14308 | char *kwnames[] = { |
14309 | (char *) "self",(char *) "m_x", NULL | |
14310 | }; | |
14311 | ||
8edf1c75 | 14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14315 | arg2 = (int) SWIG_AsInt(obj1); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14317 | if (arg1) (arg1)->m_x = arg2; |
14318 | ||
14319 | Py_INCREF(Py_None); resultobj = Py_None; | |
14320 | return resultobj; | |
14321 | fail: | |
14322 | return NULL; | |
14323 | } | |
14324 | ||
14325 | ||
14326 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14327 | PyObject *resultobj; | |
14328 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14329 | int result; |
d14a1e28 RD |
14330 | PyObject * obj0 = 0 ; |
14331 | char *kwnames[] = { | |
14332 | (char *) "self", NULL | |
14333 | }; | |
14334 | ||
14335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14338 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14339 | |
2f4c0a16 | 14340 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14341 | return resultobj; |
14342 | fail: | |
14343 | return NULL; | |
14344 | } | |
14345 | ||
14346 | ||
14347 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14348 | PyObject *resultobj; | |
14349 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14350 | int arg2 ; |
d14a1e28 | 14351 | PyObject * obj0 = 0 ; |
8edf1c75 | 14352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14353 | char *kwnames[] = { |
14354 | (char *) "self",(char *) "m_y", NULL | |
14355 | }; | |
14356 | ||
8edf1c75 | 14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14360 | arg2 = (int) SWIG_AsInt(obj1); | |
14361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14362 | if (arg1) (arg1)->m_y = arg2; |
14363 | ||
14364 | Py_INCREF(Py_None); resultobj = Py_None; | |
14365 | return resultobj; | |
14366 | fail: | |
14367 | return NULL; | |
14368 | } | |
14369 | ||
14370 | ||
14371 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14372 | PyObject *resultobj; | |
14373 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14374 | int result; |
d14a1e28 RD |
14375 | PyObject * obj0 = 0 ; |
14376 | char *kwnames[] = { | |
14377 | (char *) "self", NULL | |
14378 | }; | |
14379 | ||
14380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14383 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14384 | |
2f4c0a16 | 14385 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14386 | return resultobj; |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14395 | bool arg2 ; | |
14396 | PyObject * obj0 = 0 ; | |
14397 | PyObject * obj1 = 0 ; | |
14398 | char *kwnames[] = { | |
14399 | (char *) "self",(char *) "m_leftDown", NULL | |
14400 | }; | |
14401 | ||
14402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14405 | arg2 = (bool) SWIG_AsBool(obj1); | |
14406 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14407 | if (arg1) (arg1)->m_leftDown = arg2; |
14408 | ||
14409 | Py_INCREF(Py_None); resultobj = Py_None; | |
14410 | return resultobj; | |
14411 | fail: | |
14412 | return NULL; | |
14413 | } | |
14414 | ||
14415 | ||
14416 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14417 | PyObject *resultobj; | |
14418 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14419 | bool result; | |
14420 | PyObject * obj0 = 0 ; | |
14421 | char *kwnames[] = { | |
14422 | (char *) "self", NULL | |
14423 | }; | |
14424 | ||
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14428 | result = (bool) ((arg1)->m_leftDown); |
14429 | ||
4e760a36 | 14430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14431 | return resultobj; |
14432 | fail: | |
14433 | return NULL; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14440 | bool arg2 ; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | PyObject * obj1 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (char *) "self",(char *) "m_middleDown", NULL | |
14445 | }; | |
14446 | ||
14447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14450 | arg2 = (bool) SWIG_AsBool(obj1); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14452 | if (arg1) (arg1)->m_middleDown = arg2; |
14453 | ||
14454 | Py_INCREF(Py_None); resultobj = Py_None; | |
14455 | return resultobj; | |
14456 | fail: | |
14457 | return NULL; | |
14458 | } | |
14459 | ||
14460 | ||
14461 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14462 | PyObject *resultobj; | |
14463 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14464 | bool result; | |
14465 | PyObject * obj0 = 0 ; | |
14466 | char *kwnames[] = { | |
14467 | (char *) "self", NULL | |
14468 | }; | |
14469 | ||
14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14473 | result = (bool) ((arg1)->m_middleDown); |
14474 | ||
4e760a36 | 14475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14476 | return resultobj; |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj; | |
14484 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14485 | bool arg2 ; | |
14486 | PyObject * obj0 = 0 ; | |
14487 | PyObject * obj1 = 0 ; | |
14488 | char *kwnames[] = { | |
14489 | (char *) "self",(char *) "m_rightDown", NULL | |
14490 | }; | |
14491 | ||
14492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14495 | arg2 = (bool) SWIG_AsBool(obj1); | |
14496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14497 | if (arg1) (arg1)->m_rightDown = arg2; |
14498 | ||
14499 | Py_INCREF(Py_None); resultobj = Py_None; | |
14500 | return resultobj; | |
14501 | fail: | |
14502 | return NULL; | |
14503 | } | |
14504 | ||
14505 | ||
14506 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14507 | PyObject *resultobj; | |
14508 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14509 | bool result; | |
14510 | PyObject * obj0 = 0 ; | |
14511 | char *kwnames[] = { | |
14512 | (char *) "self", NULL | |
14513 | }; | |
14514 | ||
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14518 | result = (bool) ((arg1)->m_rightDown); |
14519 | ||
4e760a36 | 14520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14521 | return resultobj; |
14522 | fail: | |
14523 | return NULL; | |
14524 | } | |
14525 | ||
14526 | ||
14527 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14528 | PyObject *resultobj; | |
14529 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14530 | bool arg2 ; | |
14531 | PyObject * obj0 = 0 ; | |
14532 | PyObject * obj1 = 0 ; | |
14533 | char *kwnames[] = { | |
14534 | (char *) "self",(char *) "m_controlDown", NULL | |
14535 | }; | |
14536 | ||
14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14540 | arg2 = (bool) SWIG_AsBool(obj1); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14542 | if (arg1) (arg1)->m_controlDown = arg2; |
14543 | ||
14544 | Py_INCREF(Py_None); resultobj = Py_None; | |
14545 | return resultobj; | |
14546 | fail: | |
14547 | return NULL; | |
14548 | } | |
14549 | ||
14550 | ||
14551 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14552 | PyObject *resultobj; | |
14553 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14554 | bool result; | |
14555 | PyObject * obj0 = 0 ; | |
14556 | char *kwnames[] = { | |
14557 | (char *) "self", NULL | |
14558 | }; | |
14559 | ||
14560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14563 | result = (bool) ((arg1)->m_controlDown); |
14564 | ||
4e760a36 | 14565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14566 | return resultobj; |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14575 | bool arg2 ; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | PyObject * obj1 = 0 ; | |
14578 | char *kwnames[] = { | |
14579 | (char *) "self",(char *) "m_shiftDown", NULL | |
14580 | }; | |
14581 | ||
14582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14585 | arg2 = (bool) SWIG_AsBool(obj1); | |
14586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14587 | if (arg1) (arg1)->m_shiftDown = arg2; |
14588 | ||
14589 | Py_INCREF(Py_None); resultobj = Py_None; | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14599 | bool result; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | char *kwnames[] = { | |
14602 | (char *) "self", NULL | |
14603 | }; | |
14604 | ||
14605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14608 | result = (bool) ((arg1)->m_shiftDown); |
14609 | ||
4e760a36 | 14610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14611 | return resultobj; |
14612 | fail: | |
14613 | return NULL; | |
14614 | } | |
14615 | ||
14616 | ||
14617 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14618 | PyObject *resultobj; | |
14619 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14620 | bool arg2 ; | |
14621 | PyObject * obj0 = 0 ; | |
14622 | PyObject * obj1 = 0 ; | |
14623 | char *kwnames[] = { | |
14624 | (char *) "self",(char *) "m_altDown", NULL | |
14625 | }; | |
14626 | ||
14627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14630 | arg2 = (bool) SWIG_AsBool(obj1); | |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14632 | if (arg1) (arg1)->m_altDown = arg2; |
14633 | ||
14634 | Py_INCREF(Py_None); resultobj = Py_None; | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14642 | PyObject *resultobj; | |
14643 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14644 | bool result; | |
14645 | PyObject * obj0 = 0 ; | |
14646 | char *kwnames[] = { | |
14647 | (char *) "self", NULL | |
14648 | }; | |
14649 | ||
14650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14653 | result = (bool) ((arg1)->m_altDown); |
14654 | ||
4e760a36 | 14655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14656 | return resultobj; |
14657 | fail: | |
14658 | return NULL; | |
14659 | } | |
14660 | ||
14661 | ||
14662 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14663 | PyObject *resultobj; | |
14664 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14665 | bool arg2 ; | |
14666 | PyObject * obj0 = 0 ; | |
14667 | PyObject * obj1 = 0 ; | |
14668 | char *kwnames[] = { | |
14669 | (char *) "self",(char *) "m_metaDown", NULL | |
14670 | }; | |
14671 | ||
14672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14675 | arg2 = (bool) SWIG_AsBool(obj1); | |
14676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14677 | if (arg1) (arg1)->m_metaDown = arg2; |
14678 | ||
14679 | Py_INCREF(Py_None); resultobj = Py_None; | |
14680 | return resultobj; | |
14681 | fail: | |
14682 | return NULL; | |
14683 | } | |
14684 | ||
14685 | ||
14686 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14687 | PyObject *resultobj; | |
14688 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14689 | bool result; | |
14690 | PyObject * obj0 = 0 ; | |
14691 | char *kwnames[] = { | |
14692 | (char *) "self", NULL | |
14693 | }; | |
14694 | ||
14695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14698 | result = (bool) ((arg1)->m_metaDown); |
14699 | ||
4e760a36 | 14700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14701 | return resultobj; |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
14707 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14708 | PyObject *resultobj; | |
14709 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14710 | int arg2 ; | |
14711 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14713 | char *kwnames[] = { |
14714 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14715 | }; | |
14716 | ||
8edf1c75 | 14717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14720 | arg2 = (int) SWIG_AsInt(obj1); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14722 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14723 | ||
14724 | Py_INCREF(Py_None); resultobj = Py_None; | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj; | |
14733 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14734 | int result; | |
14735 | PyObject * obj0 = 0 ; | |
14736 | char *kwnames[] = { | |
14737 | (char *) "self", NULL | |
14738 | }; | |
14739 | ||
14740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14743 | result = (int) ((arg1)->m_wheelRotation); |
14744 | ||
2f4c0a16 | 14745 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14746 | return resultobj; |
14747 | fail: | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
14752 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14753 | PyObject *resultobj; | |
14754 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14755 | int arg2 ; | |
14756 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14758 | char *kwnames[] = { |
14759 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14760 | }; | |
14761 | ||
8edf1c75 | 14762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14765 | arg2 = (int) SWIG_AsInt(obj1); | |
14766 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14767 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14768 | ||
14769 | Py_INCREF(Py_None); resultobj = Py_None; | |
14770 | return resultobj; | |
14771 | fail: | |
14772 | return NULL; | |
14773 | } | |
14774 | ||
14775 | ||
14776 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14777 | PyObject *resultobj; | |
14778 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14779 | int result; | |
14780 | PyObject * obj0 = 0 ; | |
14781 | char *kwnames[] = { | |
14782 | (char *) "self", NULL | |
14783 | }; | |
14784 | ||
14785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14788 | result = (int) ((arg1)->m_wheelDelta); |
14789 | ||
2f4c0a16 | 14790 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14791 | return resultobj; |
14792 | fail: | |
14793 | return NULL; | |
14794 | } | |
14795 | ||
14796 | ||
14797 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14798 | PyObject *resultobj; | |
14799 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14800 | int arg2 ; | |
14801 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14803 | char *kwnames[] = { |
14804 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14805 | }; | |
14806 | ||
8edf1c75 | 14807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14810 | arg2 = (int) SWIG_AsInt(obj1); | |
14811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14812 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14813 | ||
14814 | Py_INCREF(Py_None); resultobj = Py_None; | |
14815 | return resultobj; | |
14816 | fail: | |
14817 | return NULL; | |
14818 | } | |
14819 | ||
14820 | ||
14821 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14822 | PyObject *resultobj; | |
14823 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14824 | int result; | |
14825 | PyObject * obj0 = 0 ; | |
14826 | char *kwnames[] = { | |
14827 | (char *) "self", NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14833 | result = (int) ((arg1)->m_linesPerAction); |
14834 | ||
2f4c0a16 | 14835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14836 | return resultobj; |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
14843 | PyObject *obj; | |
14844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14845 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
14846 | Py_INCREF(obj); | |
14847 | return Py_BuildValue((char *)""); | |
14848 | } | |
14849 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14850 | PyObject *resultobj; | |
423f194a RD |
14851 | int arg1 = (int) 0 ; |
14852 | int arg2 = (int) 0 ; | |
d14a1e28 | 14853 | wxSetCursorEvent *result; |
8edf1c75 RD |
14854 | PyObject * obj0 = 0 ; |
14855 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
14856 | char *kwnames[] = { |
14857 | (char *) "x",(char *) "y", NULL | |
14858 | }; | |
14859 | ||
8edf1c75 RD |
14860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
14861 | if (obj0) { | |
2f4c0a16 RD |
14862 | arg1 = (int) SWIG_AsInt(obj0); |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14864 | } |
14865 | if (obj1) { | |
2f4c0a16 RD |
14866 | arg2 = (int) SWIG_AsInt(obj1); |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14868 | } |
d14a1e28 RD |
14869 | { |
14870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14871 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
14872 | ||
14873 | wxPyEndAllowThreads(__tstate); | |
14874 | if (PyErr_Occurred()) SWIG_fail; | |
14875 | } | |
2f4c0a16 | 14876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
14877 | return resultobj; |
14878 | fail: | |
14879 | return NULL; | |
14880 | } | |
14881 | ||
14882 | ||
14883 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14884 | PyObject *resultobj; | |
14885 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14886 | int result; |
d14a1e28 RD |
14887 | PyObject * obj0 = 0 ; |
14888 | char *kwnames[] = { | |
14889 | (char *) "self", NULL | |
14890 | }; | |
14891 | ||
14892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14895 | { |
14896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14897 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14898 | |
14899 | wxPyEndAllowThreads(__tstate); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | } | |
2f4c0a16 | 14902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14903 | return resultobj; |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
14909 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14910 | PyObject *resultobj; | |
14911 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 14912 | int result; |
d14a1e28 RD |
14913 | PyObject * obj0 = 0 ; |
14914 | char *kwnames[] = { | |
14915 | (char *) "self", NULL | |
14916 | }; | |
14917 | ||
14918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14921 | { |
14922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14923 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14924 | |
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
2f4c0a16 | 14928 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14929 | return resultobj; |
14930 | fail: | |
14931 | return NULL; | |
14932 | } | |
14933 | ||
14934 | ||
14935 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14936 | PyObject *resultobj; | |
14937 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14938 | wxCursor *arg2 = 0 ; | |
14939 | PyObject * obj0 = 0 ; | |
14940 | PyObject * obj1 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self",(char *) "cursor", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
14949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14950 | SWIG_fail; | |
d14a1e28 | 14951 | if (arg2 == NULL) { |
2f4c0a16 RD |
14952 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14953 | SWIG_fail; | |
d14a1e28 RD |
14954 | } |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | Py_INCREF(Py_None); resultobj = Py_None; | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14970 | PyObject *resultobj; | |
14971 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
14972 | wxCursor *result; | |
14973 | PyObject * obj0 = 0 ; | |
14974 | char *kwnames[] = { | |
14975 | (char *) "self", NULL | |
14976 | }; | |
14977 | ||
14978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
14980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14981 | { |
14982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14983 | { | |
14984 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
14985 | result = (wxCursor *) &_result_ref; | |
14986 | } | |
14987 | ||
14988 | wxPyEndAllowThreads(__tstate); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
14990 | } | |
2f4c0a16 | 14991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
14992 | return resultobj; |
14993 | fail: | |
14994 | return NULL; | |
14995 | } | |
14996 | ||
14997 | ||
14998 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14999 | PyObject *resultobj; | |
15000 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15001 | bool result; | |
15002 | PyObject * obj0 = 0 ; | |
15003 | char *kwnames[] = { | |
15004 | (char *) "self", NULL | |
15005 | }; | |
15006 | ||
15007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15010 | { |
15011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15012 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15013 | ||
15014 | wxPyEndAllowThreads(__tstate); | |
15015 | if (PyErr_Occurred()) SWIG_fail; | |
15016 | } | |
4e760a36 | 15017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15018 | return resultobj; |
15019 | fail: | |
15020 | return NULL; | |
15021 | } | |
15022 | ||
15023 | ||
15024 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15025 | PyObject *obj; | |
15026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15027 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15028 | Py_INCREF(obj); | |
15029 | return Py_BuildValue((char *)""); | |
15030 | } | |
15031 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15032 | PyObject *resultobj; | |
15033 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15034 | wxKeyEvent *result; | |
8edf1c75 | 15035 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15036 | char *kwnames[] = { |
15037 | (char *) "keyType", NULL | |
15038 | }; | |
15039 | ||
8edf1c75 RD |
15040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15041 | if (obj0) { | |
2f4c0a16 RD |
15042 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15044 | } |
d14a1e28 RD |
15045 | { |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15048 | ||
15049 | wxPyEndAllowThreads(__tstate); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
2f4c0a16 | 15052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15053 | return resultobj; |
15054 | fail: | |
15055 | return NULL; | |
15056 | } | |
15057 | ||
15058 | ||
15059 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15060 | PyObject *resultobj; | |
15061 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15062 | bool result; | |
15063 | PyObject * obj0 = 0 ; | |
15064 | char *kwnames[] = { | |
15065 | (char *) "self", NULL | |
15066 | }; | |
15067 | ||
15068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15071 | { |
15072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15073 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15074 | ||
15075 | wxPyEndAllowThreads(__tstate); | |
15076 | if (PyErr_Occurred()) SWIG_fail; | |
15077 | } | |
4e760a36 | 15078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15079 | return resultobj; |
15080 | fail: | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15088 | bool result; | |
15089 | PyObject * obj0 = 0 ; | |
15090 | char *kwnames[] = { | |
15091 | (char *) "self", NULL | |
15092 | }; | |
15093 | ||
15094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15097 | { |
15098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15099 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15100 | ||
15101 | wxPyEndAllowThreads(__tstate); | |
15102 | if (PyErr_Occurred()) SWIG_fail; | |
15103 | } | |
4e760a36 | 15104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15105 | return resultobj; |
15106 | fail: | |
15107 | return NULL; | |
15108 | } | |
15109 | ||
15110 | ||
15111 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15112 | PyObject *resultobj; | |
15113 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15114 | bool result; | |
15115 | PyObject * obj0 = 0 ; | |
15116 | char *kwnames[] = { | |
15117 | (char *) "self", NULL | |
15118 | }; | |
15119 | ||
15120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15123 | { |
15124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15125 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15126 | ||
15127 | wxPyEndAllowThreads(__tstate); | |
15128 | if (PyErr_Occurred()) SWIG_fail; | |
15129 | } | |
4e760a36 | 15130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15131 | return resultobj; |
15132 | fail: | |
15133 | return NULL; | |
15134 | } | |
15135 | ||
15136 | ||
15137 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15138 | PyObject *resultobj; | |
15139 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15140 | bool result; | |
15141 | PyObject * obj0 = 0 ; | |
15142 | char *kwnames[] = { | |
15143 | (char *) "self", NULL | |
15144 | }; | |
15145 | ||
15146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15149 | { |
15150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15151 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15152 | ||
15153 | wxPyEndAllowThreads(__tstate); | |
15154 | if (PyErr_Occurred()) SWIG_fail; | |
15155 | } | |
4e760a36 | 15156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15157 | return resultobj; |
15158 | fail: | |
15159 | return NULL; | |
15160 | } | |
15161 | ||
15162 | ||
15163 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15164 | PyObject *resultobj; | |
15165 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15166 | bool result; | |
15167 | PyObject * obj0 = 0 ; | |
15168 | char *kwnames[] = { | |
15169 | (char *) "self", NULL | |
15170 | }; | |
15171 | ||
15172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15175 | { |
15176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15177 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15178 | ||
15179 | wxPyEndAllowThreads(__tstate); | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
4e760a36 | 15182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15183 | return resultobj; |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15192 | int result; | |
15193 | PyObject * obj0 = 0 ; | |
15194 | char *kwnames[] = { | |
15195 | (char *) "self", NULL | |
15196 | }; | |
15197 | ||
15198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15201 | { |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15204 | ||
15205 | wxPyEndAllowThreads(__tstate); | |
15206 | if (PyErr_Occurred()) SWIG_fail; | |
15207 | } | |
2f4c0a16 | 15208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15209 | return resultobj; |
15210 | fail: | |
15211 | return NULL; | |
15212 | } | |
15213 | ||
15214 | ||
15215 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15216 | PyObject *resultobj; | |
15217 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15218 | int result; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "self", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15227 | { |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
2f4c0a16 | 15234 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15235 | return resultobj; |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
15241 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15242 | PyObject *resultobj; | |
15243 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15244 | unsigned int result; |
d14a1e28 RD |
15245 | PyObject * obj0 = 0 ; |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15253 | { |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15255 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15256 | |
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
2f4c0a16 | 15260 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15261 | return resultobj; |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
15267 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15268 | PyObject *resultobj; | |
15269 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15270 | unsigned int result; |
d14a1e28 RD |
15271 | PyObject * obj0 = 0 ; |
15272 | char *kwnames[] = { | |
15273 | (char *) "self", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15279 | { |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15281 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15282 | |
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
2f4c0a16 | 15286 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15287 | return resultobj; |
15288 | fail: | |
15289 | return NULL; | |
15290 | } | |
15291 | ||
15292 | ||
15293 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15294 | PyObject *resultobj; | |
15295 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15296 | wxPoint result; | |
15297 | PyObject * obj0 = 0 ; | |
15298 | char *kwnames[] = { | |
15299 | (char *) "self", NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15305 | { |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | result = (arg1)->GetPosition(); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | { | |
15313 | wxPoint * resultptr; | |
15314 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15316 | } |
15317 | return resultobj; | |
15318 | fail: | |
15319 | return NULL; | |
15320 | } | |
15321 | ||
15322 | ||
15323 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15324 | PyObject *resultobj; | |
15325 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15326 | long *arg2 = (long *) 0 ; | |
15327 | long *arg3 = (long *) 0 ; | |
15328 | long temp2 ; | |
15329 | long temp3 ; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self", NULL | |
15333 | }; | |
15334 | ||
15335 | arg2 = &temp2; | |
15336 | arg3 = &temp3; | |
15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15340 | { |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | (arg1)->GetPosition(arg2,arg3); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | Py_INCREF(Py_None); resultobj = Py_None; | |
15348 | { | |
15349 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15350 | resultobj = t_output_helper(resultobj,o); | |
15351 | } | |
15352 | { | |
15353 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15354 | resultobj = t_output_helper(resultobj,o); | |
15355 | } | |
15356 | return resultobj; | |
15357 | fail: | |
15358 | return NULL; | |
15359 | } | |
15360 | ||
15361 | ||
15362 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15363 | PyObject *resultobj; | |
15364 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15365 | int result; |
d14a1e28 RD |
15366 | PyObject * obj0 = 0 ; |
15367 | char *kwnames[] = { | |
15368 | (char *) "self", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15374 | { |
15375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15376 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15377 | |
15378 | wxPyEndAllowThreads(__tstate); | |
15379 | if (PyErr_Occurred()) SWIG_fail; | |
15380 | } | |
2f4c0a16 | 15381 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15382 | return resultobj; |
15383 | fail: | |
15384 | return NULL; | |
15385 | } | |
15386 | ||
15387 | ||
15388 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15389 | PyObject *resultobj; | |
15390 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15391 | int result; |
d14a1e28 RD |
15392 | PyObject * obj0 = 0 ; |
15393 | char *kwnames[] = { | |
15394 | (char *) "self", NULL | |
15395 | }; | |
15396 | ||
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15400 | { |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15402 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15403 | |
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
2f4c0a16 | 15407 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15408 | return resultobj; |
15409 | fail: | |
15410 | return NULL; | |
15411 | } | |
15412 | ||
15413 | ||
15414 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15415 | PyObject *resultobj; | |
15416 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15417 | int arg2 ; |
d14a1e28 | 15418 | PyObject * obj0 = 0 ; |
8edf1c75 | 15419 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15420 | char *kwnames[] = { |
15421 | (char *) "self",(char *) "m_x", NULL | |
15422 | }; | |
15423 | ||
8edf1c75 | 15424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15427 | arg2 = (int) SWIG_AsInt(obj1); | |
15428 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15429 | if (arg1) (arg1)->m_x = arg2; |
15430 | ||
15431 | Py_INCREF(Py_None); resultobj = Py_None; | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
15438 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15439 | PyObject *resultobj; | |
15440 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15441 | int result; |
d14a1e28 RD |
15442 | PyObject * obj0 = 0 ; |
15443 | char *kwnames[] = { | |
15444 | (char *) "self", NULL | |
15445 | }; | |
15446 | ||
15447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15450 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15451 | |
2f4c0a16 | 15452 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15453 | return resultobj; |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj; | |
15461 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15462 | int arg2 ; |
d14a1e28 | 15463 | PyObject * obj0 = 0 ; |
8edf1c75 | 15464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15465 | char *kwnames[] = { |
15466 | (char *) "self",(char *) "m_y", NULL | |
15467 | }; | |
15468 | ||
8edf1c75 | 15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15472 | arg2 = (int) SWIG_AsInt(obj1); | |
15473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15474 | if (arg1) (arg1)->m_y = arg2; |
15475 | ||
15476 | Py_INCREF(Py_None); resultobj = Py_None; | |
15477 | return resultobj; | |
15478 | fail: | |
15479 | return NULL; | |
15480 | } | |
15481 | ||
15482 | ||
15483 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15484 | PyObject *resultobj; | |
15485 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15486 | int result; |
d14a1e28 RD |
15487 | PyObject * obj0 = 0 ; |
15488 | char *kwnames[] = { | |
15489 | (char *) "self", NULL | |
15490 | }; | |
15491 | ||
15492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15495 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15496 | |
2f4c0a16 | 15497 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15498 | return resultobj; |
15499 | fail: | |
15500 | return NULL; | |
15501 | } | |
15502 | ||
15503 | ||
15504 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15505 | PyObject *resultobj; | |
15506 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15507 | long arg2 ; | |
15508 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15509 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15510 | char *kwnames[] = { |
15511 | (char *) "self",(char *) "m_keyCode", NULL | |
15512 | }; | |
15513 | ||
8edf1c75 | 15514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15517 | arg2 = (long) SWIG_AsLong(obj1); | |
15518 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15519 | if (arg1) (arg1)->m_keyCode = arg2; |
15520 | ||
15521 | Py_INCREF(Py_None); resultobj = Py_None; | |
15522 | return resultobj; | |
15523 | fail: | |
15524 | return NULL; | |
15525 | } | |
15526 | ||
15527 | ||
15528 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15529 | PyObject *resultobj; | |
15530 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15531 | long result; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | char *kwnames[] = { | |
15534 | (char *) "self", NULL | |
15535 | }; | |
15536 | ||
15537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15540 | result = (long) ((arg1)->m_keyCode); |
15541 | ||
2f4c0a16 | 15542 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15543 | return resultobj; |
15544 | fail: | |
15545 | return NULL; | |
15546 | } | |
15547 | ||
15548 | ||
15549 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15550 | PyObject *resultobj; | |
15551 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15552 | bool arg2 ; | |
15553 | PyObject * obj0 = 0 ; | |
15554 | PyObject * obj1 = 0 ; | |
15555 | char *kwnames[] = { | |
15556 | (char *) "self",(char *) "m_controlDown", NULL | |
15557 | }; | |
15558 | ||
15559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15562 | arg2 = (bool) SWIG_AsBool(obj1); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15564 | if (arg1) (arg1)->m_controlDown = arg2; |
15565 | ||
15566 | Py_INCREF(Py_None); resultobj = Py_None; | |
15567 | return resultobj; | |
15568 | fail: | |
15569 | return NULL; | |
15570 | } | |
15571 | ||
15572 | ||
15573 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15574 | PyObject *resultobj; | |
15575 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15576 | bool result; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | char *kwnames[] = { | |
15579 | (char *) "self", NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15585 | result = (bool) ((arg1)->m_controlDown); |
15586 | ||
4e760a36 | 15587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15588 | return resultobj; |
15589 | fail: | |
15590 | return NULL; | |
15591 | } | |
15592 | ||
15593 | ||
15594 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15595 | PyObject *resultobj; | |
15596 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15597 | bool arg2 ; | |
15598 | PyObject * obj0 = 0 ; | |
15599 | PyObject * obj1 = 0 ; | |
15600 | char *kwnames[] = { | |
15601 | (char *) "self",(char *) "m_shiftDown", NULL | |
15602 | }; | |
15603 | ||
15604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15607 | arg2 = (bool) SWIG_AsBool(obj1); | |
15608 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15609 | if (arg1) (arg1)->m_shiftDown = arg2; |
15610 | ||
15611 | Py_INCREF(Py_None); resultobj = Py_None; | |
15612 | return resultobj; | |
15613 | fail: | |
15614 | return NULL; | |
15615 | } | |
15616 | ||
15617 | ||
15618 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15619 | PyObject *resultobj; | |
15620 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15621 | bool result; | |
15622 | PyObject * obj0 = 0 ; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "self", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15630 | result = (bool) ((arg1)->m_shiftDown); |
15631 | ||
4e760a36 | 15632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15633 | return resultobj; |
15634 | fail: | |
15635 | return NULL; | |
15636 | } | |
15637 | ||
15638 | ||
15639 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15640 | PyObject *resultobj; | |
15641 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15642 | bool arg2 ; | |
15643 | PyObject * obj0 = 0 ; | |
15644 | PyObject * obj1 = 0 ; | |
15645 | char *kwnames[] = { | |
15646 | (char *) "self",(char *) "m_altDown", NULL | |
15647 | }; | |
15648 | ||
15649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15652 | arg2 = (bool) SWIG_AsBool(obj1); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15654 | if (arg1) (arg1)->m_altDown = arg2; |
15655 | ||
15656 | Py_INCREF(Py_None); resultobj = Py_None; | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
15663 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15664 | PyObject *resultobj; | |
15665 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15666 | bool result; | |
15667 | PyObject * obj0 = 0 ; | |
15668 | char *kwnames[] = { | |
15669 | (char *) "self", NULL | |
15670 | }; | |
15671 | ||
15672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15675 | result = (bool) ((arg1)->m_altDown); |
15676 | ||
4e760a36 | 15677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15678 | return resultobj; |
15679 | fail: | |
15680 | return NULL; | |
15681 | } | |
15682 | ||
15683 | ||
15684 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15685 | PyObject *resultobj; | |
15686 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15687 | bool arg2 ; | |
15688 | PyObject * obj0 = 0 ; | |
15689 | PyObject * obj1 = 0 ; | |
15690 | char *kwnames[] = { | |
15691 | (char *) "self",(char *) "m_metaDown", NULL | |
15692 | }; | |
15693 | ||
15694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15697 | arg2 = (bool) SWIG_AsBool(obj1); | |
15698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15699 | if (arg1) (arg1)->m_metaDown = arg2; |
15700 | ||
15701 | Py_INCREF(Py_None); resultobj = Py_None; | |
15702 | return resultobj; | |
15703 | fail: | |
15704 | return NULL; | |
15705 | } | |
15706 | ||
15707 | ||
15708 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15709 | PyObject *resultobj; | |
15710 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15711 | bool result; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | char *kwnames[] = { | |
15714 | (char *) "self", NULL | |
15715 | }; | |
15716 | ||
15717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15720 | result = (bool) ((arg1)->m_metaDown); |
15721 | ||
4e760a36 | 15722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15723 | return resultobj; |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
15729 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15730 | PyObject *resultobj; | |
15731 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15732 | bool arg2 ; | |
15733 | PyObject * obj0 = 0 ; | |
15734 | PyObject * obj1 = 0 ; | |
15735 | char *kwnames[] = { | |
15736 | (char *) "self",(char *) "m_scanCode", NULL | |
15737 | }; | |
15738 | ||
15739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15742 | arg2 = (bool) SWIG_AsBool(obj1); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15744 | if (arg1) (arg1)->m_scanCode = arg2; |
15745 | ||
15746 | Py_INCREF(Py_None); resultobj = Py_None; | |
15747 | return resultobj; | |
15748 | fail: | |
15749 | return NULL; | |
15750 | } | |
15751 | ||
15752 | ||
15753 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15754 | PyObject *resultobj; | |
15755 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15756 | bool result; | |
15757 | PyObject * obj0 = 0 ; | |
15758 | char *kwnames[] = { | |
15759 | (char *) "self", NULL | |
15760 | }; | |
15761 | ||
15762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15765 | result = (bool) ((arg1)->m_scanCode); |
15766 | ||
4e760a36 | 15767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15768 | return resultobj; |
15769 | fail: | |
15770 | return NULL; | |
15771 | } | |
15772 | ||
15773 | ||
15774 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15775 | PyObject *resultobj; | |
15776 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15777 | unsigned int arg2 ; |
d14a1e28 RD |
15778 | PyObject * obj0 = 0 ; |
15779 | PyObject * obj1 = 0 ; | |
15780 | char *kwnames[] = { | |
15781 | (char *) "self",(char *) "m_rawCode", NULL | |
15782 | }; | |
15783 | ||
15784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15787 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15789 | if (arg1) (arg1)->m_rawCode = arg2; |
15790 | ||
15791 | Py_INCREF(Py_None); resultobj = Py_None; | |
15792 | return resultobj; | |
15793 | fail: | |
15794 | return NULL; | |
15795 | } | |
15796 | ||
15797 | ||
15798 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15799 | PyObject *resultobj; | |
15800 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15801 | unsigned int result; |
d14a1e28 RD |
15802 | PyObject * obj0 = 0 ; |
15803 | char *kwnames[] = { | |
15804 | (char *) "self", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15810 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 15811 | |
2f4c0a16 | 15812 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15813 | return resultobj; |
15814 | fail: | |
15815 | return NULL; | |
15816 | } | |
15817 | ||
15818 | ||
15819 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15820 | PyObject *resultobj; | |
15821 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15822 | unsigned int arg2 ; |
d14a1e28 RD |
15823 | PyObject * obj0 = 0 ; |
15824 | PyObject * obj1 = 0 ; | |
15825 | char *kwnames[] = { | |
15826 | (char *) "self",(char *) "m_rawFlags", NULL | |
15827 | }; | |
15828 | ||
15829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15832 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15834 | if (arg1) (arg1)->m_rawFlags = arg2; |
15835 | ||
15836 | Py_INCREF(Py_None); resultobj = Py_None; | |
15837 | return resultobj; | |
15838 | fail: | |
15839 | return NULL; | |
15840 | } | |
15841 | ||
15842 | ||
15843 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15844 | PyObject *resultobj; | |
15845 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15846 | unsigned int result; |
d14a1e28 RD |
15847 | PyObject * obj0 = 0 ; |
15848 | char *kwnames[] = { | |
15849 | (char *) "self", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15855 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 15856 | |
2f4c0a16 | 15857 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15858 | return resultobj; |
15859 | fail: | |
15860 | return NULL; | |
15861 | } | |
15862 | ||
15863 | ||
15864 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
15865 | PyObject *obj; | |
15866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15867 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
15868 | Py_INCREF(obj); | |
15869 | return Py_BuildValue((char *)""); | |
15870 | } | |
15871 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15872 | PyObject *resultobj; | |
15873 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
15874 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
15875 | int arg2 = (int) 0 ; | |
15876 | wxSizeEvent *result; | |
15877 | wxSize temp1 ; | |
15878 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15880 | char *kwnames[] = { |
15881 | (char *) "sz",(char *) "winid", NULL | |
15882 | }; | |
15883 | ||
8edf1c75 | 15884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
15885 | if (obj0) { |
15886 | { | |
15887 | arg1 = &temp1; | |
15888 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
15889 | } | |
15890 | } | |
8edf1c75 | 15891 | if (obj1) { |
2f4c0a16 RD |
15892 | arg2 = (int) SWIG_AsInt(obj1); |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15894 | } |
d14a1e28 RD |
15895 | { |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
15898 | ||
15899 | wxPyEndAllowThreads(__tstate); | |
15900 | if (PyErr_Occurred()) SWIG_fail; | |
15901 | } | |
2f4c0a16 | 15902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
15903 | return resultobj; |
15904 | fail: | |
15905 | return NULL; | |
15906 | } | |
15907 | ||
15908 | ||
15909 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15910 | PyObject *resultobj; | |
15911 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15912 | wxSize result; | |
15913 | PyObject * obj0 = 0 ; | |
15914 | char *kwnames[] = { | |
15915 | (char *) "self", NULL | |
15916 | }; | |
15917 | ||
15918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15921 | { |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
15924 | ||
15925 | wxPyEndAllowThreads(__tstate); | |
15926 | if (PyErr_Occurred()) SWIG_fail; | |
15927 | } | |
15928 | { | |
15929 | wxSize * resultptr; | |
15930 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 15931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15932 | } |
15933 | return resultobj; | |
15934 | fail: | |
15935 | return NULL; | |
15936 | } | |
15937 | ||
15938 | ||
15939 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15940 | PyObject *resultobj; | |
15941 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15942 | wxRect result; | |
15943 | PyObject * obj0 = 0 ; | |
15944 | char *kwnames[] = { | |
15945 | (char *) "self", NULL | |
15946 | }; | |
15947 | ||
15948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15951 | { |
15952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15953 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
15954 | ||
15955 | wxPyEndAllowThreads(__tstate); | |
15956 | if (PyErr_Occurred()) SWIG_fail; | |
15957 | } | |
15958 | { | |
15959 | wxRect * resultptr; | |
15960 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 15961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
15962 | } |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
15969 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15970 | PyObject *resultobj; | |
15971 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
15972 | wxRect arg2 ; | |
15973 | wxRect *argp2 ; | |
15974 | PyObject * obj0 = 0 ; | |
15975 | PyObject * obj1 = 0 ; | |
15976 | char *kwnames[] = { | |
15977 | (char *) "self",(char *) "rect", NULL | |
15978 | }; | |
15979 | ||
15980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
15982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15983 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
15984 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
15985 | arg2 = *argp2; | |
d14a1e28 RD |
15986 | { |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | (arg1)->SetRect(arg2); | |
15989 | ||
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
15993 | Py_INCREF(Py_None); resultobj = Py_None; | |
15994 | return resultobj; | |
15995 | fail: | |
15996 | return NULL; | |
15997 | } | |
15998 | ||
15999 | ||
16000 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16001 | PyObject *resultobj; | |
16002 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16003 | wxSize arg2 ; | |
16004 | wxSize *argp2 ; | |
16005 | PyObject * obj0 = 0 ; | |
16006 | PyObject * obj1 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self",(char *) "size", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16015 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16016 | arg2 = *argp2; | |
d14a1e28 RD |
16017 | { |
16018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16019 | wxSizeEvent_SetSize(arg1,arg2); | |
16020 | ||
16021 | wxPyEndAllowThreads(__tstate); | |
16022 | if (PyErr_Occurred()) SWIG_fail; | |
16023 | } | |
16024 | Py_INCREF(Py_None); resultobj = Py_None; | |
16025 | return resultobj; | |
16026 | fail: | |
16027 | return NULL; | |
16028 | } | |
16029 | ||
16030 | ||
16031 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16032 | PyObject *resultobj; | |
16033 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16034 | wxSize *arg2 = (wxSize *) 0 ; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | PyObject * obj1 = 0 ; | |
16037 | char *kwnames[] = { | |
16038 | (char *) "self",(char *) "m_size", NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16046 | if (arg1) (arg1)->m_size = *arg2; |
16047 | ||
16048 | Py_INCREF(Py_None); resultobj = Py_None; | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | return NULL; | |
16052 | } | |
16053 | ||
16054 | ||
16055 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16056 | PyObject *resultobj; | |
16057 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16058 | wxSize *result; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | char *kwnames[] = { | |
16061 | (char *) "self", NULL | |
16062 | }; | |
16063 | ||
16064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16067 | result = (wxSize *)& ((arg1)->m_size); |
16068 | ||
2f4c0a16 | 16069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16070 | return resultobj; |
16071 | fail: | |
16072 | return NULL; | |
16073 | } | |
16074 | ||
16075 | ||
16076 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16077 | PyObject *resultobj; | |
16078 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16079 | wxRect *arg2 = (wxRect *) 0 ; | |
16080 | PyObject * obj0 = 0 ; | |
16081 | PyObject * obj1 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self",(char *) "m_rect", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16091 | if (arg1) (arg1)->m_rect = *arg2; |
16092 | ||
16093 | Py_INCREF(Py_None); resultobj = Py_None; | |
16094 | return resultobj; | |
16095 | fail: | |
16096 | return NULL; | |
16097 | } | |
16098 | ||
16099 | ||
16100 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16101 | PyObject *resultobj; | |
16102 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16103 | wxRect *result; | |
16104 | PyObject * obj0 = 0 ; | |
16105 | char *kwnames[] = { | |
16106 | (char *) "self", NULL | |
16107 | }; | |
16108 | ||
16109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16112 | result = (wxRect *)& ((arg1)->m_rect); |
16113 | ||
2f4c0a16 | 16114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16115 | return resultobj; |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
16121 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16122 | PyObject *obj; | |
16123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16124 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16125 | Py_INCREF(obj); | |
16126 | return Py_BuildValue((char *)""); | |
16127 | } | |
16128 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16129 | PyObject *resultobj; | |
16130 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16131 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16132 | int arg2 = (int) 0 ; | |
16133 | wxMoveEvent *result; | |
16134 | wxPoint temp1 ; | |
16135 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16137 | char *kwnames[] = { |
16138 | (char *) "pos",(char *) "winid", NULL | |
16139 | }; | |
16140 | ||
8edf1c75 | 16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16142 | if (obj0) { |
16143 | { | |
16144 | arg1 = &temp1; | |
16145 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16146 | } | |
16147 | } | |
8edf1c75 | 16148 | if (obj1) { |
2f4c0a16 RD |
16149 | arg2 = (int) SWIG_AsInt(obj1); |
16150 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16151 | } |
d14a1e28 RD |
16152 | { |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
2f4c0a16 | 16159 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16160 | return resultobj; |
16161 | fail: | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16169 | wxPoint result; | |
16170 | PyObject * obj0 = 0 ; | |
16171 | char *kwnames[] = { | |
16172 | (char *) "self", NULL | |
16173 | }; | |
16174 | ||
16175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16178 | { |
16179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16180 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16181 | ||
16182 | wxPyEndAllowThreads(__tstate); | |
16183 | if (PyErr_Occurred()) SWIG_fail; | |
16184 | } | |
16185 | { | |
16186 | wxPoint * resultptr; | |
16187 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 16188 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16189 | } |
16190 | return resultobj; | |
16191 | fail: | |
16192 | return NULL; | |
16193 | } | |
16194 | ||
16195 | ||
16196 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16197 | PyObject *resultobj; | |
16198 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16199 | wxRect result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "self", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16208 | { |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | { | |
16216 | wxRect * resultptr; | |
16217 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16218 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16219 | } |
16220 | return resultobj; | |
16221 | fail: | |
16222 | return NULL; | |
16223 | } | |
16224 | ||
16225 | ||
16226 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16227 | PyObject *resultobj; | |
16228 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16229 | wxRect arg2 ; | |
16230 | wxRect *argp2 ; | |
16231 | PyObject * obj0 = 0 ; | |
16232 | PyObject * obj1 = 0 ; | |
16233 | char *kwnames[] = { | |
16234 | (char *) "self",(char *) "rect", NULL | |
16235 | }; | |
16236 | ||
16237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16240 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16241 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16242 | arg2 = *argp2; | |
d14a1e28 RD |
16243 | { |
16244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16245 | (arg1)->SetRect(arg2); | |
16246 | ||
16247 | wxPyEndAllowThreads(__tstate); | |
16248 | if (PyErr_Occurred()) SWIG_fail; | |
16249 | } | |
16250 | Py_INCREF(Py_None); resultobj = Py_None; | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj; | |
16259 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16260 | wxPoint arg2 ; | |
16261 | wxPoint *argp2 ; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "self",(char *) "pos", NULL | |
16266 | }; | |
16267 | ||
16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16271 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16272 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16273 | arg2 = *argp2; | |
d14a1e28 RD |
16274 | { |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16276 | wxMoveEvent_SetPosition(arg1,arg2); | |
16277 | ||
16278 | wxPyEndAllowThreads(__tstate); | |
16279 | if (PyErr_Occurred()) SWIG_fail; | |
16280 | } | |
16281 | Py_INCREF(Py_None); resultobj = Py_None; | |
16282 | return resultobj; | |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
16288 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16289 | PyObject *resultobj; | |
16290 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16291 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16292 | PyObject * obj0 = 0 ; | |
16293 | PyObject * obj1 = 0 ; | |
16294 | char *kwnames[] = { | |
16295 | (char *) "self",(char *) "m_pos", NULL | |
16296 | }; | |
16297 | ||
16298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16303 | if (arg1) (arg1)->m_pos = *arg2; |
16304 | ||
16305 | Py_INCREF(Py_None); resultobj = Py_None; | |
16306 | return resultobj; | |
16307 | fail: | |
16308 | return NULL; | |
16309 | } | |
16310 | ||
16311 | ||
16312 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16313 | PyObject *resultobj; | |
16314 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16315 | wxPoint *result; | |
16316 | PyObject * obj0 = 0 ; | |
16317 | char *kwnames[] = { | |
16318 | (char *) "self", NULL | |
16319 | }; | |
16320 | ||
16321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16324 | result = (wxPoint *)& ((arg1)->m_pos); |
16325 | ||
2f4c0a16 | 16326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16327 | return resultobj; |
16328 | fail: | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
16333 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16334 | PyObject *resultobj; | |
16335 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16336 | wxRect *arg2 = (wxRect *) 0 ; | |
16337 | PyObject * obj0 = 0 ; | |
16338 | PyObject * obj1 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self",(char *) "m_rect", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16348 | if (arg1) (arg1)->m_rect = *arg2; |
16349 | ||
16350 | Py_INCREF(Py_None); resultobj = Py_None; | |
16351 | return resultobj; | |
16352 | fail: | |
16353 | return NULL; | |
16354 | } | |
16355 | ||
16356 | ||
16357 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16358 | PyObject *resultobj; | |
16359 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16360 | wxRect *result; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16369 | result = (wxRect *)& ((arg1)->m_rect); |
16370 | ||
2f4c0a16 | 16371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16372 | return resultobj; |
16373 | fail: | |
16374 | return NULL; | |
16375 | } | |
16376 | ||
16377 | ||
16378 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16379 | PyObject *obj; | |
16380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16381 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16382 | Py_INCREF(obj); | |
16383 | return Py_BuildValue((char *)""); | |
16384 | } | |
16385 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16386 | PyObject *resultobj; | |
16387 | int arg1 = (int) 0 ; | |
16388 | wxPaintEvent *result; | |
8edf1c75 | 16389 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16390 | char *kwnames[] = { |
16391 | (char *) "Id", NULL | |
16392 | }; | |
16393 | ||
8edf1c75 RD |
16394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16395 | if (obj0) { | |
2f4c0a16 RD |
16396 | arg1 = (int) SWIG_AsInt(obj0); |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16398 | } |
d14a1e28 RD |
16399 | { |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16401 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16402 | ||
16403 | wxPyEndAllowThreads(__tstate); | |
16404 | if (PyErr_Occurred()) SWIG_fail; | |
16405 | } | |
2f4c0a16 | 16406 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16407 | return resultobj; |
16408 | fail: | |
16409 | return NULL; | |
16410 | } | |
16411 | ||
16412 | ||
16413 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16414 | PyObject *obj; | |
16415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16416 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16417 | Py_INCREF(obj); | |
16418 | return Py_BuildValue((char *)""); | |
16419 | } | |
16420 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | int arg1 = (int) 0 ; | |
16423 | wxNcPaintEvent *result; | |
8edf1c75 | 16424 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16425 | char *kwnames[] = { |
16426 | (char *) "winid", NULL | |
16427 | }; | |
16428 | ||
8edf1c75 RD |
16429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16430 | if (obj0) { | |
2f4c0a16 RD |
16431 | arg1 = (int) SWIG_AsInt(obj0); |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16433 | } |
d14a1e28 RD |
16434 | { |
16435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16436 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16437 | ||
16438 | wxPyEndAllowThreads(__tstate); | |
16439 | if (PyErr_Occurred()) SWIG_fail; | |
16440 | } | |
2f4c0a16 | 16441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16442 | return resultobj; |
16443 | fail: | |
16444 | return NULL; | |
16445 | } | |
16446 | ||
16447 | ||
16448 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16449 | PyObject *obj; | |
16450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16451 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16452 | Py_INCREF(obj); | |
16453 | return Py_BuildValue((char *)""); | |
16454 | } | |
16455 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16456 | PyObject *resultobj; | |
16457 | int arg1 = (int) 0 ; | |
16458 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16459 | wxEraseEvent *result; | |
8edf1c75 | 16460 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16461 | PyObject * obj1 = 0 ; |
16462 | char *kwnames[] = { | |
16463 | (char *) "Id",(char *) "dc", NULL | |
16464 | }; | |
16465 | ||
8edf1c75 RD |
16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16467 | if (obj0) { | |
2f4c0a16 RD |
16468 | arg1 = (int) SWIG_AsInt(obj0); |
16469 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16470 | } |
d14a1e28 | 16471 | if (obj1) { |
2f4c0a16 RD |
16472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16474 | } |
16475 | { | |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16478 | ||
16479 | wxPyEndAllowThreads(__tstate); | |
16480 | if (PyErr_Occurred()) SWIG_fail; | |
16481 | } | |
2f4c0a16 | 16482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16483 | return resultobj; |
16484 | fail: | |
16485 | return NULL; | |
16486 | } | |
16487 | ||
16488 | ||
16489 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16490 | PyObject *resultobj; | |
16491 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16492 | wxDC *result; | |
16493 | PyObject * obj0 = 0 ; | |
16494 | char *kwnames[] = { | |
16495 | (char *) "self", NULL | |
16496 | }; | |
16497 | ||
16498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16501 | { |
16502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16503 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16504 | ||
16505 | wxPyEndAllowThreads(__tstate); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
16508 | { | |
16509 | resultobj = wxPyMake_wxObject(result); | |
16510 | } | |
16511 | return resultobj; | |
16512 | fail: | |
16513 | return NULL; | |
16514 | } | |
16515 | ||
16516 | ||
16517 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16518 | PyObject *obj; | |
16519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16520 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16521 | Py_INCREF(obj); | |
16522 | return Py_BuildValue((char *)""); | |
16523 | } | |
16524 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16525 | PyObject *resultobj; | |
16526 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16527 | int arg2 = (int) 0 ; | |
16528 | wxFocusEvent *result; | |
8edf1c75 RD |
16529 | PyObject * obj0 = 0 ; |
16530 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16531 | char *kwnames[] = { |
16532 | (char *) "type",(char *) "winid", NULL | |
16533 | }; | |
16534 | ||
8edf1c75 RD |
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16536 | if (obj0) { | |
2f4c0a16 RD |
16537 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16539 | } |
16540 | if (obj1) { | |
2f4c0a16 RD |
16541 | arg2 = (int) SWIG_AsInt(obj1); |
16542 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16543 | } |
d14a1e28 RD |
16544 | { |
16545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16546 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16547 | ||
16548 | wxPyEndAllowThreads(__tstate); | |
16549 | if (PyErr_Occurred()) SWIG_fail; | |
16550 | } | |
2f4c0a16 | 16551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16552 | return resultobj; |
16553 | fail: | |
16554 | return NULL; | |
16555 | } | |
16556 | ||
16557 | ||
16558 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16559 | PyObject *resultobj; | |
16560 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16561 | wxWindow *result; | |
16562 | PyObject * obj0 = 0 ; | |
16563 | char *kwnames[] = { | |
16564 | (char *) "self", NULL | |
16565 | }; | |
16566 | ||
16567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16570 | { |
16571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16572 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16573 | ||
16574 | wxPyEndAllowThreads(__tstate); | |
16575 | if (PyErr_Occurred()) SWIG_fail; | |
16576 | } | |
16577 | { | |
16578 | resultobj = wxPyMake_wxObject(result); | |
16579 | } | |
16580 | return resultobj; | |
16581 | fail: | |
16582 | return NULL; | |
16583 | } | |
16584 | ||
16585 | ||
16586 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16587 | PyObject *resultobj; | |
16588 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16589 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16590 | PyObject * obj0 = 0 ; | |
16591 | PyObject * obj1 = 0 ; | |
16592 | char *kwnames[] = { | |
16593 | (char *) "self",(char *) "win", NULL | |
16594 | }; | |
16595 | ||
16596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16601 | { |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | (arg1)->SetWindow(arg2); | |
16604 | ||
16605 | wxPyEndAllowThreads(__tstate); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | } | |
16608 | Py_INCREF(Py_None); resultobj = Py_None; | |
16609 | return resultobj; | |
16610 | fail: | |
16611 | return NULL; | |
16612 | } | |
16613 | ||
16614 | ||
16615 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16616 | PyObject *obj; | |
16617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16618 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16619 | Py_INCREF(obj); | |
16620 | return Py_BuildValue((char *)""); | |
16621 | } | |
16622 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16623 | PyObject *resultobj; | |
16624 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16625 | wxChildFocusEvent *result; | |
16626 | PyObject * obj0 = 0 ; | |
16627 | char *kwnames[] = { | |
16628 | (char *) "win", NULL | |
16629 | }; | |
16630 | ||
16631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16632 | if (obj0) { | |
2f4c0a16 RD |
16633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16635 | } |
16636 | { | |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16638 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16639 | ||
16640 | wxPyEndAllowThreads(__tstate); | |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
16642 | } | |
2f4c0a16 | 16643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
16644 | return resultobj; |
16645 | fail: | |
16646 | return NULL; | |
16647 | } | |
16648 | ||
16649 | ||
16650 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16651 | PyObject *resultobj; | |
16652 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16653 | wxWindow *result; | |
16654 | PyObject * obj0 = 0 ; | |
16655 | char *kwnames[] = { | |
16656 | (char *) "self", NULL | |
16657 | }; | |
16658 | ||
16659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
16661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16662 | { |
16663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16664 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16665 | ||
16666 | wxPyEndAllowThreads(__tstate); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | } | |
16669 | { | |
16670 | resultobj = wxPyMake_wxObject(result); | |
16671 | } | |
16672 | return resultobj; | |
16673 | fail: | |
16674 | return NULL; | |
16675 | } | |
16676 | ||
16677 | ||
16678 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16679 | PyObject *obj; | |
16680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16681 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16682 | Py_INCREF(obj); | |
16683 | return Py_BuildValue((char *)""); | |
16684 | } | |
16685 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16686 | PyObject *resultobj; | |
16687 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16688 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16689 | int arg3 = (int) 0 ; |
16690 | wxActivateEvent *result; | |
8edf1c75 | 16691 | PyObject * obj0 = 0 ; |
d14a1e28 | 16692 | PyObject * obj1 = 0 ; |
8edf1c75 | 16693 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16694 | char *kwnames[] = { |
16695 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16696 | }; | |
16697 | ||
8edf1c75 RD |
16698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16699 | if (obj0) { | |
2f4c0a16 RD |
16700 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16701 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16702 | } |
d14a1e28 | 16703 | if (obj1) { |
2f4c0a16 RD |
16704 | arg2 = (bool) SWIG_AsBool(obj1); |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16706 | } |
16707 | if (obj2) { | |
2f4c0a16 RD |
16708 | arg3 = (int) SWIG_AsInt(obj2); |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16710 | } |
16711 | { | |
16712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16713 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16714 | ||
16715 | wxPyEndAllowThreads(__tstate); | |
16716 | if (PyErr_Occurred()) SWIG_fail; | |
16717 | } | |
2f4c0a16 | 16718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
16719 | return resultobj; |
16720 | fail: | |
16721 | return NULL; | |
16722 | } | |
16723 | ||
16724 | ||
16725 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16726 | PyObject *resultobj; | |
16727 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16728 | bool result; | |
16729 | PyObject * obj0 = 0 ; | |
16730 | char *kwnames[] = { | |
16731 | (char *) "self", NULL | |
16732 | }; | |
16733 | ||
16734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
16736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16737 | { |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
4e760a36 | 16744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16745 | return resultobj; |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16752 | PyObject *obj; | |
16753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16754 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16755 | Py_INCREF(obj); | |
16756 | return Py_BuildValue((char *)""); | |
16757 | } | |
16758 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16759 | PyObject *resultobj; | |
16760 | int arg1 = (int) 0 ; | |
16761 | wxInitDialogEvent *result; | |
8edf1c75 | 16762 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16763 | char *kwnames[] = { |
16764 | (char *) "Id", NULL | |
16765 | }; | |
16766 | ||
8edf1c75 RD |
16767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16768 | if (obj0) { | |
2f4c0a16 RD |
16769 | arg1 = (int) SWIG_AsInt(obj0); |
16770 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16771 | } |
d14a1e28 RD |
16772 | { |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
2f4c0a16 | 16779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
16780 | return resultobj; |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16787 | PyObject *obj; | |
16788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16789 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16790 | Py_INCREF(obj); | |
16791 | return Py_BuildValue((char *)""); | |
16792 | } | |
16793 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16794 | PyObject *resultobj; | |
16795 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16796 | int arg2 = (int) 0 ; | |
16797 | wxMenu *arg3 = (wxMenu *) NULL ; | |
16798 | wxMenuEvent *result; | |
8edf1c75 RD |
16799 | PyObject * obj0 = 0 ; |
16800 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16801 | PyObject * obj2 = 0 ; |
16802 | char *kwnames[] = { | |
16803 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
16804 | }; | |
16805 | ||
8edf1c75 RD |
16806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16807 | if (obj0) { | |
2f4c0a16 RD |
16808 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16810 | } |
16811 | if (obj1) { | |
2f4c0a16 RD |
16812 | arg2 = (int) SWIG_AsInt(obj1); |
16813 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16814 | } |
d14a1e28 | 16815 | if (obj2) { |
2f4c0a16 RD |
16816 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
16817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16818 | } |
16819 | { | |
16820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16821 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
16822 | ||
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
2f4c0a16 | 16826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
16827 | return resultobj; |
16828 | fail: | |
16829 | return NULL; | |
16830 | } | |
16831 | ||
16832 | ||
16833 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16834 | PyObject *resultobj; | |
16835 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16836 | int result; | |
16837 | PyObject * obj0 = 0 ; | |
16838 | char *kwnames[] = { | |
16839 | (char *) "self", NULL | |
16840 | }; | |
16841 | ||
16842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16845 | { |
16846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16847 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
16848 | ||
16849 | wxPyEndAllowThreads(__tstate); | |
16850 | if (PyErr_Occurred()) SWIG_fail; | |
16851 | } | |
2f4c0a16 | 16852 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16853 | return resultobj; |
16854 | fail: | |
16855 | return NULL; | |
16856 | } | |
16857 | ||
16858 | ||
16859 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16860 | PyObject *resultobj; | |
16861 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16862 | bool result; | |
16863 | PyObject * obj0 = 0 ; | |
16864 | char *kwnames[] = { | |
16865 | (char *) "self", NULL | |
16866 | }; | |
16867 | ||
16868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16871 | { |
16872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16873 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
16874 | ||
16875 | wxPyEndAllowThreads(__tstate); | |
16876 | if (PyErr_Occurred()) SWIG_fail; | |
16877 | } | |
4e760a36 | 16878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16879 | return resultobj; |
16880 | fail: | |
16881 | return NULL; | |
16882 | } | |
16883 | ||
16884 | ||
16885 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16886 | PyObject *resultobj; | |
16887 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
16888 | wxMenu *result; | |
16889 | PyObject * obj0 = 0 ; | |
16890 | char *kwnames[] = { | |
16891 | (char *) "self", NULL | |
16892 | }; | |
16893 | ||
16894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
16896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16897 | { |
16898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16899 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
16900 | ||
16901 | wxPyEndAllowThreads(__tstate); | |
16902 | if (PyErr_Occurred()) SWIG_fail; | |
16903 | } | |
16904 | { | |
16905 | resultobj = wxPyMake_wxObject(result); | |
16906 | } | |
16907 | return resultobj; | |
16908 | fail: | |
16909 | return NULL; | |
16910 | } | |
16911 | ||
16912 | ||
16913 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
16914 | PyObject *obj; | |
16915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16916 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
16917 | Py_INCREF(obj); | |
16918 | return Py_BuildValue((char *)""); | |
16919 | } | |
16920 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16921 | PyObject *resultobj; | |
16922 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16923 | int arg2 = (int) 0 ; | |
16924 | wxCloseEvent *result; | |
8edf1c75 RD |
16925 | PyObject * obj0 = 0 ; |
16926 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16927 | char *kwnames[] = { |
16928 | (char *) "type",(char *) "winid", NULL | |
16929 | }; | |
16930 | ||
8edf1c75 RD |
16931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
16932 | if (obj0) { | |
2f4c0a16 RD |
16933 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16934 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16935 | } |
16936 | if (obj1) { | |
2f4c0a16 RD |
16937 | arg2 = (int) SWIG_AsInt(obj1); |
16938 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16939 | } |
d14a1e28 RD |
16940 | { |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
2f4c0a16 | 16947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
16948 | return resultobj; |
16949 | fail: | |
16950 | return NULL; | |
16951 | } | |
16952 | ||
16953 | ||
16954 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16955 | PyObject *resultobj; | |
16956 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16957 | bool arg2 ; | |
16958 | PyObject * obj0 = 0 ; | |
16959 | PyObject * obj1 = 0 ; | |
16960 | char *kwnames[] = { | |
16961 | (char *) "self",(char *) "logOff", NULL | |
16962 | }; | |
16963 | ||
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
16966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16967 | arg2 = (bool) SWIG_AsBool(obj1); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16969 | { |
16970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16971 | (arg1)->SetLoggingOff(arg2); | |
16972 | ||
16973 | wxPyEndAllowThreads(__tstate); | |
16974 | if (PyErr_Occurred()) SWIG_fail; | |
16975 | } | |
16976 | Py_INCREF(Py_None); resultobj = Py_None; | |
16977 | return resultobj; | |
16978 | fail: | |
16979 | return NULL; | |
16980 | } | |
16981 | ||
16982 | ||
16983 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16984 | PyObject *resultobj; | |
16985 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
16986 | bool result; | |
16987 | PyObject * obj0 = 0 ; | |
16988 | char *kwnames[] = { | |
16989 | (char *) "self", NULL | |
16990 | }; | |
16991 | ||
16992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
16994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16995 | { |
16996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16997 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
16998 | ||
16999 | wxPyEndAllowThreads(__tstate); | |
17000 | if (PyErr_Occurred()) SWIG_fail; | |
17001 | } | |
4e760a36 | 17002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17003 | return resultobj; |
17004 | fail: | |
17005 | return NULL; | |
17006 | } | |
17007 | ||
17008 | ||
17009 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17010 | PyObject *resultobj; | |
17011 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 17012 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17013 | PyObject * obj0 = 0 ; |
17014 | PyObject * obj1 = 0 ; | |
17015 | char *kwnames[] = { | |
17016 | (char *) "self",(char *) "veto", NULL | |
17017 | }; | |
17018 | ||
17019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17022 | if (obj1) { |
2f4c0a16 RD |
17023 | arg2 = (bool) SWIG_AsBool(obj1); |
17024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17025 | } |
17026 | { | |
17027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17028 | (arg1)->Veto(arg2); | |
17029 | ||
17030 | wxPyEndAllowThreads(__tstate); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | Py_INCREF(Py_None); resultobj = Py_None; | |
17034 | return resultobj; | |
17035 | fail: | |
17036 | return NULL; | |
17037 | } | |
17038 | ||
17039 | ||
17040 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17041 | PyObject *resultobj; | |
17042 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17043 | bool arg2 ; | |
17044 | PyObject * obj0 = 0 ; | |
17045 | PyObject * obj1 = 0 ; | |
17046 | char *kwnames[] = { | |
17047 | (char *) "self",(char *) "canVeto", NULL | |
17048 | }; | |
17049 | ||
17050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17053 | arg2 = (bool) SWIG_AsBool(obj1); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17055 | { |
17056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17057 | (arg1)->SetCanVeto(arg2); | |
17058 | ||
17059 | wxPyEndAllowThreads(__tstate); | |
17060 | if (PyErr_Occurred()) SWIG_fail; | |
17061 | } | |
17062 | Py_INCREF(Py_None); resultobj = Py_None; | |
17063 | return resultobj; | |
17064 | fail: | |
17065 | return NULL; | |
17066 | } | |
17067 | ||
17068 | ||
17069 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17070 | PyObject *resultobj; | |
17071 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17072 | bool result; | |
17073 | PyObject * obj0 = 0 ; | |
17074 | char *kwnames[] = { | |
17075 | (char *) "self", NULL | |
17076 | }; | |
17077 | ||
17078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17081 | { |
17082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17083 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17084 | ||
17085 | wxPyEndAllowThreads(__tstate); | |
17086 | if (PyErr_Occurred()) SWIG_fail; | |
17087 | } | |
4e760a36 | 17088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17089 | return resultobj; |
17090 | fail: | |
17091 | return NULL; | |
17092 | } | |
17093 | ||
17094 | ||
17095 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17096 | PyObject *resultobj; | |
17097 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17098 | bool result; | |
17099 | PyObject * obj0 = 0 ; | |
17100 | char *kwnames[] = { | |
17101 | (char *) "self", NULL | |
17102 | }; | |
17103 | ||
17104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17107 | { |
17108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17109 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17110 | ||
17111 | wxPyEndAllowThreads(__tstate); | |
17112 | if (PyErr_Occurred()) SWIG_fail; | |
17113 | } | |
4e760a36 | 17114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17115 | return resultobj; |
17116 | fail: | |
17117 | return NULL; | |
17118 | } | |
17119 | ||
17120 | ||
17121 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17122 | PyObject *obj; | |
17123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17124 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17125 | Py_INCREF(obj); | |
17126 | return Py_BuildValue((char *)""); | |
17127 | } | |
17128 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17129 | PyObject *resultobj; | |
17130 | int arg1 = (int) 0 ; | |
423f194a | 17131 | bool arg2 = (bool) False ; |
d14a1e28 | 17132 | wxShowEvent *result; |
8edf1c75 | 17133 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17134 | PyObject * obj1 = 0 ; |
17135 | char *kwnames[] = { | |
17136 | (char *) "winid",(char *) "show", NULL | |
17137 | }; | |
17138 | ||
8edf1c75 RD |
17139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17140 | if (obj0) { | |
2f4c0a16 RD |
17141 | arg1 = (int) SWIG_AsInt(obj0); |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17143 | } |
d14a1e28 | 17144 | if (obj1) { |
2f4c0a16 RD |
17145 | arg2 = (bool) SWIG_AsBool(obj1); |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17147 | } |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17151 | ||
17152 | wxPyEndAllowThreads(__tstate); | |
17153 | if (PyErr_Occurred()) SWIG_fail; | |
17154 | } | |
2f4c0a16 | 17155 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17156 | return resultobj; |
17157 | fail: | |
17158 | return NULL; | |
17159 | } | |
17160 | ||
17161 | ||
17162 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17163 | PyObject *resultobj; | |
17164 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17165 | bool arg2 ; | |
17166 | PyObject * obj0 = 0 ; | |
17167 | PyObject * obj1 = 0 ; | |
17168 | char *kwnames[] = { | |
17169 | (char *) "self",(char *) "show", NULL | |
17170 | }; | |
17171 | ||
17172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17175 | arg2 = (bool) SWIG_AsBool(obj1); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17177 | { |
17178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17179 | (arg1)->SetShow(arg2); | |
17180 | ||
17181 | wxPyEndAllowThreads(__tstate); | |
17182 | if (PyErr_Occurred()) SWIG_fail; | |
17183 | } | |
17184 | Py_INCREF(Py_None); resultobj = Py_None; | |
17185 | return resultobj; | |
17186 | fail: | |
17187 | return NULL; | |
17188 | } | |
17189 | ||
17190 | ||
17191 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17192 | PyObject *resultobj; | |
17193 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17194 | bool result; | |
17195 | PyObject * obj0 = 0 ; | |
17196 | char *kwnames[] = { | |
17197 | (char *) "self", NULL | |
17198 | }; | |
17199 | ||
17200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17203 | { |
17204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17205 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17206 | ||
17207 | wxPyEndAllowThreads(__tstate); | |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
17209 | } | |
4e760a36 | 17210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17211 | return resultobj; |
17212 | fail: | |
17213 | return NULL; | |
17214 | } | |
17215 | ||
17216 | ||
17217 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17218 | PyObject *obj; | |
17219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17220 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17221 | Py_INCREF(obj); | |
17222 | return Py_BuildValue((char *)""); | |
17223 | } | |
17224 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | int arg1 = (int) 0 ; | |
423f194a | 17227 | bool arg2 = (bool) True ; |
d14a1e28 | 17228 | wxIconizeEvent *result; |
8edf1c75 | 17229 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17230 | PyObject * obj1 = 0 ; |
17231 | char *kwnames[] = { | |
17232 | (char *) "id",(char *) "iconized", NULL | |
17233 | }; | |
17234 | ||
8edf1c75 RD |
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17236 | if (obj0) { | |
2f4c0a16 RD |
17237 | arg1 = (int) SWIG_AsInt(obj0); |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17239 | } |
d14a1e28 | 17240 | if (obj1) { |
2f4c0a16 RD |
17241 | arg2 = (bool) SWIG_AsBool(obj1); |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17243 | } |
17244 | { | |
17245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17246 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17247 | ||
17248 | wxPyEndAllowThreads(__tstate); | |
17249 | if (PyErr_Occurred()) SWIG_fail; | |
17250 | } | |
2f4c0a16 | 17251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17252 | return resultobj; |
17253 | fail: | |
17254 | return NULL; | |
17255 | } | |
17256 | ||
17257 | ||
17258 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17259 | PyObject *resultobj; | |
17260 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17261 | bool result; | |
17262 | PyObject * obj0 = 0 ; | |
17263 | char *kwnames[] = { | |
17264 | (char *) "self", NULL | |
17265 | }; | |
17266 | ||
17267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17270 | { |
17271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17272 | result = (bool)(arg1)->Iconized(); | |
17273 | ||
17274 | wxPyEndAllowThreads(__tstate); | |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
17276 | } | |
4e760a36 | 17277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17278 | return resultobj; |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17285 | PyObject *obj; | |
17286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17287 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17288 | Py_INCREF(obj); | |
17289 | return Py_BuildValue((char *)""); | |
17290 | } | |
17291 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17292 | PyObject *resultobj; | |
17293 | int arg1 = (int) 0 ; | |
17294 | wxMaximizeEvent *result; | |
8edf1c75 | 17295 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17296 | char *kwnames[] = { |
17297 | (char *) "id", NULL | |
17298 | }; | |
17299 | ||
8edf1c75 RD |
17300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17301 | if (obj0) { | |
2f4c0a16 RD |
17302 | arg1 = (int) SWIG_AsInt(obj0); |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17304 | } |
d14a1e28 RD |
17305 | { |
17306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17307 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17308 | ||
17309 | wxPyEndAllowThreads(__tstate); | |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
17311 | } | |
2f4c0a16 | 17312 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17313 | return resultobj; |
17314 | fail: | |
17315 | return NULL; | |
17316 | } | |
17317 | ||
17318 | ||
17319 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17320 | PyObject *obj; | |
17321 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17322 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17323 | Py_INCREF(obj); | |
17324 | return Py_BuildValue((char *)""); | |
17325 | } | |
17326 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17327 | PyObject *resultobj; | |
17328 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17329 | wxPoint result; | |
17330 | PyObject * obj0 = 0 ; | |
17331 | char *kwnames[] = { | |
17332 | (char *) "self", NULL | |
17333 | }; | |
17334 | ||
17335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17338 | { |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = (arg1)->GetPosition(); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | { | |
17346 | wxPoint * resultptr; | |
17347 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 17348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17349 | } |
17350 | return resultobj; | |
17351 | fail: | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17357 | PyObject *resultobj; | |
17358 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17359 | int result; | |
17360 | PyObject * obj0 = 0 ; | |
17361 | char *kwnames[] = { | |
17362 | (char *) "self", NULL | |
17363 | }; | |
17364 | ||
17365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17368 | { |
17369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17370 | result = (int)(arg1)->GetNumberOfFiles(); | |
17371 | ||
17372 | wxPyEndAllowThreads(__tstate); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
2f4c0a16 | 17375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17376 | return resultobj; |
17377 | fail: | |
17378 | return NULL; | |
17379 | } | |
17380 | ||
17381 | ||
17382 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17383 | PyObject *resultobj; | |
17384 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17385 | PyObject *result; | |
17386 | PyObject * obj0 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17394 | { |
17395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17396 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17397 | ||
17398 | wxPyEndAllowThreads(__tstate); | |
17399 | if (PyErr_Occurred()) SWIG_fail; | |
17400 | } | |
17401 | resultobj = result; | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17409 | PyObject *obj; | |
17410 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17411 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17412 | Py_INCREF(obj); | |
17413 | return Py_BuildValue((char *)""); | |
17414 | } | |
17415 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17416 | PyObject *resultobj; | |
423f194a | 17417 | int arg1 = (int) 0 ; |
d14a1e28 | 17418 | wxUpdateUIEvent *result; |
8edf1c75 | 17419 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17420 | char *kwnames[] = { |
17421 | (char *) "commandId", NULL | |
17422 | }; | |
17423 | ||
8edf1c75 RD |
17424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17425 | if (obj0) { | |
2f4c0a16 RD |
17426 | arg1 = (int) SWIG_AsInt(obj0); |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17428 | } |
d14a1e28 RD |
17429 | { |
17430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17431 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17432 | ||
17433 | wxPyEndAllowThreads(__tstate); | |
17434 | if (PyErr_Occurred()) SWIG_fail; | |
17435 | } | |
2f4c0a16 | 17436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17437 | return resultobj; |
17438 | fail: | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17446 | bool result; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | char *kwnames[] = { | |
17449 | (char *) "self", NULL | |
17450 | }; | |
17451 | ||
17452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17455 | { |
17456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17457 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17458 | ||
17459 | wxPyEndAllowThreads(__tstate); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | } | |
4e760a36 | 17462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17463 | return resultobj; |
17464 | fail: | |
17465 | return NULL; | |
17466 | } | |
17467 | ||
17468 | ||
17469 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17470 | PyObject *resultobj; | |
17471 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17472 | bool result; | |
17473 | PyObject * obj0 = 0 ; | |
17474 | char *kwnames[] = { | |
17475 | (char *) "self", NULL | |
17476 | }; | |
17477 | ||
17478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17481 | { |
17482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17483 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17484 | ||
17485 | wxPyEndAllowThreads(__tstate); | |
17486 | if (PyErr_Occurred()) SWIG_fail; | |
17487 | } | |
4e760a36 | 17488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17489 | return resultobj; |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17498 | wxString result; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17507 | { |
17508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17509 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17510 | ||
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | { | |
17515 | #if wxUSE_UNICODE | |
17516 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17517 | #else | |
17518 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17519 | #endif | |
17520 | } | |
17521 | return resultobj; | |
17522 | fail: | |
17523 | return NULL; | |
17524 | } | |
17525 | ||
17526 | ||
17527 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17528 | PyObject *resultobj; | |
17529 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17530 | bool result; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | char *kwnames[] = { | |
17533 | (char *) "self", NULL | |
17534 | }; | |
17535 | ||
17536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17539 | { |
17540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17541 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17542 | ||
17543 | wxPyEndAllowThreads(__tstate); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | } | |
4e760a36 | 17546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17547 | return resultobj; |
17548 | fail: | |
17549 | return NULL; | |
17550 | } | |
17551 | ||
17552 | ||
17553 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17554 | PyObject *resultobj; | |
17555 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17556 | bool result; | |
17557 | PyObject * obj0 = 0 ; | |
17558 | char *kwnames[] = { | |
17559 | (char *) "self", NULL | |
17560 | }; | |
17561 | ||
17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17565 | { |
17566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17567 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17568 | ||
17569 | wxPyEndAllowThreads(__tstate); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
4e760a36 | 17572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17573 | return resultobj; |
17574 | fail: | |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17582 | bool result; | |
17583 | PyObject * obj0 = 0 ; | |
17584 | char *kwnames[] = { | |
17585 | (char *) "self", NULL | |
17586 | }; | |
17587 | ||
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17591 | { |
17592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17593 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17594 | ||
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
4e760a36 | 17598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17599 | return resultobj; |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj; | |
17607 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17608 | bool arg2 ; | |
17609 | PyObject * obj0 = 0 ; | |
17610 | PyObject * obj1 = 0 ; | |
17611 | char *kwnames[] = { | |
17612 | (char *) "self",(char *) "check", NULL | |
17613 | }; | |
17614 | ||
17615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17618 | arg2 = (bool) SWIG_AsBool(obj1); | |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17620 | { |
17621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17622 | (arg1)->Check(arg2); | |
17623 | ||
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | Py_INCREF(Py_None); resultobj = Py_None; | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | return NULL; | |
17631 | } | |
17632 | ||
17633 | ||
17634 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17635 | PyObject *resultobj; | |
17636 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17637 | bool arg2 ; | |
17638 | PyObject * obj0 = 0 ; | |
17639 | PyObject * obj1 = 0 ; | |
17640 | char *kwnames[] = { | |
17641 | (char *) "self",(char *) "enable", NULL | |
17642 | }; | |
17643 | ||
17644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17647 | arg2 = (bool) SWIG_AsBool(obj1); | |
17648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17649 | { |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | (arg1)->Enable(arg2); | |
17652 | ||
17653 | wxPyEndAllowThreads(__tstate); | |
17654 | if (PyErr_Occurred()) SWIG_fail; | |
17655 | } | |
17656 | Py_INCREF(Py_None); resultobj = Py_None; | |
17657 | return resultobj; | |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
17663 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17664 | PyObject *resultobj; | |
17665 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17666 | wxString *arg2 = 0 ; | |
423f194a | 17667 | bool temp2 = False ; |
d14a1e28 RD |
17668 | PyObject * obj0 = 0 ; |
17669 | PyObject * obj1 = 0 ; | |
17670 | char *kwnames[] = { | |
17671 | (char *) "self",(char *) "text", NULL | |
17672 | }; | |
17673 | ||
17674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17677 | { |
17678 | arg2 = wxString_in_helper(obj1); | |
17679 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17680 | temp2 = True; |
d14a1e28 RD |
17681 | } |
17682 | { | |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | (arg1)->SetText((wxString const &)*arg2); | |
17685 | ||
17686 | wxPyEndAllowThreads(__tstate); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | Py_INCREF(Py_None); resultobj = Py_None; | |
17690 | { | |
17691 | if (temp2) | |
17692 | delete arg2; | |
17693 | } | |
17694 | return resultobj; | |
17695 | fail: | |
17696 | { | |
17697 | if (temp2) | |
17698 | delete arg2; | |
17699 | } | |
17700 | return NULL; | |
17701 | } | |
17702 | ||
17703 | ||
17704 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17705 | PyObject *resultobj; | |
17706 | long arg1 ; | |
8edf1c75 | 17707 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17708 | char *kwnames[] = { |
17709 | (char *) "updateInterval", NULL | |
17710 | }; | |
17711 | ||
8edf1c75 | 17712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17713 | arg1 = (long) SWIG_AsLong(obj0); |
17714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17715 | { |
17716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17717 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17718 | ||
17719 | wxPyEndAllowThreads(__tstate); | |
17720 | if (PyErr_Occurred()) SWIG_fail; | |
17721 | } | |
17722 | Py_INCREF(Py_None); resultobj = Py_None; | |
17723 | return resultobj; | |
17724 | fail: | |
17725 | return NULL; | |
17726 | } | |
17727 | ||
17728 | ||
17729 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17730 | PyObject *resultobj; | |
17731 | long result; | |
17732 | char *kwnames[] = { | |
17733 | NULL | |
17734 | }; | |
17735 | ||
17736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17737 | { | |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17740 | ||
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
2f4c0a16 | 17744 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
17745 | return resultobj; |
17746 | fail: | |
17747 | return NULL; | |
17748 | } | |
17749 | ||
17750 | ||
17751 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17752 | PyObject *resultobj; | |
17753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17754 | bool result; | |
17755 | PyObject * obj0 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "win", NULL | |
17758 | }; | |
17759 | ||
17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17763 | { |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17766 | ||
17767 | wxPyEndAllowThreads(__tstate); | |
17768 | if (PyErr_Occurred()) SWIG_fail; | |
17769 | } | |
4e760a36 | 17770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17771 | return resultobj; |
17772 | fail: | |
17773 | return NULL; | |
17774 | } | |
17775 | ||
17776 | ||
17777 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17778 | PyObject *resultobj; | |
17779 | char *kwnames[] = { | |
17780 | NULL | |
17781 | }; | |
17782 | ||
17783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | wxUpdateUIEvent::ResetUpdateTime(); | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | Py_INCREF(Py_None); resultobj = Py_None; | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | int arg1 ; | |
8edf1c75 | 17801 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17802 | char *kwnames[] = { |
17803 | (char *) "mode", NULL | |
17804 | }; | |
17805 | ||
8edf1c75 | 17806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17807 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17809 | { |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | Py_INCREF(Py_None); resultobj = Py_None; | |
17817 | return resultobj; | |
17818 | fail: | |
17819 | return NULL; | |
17820 | } | |
17821 | ||
17822 | ||
17823 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17824 | PyObject *resultobj; | |
17825 | int result; | |
17826 | char *kwnames[] = { | |
17827 | NULL | |
17828 | }; | |
17829 | ||
17830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
17831 | { | |
17832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17833 | result = (int)wxUpdateUIEvent::GetMode(); | |
17834 | ||
17835 | wxPyEndAllowThreads(__tstate); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
17837 | } | |
2f4c0a16 | 17838 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17839 | return resultobj; |
17840 | fail: | |
17841 | return NULL; | |
17842 | } | |
17843 | ||
17844 | ||
17845 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
17846 | PyObject *obj; | |
17847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17848 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
17849 | Py_INCREF(obj); | |
17850 | return Py_BuildValue((char *)""); | |
17851 | } | |
17852 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17853 | PyObject *resultobj; | |
17854 | wxSysColourChangedEvent *result; | |
17855 | char *kwnames[] = { | |
17856 | NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
17860 | { | |
17861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17862 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
17863 | ||
17864 | wxPyEndAllowThreads(__tstate); | |
17865 | if (PyErr_Occurred()) SWIG_fail; | |
17866 | } | |
2f4c0a16 | 17867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
17868 | return resultobj; |
17869 | fail: | |
17870 | return NULL; | |
17871 | } | |
17872 | ||
17873 | ||
17874 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17875 | PyObject *obj; | |
17876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17877 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
17878 | Py_INCREF(obj); | |
17879 | return Py_BuildValue((char *)""); | |
17880 | } | |
17881 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17882 | PyObject *resultobj; | |
423f194a | 17883 | int arg1 = (int) 0 ; |
d14a1e28 RD |
17884 | wxWindow *arg2 = (wxWindow *) NULL ; |
17885 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 17886 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17887 | PyObject * obj1 = 0 ; |
17888 | char *kwnames[] = { | |
17889 | (char *) "winid",(char *) "gainedCapture", NULL | |
17890 | }; | |
17891 | ||
8edf1c75 RD |
17892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
17893 | if (obj0) { | |
2f4c0a16 RD |
17894 | arg1 = (int) SWIG_AsInt(obj0); |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17896 | } |
d14a1e28 | 17897 | if (obj1) { |
2f4c0a16 RD |
17898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
17899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17900 | } |
17901 | { | |
17902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17903 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
17904 | ||
17905 | wxPyEndAllowThreads(__tstate); | |
17906 | if (PyErr_Occurred()) SWIG_fail; | |
17907 | } | |
2f4c0a16 | 17908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
17909 | return resultobj; |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
17918 | wxWindow *result; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
17926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17927 | { |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | { | |
17935 | resultobj = wxPyMake_wxObject(result); | |
17936 | } | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17944 | PyObject *obj; | |
17945 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17946 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
17947 | Py_INCREF(obj); | |
17948 | return Py_BuildValue((char *)""); | |
17949 | } | |
17950 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17951 | PyObject *resultobj; | |
17952 | wxDisplayChangedEvent *result; | |
17953 | char *kwnames[] = { | |
17954 | NULL | |
17955 | }; | |
17956 | ||
17957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
17958 | { | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
17961 | ||
17962 | wxPyEndAllowThreads(__tstate); | |
17963 | if (PyErr_Occurred()) SWIG_fail; | |
17964 | } | |
2f4c0a16 | 17965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
17966 | return resultobj; |
17967 | fail: | |
17968 | return NULL; | |
17969 | } | |
17970 | ||
17971 | ||
17972 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
17973 | PyObject *obj; | |
17974 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17975 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
17976 | Py_INCREF(obj); | |
17977 | return Py_BuildValue((char *)""); | |
17978 | } | |
17979 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17980 | PyObject *resultobj; | |
423f194a | 17981 | int arg1 = (int) 0 ; |
d14a1e28 | 17982 | wxPaletteChangedEvent *result; |
8edf1c75 | 17983 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17984 | char *kwnames[] = { |
17985 | (char *) "id", NULL | |
17986 | }; | |
17987 | ||
8edf1c75 RD |
17988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
17989 | if (obj0) { | |
2f4c0a16 RD |
17990 | arg1 = (int) SWIG_AsInt(obj0); |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17992 | } |
d14a1e28 RD |
17993 | { |
17994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17995 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
17996 | ||
17997 | wxPyEndAllowThreads(__tstate); | |
17998 | if (PyErr_Occurred()) SWIG_fail; | |
17999 | } | |
2f4c0a16 | 18000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18001 | return resultobj; |
18002 | fail: | |
18003 | return NULL; | |
18004 | } | |
18005 | ||
18006 | ||
18007 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18008 | PyObject *resultobj; | |
18009 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18010 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18011 | PyObject * obj0 = 0 ; | |
18012 | PyObject * obj1 = 0 ; | |
18013 | char *kwnames[] = { | |
18014 | (char *) "self",(char *) "win", NULL | |
18015 | }; | |
18016 | ||
18017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18022 | { |
18023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18024 | (arg1)->SetChangedWindow(arg2); | |
18025 | ||
18026 | wxPyEndAllowThreads(__tstate); | |
18027 | if (PyErr_Occurred()) SWIG_fail; | |
18028 | } | |
18029 | Py_INCREF(Py_None); resultobj = Py_None; | |
18030 | return resultobj; | |
18031 | fail: | |
18032 | return NULL; | |
18033 | } | |
18034 | ||
18035 | ||
18036 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18037 | PyObject *resultobj; | |
18038 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18039 | wxWindow *result; | |
18040 | PyObject * obj0 = 0 ; | |
18041 | char *kwnames[] = { | |
18042 | (char *) "self", NULL | |
18043 | }; | |
18044 | ||
18045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18048 | { |
18049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18050 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18051 | ||
18052 | wxPyEndAllowThreads(__tstate); | |
18053 | if (PyErr_Occurred()) SWIG_fail; | |
18054 | } | |
18055 | { | |
18056 | resultobj = wxPyMake_wxObject(result); | |
18057 | } | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18065 | PyObject *obj; | |
18066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18067 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18068 | Py_INCREF(obj); | |
18069 | return Py_BuildValue((char *)""); | |
18070 | } | |
18071 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18072 | PyObject *resultobj; | |
423f194a | 18073 | int arg1 = (int) 0 ; |
d14a1e28 | 18074 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 18075 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18076 | char *kwnames[] = { |
18077 | (char *) "winid", NULL | |
18078 | }; | |
18079 | ||
8edf1c75 RD |
18080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18081 | if (obj0) { | |
2f4c0a16 RD |
18082 | arg1 = (int) SWIG_AsInt(obj0); |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18084 | } |
d14a1e28 RD |
18085 | { |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
2f4c0a16 | 18092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18093 | return resultobj; |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18102 | bool arg2 ; | |
18103 | PyObject * obj0 = 0 ; | |
18104 | PyObject * obj1 = 0 ; | |
18105 | char *kwnames[] = { | |
18106 | (char *) "self",(char *) "realized", NULL | |
18107 | }; | |
18108 | ||
18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18112 | arg2 = (bool) SWIG_AsBool(obj1); | |
18113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18114 | { |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | (arg1)->SetPaletteRealized(arg2); | |
18117 | ||
18118 | wxPyEndAllowThreads(__tstate); | |
18119 | if (PyErr_Occurred()) SWIG_fail; | |
18120 | } | |
18121 | Py_INCREF(Py_None); resultobj = Py_None; | |
18122 | return resultobj; | |
18123 | fail: | |
18124 | return NULL; | |
18125 | } | |
18126 | ||
18127 | ||
18128 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18129 | PyObject *resultobj; | |
18130 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18131 | bool result; | |
18132 | PyObject * obj0 = 0 ; | |
18133 | char *kwnames[] = { | |
18134 | (char *) "self", NULL | |
18135 | }; | |
18136 | ||
18137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18140 | { |
18141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18142 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18143 | ||
18144 | wxPyEndAllowThreads(__tstate); | |
18145 | if (PyErr_Occurred()) SWIG_fail; | |
18146 | } | |
4e760a36 | 18147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18148 | return resultobj; |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18155 | PyObject *obj; | |
18156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18157 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18158 | Py_INCREF(obj); | |
18159 | return Py_BuildValue((char *)""); | |
18160 | } | |
18161 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18162 | PyObject *resultobj; | |
18163 | wxNavigationKeyEvent *result; | |
18164 | char *kwnames[] = { | |
18165 | NULL | |
18166 | }; | |
18167 | ||
18168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18169 | { | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
2f4c0a16 | 18176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18177 | return resultobj; |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18186 | bool result; | |
18187 | PyObject * obj0 = 0 ; | |
18188 | char *kwnames[] = { | |
18189 | (char *) "self", NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18195 | { |
18196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18197 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18198 | ||
18199 | wxPyEndAllowThreads(__tstate); | |
18200 | if (PyErr_Occurred()) SWIG_fail; | |
18201 | } | |
4e760a36 | 18202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18203 | return resultobj; |
18204 | fail: | |
18205 | return NULL; | |
18206 | } | |
18207 | ||
18208 | ||
18209 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18210 | PyObject *resultobj; | |
18211 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18212 | bool arg2 ; | |
18213 | PyObject * obj0 = 0 ; | |
18214 | PyObject * obj1 = 0 ; | |
18215 | char *kwnames[] = { | |
18216 | (char *) "self",(char *) "bForward", NULL | |
18217 | }; | |
18218 | ||
18219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18222 | arg2 = (bool) SWIG_AsBool(obj1); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18224 | { |
18225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18226 | (arg1)->SetDirection(arg2); | |
18227 | ||
18228 | wxPyEndAllowThreads(__tstate); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
18230 | } | |
18231 | Py_INCREF(Py_None); resultobj = Py_None; | |
18232 | return resultobj; | |
18233 | fail: | |
18234 | return NULL; | |
18235 | } | |
18236 | ||
18237 | ||
18238 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18239 | PyObject *resultobj; | |
18240 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18241 | bool result; | |
18242 | PyObject * obj0 = 0 ; | |
18243 | char *kwnames[] = { | |
18244 | (char *) "self", NULL | |
18245 | }; | |
18246 | ||
18247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18250 | { |
18251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18252 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18253 | ||
18254 | wxPyEndAllowThreads(__tstate); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
4e760a36 | 18257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18258 | return resultobj; |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18265 | PyObject *resultobj; | |
18266 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18267 | bool arg2 ; | |
18268 | PyObject * obj0 = 0 ; | |
18269 | PyObject * obj1 = 0 ; | |
18270 | char *kwnames[] = { | |
18271 | (char *) "self",(char *) "bIs", NULL | |
18272 | }; | |
18273 | ||
18274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18277 | arg2 = (bool) SWIG_AsBool(obj1); | |
18278 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18279 | { |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | (arg1)->SetWindowChange(arg2); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
18286 | Py_INCREF(Py_None); resultobj = Py_None; | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18294 | PyObject *resultobj; | |
18295 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18296 | wxWindow *result; | |
18297 | PyObject * obj0 = 0 ; | |
18298 | char *kwnames[] = { | |
18299 | (char *) "self", NULL | |
18300 | }; | |
18301 | ||
18302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18305 | { |
18306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18307 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18308 | ||
18309 | wxPyEndAllowThreads(__tstate); | |
18310 | if (PyErr_Occurred()) SWIG_fail; | |
18311 | } | |
18312 | { | |
18313 | resultobj = wxPyMake_wxObject(result); | |
18314 | } | |
18315 | return resultobj; | |
18316 | fail: | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18322 | PyObject *resultobj; | |
18323 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18325 | PyObject * obj0 = 0 ; | |
18326 | PyObject * obj1 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self",(char *) "win", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18336 | { |
18337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18338 | (arg1)->SetCurrentFocus(arg2); | |
18339 | ||
18340 | wxPyEndAllowThreads(__tstate); | |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
18342 | } | |
18343 | Py_INCREF(Py_None); resultobj = Py_None; | |
18344 | return resultobj; | |
18345 | fail: | |
18346 | return NULL; | |
18347 | } | |
18348 | ||
18349 | ||
18350 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18351 | PyObject *obj; | |
18352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18353 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18354 | Py_INCREF(obj); | |
18355 | return Py_BuildValue((char *)""); | |
18356 | } | |
18357 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18358 | PyObject *resultobj; | |
18359 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18360 | wxWindowCreateEvent *result; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "win", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18367 | if (obj0) { | |
2f4c0a16 RD |
18368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18370 | } |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
2f4c0a16 | 18378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18379 | return resultobj; |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
18385 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18386 | PyObject *resultobj; | |
18387 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18388 | wxWindow *result; | |
18389 | PyObject * obj0 = 0 ; | |
18390 | char *kwnames[] = { | |
18391 | (char *) "self", NULL | |
18392 | }; | |
18393 | ||
18394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18397 | { |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18399 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18400 | ||
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
18404 | { | |
18405 | resultobj = wxPyMake_wxObject(result); | |
18406 | } | |
18407 | return resultobj; | |
18408 | fail: | |
18409 | return NULL; | |
18410 | } | |
18411 | ||
18412 | ||
18413 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18414 | PyObject *obj; | |
18415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18416 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18417 | Py_INCREF(obj); | |
18418 | return Py_BuildValue((char *)""); | |
18419 | } | |
18420 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18421 | PyObject *resultobj; | |
18422 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18423 | wxWindowDestroyEvent *result; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "win", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18430 | if (obj0) { | |
2f4c0a16 RD |
18431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18433 | } |
18434 | { | |
18435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18436 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18437 | ||
18438 | wxPyEndAllowThreads(__tstate); | |
18439 | if (PyErr_Occurred()) SWIG_fail; | |
18440 | } | |
2f4c0a16 | 18441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18442 | return resultobj; |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
18448 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18449 | PyObject *resultobj; | |
18450 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18451 | wxWindow *result; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | char *kwnames[] = { | |
18454 | (char *) "self", NULL | |
18455 | }; | |
18456 | ||
18457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18460 | { |
18461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18462 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18463 | ||
18464 | wxPyEndAllowThreads(__tstate); | |
18465 | if (PyErr_Occurred()) SWIG_fail; | |
18466 | } | |
18467 | { | |
18468 | resultobj = wxPyMake_wxObject(result); | |
18469 | } | |
18470 | return resultobj; | |
18471 | fail: | |
18472 | return NULL; | |
18473 | } | |
18474 | ||
18475 | ||
18476 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18477 | PyObject *obj; | |
18478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18479 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18480 | Py_INCREF(obj); | |
18481 | return Py_BuildValue((char *)""); | |
18482 | } | |
18483 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18484 | PyObject *resultobj; | |
18485 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18486 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18487 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18488 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18489 | wxContextMenuEvent *result; | |
18490 | wxPoint temp3 ; | |
8edf1c75 RD |
18491 | PyObject * obj0 = 0 ; |
18492 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18493 | PyObject * obj2 = 0 ; |
18494 | char *kwnames[] = { | |
18495 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18496 | }; | |
18497 | ||
8edf1c75 RD |
18498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18499 | if (obj0) { | |
2f4c0a16 RD |
18500 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18501 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18502 | } |
18503 | if (obj1) { | |
2f4c0a16 RD |
18504 | arg2 = (int) SWIG_AsInt(obj1); |
18505 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18506 | } |
d14a1e28 RD |
18507 | if (obj2) { |
18508 | { | |
18509 | arg3 = &temp3; | |
18510 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18511 | } | |
18512 | } | |
18513 | { | |
18514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18515 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18516 | ||
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
2f4c0a16 | 18520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18521 | return resultobj; |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18528 | PyObject *resultobj; | |
18529 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18530 | wxPoint *result; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | char *kwnames[] = { | |
18533 | (char *) "self", NULL | |
18534 | }; | |
18535 | ||
18536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18539 | { |
18540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18541 | { | |
18542 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18543 | result = (wxPoint *) &_result_ref; | |
18544 | } | |
18545 | ||
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
2f4c0a16 | 18549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18550 | return resultobj; |
18551 | fail: | |
18552 | return NULL; | |
18553 | } | |
18554 | ||
18555 | ||
18556 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18557 | PyObject *resultobj; | |
18558 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18559 | wxPoint *arg2 = 0 ; | |
18560 | wxPoint temp2 ; | |
18561 | PyObject * obj0 = 0 ; | |
18562 | PyObject * obj1 = 0 ; | |
18563 | char *kwnames[] = { | |
18564 | (char *) "self",(char *) "pos", NULL | |
18565 | }; | |
18566 | ||
18567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18570 | { |
18571 | arg2 = &temp2; | |
18572 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18573 | } | |
18574 | { | |
18575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18576 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18577 | ||
18578 | wxPyEndAllowThreads(__tstate); | |
18579 | if (PyErr_Occurred()) SWIG_fail; | |
18580 | } | |
18581 | Py_INCREF(Py_None); resultobj = Py_None; | |
18582 | return resultobj; | |
18583 | fail: | |
18584 | return NULL; | |
18585 | } | |
18586 | ||
18587 | ||
18588 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18589 | PyObject *obj; | |
18590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18591 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18592 | Py_INCREF(obj); | |
18593 | return Py_BuildValue((char *)""); | |
18594 | } | |
18595 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18596 | PyObject *resultobj; | |
18597 | wxIdleEvent *result; | |
18598 | char *kwnames[] = { | |
18599 | NULL | |
18600 | }; | |
18601 | ||
18602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18603 | { | |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
2f4c0a16 | 18610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
18611 | return resultobj; |
18612 | fail: | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
18617 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18618 | PyObject *resultobj; | |
18619 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18620 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18621 | PyObject * obj0 = 0 ; |
18622 | PyObject * obj1 = 0 ; | |
18623 | char *kwnames[] = { | |
18624 | (char *) "self",(char *) "needMore", NULL | |
18625 | }; | |
18626 | ||
18627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18630 | if (obj1) { |
2f4c0a16 RD |
18631 | arg2 = (bool) SWIG_AsBool(obj1); |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18633 | } |
18634 | { | |
18635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18636 | (arg1)->RequestMore(arg2); | |
18637 | ||
18638 | wxPyEndAllowThreads(__tstate); | |
18639 | if (PyErr_Occurred()) SWIG_fail; | |
18640 | } | |
18641 | Py_INCREF(Py_None); resultobj = Py_None; | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18649 | PyObject *resultobj; | |
18650 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18651 | bool result; | |
18652 | PyObject * obj0 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18660 | { |
18661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18662 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18663 | ||
18664 | wxPyEndAllowThreads(__tstate); | |
18665 | if (PyErr_Occurred()) SWIG_fail; | |
18666 | } | |
4e760a36 | 18667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18668 | return resultobj; |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | int arg1 ; | |
8edf1c75 | 18677 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18678 | char *kwnames[] = { |
18679 | (char *) "mode", NULL | |
18680 | }; | |
18681 | ||
8edf1c75 | 18682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18683 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18685 | { |
18686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18687 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18688 | ||
18689 | wxPyEndAllowThreads(__tstate); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | } | |
18692 | Py_INCREF(Py_None); resultobj = Py_None; | |
18693 | return resultobj; | |
18694 | fail: | |
18695 | return NULL; | |
18696 | } | |
18697 | ||
18698 | ||
18699 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18700 | PyObject *resultobj; | |
18701 | int result; | |
18702 | char *kwnames[] = { | |
18703 | NULL | |
18704 | }; | |
18705 | ||
18706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | result = (int)wxIdleEvent::GetMode(); | |
18710 | ||
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
2f4c0a16 | 18714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18715 | return resultobj; |
18716 | fail: | |
18717 | return NULL; | |
18718 | } | |
18719 | ||
18720 | ||
18721 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18722 | PyObject *resultobj; | |
18723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18724 | bool result; | |
18725 | PyObject * obj0 = 0 ; | |
18726 | char *kwnames[] = { | |
18727 | (char *) "win", NULL | |
18728 | }; | |
18729 | ||
18730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18733 | { |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
4e760a36 | 18740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18741 | return resultobj; |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
18747 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18748 | PyObject *obj; | |
18749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18750 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18751 | Py_INCREF(obj); | |
18752 | return Py_BuildValue((char *)""); | |
18753 | } | |
18754 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18755 | PyObject *resultobj; | |
18756 | int arg1 = (int) 0 ; | |
18757 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18758 | wxPyEvent *result; | |
8edf1c75 RD |
18759 | PyObject * obj0 = 0 ; |
18760 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18761 | char *kwnames[] = { |
18762 | (char *) "winid",(char *) "commandType", NULL | |
18763 | }; | |
18764 | ||
8edf1c75 RD |
18765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
18766 | if (obj0) { | |
2f4c0a16 RD |
18767 | arg1 = (int) SWIG_AsInt(obj0); |
18768 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18769 | } |
18770 | if (obj1) { | |
2f4c0a16 RD |
18771 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18773 | } |
d14a1e28 RD |
18774 | { |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
2f4c0a16 | 18781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
18782 | return resultobj; |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18791 | PyObject * obj0 = 0 ; | |
18792 | char *kwnames[] = { | |
18793 | (char *) "self", NULL | |
18794 | }; | |
18795 | ||
18796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18799 | { |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | delete arg1; | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | Py_INCREF(Py_None); resultobj = Py_None; | |
18807 | return resultobj; | |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18814 | PyObject *resultobj; | |
18815 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18816 | PyObject *arg2 = (PyObject *) 0 ; | |
18817 | PyObject * obj0 = 0 ; | |
18818 | PyObject * obj1 = 0 ; | |
18819 | char *kwnames[] = { | |
18820 | (char *) "self",(char *) "self", NULL | |
18821 | }; | |
18822 | ||
18823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18826 | arg2 = obj1; |
18827 | { | |
18828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18829 | (arg1)->SetSelf(arg2); | |
18830 | ||
18831 | wxPyEndAllowThreads(__tstate); | |
18832 | if (PyErr_Occurred()) SWIG_fail; | |
18833 | } | |
18834 | Py_INCREF(Py_None); resultobj = Py_None; | |
18835 | return resultobj; | |
18836 | fail: | |
18837 | return NULL; | |
18838 | } | |
18839 | ||
18840 | ||
18841 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18842 | PyObject *resultobj; | |
18843 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
18844 | PyObject *result; | |
18845 | PyObject * obj0 = 0 ; | |
18846 | char *kwnames[] = { | |
18847 | (char *) "self", NULL | |
18848 | }; | |
18849 | ||
18850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
18852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18853 | { |
18854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18855 | result = (PyObject *)(arg1)->GetSelf(); | |
18856 | ||
18857 | wxPyEndAllowThreads(__tstate); | |
18858 | if (PyErr_Occurred()) SWIG_fail; | |
18859 | } | |
18860 | resultobj = result; | |
18861 | return resultobj; | |
18862 | fail: | |
18863 | return NULL; | |
18864 | } | |
18865 | ||
18866 | ||
18867 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
18868 | PyObject *obj; | |
18869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18870 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
18871 | Py_INCREF(obj); | |
18872 | return Py_BuildValue((char *)""); | |
18873 | } | |
18874 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18875 | PyObject *resultobj; | |
18876 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18877 | int arg2 = (int) 0 ; | |
18878 | wxPyCommandEvent *result; | |
8edf1c75 RD |
18879 | PyObject * obj0 = 0 ; |
18880 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18881 | char *kwnames[] = { |
18882 | (char *) "commandType",(char *) "id", NULL | |
18883 | }; | |
18884 | ||
8edf1c75 RD |
18885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
18886 | if (obj0) { | |
2f4c0a16 RD |
18887 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18888 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18889 | } |
18890 | if (obj1) { | |
2f4c0a16 RD |
18891 | arg2 = (int) SWIG_AsInt(obj1); |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18893 | } |
d14a1e28 RD |
18894 | { |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
18897 | ||
18898 | wxPyEndAllowThreads(__tstate); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
2f4c0a16 | 18901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
18902 | return resultobj; |
18903 | fail: | |
18904 | return NULL; | |
18905 | } | |
18906 | ||
18907 | ||
18908 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18909 | PyObject *resultobj; | |
18910 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18911 | PyObject * obj0 = 0 ; | |
18912 | char *kwnames[] = { | |
18913 | (char *) "self", NULL | |
18914 | }; | |
18915 | ||
18916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18919 | { |
18920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18921 | delete arg1; | |
18922 | ||
18923 | wxPyEndAllowThreads(__tstate); | |
18924 | if (PyErr_Occurred()) SWIG_fail; | |
18925 | } | |
18926 | Py_INCREF(Py_None); resultobj = Py_None; | |
18927 | return resultobj; | |
18928 | fail: | |
18929 | return NULL; | |
18930 | } | |
18931 | ||
18932 | ||
18933 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18934 | PyObject *resultobj; | |
18935 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18936 | PyObject *arg2 = (PyObject *) 0 ; | |
18937 | PyObject * obj0 = 0 ; | |
18938 | PyObject * obj1 = 0 ; | |
18939 | char *kwnames[] = { | |
18940 | (char *) "self",(char *) "self", NULL | |
18941 | }; | |
18942 | ||
18943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18946 | arg2 = obj1; |
18947 | { | |
18948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18949 | (arg1)->SetSelf(arg2); | |
18950 | ||
18951 | wxPyEndAllowThreads(__tstate); | |
18952 | if (PyErr_Occurred()) SWIG_fail; | |
18953 | } | |
18954 | Py_INCREF(Py_None); resultobj = Py_None; | |
18955 | return resultobj; | |
18956 | fail: | |
18957 | return NULL; | |
18958 | } | |
18959 | ||
18960 | ||
18961 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18962 | PyObject *resultobj; | |
18963 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
18964 | PyObject *result; | |
18965 | PyObject * obj0 = 0 ; | |
18966 | char *kwnames[] = { | |
18967 | (char *) "self", NULL | |
18968 | }; | |
18969 | ||
18970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
18972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18973 | { |
18974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18975 | result = (PyObject *)(arg1)->GetSelf(); | |
18976 | ||
18977 | wxPyEndAllowThreads(__tstate); | |
18978 | if (PyErr_Occurred()) SWIG_fail; | |
18979 | } | |
18980 | resultobj = result; | |
18981 | return resultobj; | |
18982 | fail: | |
18983 | return NULL; | |
18984 | } | |
18985 | ||
18986 | ||
18987 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
18988 | PyObject *obj; | |
18989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18990 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
18991 | Py_INCREF(obj); | |
18992 | return Py_BuildValue((char *)""); | |
18993 | } | |
18994 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18995 | PyObject *resultobj; | |
18996 | wxPyApp *result; | |
18997 | char *kwnames[] = { | |
18998 | NULL | |
18999 | }; | |
19000 | ||
19001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19002 | { | |
19003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19004 | result = (wxPyApp *)new_wxPyApp(); | |
19005 | ||
19006 | wxPyEndAllowThreads(__tstate); | |
19007 | if (PyErr_Occurred()) SWIG_fail; | |
19008 | } | |
19009 | { | |
19010 | resultobj = wxPyMake_wxObject(result); | |
19011 | } | |
19012 | return resultobj; | |
19013 | fail: | |
19014 | return NULL; | |
19015 | } | |
19016 | ||
19017 | ||
19018 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19019 | PyObject *resultobj; | |
19020 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19021 | PyObject * obj0 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19029 | { |
19030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19031 | delete arg1; | |
19032 | ||
19033 | wxPyEndAllowThreads(__tstate); | |
19034 | if (PyErr_Occurred()) SWIG_fail; | |
19035 | } | |
19036 | Py_INCREF(Py_None); resultobj = Py_None; | |
19037 | return resultobj; | |
19038 | fail: | |
19039 | return NULL; | |
19040 | } | |
19041 | ||
19042 | ||
19043 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19044 | PyObject *resultobj; | |
19045 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19046 | PyObject *arg2 = (PyObject *) 0 ; | |
19047 | PyObject *arg3 = (PyObject *) 0 ; | |
19048 | PyObject * obj0 = 0 ; | |
19049 | PyObject * obj1 = 0 ; | |
19050 | PyObject * obj2 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19058 | arg2 = obj1; |
19059 | arg3 = obj2; | |
19060 | { | |
19061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19062 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19063 | ||
19064 | wxPyEndAllowThreads(__tstate); | |
19065 | if (PyErr_Occurred()) SWIG_fail; | |
19066 | } | |
19067 | Py_INCREF(Py_None); resultobj = Py_None; | |
19068 | return resultobj; | |
19069 | fail: | |
19070 | return NULL; | |
19071 | } | |
19072 | ||
19073 | ||
19074 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19075 | PyObject *resultobj; | |
19076 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19077 | wxString result; | |
19078 | PyObject * obj0 = 0 ; | |
19079 | char *kwnames[] = { | |
19080 | (char *) "self", NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19086 | { |
19087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19088 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19089 | ||
19090 | wxPyEndAllowThreads(__tstate); | |
19091 | if (PyErr_Occurred()) SWIG_fail; | |
19092 | } | |
19093 | { | |
19094 | #if wxUSE_UNICODE | |
19095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19096 | #else | |
19097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19098 | #endif | |
19099 | } | |
19100 | return resultobj; | |
19101 | fail: | |
19102 | return NULL; | |
19103 | } | |
19104 | ||
19105 | ||
19106 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19107 | PyObject *resultobj; | |
19108 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19109 | wxString *arg2 = 0 ; | |
423f194a | 19110 | bool temp2 = False ; |
d14a1e28 RD |
19111 | PyObject * obj0 = 0 ; |
19112 | PyObject * obj1 = 0 ; | |
19113 | char *kwnames[] = { | |
19114 | (char *) "self",(char *) "name", NULL | |
19115 | }; | |
19116 | ||
19117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19120 | { |
19121 | arg2 = wxString_in_helper(obj1); | |
19122 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19123 | temp2 = True; |
d14a1e28 RD |
19124 | } |
19125 | { | |
19126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19127 | (arg1)->SetAppName((wxString const &)*arg2); | |
19128 | ||
19129 | wxPyEndAllowThreads(__tstate); | |
19130 | if (PyErr_Occurred()) SWIG_fail; | |
19131 | } | |
19132 | Py_INCREF(Py_None); resultobj = Py_None; | |
19133 | { | |
19134 | if (temp2) | |
19135 | delete arg2; | |
19136 | } | |
19137 | return resultobj; | |
19138 | fail: | |
19139 | { | |
19140 | if (temp2) | |
19141 | delete arg2; | |
19142 | } | |
19143 | return NULL; | |
19144 | } | |
19145 | ||
19146 | ||
19147 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19148 | PyObject *resultobj; | |
19149 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19150 | wxString result; | |
19151 | PyObject * obj0 = 0 ; | |
19152 | char *kwnames[] = { | |
19153 | (char *) "self", NULL | |
19154 | }; | |
19155 | ||
19156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19159 | { |
19160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19161 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19162 | ||
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
19166 | { | |
19167 | #if wxUSE_UNICODE | |
19168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19169 | #else | |
19170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19171 | #endif | |
19172 | } | |
19173 | return resultobj; | |
19174 | fail: | |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19180 | PyObject *resultobj; | |
19181 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19182 | wxString *arg2 = 0 ; | |
423f194a | 19183 | bool temp2 = False ; |
d14a1e28 RD |
19184 | PyObject * obj0 = 0 ; |
19185 | PyObject * obj1 = 0 ; | |
19186 | char *kwnames[] = { | |
19187 | (char *) "self",(char *) "name", NULL | |
19188 | }; | |
19189 | ||
19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19193 | { |
19194 | arg2 = wxString_in_helper(obj1); | |
19195 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19196 | temp2 = True; |
d14a1e28 RD |
19197 | } |
19198 | { | |
19199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19200 | (arg1)->SetClassName((wxString const &)*arg2); | |
19201 | ||
19202 | wxPyEndAllowThreads(__tstate); | |
19203 | if (PyErr_Occurred()) SWIG_fail; | |
19204 | } | |
19205 | Py_INCREF(Py_None); resultobj = Py_None; | |
19206 | { | |
19207 | if (temp2) | |
19208 | delete arg2; | |
19209 | } | |
19210 | return resultobj; | |
19211 | fail: | |
19212 | { | |
19213 | if (temp2) | |
19214 | delete arg2; | |
19215 | } | |
19216 | return NULL; | |
19217 | } | |
19218 | ||
19219 | ||
19220 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19221 | PyObject *resultobj; | |
19222 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19223 | wxString *result; | |
19224 | PyObject * obj0 = 0 ; | |
19225 | char *kwnames[] = { | |
19226 | (char *) "self", NULL | |
19227 | }; | |
19228 | ||
19229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19232 | { |
19233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19234 | { | |
19235 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19236 | result = (wxString *) &_result_ref; | |
19237 | } | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
f0983263 RD |
19242 | { |
19243 | #if wxUSE_UNICODE | |
19244 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19245 | #else | |
19246 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19247 | #endif | |
19248 | } | |
d14a1e28 RD |
19249 | return resultobj; |
19250 | fail: | |
19251 | return NULL; | |
19252 | } | |
19253 | ||
19254 | ||
19255 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19256 | PyObject *resultobj; | |
19257 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19258 | wxString *arg2 = 0 ; | |
423f194a | 19259 | bool temp2 = False ; |
d14a1e28 RD |
19260 | PyObject * obj0 = 0 ; |
19261 | PyObject * obj1 = 0 ; | |
19262 | char *kwnames[] = { | |
19263 | (char *) "self",(char *) "name", NULL | |
19264 | }; | |
19265 | ||
19266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19269 | { |
19270 | arg2 = wxString_in_helper(obj1); | |
19271 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19272 | temp2 = True; |
d14a1e28 RD |
19273 | } |
19274 | { | |
19275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19276 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19277 | ||
19278 | wxPyEndAllowThreads(__tstate); | |
19279 | if (PyErr_Occurred()) SWIG_fail; | |
19280 | } | |
19281 | Py_INCREF(Py_None); resultobj = Py_None; | |
19282 | { | |
19283 | if (temp2) | |
19284 | delete arg2; | |
19285 | } | |
19286 | return resultobj; | |
19287 | fail: | |
19288 | { | |
19289 | if (temp2) | |
19290 | delete arg2; | |
19291 | } | |
19292 | return NULL; | |
19293 | } | |
19294 | ||
19295 | ||
19296 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19297 | PyObject *resultobj; | |
19298 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19299 | wxAppTraits *result; | |
19300 | PyObject * obj0 = 0 ; | |
19301 | char *kwnames[] = { | |
19302 | (char *) "self", NULL | |
19303 | }; | |
19304 | ||
19305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19308 | { |
19309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19310 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19311 | ||
19312 | wxPyEndAllowThreads(__tstate); | |
19313 | if (PyErr_Occurred()) SWIG_fail; | |
19314 | } | |
2f4c0a16 | 19315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19316 | return resultobj; |
19317 | fail: | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
19322 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19323 | PyObject *resultobj; | |
19324 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19325 | PyObject * obj0 = 0 ; | |
19326 | char *kwnames[] = { | |
19327 | (char *) "self", NULL | |
19328 | }; | |
19329 | ||
19330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19333 | { |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | (arg1)->ProcessPendingEvents(); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | Py_INCREF(Py_None); resultobj = Py_None; | |
19341 | return resultobj; | |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19348 | PyObject *resultobj; | |
19349 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19350 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19351 | bool result; |
19352 | PyObject * obj0 = 0 ; | |
19353 | PyObject * obj1 = 0 ; | |
19354 | char *kwnames[] = { | |
19355 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19356 | }; | |
19357 | ||
19358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19361 | if (obj1) { |
2f4c0a16 RD |
19362 | arg2 = (bool) SWIG_AsBool(obj1); |
19363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19364 | } |
19365 | { | |
19366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19367 | result = (bool)(arg1)->Yield(arg2); | |
19368 | ||
19369 | wxPyEndAllowThreads(__tstate); | |
19370 | if (PyErr_Occurred()) SWIG_fail; | |
19371 | } | |
4e760a36 | 19372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19373 | return resultobj; |
19374 | fail: | |
19375 | return NULL; | |
19376 | } | |
19377 | ||
19378 | ||
19379 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19380 | PyObject *resultobj; | |
19381 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19382 | PyObject * obj0 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19390 | { |
19391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19392 | (arg1)->WakeUpIdle(); | |
19393 | ||
19394 | wxPyEndAllowThreads(__tstate); | |
19395 | if (PyErr_Occurred()) SWIG_fail; | |
19396 | } | |
19397 | Py_INCREF(Py_None); resultobj = Py_None; | |
19398 | return resultobj; | |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
19404 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19405 | PyObject *resultobj; | |
19406 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19407 | int result; | |
19408 | PyObject * obj0 = 0 ; | |
19409 | char *kwnames[] = { | |
19410 | (char *) "self", NULL | |
19411 | }; | |
19412 | ||
19413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19416 | { |
19417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19418 | result = (int)(arg1)->MainLoop(); | |
19419 | ||
19420 | wxPyEndAllowThreads(__tstate); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
2f4c0a16 | 19423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19424 | return resultobj; |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19433 | PyObject * obj0 = 0 ; | |
19434 | char *kwnames[] = { | |
19435 | (char *) "self", NULL | |
19436 | }; | |
19437 | ||
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19441 | { |
19442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19443 | (arg1)->Exit(); | |
19444 | ||
19445 | wxPyEndAllowThreads(__tstate); | |
19446 | if (PyErr_Occurred()) SWIG_fail; | |
19447 | } | |
19448 | Py_INCREF(Py_None); resultobj = Py_None; | |
19449 | return resultobj; | |
19450 | fail: | |
19451 | return NULL; | |
19452 | } | |
19453 | ||
19454 | ||
19455 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19456 | PyObject *resultobj; | |
19457 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19458 | PyObject * obj0 = 0 ; | |
19459 | char *kwnames[] = { | |
19460 | (char *) "self", NULL | |
19461 | }; | |
19462 | ||
19463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19466 | { |
19467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19468 | (arg1)->ExitMainLoop(); | |
19469 | ||
19470 | wxPyEndAllowThreads(__tstate); | |
19471 | if (PyErr_Occurred()) SWIG_fail; | |
19472 | } | |
19473 | Py_INCREF(Py_None); resultobj = Py_None; | |
19474 | return resultobj; | |
19475 | fail: | |
19476 | return NULL; | |
19477 | } | |
19478 | ||
19479 | ||
19480 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19481 | PyObject *resultobj; | |
19482 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19483 | bool result; | |
19484 | PyObject * obj0 = 0 ; | |
19485 | char *kwnames[] = { | |
19486 | (char *) "self", NULL | |
19487 | }; | |
19488 | ||
19489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19492 | { |
19493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19494 | result = (bool)(arg1)->Pending(); | |
19495 | ||
19496 | wxPyEndAllowThreads(__tstate); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | } | |
4e760a36 | 19499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19500 | return resultobj; |
19501 | fail: | |
19502 | return NULL; | |
19503 | } | |
19504 | ||
19505 | ||
19506 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19507 | PyObject *resultobj; | |
19508 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19509 | bool result; | |
19510 | PyObject * obj0 = 0 ; | |
19511 | char *kwnames[] = { | |
19512 | (char *) "self", NULL | |
19513 | }; | |
19514 | ||
19515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19518 | { |
19519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19520 | result = (bool)(arg1)->Dispatch(); | |
19521 | ||
19522 | wxPyEndAllowThreads(__tstate); | |
19523 | if (PyErr_Occurred()) SWIG_fail; | |
19524 | } | |
4e760a36 | 19525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19526 | return resultobj; |
19527 | fail: | |
19528 | return NULL; | |
19529 | } | |
19530 | ||
19531 | ||
19532 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19533 | PyObject *resultobj; | |
19534 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19535 | bool result; | |
19536 | PyObject * obj0 = 0 ; | |
19537 | char *kwnames[] = { | |
19538 | (char *) "self", NULL | |
19539 | }; | |
19540 | ||
19541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19544 | { |
19545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19546 | result = (bool)(arg1)->ProcessIdle(); | |
19547 | ||
19548 | wxPyEndAllowThreads(__tstate); | |
19549 | if (PyErr_Occurred()) SWIG_fail; | |
19550 | } | |
4e760a36 | 19551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19552 | return resultobj; |
19553 | fail: | |
19554 | return NULL; | |
19555 | } | |
19556 | ||
19557 | ||
19558 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19559 | PyObject *resultobj; | |
19560 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19561 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19562 | wxIdleEvent *arg3 = 0 ; | |
19563 | bool result; | |
19564 | PyObject * obj0 = 0 ; | |
19565 | PyObject * obj1 = 0 ; | |
19566 | PyObject * obj2 = 0 ; | |
19567 | char *kwnames[] = { | |
19568 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19569 | }; | |
19570 | ||
19571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19576 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19577 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19578 | SWIG_fail; | |
d14a1e28 | 19579 | if (arg3 == NULL) { |
2f4c0a16 RD |
19580 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19581 | SWIG_fail; | |
d14a1e28 RD |
19582 | } |
19583 | { | |
19584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19585 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19586 | ||
19587 | wxPyEndAllowThreads(__tstate); | |
19588 | if (PyErr_Occurred()) SWIG_fail; | |
19589 | } | |
4e760a36 | 19590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19591 | return resultobj; |
19592 | fail: | |
19593 | return NULL; | |
19594 | } | |
19595 | ||
19596 | ||
d14a1e28 RD |
19597 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19598 | PyObject *resultobj; | |
19599 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19600 | bool result; | |
19601 | PyObject * obj0 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19609 | { |
19610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19611 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19612 | ||
19613 | wxPyEndAllowThreads(__tstate); | |
19614 | if (PyErr_Occurred()) SWIG_fail; | |
19615 | } | |
4e760a36 | 19616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19617 | return resultobj; |
19618 | fail: | |
19619 | return NULL; | |
19620 | } | |
19621 | ||
19622 | ||
19623 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19624 | PyObject *resultobj; | |
19625 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19626 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | PyObject * obj1 = 0 ; | |
19629 | char *kwnames[] = { | |
19630 | (char *) "self",(char *) "win", NULL | |
19631 | }; | |
19632 | ||
19633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19638 | { |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | (arg1)->SetTopWindow(arg2); | |
19641 | ||
19642 | wxPyEndAllowThreads(__tstate); | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | } | |
19645 | Py_INCREF(Py_None); resultobj = Py_None; | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | return NULL; | |
19649 | } | |
19650 | ||
19651 | ||
19652 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19653 | PyObject *resultobj; | |
19654 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19655 | wxWindow *result; | |
19656 | PyObject * obj0 = 0 ; | |
19657 | char *kwnames[] = { | |
19658 | (char *) "self", NULL | |
19659 | }; | |
19660 | ||
19661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19664 | { |
19665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19666 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19667 | ||
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
19671 | { | |
19672 | resultobj = wxPyMake_wxObject(result); | |
19673 | } | |
19674 | return resultobj; | |
19675 | fail: | |
19676 | return NULL; | |
19677 | } | |
19678 | ||
19679 | ||
19680 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19681 | PyObject *resultobj; | |
19682 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19683 | bool arg2 ; | |
19684 | PyObject * obj0 = 0 ; | |
19685 | PyObject * obj1 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "self",(char *) "flag", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19693 | arg2 = (bool) SWIG_AsBool(obj1); | |
19694 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19695 | { |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | (arg1)->SetExitOnFrameDelete(arg2); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
19702 | Py_INCREF(Py_None); resultobj = Py_None; | |
19703 | return resultobj; | |
19704 | fail: | |
19705 | return NULL; | |
19706 | } | |
19707 | ||
19708 | ||
19709 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19710 | PyObject *resultobj; | |
19711 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19712 | bool result; | |
19713 | PyObject * obj0 = 0 ; | |
19714 | char *kwnames[] = { | |
19715 | (char *) "self", NULL | |
19716 | }; | |
19717 | ||
19718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19721 | { |
19722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19723 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19724 | ||
19725 | wxPyEndAllowThreads(__tstate); | |
19726 | if (PyErr_Occurred()) SWIG_fail; | |
19727 | } | |
4e760a36 | 19728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19729 | return resultobj; |
19730 | fail: | |
19731 | return NULL; | |
19732 | } | |
19733 | ||
19734 | ||
19735 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19736 | PyObject *resultobj; | |
19737 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19738 | bool arg2 ; | |
19739 | PyObject * obj0 = 0 ; | |
19740 | PyObject * obj1 = 0 ; | |
19741 | char *kwnames[] = { | |
19742 | (char *) "self",(char *) "flag", NULL | |
19743 | }; | |
19744 | ||
19745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19748 | arg2 = (bool) SWIG_AsBool(obj1); | |
19749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19750 | { |
19751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19752 | (arg1)->SetUseBestVisual(arg2); | |
19753 | ||
19754 | wxPyEndAllowThreads(__tstate); | |
19755 | if (PyErr_Occurred()) SWIG_fail; | |
19756 | } | |
19757 | Py_INCREF(Py_None); resultobj = Py_None; | |
19758 | return resultobj; | |
19759 | fail: | |
19760 | return NULL; | |
19761 | } | |
19762 | ||
19763 | ||
19764 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19765 | PyObject *resultobj; | |
19766 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19767 | bool result; | |
19768 | PyObject * obj0 = 0 ; | |
19769 | char *kwnames[] = { | |
19770 | (char *) "self", NULL | |
19771 | }; | |
19772 | ||
19773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19776 | { |
19777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19778 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
19779 | ||
19780 | wxPyEndAllowThreads(__tstate); | |
19781 | if (PyErr_Occurred()) SWIG_fail; | |
19782 | } | |
4e760a36 | 19783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19784 | return resultobj; |
19785 | fail: | |
19786 | return NULL; | |
19787 | } | |
19788 | ||
19789 | ||
19790 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19791 | PyObject *resultobj; | |
19792 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19793 | int arg2 ; | |
19794 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19796 | char *kwnames[] = { |
19797 | (char *) "self",(char *) "mode", NULL | |
19798 | }; | |
19799 | ||
8edf1c75 | 19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19803 | arg2 = (int) SWIG_AsInt(obj1); | |
19804 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19805 | { |
19806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19807 | (arg1)->SetPrintMode(arg2); | |
19808 | ||
19809 | wxPyEndAllowThreads(__tstate); | |
19810 | if (PyErr_Occurred()) SWIG_fail; | |
19811 | } | |
19812 | Py_INCREF(Py_None); resultobj = Py_None; | |
19813 | return resultobj; | |
19814 | fail: | |
19815 | return NULL; | |
19816 | } | |
19817 | ||
19818 | ||
19819 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19820 | PyObject *resultobj; | |
19821 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19822 | int result; | |
19823 | PyObject * obj0 = 0 ; | |
19824 | char *kwnames[] = { | |
19825 | (char *) "self", NULL | |
19826 | }; | |
19827 | ||
19828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19831 | { |
19832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19833 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
19834 | ||
19835 | wxPyEndAllowThreads(__tstate); | |
19836 | if (PyErr_Occurred()) SWIG_fail; | |
19837 | } | |
2f4c0a16 | 19838 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19839 | return resultobj; |
19840 | fail: | |
19841 | return NULL; | |
19842 | } | |
19843 | ||
19844 | ||
44127b65 | 19845 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19846 | PyObject *resultobj; |
19847 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19848 | int arg2 ; |
d14a1e28 | 19849 | PyObject * obj0 = 0 ; |
8edf1c75 | 19850 | PyObject * obj1 = 0 ; |
d14a1e28 | 19851 | char *kwnames[] = { |
44127b65 | 19852 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
19853 | }; |
19854 | ||
8edf1c75 | 19855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19858 | arg2 = (int) SWIG_AsInt(obj1); | |
19859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19860 | { |
19861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19862 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
19863 | |
19864 | wxPyEndAllowThreads(__tstate); | |
19865 | if (PyErr_Occurred()) SWIG_fail; | |
19866 | } | |
44127b65 | 19867 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
19868 | return resultobj; |
19869 | fail: | |
19870 | return NULL; | |
19871 | } | |
19872 | ||
19873 | ||
44127b65 | 19874 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19875 | PyObject *resultobj; |
19876 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 19877 | int result; |
d14a1e28 RD |
19878 | PyObject * obj0 = 0 ; |
19879 | char *kwnames[] = { | |
44127b65 | 19880 | (char *) "self", NULL |
d14a1e28 RD |
19881 | }; |
19882 | ||
44127b65 | 19883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
19884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19886 | { |
19887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 19888 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
19889 | |
19890 | wxPyEndAllowThreads(__tstate); | |
19891 | if (PyErr_Occurred()) SWIG_fail; | |
19892 | } | |
2f4c0a16 | 19893 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19894 | return resultobj; |
19895 | fail: | |
19896 | return NULL; | |
19897 | } | |
19898 | ||
19899 | ||
19900 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19901 | PyObject *resultobj; | |
19902 | bool result; | |
19903 | char *kwnames[] = { | |
19904 | NULL | |
19905 | }; | |
19906 | ||
19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
19908 | { | |
19909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19910 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
19911 | ||
19912 | wxPyEndAllowThreads(__tstate); | |
19913 | if (PyErr_Occurred()) SWIG_fail; | |
19914 | } | |
4e760a36 | 19915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19916 | return resultobj; |
19917 | fail: | |
19918 | return NULL; | |
19919 | } | |
19920 | ||
19921 | ||
19922 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19923 | PyObject *resultobj; | |
19924 | long result; | |
19925 | char *kwnames[] = { | |
19926 | NULL | |
19927 | }; | |
19928 | ||
19929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
19930 | { | |
19931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19932 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
19933 | ||
19934 | wxPyEndAllowThreads(__tstate); | |
19935 | if (PyErr_Occurred()) SWIG_fail; | |
19936 | } | |
2f4c0a16 | 19937 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19938 | return resultobj; |
19939 | fail: | |
19940 | return NULL; | |
19941 | } | |
19942 | ||
19943 | ||
19944 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19945 | PyObject *resultobj; | |
19946 | long result; | |
19947 | char *kwnames[] = { | |
19948 | NULL | |
19949 | }; | |
19950 | ||
19951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
19952 | { | |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
2f4c0a16 | 19959 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19960 | return resultobj; |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19967 | PyObject *resultobj; | |
19968 | long result; | |
19969 | char *kwnames[] = { | |
19970 | NULL | |
19971 | }; | |
19972 | ||
19973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
19974 | { | |
19975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19976 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
19977 | ||
19978 | wxPyEndAllowThreads(__tstate); | |
19979 | if (PyErr_Occurred()) SWIG_fail; | |
19980 | } | |
2f4c0a16 | 19981 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19982 | return resultobj; |
19983 | fail: | |
19984 | return NULL; | |
19985 | } | |
19986 | ||
19987 | ||
19988 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19989 | PyObject *resultobj; | |
19990 | wxString result; | |
19991 | char *kwnames[] = { | |
19992 | NULL | |
19993 | }; | |
19994 | ||
19995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
19996 | { | |
19997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19998 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
19999 | ||
20000 | wxPyEndAllowThreads(__tstate); | |
20001 | if (PyErr_Occurred()) SWIG_fail; | |
20002 | } | |
20003 | { | |
20004 | #if wxUSE_UNICODE | |
20005 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20006 | #else | |
20007 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20008 | #endif | |
20009 | } | |
20010 | return resultobj; | |
20011 | fail: | |
20012 | return NULL; | |
20013 | } | |
20014 | ||
20015 | ||
20016 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20017 | PyObject *resultobj; | |
20018 | bool arg1 ; | |
20019 | PyObject * obj0 = 0 ; | |
20020 | char *kwnames[] = { | |
20021 | (char *) "val", NULL | |
20022 | }; | |
20023 | ||
20024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20025 | arg1 = (bool) SWIG_AsBool(obj0); |
20026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20027 | { |
20028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20029 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20030 | ||
20031 | wxPyEndAllowThreads(__tstate); | |
20032 | if (PyErr_Occurred()) SWIG_fail; | |
20033 | } | |
20034 | Py_INCREF(Py_None); resultobj = Py_None; | |
20035 | return resultobj; | |
20036 | fail: | |
20037 | return NULL; | |
20038 | } | |
20039 | ||
20040 | ||
20041 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20042 | PyObject *resultobj; | |
20043 | long arg1 ; | |
8edf1c75 | 20044 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20045 | char *kwnames[] = { |
20046 | (char *) "val", NULL | |
20047 | }; | |
20048 | ||
8edf1c75 | 20049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20050 | arg1 = (long) SWIG_AsLong(obj0); |
20051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20052 | { |
20053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20054 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20055 | ||
20056 | wxPyEndAllowThreads(__tstate); | |
20057 | if (PyErr_Occurred()) SWIG_fail; | |
20058 | } | |
20059 | Py_INCREF(Py_None); resultobj = Py_None; | |
20060 | return resultobj; | |
20061 | fail: | |
20062 | return NULL; | |
20063 | } | |
20064 | ||
20065 | ||
20066 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20067 | PyObject *resultobj; | |
20068 | long arg1 ; | |
8edf1c75 | 20069 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20070 | char *kwnames[] = { |
20071 | (char *) "val", NULL | |
20072 | }; | |
20073 | ||
8edf1c75 | 20074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20075 | arg1 = (long) SWIG_AsLong(obj0); |
20076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20077 | { |
20078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20079 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20080 | ||
20081 | wxPyEndAllowThreads(__tstate); | |
20082 | if (PyErr_Occurred()) SWIG_fail; | |
20083 | } | |
20084 | Py_INCREF(Py_None); resultobj = Py_None; | |
20085 | return resultobj; | |
20086 | fail: | |
20087 | return NULL; | |
20088 | } | |
20089 | ||
20090 | ||
20091 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20092 | PyObject *resultobj; | |
20093 | long arg1 ; | |
8edf1c75 | 20094 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20095 | char *kwnames[] = { |
20096 | (char *) "val", NULL | |
20097 | }; | |
20098 | ||
8edf1c75 | 20099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20100 | arg1 = (long) SWIG_AsLong(obj0); |
20101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20102 | { |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20105 | ||
20106 | wxPyEndAllowThreads(__tstate); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
20109 | Py_INCREF(Py_None); resultobj = Py_None; | |
20110 | return resultobj; | |
20111 | fail: | |
20112 | return NULL; | |
20113 | } | |
20114 | ||
20115 | ||
20116 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | wxString *arg1 = 0 ; | |
423f194a | 20119 | bool temp1 = False ; |
d14a1e28 RD |
20120 | PyObject * obj0 = 0 ; |
20121 | char *kwnames[] = { | |
20122 | (char *) "val", NULL | |
20123 | }; | |
20124 | ||
20125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20126 | { | |
20127 | arg1 = wxString_in_helper(obj0); | |
20128 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 20129 | temp1 = True; |
d14a1e28 RD |
20130 | } |
20131 | { | |
20132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20133 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20134 | ||
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
20138 | Py_INCREF(Py_None); resultobj = Py_None; | |
20139 | { | |
20140 | if (temp1) | |
20141 | delete arg1; | |
20142 | } | |
20143 | return resultobj; | |
20144 | fail: | |
20145 | { | |
20146 | if (temp1) | |
20147 | delete arg1; | |
20148 | } | |
20149 | return NULL; | |
20150 | } | |
20151 | ||
20152 | ||
20153 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20154 | PyObject *resultobj; | |
20155 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20156 | PyObject * obj0 = 0 ; | |
20157 | char *kwnames[] = { | |
20158 | (char *) "self", NULL | |
20159 | }; | |
20160 | ||
20161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20164 | { |
20165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20166 | (arg1)->_BootstrapApp(); | |
20167 | ||
20168 | wxPyEndAllowThreads(__tstate); | |
20169 | if (PyErr_Occurred()) SWIG_fail; | |
20170 | } | |
20171 | Py_INCREF(Py_None); resultobj = Py_None; | |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
20178 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20179 | PyObject *resultobj; | |
20180 | int result; | |
20181 | char *kwnames[] = { | |
20182 | NULL | |
20183 | }; | |
20184 | ||
20185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20186 | { | |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20188 | result = (int)wxPyApp::GetComCtl32Version(); | |
20189 | ||
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
2f4c0a16 | 20193 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20194 | return resultobj; |
20195 | fail: | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
20200 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20201 | PyObject *obj; | |
20202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20203 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20204 | Py_INCREF(obj); | |
20205 | return Py_BuildValue((char *)""); | |
20206 | } | |
20207 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20208 | PyObject *resultobj; | |
20209 | char *kwnames[] = { | |
20210 | NULL | |
20211 | }; | |
20212 | ||
20213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20214 | { | |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | wxExit(); | |
20217 | ||
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
20221 | Py_INCREF(Py_None); resultobj = Py_None; | |
20222 | return resultobj; | |
20223 | fail: | |
20224 | return NULL; | |
20225 | } | |
20226 | ||
20227 | ||
20228 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20229 | PyObject *resultobj; | |
20230 | bool result; | |
20231 | char *kwnames[] = { | |
20232 | NULL | |
20233 | }; | |
20234 | ||
20235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20236 | { | |
20237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20238 | result = (bool)wxYield(); | |
20239 | ||
20240 | wxPyEndAllowThreads(__tstate); | |
20241 | if (PyErr_Occurred()) SWIG_fail; | |
20242 | } | |
4e760a36 | 20243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20244 | return resultobj; |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | bool result; | |
20253 | char *kwnames[] = { | |
20254 | NULL | |
20255 | }; | |
20256 | ||
20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | result = (bool)wxYieldIfNeeded(); | |
20261 | ||
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
4e760a36 | 20265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20266 | return resultobj; |
20267 | fail: | |
20268 | return NULL; | |
20269 | } | |
20270 | ||
20271 | ||
20272 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20273 | PyObject *resultobj; | |
20274 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 20275 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20276 | bool result; |
20277 | PyObject * obj0 = 0 ; | |
20278 | PyObject * obj1 = 0 ; | |
20279 | char *kwnames[] = { | |
20280 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20281 | }; | |
20282 | ||
20283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20284 | if (obj0) { | |
2f4c0a16 RD |
20285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20287 | } |
20288 | if (obj1) { | |
2f4c0a16 RD |
20289 | arg2 = (bool) SWIG_AsBool(obj1); |
20290 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20291 | } |
20292 | { | |
20293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20294 | result = (bool)wxSafeYield(arg1,arg2); | |
20295 | ||
20296 | wxPyEndAllowThreads(__tstate); | |
20297 | if (PyErr_Occurred()) SWIG_fail; | |
20298 | } | |
4e760a36 | 20299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20300 | return resultobj; |
20301 | fail: | |
20302 | return NULL; | |
20303 | } | |
20304 | ||
20305 | ||
20306 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20307 | PyObject *resultobj; | |
20308 | char *kwnames[] = { | |
20309 | NULL | |
20310 | }; | |
20311 | ||
20312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20313 | { | |
20314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20315 | wxWakeUpIdle(); | |
20316 | ||
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
20320 | Py_INCREF(Py_None); resultobj = Py_None; | |
20321 | return resultobj; | |
20322 | fail: | |
20323 | return NULL; | |
20324 | } | |
20325 | ||
20326 | ||
20327 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20328 | PyObject *resultobj; | |
20329 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20330 | wxEvent *arg2 = 0 ; | |
20331 | PyObject * obj0 = 0 ; | |
20332 | PyObject * obj1 = 0 ; | |
20333 | char *kwnames[] = { | |
20334 | (char *) "dest",(char *) "event", NULL | |
20335 | }; | |
20336 | ||
20337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20341 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20342 | SWIG_fail; | |
d14a1e28 | 20343 | if (arg2 == NULL) { |
2f4c0a16 RD |
20344 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20345 | SWIG_fail; | |
d14a1e28 RD |
20346 | } |
20347 | { | |
20348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20349 | wxPostEvent(arg1,*arg2); | |
20350 | ||
20351 | wxPyEndAllowThreads(__tstate); | |
20352 | if (PyErr_Occurred()) SWIG_fail; | |
20353 | } | |
20354 | Py_INCREF(Py_None); resultobj = Py_None; | |
20355 | return resultobj; | |
20356 | fail: | |
20357 | return NULL; | |
20358 | } | |
20359 | ||
20360 | ||
20361 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20362 | PyObject *resultobj; | |
20363 | char *kwnames[] = { | |
20364 | NULL | |
20365 | }; | |
20366 | ||
20367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20368 | { | |
20369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20370 | wxApp_CleanUp(); | |
20371 | ||
20372 | wxPyEndAllowThreads(__tstate); | |
20373 | if (PyErr_Occurred()) SWIG_fail; | |
20374 | } | |
20375 | Py_INCREF(Py_None); resultobj = Py_None; | |
20376 | return resultobj; | |
20377 | fail: | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
20382 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20383 | PyObject *resultobj; | |
20384 | wxPyApp *result; | |
20385 | char *kwnames[] = { | |
20386 | NULL | |
20387 | }; | |
20388 | ||
20389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20390 | { | |
20391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20392 | result = (wxPyApp *)wxGetApp(); | |
20393 | ||
20394 | wxPyEndAllowThreads(__tstate); | |
20395 | if (PyErr_Occurred()) SWIG_fail; | |
20396 | } | |
20397 | { | |
20398 | resultobj = wxPyMake_wxObject(result); | |
20399 | } | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
41f1cec7 RD |
20406 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20407 | PyObject *resultobj; | |
20408 | int arg1 = (int) 0 ; | |
20409 | int arg2 = (int) 0 ; | |
20410 | int arg3 = (int) 0 ; | |
20411 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20412 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20413 | PyObject * obj0 = 0 ; |
20414 | PyObject * obj1 = 0 ; | |
20415 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20416 | PyObject * obj3 = 0 ; |
20417 | char *kwnames[] = { | |
20418 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20419 | }; | |
20420 | ||
8edf1c75 RD |
20421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20422 | if (obj0) { | |
2f4c0a16 RD |
20423 | arg1 = (int) SWIG_AsInt(obj0); |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20425 | } |
20426 | if (obj1) { | |
2f4c0a16 RD |
20427 | arg2 = (int) SWIG_AsInt(obj1); |
20428 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20429 | } |
20430 | if (obj2) { | |
2f4c0a16 RD |
20431 | arg3 = (int) SWIG_AsInt(obj2); |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20433 | } |
41f1cec7 | 20434 | if (obj3) { |
2f4c0a16 RD |
20435 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20437 | } |
20438 | { | |
20439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20440 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20441 | ||
20442 | wxPyEndAllowThreads(__tstate); | |
20443 | if (PyErr_Occurred()) SWIG_fail; | |
20444 | } | |
2f4c0a16 | 20445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
41f1cec7 RD |
20446 | return resultobj; |
20447 | fail: | |
20448 | return NULL; | |
20449 | } | |
20450 | ||
20451 | ||
20452 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20453 | PyObject *resultobj; | |
20454 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20455 | PyObject * obj0 = 0 ; | |
20456 | char *kwnames[] = { | |
20457 | (char *) "self", NULL | |
20458 | }; | |
20459 | ||
20460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20463 | { |
20464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20465 | delete arg1; | |
20466 | ||
20467 | wxPyEndAllowThreads(__tstate); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | Py_INCREF(Py_None); resultobj = Py_None; | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj; | |
20479 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20480 | int arg2 ; | |
20481 | int arg3 ; | |
20482 | int arg4 ; | |
20483 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20484 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20485 | PyObject * obj1 = 0 ; |
20486 | PyObject * obj2 = 0 ; | |
20487 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20488 | PyObject * obj4 = 0 ; |
20489 | char *kwnames[] = { | |
20490 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20491 | }; | |
20492 | ||
8edf1c75 | 20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20496 | arg2 = (int) SWIG_AsInt(obj1); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | arg3 = (int) SWIG_AsInt(obj2); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | arg4 = (int) SWIG_AsInt(obj3); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
41f1cec7 | 20502 | if (obj4) { |
2f4c0a16 RD |
20503 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20505 | } |
20506 | { | |
20507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20508 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20509 | ||
20510 | wxPyEndAllowThreads(__tstate); | |
20511 | if (PyErr_Occurred()) SWIG_fail; | |
20512 | } | |
20513 | Py_INCREF(Py_None); resultobj = Py_None; | |
20514 | return resultobj; | |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20521 | PyObject *resultobj; | |
20522 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20523 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20524 | PyObject * obj0 = 0 ; | |
20525 | PyObject * obj1 = 0 ; | |
20526 | char *kwnames[] = { | |
20527 | (char *) "self",(char *) "item", NULL | |
20528 | }; | |
20529 | ||
20530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20533 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20535 | { |
20536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20537 | (arg1)->SetMenuItem(arg2); | |
20538 | ||
20539 | wxPyEndAllowThreads(__tstate); | |
20540 | if (PyErr_Occurred()) SWIG_fail; | |
20541 | } | |
20542 | Py_INCREF(Py_None); resultobj = Py_None; | |
20543 | return resultobj; | |
20544 | fail: | |
20545 | return NULL; | |
20546 | } | |
20547 | ||
20548 | ||
20549 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20550 | PyObject *resultobj; | |
20551 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20552 | wxMenuItem *result; | |
20553 | PyObject * obj0 = 0 ; | |
20554 | char *kwnames[] = { | |
20555 | (char *) "self", NULL | |
20556 | }; | |
20557 | ||
20558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20561 | { |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | { | |
20569 | resultobj = wxPyMake_wxObject(result); | |
20570 | } | |
20571 | return resultobj; | |
20572 | fail: | |
20573 | return NULL; | |
20574 | } | |
20575 | ||
20576 | ||
20577 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20578 | PyObject *resultobj; | |
20579 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20580 | int result; | |
20581 | PyObject * obj0 = 0 ; | |
20582 | char *kwnames[] = { | |
20583 | (char *) "self", NULL | |
20584 | }; | |
20585 | ||
20586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20589 | { |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | result = (int)(arg1)->GetFlags(); | |
20592 | ||
20593 | wxPyEndAllowThreads(__tstate); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | } | |
2f4c0a16 | 20596 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20597 | return resultobj; |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
20603 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20604 | PyObject *resultobj; | |
20605 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20606 | int result; | |
20607 | PyObject * obj0 = 0 ; | |
20608 | char *kwnames[] = { | |
20609 | (char *) "self", NULL | |
20610 | }; | |
20611 | ||
20612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20615 | { |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | result = (int)(arg1)->GetKeyCode(); | |
20618 | ||
20619 | wxPyEndAllowThreads(__tstate); | |
20620 | if (PyErr_Occurred()) SWIG_fail; | |
20621 | } | |
2f4c0a16 | 20622 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20623 | return resultobj; |
20624 | fail: | |
20625 | return NULL; | |
20626 | } | |
20627 | ||
20628 | ||
20629 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20630 | PyObject *resultobj; | |
20631 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20632 | int result; | |
20633 | PyObject * obj0 = 0 ; | |
20634 | char *kwnames[] = { | |
20635 | (char *) "self", NULL | |
20636 | }; | |
20637 | ||
20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20641 | { |
20642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20643 | result = (int)(arg1)->GetCommand(); | |
20644 | ||
20645 | wxPyEndAllowThreads(__tstate); | |
20646 | if (PyErr_Occurred()) SWIG_fail; | |
20647 | } | |
2f4c0a16 | 20648 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20649 | return resultobj; |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20656 | PyObject *obj; | |
20657 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20658 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20659 | Py_INCREF(obj); | |
20660 | return Py_BuildValue((char *)""); | |
20661 | } | |
20662 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20663 | PyObject *resultobj; | |
20664 | int arg1 ; | |
20665 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20666 | wxAcceleratorTable *result; | |
20667 | PyObject * obj0 = 0 ; | |
20668 | char *kwnames[] = { | |
20669 | (char *) "n", NULL | |
20670 | }; | |
20671 | ||
20672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20673 | { | |
20674 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20675 | if (arg2) arg1 = PyList_Size(obj0); | |
20676 | else arg1 = 0; | |
20677 | } | |
20678 | { | |
20679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20680 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20681 | ||
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
2f4c0a16 | 20685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
41f1cec7 RD |
20686 | { |
20687 | delete [] arg2; | |
20688 | } | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | { | |
20692 | delete [] arg2; | |
20693 | } | |
20694 | return NULL; | |
20695 | } | |
20696 | ||
20697 | ||
20698 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20699 | PyObject *resultobj; | |
20700 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "self", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20709 | { |
20710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20711 | delete arg1; | |
20712 | ||
20713 | wxPyEndAllowThreads(__tstate); | |
20714 | if (PyErr_Occurred()) SWIG_fail; | |
20715 | } | |
20716 | Py_INCREF(Py_None); resultobj = Py_None; | |
20717 | return resultobj; | |
20718 | fail: | |
20719 | return NULL; | |
20720 | } | |
20721 | ||
20722 | ||
20723 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20724 | PyObject *resultobj; | |
20725 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20726 | bool result; | |
20727 | PyObject * obj0 = 0 ; | |
20728 | char *kwnames[] = { | |
20729 | (char *) "self", NULL | |
20730 | }; | |
20731 | ||
20732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20735 | { |
20736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20737 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
20738 | ||
20739 | wxPyEndAllowThreads(__tstate); | |
20740 | if (PyErr_Occurred()) SWIG_fail; | |
20741 | } | |
4e760a36 | 20742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
41f1cec7 RD |
20743 | return resultobj; |
20744 | fail: | |
20745 | return NULL; | |
20746 | } | |
20747 | ||
20748 | ||
20749 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
20750 | PyObject *obj; | |
20751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20752 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
20753 | Py_INCREF(obj); | |
20754 | return Py_BuildValue((char *)""); | |
20755 | } | |
2f4c0a16 | 20756 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { |
41f1cec7 RD |
20757 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
20758 | return 1; | |
20759 | } | |
20760 | ||
20761 | ||
20762 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
20763 | PyObject *pyobj; | |
20764 | ||
2f4c0a16 | 20765 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
41f1cec7 RD |
20766 | return pyobj; |
20767 | } | |
20768 | ||
20769 | ||
20770 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20771 | PyObject *resultobj; | |
20772 | wxString *arg1 = 0 ; | |
20773 | wxAcceleratorEntry *result; | |
20774 | bool temp1 = False ; | |
20775 | PyObject * obj0 = 0 ; | |
20776 | char *kwnames[] = { | |
20777 | (char *) "label", NULL | |
20778 | }; | |
20779 | ||
20780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
20781 | { | |
20782 | arg1 = wxString_in_helper(obj0); | |
20783 | if (arg1 == NULL) SWIG_fail; | |
20784 | temp1 = True; | |
20785 | } | |
20786 | { | |
20787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20788 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
20789 | ||
20790 | wxPyEndAllowThreads(__tstate); | |
20791 | if (PyErr_Occurred()) SWIG_fail; | |
20792 | } | |
2f4c0a16 | 20793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
41f1cec7 RD |
20794 | { |
20795 | if (temp1) | |
20796 | delete arg1; | |
20797 | } | |
20798 | return resultobj; | |
20799 | fail: | |
20800 | { | |
20801 | if (temp1) | |
20802 | delete arg1; | |
20803 | } | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
2f4c0a16 | 20808 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
423f194a RD |
20809 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
20810 | return 1; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject *_wrap_PanelNameStr_get() { | |
20815 | PyObject *pyobj; | |
20816 | ||
20817 | { | |
20818 | #if wxUSE_UNICODE | |
20819 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20820 | #else | |
20821 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
20822 | #endif | |
20823 | } | |
20824 | return pyobj; | |
20825 | } | |
20826 | ||
20827 | ||
d14a1e28 RD |
20828 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
20829 | PyObject *resultobj; | |
20830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20831 | int arg2 ; |
d14a1e28 RD |
20832 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20833 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20834 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20835 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20836 | long arg5 = (long) 0 ; | |
20837 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
20838 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20839 | wxWindow *result; | |
20840 | wxPoint temp3 ; | |
20841 | wxSize temp4 ; | |
423f194a | 20842 | bool temp6 = False ; |
d14a1e28 | 20843 | PyObject * obj0 = 0 ; |
8edf1c75 | 20844 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20845 | PyObject * obj2 = 0 ; |
20846 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20847 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20848 | PyObject * obj5 = 0 ; |
20849 | char *kwnames[] = { | |
20850 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20851 | }; | |
20852 | ||
8edf1c75 | 20853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
20854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20856 | arg2 = (int const) SWIG_AsInt(obj1); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20858 | if (obj2) { |
20859 | { | |
20860 | arg3 = &temp3; | |
20861 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20862 | } | |
20863 | } | |
20864 | if (obj3) { | |
20865 | { | |
20866 | arg4 = &temp4; | |
20867 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20868 | } | |
20869 | } | |
8edf1c75 | 20870 | if (obj4) { |
2f4c0a16 RD |
20871 | arg5 = (long) SWIG_AsLong(obj4); |
20872 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20873 | } |
d14a1e28 RD |
20874 | if (obj5) { |
20875 | { | |
20876 | arg6 = wxString_in_helper(obj5); | |
20877 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 20878 | temp6 = True; |
d14a1e28 RD |
20879 | } |
20880 | } | |
20881 | { | |
20882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20883 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20884 | ||
20885 | wxPyEndAllowThreads(__tstate); | |
20886 | if (PyErr_Occurred()) SWIG_fail; | |
20887 | } | |
20888 | { | |
20889 | resultobj = wxPyMake_wxObject(result); | |
20890 | } | |
20891 | { | |
20892 | if (temp6) | |
20893 | delete arg6; | |
20894 | } | |
20895 | return resultobj; | |
20896 | fail: | |
20897 | { | |
20898 | if (temp6) | |
20899 | delete arg6; | |
20900 | } | |
20901 | return NULL; | |
20902 | } | |
20903 | ||
20904 | ||
20905 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20906 | PyObject *resultobj; | |
20907 | wxWindow *result; | |
20908 | char *kwnames[] = { | |
20909 | NULL | |
20910 | }; | |
20911 | ||
20912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
20913 | { | |
20914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20915 | result = (wxWindow *)new wxWindow(); | |
20916 | ||
20917 | wxPyEndAllowThreads(__tstate); | |
20918 | if (PyErr_Occurred()) SWIG_fail; | |
20919 | } | |
20920 | { | |
20921 | resultobj = wxPyMake_wxObject(result); | |
20922 | } | |
20923 | return resultobj; | |
20924 | fail: | |
20925 | return NULL; | |
20926 | } | |
20927 | ||
20928 | ||
20929 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20930 | PyObject *resultobj; | |
20931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20932 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20933 | int arg3 ; |
d14a1e28 RD |
20934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20938 | long arg6 = (long) 0 ; | |
20939 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20940 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20941 | bool result; | |
20942 | wxPoint temp4 ; | |
20943 | wxSize temp5 ; | |
423f194a | 20944 | bool temp7 = False ; |
d14a1e28 RD |
20945 | PyObject * obj0 = 0 ; |
20946 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20947 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20948 | PyObject * obj3 = 0 ; |
20949 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20950 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20951 | PyObject * obj6 = 0 ; |
20952 | char *kwnames[] = { | |
20953 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20954 | }; | |
20955 | ||
8edf1c75 | 20956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20961 | arg3 = (int const) SWIG_AsInt(obj2); | |
20962 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20963 | if (obj3) { |
20964 | { | |
20965 | arg4 = &temp4; | |
20966 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20967 | } | |
20968 | } | |
20969 | if (obj4) { | |
20970 | { | |
20971 | arg5 = &temp5; | |
20972 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20973 | } | |
20974 | } | |
8edf1c75 | 20975 | if (obj5) { |
2f4c0a16 RD |
20976 | arg6 = (long) SWIG_AsLong(obj5); |
20977 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20978 | } |
d14a1e28 RD |
20979 | if (obj6) { |
20980 | { | |
20981 | arg7 = wxString_in_helper(obj6); | |
20982 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20983 | temp7 = True; |
d14a1e28 RD |
20984 | } |
20985 | } | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
4e760a36 | 20993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20994 | { |
20995 | if (temp7) | |
20996 | delete arg7; | |
20997 | } | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | { | |
21001 | if (temp7) | |
21002 | delete arg7; | |
21003 | } | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21009 | PyObject *resultobj; | |
21010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21011 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21012 | bool result; |
21013 | PyObject * obj0 = 0 ; | |
21014 | PyObject * obj1 = 0 ; | |
21015 | char *kwnames[] = { | |
21016 | (char *) "self",(char *) "force", NULL | |
21017 | }; | |
21018 | ||
21019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21022 | if (obj1) { |
2f4c0a16 RD |
21023 | arg2 = (bool) SWIG_AsBool(obj1); |
21024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21025 | } |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (bool)(arg1)->Close(arg2); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
4e760a36 | 21033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21034 | return resultobj; |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
21040 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21041 | PyObject *resultobj; | |
21042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21043 | bool result; | |
21044 | PyObject * obj0 = 0 ; | |
21045 | char *kwnames[] = { | |
21046 | (char *) "self", NULL | |
21047 | }; | |
21048 | ||
21049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21052 | { |
21053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21054 | result = (bool)(arg1)->Destroy(); | |
21055 | ||
21056 | wxPyEndAllowThreads(__tstate); | |
21057 | if (PyErr_Occurred()) SWIG_fail; | |
21058 | } | |
4e760a36 | 21059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21060 | return resultobj; |
21061 | fail: | |
21062 | return NULL; | |
21063 | } | |
21064 | ||
21065 | ||
21066 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21067 | PyObject *resultobj; | |
21068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21069 | bool result; | |
21070 | PyObject * obj0 = 0 ; | |
21071 | char *kwnames[] = { | |
21072 | (char *) "self", NULL | |
21073 | }; | |
21074 | ||
21075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21078 | { |
21079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21080 | result = (bool)(arg1)->DestroyChildren(); | |
21081 | ||
21082 | wxPyEndAllowThreads(__tstate); | |
21083 | if (PyErr_Occurred()) SWIG_fail; | |
21084 | } | |
4e760a36 | 21085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21086 | return resultobj; |
21087 | fail: | |
21088 | return NULL; | |
21089 | } | |
21090 | ||
21091 | ||
21092 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21093 | PyObject *resultobj; | |
21094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21095 | bool result; | |
21096 | PyObject * obj0 = 0 ; | |
21097 | char *kwnames[] = { | |
21098 | (char *) "self", NULL | |
21099 | }; | |
21100 | ||
21101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21104 | { |
21105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21106 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21107 | ||
21108 | wxPyEndAllowThreads(__tstate); | |
21109 | if (PyErr_Occurred()) SWIG_fail; | |
21110 | } | |
4e760a36 | 21111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21112 | return resultobj; |
21113 | fail: | |
21114 | return NULL; | |
21115 | } | |
21116 | ||
21117 | ||
21118 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21119 | PyObject *resultobj; | |
21120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21121 | wxString *arg2 = 0 ; | |
423f194a | 21122 | bool temp2 = False ; |
d14a1e28 RD |
21123 | PyObject * obj0 = 0 ; |
21124 | PyObject * obj1 = 0 ; | |
21125 | char *kwnames[] = { | |
21126 | (char *) "self",(char *) "title", NULL | |
21127 | }; | |
21128 | ||
21129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21132 | { |
21133 | arg2 = wxString_in_helper(obj1); | |
21134 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21135 | temp2 = True; |
d14a1e28 RD |
21136 | } |
21137 | { | |
21138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21139 | (arg1)->SetTitle((wxString const &)*arg2); | |
21140 | ||
21141 | wxPyEndAllowThreads(__tstate); | |
21142 | if (PyErr_Occurred()) SWIG_fail; | |
21143 | } | |
21144 | Py_INCREF(Py_None); resultobj = Py_None; | |
21145 | { | |
21146 | if (temp2) | |
21147 | delete arg2; | |
21148 | } | |
21149 | return resultobj; | |
21150 | fail: | |
21151 | { | |
21152 | if (temp2) | |
21153 | delete arg2; | |
21154 | } | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
21159 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21160 | PyObject *resultobj; | |
21161 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21162 | wxString result; | |
21163 | PyObject * obj0 = 0 ; | |
21164 | char *kwnames[] = { | |
21165 | (char *) "self", NULL | |
21166 | }; | |
21167 | ||
21168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21171 | { |
21172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21173 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21174 | ||
21175 | wxPyEndAllowThreads(__tstate); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
21177 | } | |
21178 | { | |
21179 | #if wxUSE_UNICODE | |
21180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21181 | #else | |
21182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21183 | #endif | |
21184 | } | |
21185 | return resultobj; | |
21186 | fail: | |
21187 | return NULL; | |
21188 | } | |
21189 | ||
21190 | ||
21191 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21192 | PyObject *resultobj; | |
21193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21194 | wxString *arg2 = 0 ; | |
423f194a | 21195 | bool temp2 = False ; |
d14a1e28 RD |
21196 | PyObject * obj0 = 0 ; |
21197 | PyObject * obj1 = 0 ; | |
21198 | char *kwnames[] = { | |
21199 | (char *) "self",(char *) "label", NULL | |
21200 | }; | |
21201 | ||
21202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21205 | { |
21206 | arg2 = wxString_in_helper(obj1); | |
21207 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21208 | temp2 = True; |
d14a1e28 RD |
21209 | } |
21210 | { | |
21211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21212 | (arg1)->SetLabel((wxString const &)*arg2); | |
21213 | ||
21214 | wxPyEndAllowThreads(__tstate); | |
21215 | if (PyErr_Occurred()) SWIG_fail; | |
21216 | } | |
21217 | Py_INCREF(Py_None); resultobj = Py_None; | |
21218 | { | |
21219 | if (temp2) | |
21220 | delete arg2; | |
21221 | } | |
21222 | return resultobj; | |
21223 | fail: | |
21224 | { | |
21225 | if (temp2) | |
21226 | delete arg2; | |
21227 | } | |
21228 | return NULL; | |
21229 | } | |
21230 | ||
21231 | ||
21232 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21233 | PyObject *resultobj; | |
21234 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21235 | wxString result; | |
21236 | PyObject * obj0 = 0 ; | |
21237 | char *kwnames[] = { | |
21238 | (char *) "self", NULL | |
21239 | }; | |
21240 | ||
21241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21244 | { |
21245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21246 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21247 | ||
21248 | wxPyEndAllowThreads(__tstate); | |
21249 | if (PyErr_Occurred()) SWIG_fail; | |
21250 | } | |
21251 | { | |
21252 | #if wxUSE_UNICODE | |
21253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21254 | #else | |
21255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21256 | #endif | |
21257 | } | |
21258 | return resultobj; | |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
21264 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21265 | PyObject *resultobj; | |
21266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21267 | wxString *arg2 = 0 ; | |
423f194a | 21268 | bool temp2 = False ; |
d14a1e28 RD |
21269 | PyObject * obj0 = 0 ; |
21270 | PyObject * obj1 = 0 ; | |
21271 | char *kwnames[] = { | |
21272 | (char *) "self",(char *) "name", NULL | |
21273 | }; | |
21274 | ||
21275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21278 | { |
21279 | arg2 = wxString_in_helper(obj1); | |
21280 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21281 | temp2 = True; |
d14a1e28 RD |
21282 | } |
21283 | { | |
21284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21285 | (arg1)->SetName((wxString const &)*arg2); | |
21286 | ||
21287 | wxPyEndAllowThreads(__tstate); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | } | |
21290 | Py_INCREF(Py_None); resultobj = Py_None; | |
21291 | { | |
21292 | if (temp2) | |
21293 | delete arg2; | |
21294 | } | |
21295 | return resultobj; | |
21296 | fail: | |
21297 | { | |
21298 | if (temp2) | |
21299 | delete arg2; | |
21300 | } | |
21301 | return NULL; | |
21302 | } | |
21303 | ||
21304 | ||
21305 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21306 | PyObject *resultobj; | |
21307 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21308 | wxString result; | |
21309 | PyObject * obj0 = 0 ; | |
21310 | char *kwnames[] = { | |
21311 | (char *) "self", NULL | |
21312 | }; | |
21313 | ||
21314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21317 | { |
21318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21319 | result = ((wxWindow const *)arg1)->GetName(); | |
21320 | ||
21321 | wxPyEndAllowThreads(__tstate); | |
21322 | if (PyErr_Occurred()) SWIG_fail; | |
21323 | } | |
21324 | { | |
21325 | #if wxUSE_UNICODE | |
21326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21327 | #else | |
21328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21329 | #endif | |
21330 | } | |
21331 | return resultobj; | |
21332 | fail: | |
21333 | return NULL; | |
21334 | } | |
21335 | ||
21336 | ||
21337 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21338 | PyObject *resultobj; | |
21339 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21340 | int arg2 ; |
d14a1e28 | 21341 | PyObject * obj0 = 0 ; |
8edf1c75 | 21342 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21343 | char *kwnames[] = { |
21344 | (char *) "self",(char *) "winid", NULL | |
21345 | }; | |
21346 | ||
8edf1c75 | 21347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21350 | arg2 = (int) SWIG_AsInt(obj1); | |
21351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21352 | { |
21353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21354 | (arg1)->SetId(arg2); | |
21355 | ||
21356 | wxPyEndAllowThreads(__tstate); | |
21357 | if (PyErr_Occurred()) SWIG_fail; | |
21358 | } | |
21359 | Py_INCREF(Py_None); resultobj = Py_None; | |
21360 | return resultobj; | |
21361 | fail: | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21367 | PyObject *resultobj; | |
21368 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21369 | int result; |
d14a1e28 RD |
21370 | PyObject * obj0 = 0 ; |
21371 | char *kwnames[] = { | |
21372 | (char *) "self", NULL | |
21373 | }; | |
21374 | ||
21375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21378 | { |
21379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21380 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21381 | |
21382 | wxPyEndAllowThreads(__tstate); | |
21383 | if (PyErr_Occurred()) SWIG_fail; | |
21384 | } | |
2f4c0a16 | 21385 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21386 | return resultobj; |
21387 | fail: | |
21388 | return NULL; | |
21389 | } | |
21390 | ||
21391 | ||
21392 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21393 | PyObject *resultobj; | |
21394 | int result; | |
21395 | char *kwnames[] = { | |
21396 | NULL | |
21397 | }; | |
21398 | ||
21399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21400 | { | |
21401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21402 | result = (int)wxWindow::NewControlId(); | |
21403 | ||
21404 | wxPyEndAllowThreads(__tstate); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
21406 | } | |
2f4c0a16 | 21407 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21408 | return resultobj; |
21409 | fail: | |
21410 | return NULL; | |
21411 | } | |
21412 | ||
21413 | ||
21414 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21415 | PyObject *resultobj; | |
21416 | int arg1 ; | |
21417 | int result; | |
8edf1c75 | 21418 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21419 | char *kwnames[] = { |
21420 | (char *) "winid", NULL | |
21421 | }; | |
21422 | ||
8edf1c75 | 21423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21424 | arg1 = (int) SWIG_AsInt(obj0); |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21426 | { |
21427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21428 | result = (int)wxWindow::NextControlId(arg1); | |
21429 | ||
21430 | wxPyEndAllowThreads(__tstate); | |
21431 | if (PyErr_Occurred()) SWIG_fail; | |
21432 | } | |
2f4c0a16 | 21433 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21434 | return resultobj; |
21435 | fail: | |
21436 | return NULL; | |
21437 | } | |
21438 | ||
21439 | ||
21440 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21441 | PyObject *resultobj; | |
21442 | int arg1 ; | |
21443 | int result; | |
8edf1c75 | 21444 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21445 | char *kwnames[] = { |
21446 | (char *) "winid", NULL | |
21447 | }; | |
21448 | ||
8edf1c75 | 21449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21450 | arg1 = (int) SWIG_AsInt(obj0); |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21452 | { |
21453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21454 | result = (int)wxWindow::PrevControlId(arg1); | |
21455 | ||
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
2f4c0a16 | 21459 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21460 | return resultobj; |
21461 | fail: | |
21462 | return NULL; | |
21463 | } | |
21464 | ||
21465 | ||
21466 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21467 | PyObject *resultobj; | |
21468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21469 | wxSize *arg2 = 0 ; | |
21470 | wxSize temp2 ; | |
21471 | PyObject * obj0 = 0 ; | |
21472 | PyObject * obj1 = 0 ; | |
21473 | char *kwnames[] = { | |
21474 | (char *) "self",(char *) "size", NULL | |
21475 | }; | |
21476 | ||
21477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21480 | { |
21481 | arg2 = &temp2; | |
21482 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21483 | } | |
21484 | { | |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | (arg1)->SetSize((wxSize const &)*arg2); | |
21487 | ||
21488 | wxPyEndAllowThreads(__tstate); | |
21489 | if (PyErr_Occurred()) SWIG_fail; | |
21490 | } | |
21491 | Py_INCREF(Py_None); resultobj = Py_None; | |
21492 | return resultobj; | |
21493 | fail: | |
21494 | return NULL; | |
21495 | } | |
21496 | ||
21497 | ||
21498 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21499 | PyObject *resultobj; | |
21500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21501 | int arg2 ; | |
21502 | int arg3 ; | |
21503 | int arg4 ; | |
21504 | int arg5 ; | |
21505 | int arg6 = (int) wxSIZE_AUTO ; | |
21506 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21507 | PyObject * obj1 = 0 ; |
21508 | PyObject * obj2 = 0 ; | |
21509 | PyObject * obj3 = 0 ; | |
21510 | PyObject * obj4 = 0 ; | |
21511 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21512 | char *kwnames[] = { |
21513 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21514 | }; | |
21515 | ||
8edf1c75 | 21516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21519 | arg2 = (int) SWIG_AsInt(obj1); | |
21520 | if (PyErr_Occurred()) SWIG_fail; | |
21521 | arg3 = (int) SWIG_AsInt(obj2); | |
21522 | if (PyErr_Occurred()) SWIG_fail; | |
21523 | arg4 = (int) SWIG_AsInt(obj3); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | arg5 = (int) SWIG_AsInt(obj4); | |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21527 | if (obj5) { |
2f4c0a16 RD |
21528 | arg6 = (int) SWIG_AsInt(obj5); |
21529 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21530 | } |
d14a1e28 RD |
21531 | { |
21532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21533 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21534 | ||
21535 | wxPyEndAllowThreads(__tstate); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | } | |
21538 | Py_INCREF(Py_None); resultobj = Py_None; | |
21539 | return resultobj; | |
21540 | fail: | |
21541 | return NULL; | |
21542 | } | |
21543 | ||
21544 | ||
21545 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21546 | PyObject *resultobj; | |
21547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21548 | wxRect *arg2 = 0 ; | |
21549 | int arg3 = (int) wxSIZE_AUTO ; | |
21550 | wxRect temp2 ; | |
21551 | PyObject * obj0 = 0 ; | |
21552 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21553 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21554 | char *kwnames[] = { |
21555 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21556 | }; | |
21557 | ||
8edf1c75 | 21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21561 | { |
21562 | arg2 = &temp2; | |
21563 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21564 | } | |
8edf1c75 | 21565 | if (obj2) { |
2f4c0a16 RD |
21566 | arg3 = (int) SWIG_AsInt(obj2); |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21568 | } |
d14a1e28 RD |
21569 | { |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21572 | ||
21573 | wxPyEndAllowThreads(__tstate); | |
21574 | if (PyErr_Occurred()) SWIG_fail; | |
21575 | } | |
21576 | Py_INCREF(Py_None); resultobj = Py_None; | |
21577 | return resultobj; | |
21578 | fail: | |
21579 | return NULL; | |
21580 | } | |
21581 | ||
21582 | ||
21583 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21584 | PyObject *resultobj; | |
21585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21586 | int arg2 ; | |
21587 | int arg3 ; | |
21588 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21589 | PyObject * obj1 = 0 ; |
21590 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21591 | char *kwnames[] = { |
21592 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21593 | }; | |
21594 | ||
8edf1c75 | 21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21598 | arg2 = (int) SWIG_AsInt(obj1); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | arg3 = (int) SWIG_AsInt(obj2); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21602 | { |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21604 | (arg1)->SetSize(arg2,arg3); | |
21605 | ||
21606 | wxPyEndAllowThreads(__tstate); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | Py_INCREF(Py_None); resultobj = Py_None; | |
21610 | return resultobj; | |
21611 | fail: | |
21612 | return NULL; | |
21613 | } | |
21614 | ||
21615 | ||
21616 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21617 | PyObject *resultobj; | |
21618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21619 | wxPoint *arg2 = 0 ; | |
21620 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21621 | wxPoint temp2 ; | |
21622 | PyObject * obj0 = 0 ; | |
21623 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21624 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21625 | char *kwnames[] = { |
21626 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21627 | }; | |
21628 | ||
8edf1c75 | 21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21632 | { |
21633 | arg2 = &temp2; | |
21634 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21635 | } | |
8edf1c75 | 21636 | if (obj2) { |
2f4c0a16 RD |
21637 | arg3 = (int) SWIG_AsInt(obj2); |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21639 | } |
d14a1e28 RD |
21640 | { |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | Py_INCREF(Py_None); resultobj = Py_None; | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | return NULL; | |
21651 | } | |
21652 | ||
21653 | ||
21654 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21655 | PyObject *resultobj; | |
21656 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21657 | int arg2 ; | |
21658 | int arg3 ; | |
21659 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21660 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21661 | PyObject * obj1 = 0 ; |
21662 | PyObject * obj2 = 0 ; | |
21663 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21664 | char *kwnames[] = { |
21665 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21666 | }; | |
21667 | ||
8edf1c75 | 21668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21671 | arg2 = (int) SWIG_AsInt(obj1); | |
21672 | if (PyErr_Occurred()) SWIG_fail; | |
21673 | arg3 = (int) SWIG_AsInt(obj2); | |
21674 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21675 | if (obj3) { |
2f4c0a16 RD |
21676 | arg4 = (int) SWIG_AsInt(obj3); |
21677 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21678 | } |
d14a1e28 RD |
21679 | { |
21680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21681 | (arg1)->Move(arg2,arg3,arg4); | |
21682 | ||
21683 | wxPyEndAllowThreads(__tstate); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
21685 | } | |
21686 | Py_INCREF(Py_None); resultobj = Py_None; | |
21687 | return resultobj; | |
21688 | fail: | |
21689 | return NULL; | |
21690 | } | |
21691 | ||
21692 | ||
21693 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21694 | PyObject *resultobj; | |
21695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21696 | PyObject * obj0 = 0 ; | |
21697 | char *kwnames[] = { | |
21698 | (char *) "self", NULL | |
21699 | }; | |
21700 | ||
21701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21704 | { |
21705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21706 | (arg1)->Raise(); | |
21707 | ||
21708 | wxPyEndAllowThreads(__tstate); | |
21709 | if (PyErr_Occurred()) SWIG_fail; | |
21710 | } | |
21711 | Py_INCREF(Py_None); resultobj = Py_None; | |
21712 | return resultobj; | |
21713 | fail: | |
21714 | return NULL; | |
21715 | } | |
21716 | ||
21717 | ||
21718 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21719 | PyObject *resultobj; | |
21720 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21721 | PyObject * obj0 = 0 ; | |
21722 | char *kwnames[] = { | |
21723 | (char *) "self", NULL | |
21724 | }; | |
21725 | ||
21726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21729 | { |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | (arg1)->Lower(); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | Py_INCREF(Py_None); resultobj = Py_None; | |
21737 | return resultobj; | |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
21743 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21744 | PyObject *resultobj; | |
21745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21746 | wxSize *arg2 = 0 ; | |
21747 | wxSize temp2 ; | |
21748 | PyObject * obj0 = 0 ; | |
21749 | PyObject * obj1 = 0 ; | |
21750 | char *kwnames[] = { | |
21751 | (char *) "self",(char *) "size", NULL | |
21752 | }; | |
21753 | ||
21754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21757 | { |
21758 | arg2 = &temp2; | |
21759 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21760 | } | |
21761 | { | |
21762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21763 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
21764 | ||
21765 | wxPyEndAllowThreads(__tstate); | |
21766 | if (PyErr_Occurred()) SWIG_fail; | |
21767 | } | |
21768 | Py_INCREF(Py_None); resultobj = Py_None; | |
21769 | return resultobj; | |
21770 | fail: | |
21771 | return NULL; | |
21772 | } | |
21773 | ||
21774 | ||
21775 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21776 | PyObject *resultobj; | |
21777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21778 | int arg2 ; | |
21779 | int arg3 ; | |
21780 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21781 | PyObject * obj1 = 0 ; |
21782 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21783 | char *kwnames[] = { |
21784 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21785 | }; | |
21786 | ||
8edf1c75 | 21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21790 | arg2 = (int) SWIG_AsInt(obj1); | |
21791 | if (PyErr_Occurred()) SWIG_fail; | |
21792 | arg3 = (int) SWIG_AsInt(obj2); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21794 | { |
21795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21796 | (arg1)->SetClientSize(arg2,arg3); | |
21797 | ||
21798 | wxPyEndAllowThreads(__tstate); | |
21799 | if (PyErr_Occurred()) SWIG_fail; | |
21800 | } | |
21801 | Py_INCREF(Py_None); resultobj = Py_None; | |
21802 | return resultobj; | |
21803 | fail: | |
21804 | return NULL; | |
21805 | } | |
21806 | ||
21807 | ||
21808 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21809 | PyObject *resultobj; | |
21810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21811 | wxRect *arg2 = 0 ; | |
21812 | wxRect temp2 ; | |
21813 | PyObject * obj0 = 0 ; | |
21814 | PyObject * obj1 = 0 ; | |
21815 | char *kwnames[] = { | |
21816 | (char *) "self",(char *) "rect", NULL | |
21817 | }; | |
21818 | ||
21819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21822 | { |
21823 | arg2 = &temp2; | |
21824 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21825 | } | |
21826 | { | |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | Py_INCREF(Py_None); resultobj = Py_None; | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21843 | wxPoint result; | |
21844 | PyObject * obj0 = 0 ; | |
21845 | char *kwnames[] = { | |
21846 | (char *) "self", NULL | |
21847 | }; | |
21848 | ||
21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21852 | { |
21853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21854 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
21855 | |
21856 | wxPyEndAllowThreads(__tstate); | |
21857 | if (PyErr_Occurred()) SWIG_fail; | |
21858 | } | |
21859 | { | |
21860 | wxPoint * resultptr; | |
21861 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 21862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21863 | } |
21864 | return resultobj; | |
21865 | fail: | |
21866 | return NULL; | |
21867 | } | |
21868 | ||
21869 | ||
21870 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21871 | PyObject *resultobj; | |
21872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21873 | int *arg2 = (int *) 0 ; | |
21874 | int *arg3 = (int *) 0 ; | |
21875 | int temp2 ; | |
21876 | int temp3 ; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | char *kwnames[] = { | |
21879 | (char *) "self", NULL | |
21880 | }; | |
21881 | ||
21882 | arg2 = &temp2; | |
21883 | arg3 = &temp3; | |
21884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21887 | { |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21889 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
21890 | |
21891 | wxPyEndAllowThreads(__tstate); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | } | |
21894 | Py_INCREF(Py_None); resultobj = Py_None; | |
21895 | { | |
21896 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21897 | resultobj = t_output_helper(resultobj,o); | |
21898 | } | |
21899 | { | |
21900 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21901 | resultobj = t_output_helper(resultobj,o); | |
21902 | } | |
21903 | return resultobj; | |
21904 | fail: | |
21905 | return NULL; | |
21906 | } | |
21907 | ||
21908 | ||
21909 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21910 | PyObject *resultobj; | |
21911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21912 | wxSize result; | |
21913 | PyObject * obj0 = 0 ; | |
21914 | char *kwnames[] = { | |
21915 | (char *) "self", NULL | |
21916 | }; | |
21917 | ||
21918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21921 | { |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | result = ((wxWindow const *)arg1)->GetSize(); | |
21924 | ||
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
21928 | { | |
21929 | wxSize * resultptr; | |
21930 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 21931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21932 | } |
21933 | return resultobj; | |
21934 | fail: | |
21935 | return NULL; | |
21936 | } | |
21937 | ||
21938 | ||
21939 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21940 | PyObject *resultobj; | |
21941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21942 | int *arg2 = (int *) 0 ; | |
21943 | int *arg3 = (int *) 0 ; | |
21944 | int temp2 ; | |
21945 | int temp3 ; | |
21946 | PyObject * obj0 = 0 ; | |
21947 | char *kwnames[] = { | |
21948 | (char *) "self", NULL | |
21949 | }; | |
21950 | ||
21951 | arg2 = &temp2; | |
21952 | arg3 = &temp3; | |
21953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21956 | { |
21957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21958 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
21959 | ||
21960 | wxPyEndAllowThreads(__tstate); | |
21961 | if (PyErr_Occurred()) SWIG_fail; | |
21962 | } | |
21963 | Py_INCREF(Py_None); resultobj = Py_None; | |
21964 | { | |
21965 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
21966 | resultobj = t_output_helper(resultobj,o); | |
21967 | } | |
21968 | { | |
21969 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
21970 | resultobj = t_output_helper(resultobj,o); | |
21971 | } | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
21978 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21979 | PyObject *resultobj; | |
21980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21981 | wxRect result; | |
21982 | PyObject * obj0 = 0 ; | |
21983 | char *kwnames[] = { | |
21984 | (char *) "self", NULL | |
21985 | }; | |
21986 | ||
21987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21990 | { |
21991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21992 | result = ((wxWindow const *)arg1)->GetRect(); | |
21993 | ||
21994 | wxPyEndAllowThreads(__tstate); | |
21995 | if (PyErr_Occurred()) SWIG_fail; | |
21996 | } | |
21997 | { | |
21998 | wxRect * resultptr; | |
21999 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22001 | } |
22002 | return resultobj; | |
22003 | fail: | |
22004 | return NULL; | |
22005 | } | |
22006 | ||
22007 | ||
22008 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22009 | PyObject *resultobj; | |
22010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22011 | wxSize result; | |
22012 | PyObject * obj0 = 0 ; | |
22013 | char *kwnames[] = { | |
22014 | (char *) "self", NULL | |
22015 | }; | |
22016 | ||
22017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22020 | { |
22021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22022 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22023 | ||
22024 | wxPyEndAllowThreads(__tstate); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
22027 | { | |
22028 | wxSize * resultptr; | |
22029 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22030 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22031 | } |
22032 | return resultobj; | |
22033 | fail: | |
22034 | return NULL; | |
22035 | } | |
22036 | ||
22037 | ||
22038 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22039 | PyObject *resultobj; | |
22040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22041 | int *arg2 = (int *) 0 ; | |
22042 | int *arg3 = (int *) 0 ; | |
22043 | int temp2 ; | |
22044 | int temp3 ; | |
22045 | PyObject * obj0 = 0 ; | |
22046 | char *kwnames[] = { | |
22047 | (char *) "self", NULL | |
22048 | }; | |
22049 | ||
22050 | arg2 = &temp2; | |
22051 | arg3 = &temp3; | |
22052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22055 | { |
22056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22057 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22058 | ||
22059 | wxPyEndAllowThreads(__tstate); | |
22060 | if (PyErr_Occurred()) SWIG_fail; | |
22061 | } | |
22062 | Py_INCREF(Py_None); resultobj = Py_None; | |
22063 | { | |
22064 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22065 | resultobj = t_output_helper(resultobj,o); | |
22066 | } | |
22067 | { | |
22068 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22069 | resultobj = t_output_helper(resultobj,o); | |
22070 | } | |
22071 | return resultobj; | |
22072 | fail: | |
22073 | return NULL; | |
22074 | } | |
22075 | ||
22076 | ||
22077 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22078 | PyObject *resultobj; | |
22079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22080 | wxPoint result; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | char *kwnames[] = { | |
22083 | (char *) "self", NULL | |
22084 | }; | |
22085 | ||
22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22089 | { |
22090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22091 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22092 | ||
22093 | wxPyEndAllowThreads(__tstate); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
22096 | { | |
22097 | wxPoint * resultptr; | |
22098 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22100 | } |
22101 | return resultobj; | |
22102 | fail: | |
22103 | return NULL; | |
22104 | } | |
22105 | ||
22106 | ||
22107 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22108 | PyObject *resultobj; | |
22109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22110 | wxRect result; | |
22111 | PyObject * obj0 = 0 ; | |
22112 | char *kwnames[] = { | |
22113 | (char *) "self", NULL | |
22114 | }; | |
22115 | ||
22116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22119 | { |
22120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22121 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22122 | ||
22123 | wxPyEndAllowThreads(__tstate); | |
22124 | if (PyErr_Occurred()) SWIG_fail; | |
22125 | } | |
22126 | { | |
22127 | wxRect * resultptr; | |
22128 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22130 | } |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22138 | PyObject *resultobj; | |
22139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22140 | wxSize result; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | char *kwnames[] = { | |
22143 | (char *) "self", NULL | |
22144 | }; | |
22145 | ||
22146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22149 | { |
22150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22151 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22152 | ||
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | { | |
22157 | wxSize * resultptr; | |
22158 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22160 | } |
22161 | return resultobj; | |
22162 | fail: | |
22163 | return NULL; | |
22164 | } | |
22165 | ||
22166 | ||
22167 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22168 | PyObject *resultobj; | |
22169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22170 | int *arg2 = (int *) 0 ; | |
22171 | int *arg3 = (int *) 0 ; | |
22172 | int temp2 ; | |
22173 | int temp3 ; | |
22174 | PyObject * obj0 = 0 ; | |
22175 | char *kwnames[] = { | |
22176 | (char *) "self", NULL | |
22177 | }; | |
22178 | ||
22179 | arg2 = &temp2; | |
22180 | arg3 = &temp3; | |
22181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22184 | { |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22187 | ||
22188 | wxPyEndAllowThreads(__tstate); | |
22189 | if (PyErr_Occurred()) SWIG_fail; | |
22190 | } | |
22191 | Py_INCREF(Py_None); resultobj = Py_None; | |
22192 | { | |
22193 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22194 | resultobj = t_output_helper(resultobj,o); | |
22195 | } | |
22196 | { | |
22197 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22198 | resultobj = t_output_helper(resultobj,o); | |
22199 | } | |
22200 | return resultobj; | |
22201 | fail: | |
22202 | return NULL; | |
22203 | } | |
22204 | ||
22205 | ||
22206 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22207 | PyObject *resultobj; | |
22208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22209 | wxSize result; | |
22210 | PyObject * obj0 = 0 ; | |
22211 | char *kwnames[] = { | |
22212 | (char *) "self", NULL | |
22213 | }; | |
22214 | ||
22215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22218 | { |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
22225 | { | |
22226 | wxSize * resultptr; | |
22227 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22228 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22229 | } |
22230 | return resultobj; | |
22231 | fail: | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
22236 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22237 | PyObject *resultobj; | |
22238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22239 | int arg2 = (int) wxBOTH ; | |
22240 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22242 | char *kwnames[] = { |
22243 | (char *) "self",(char *) "direction", NULL | |
22244 | }; | |
22245 | ||
8edf1c75 | 22246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22249 | if (obj1) { |
2f4c0a16 RD |
22250 | arg2 = (int) SWIG_AsInt(obj1); |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22252 | } |
d14a1e28 RD |
22253 | { |
22254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22255 | (arg1)->Center(arg2); | |
22256 | ||
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | Py_INCREF(Py_None); resultobj = Py_None; | |
22261 | return resultobj; | |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
22267 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22268 | PyObject *resultobj; | |
22269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22270 | int arg2 = (int) wxBOTH ; | |
22271 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22273 | char *kwnames[] = { |
22274 | (char *) "self",(char *) "dir", NULL | |
22275 | }; | |
22276 | ||
8edf1c75 | 22277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22280 | if (obj1) { |
2f4c0a16 RD |
22281 | arg2 = (int) SWIG_AsInt(obj1); |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22283 | } |
d14a1e28 RD |
22284 | { |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | (arg1)->CenterOnScreen(arg2); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | Py_INCREF(Py_None); resultobj = Py_None; | |
22292 | return resultobj; | |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
22298 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22299 | PyObject *resultobj; | |
22300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22301 | int arg2 = (int) wxBOTH ; | |
22302 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22303 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22304 | char *kwnames[] = { |
22305 | (char *) "self",(char *) "dir", NULL | |
22306 | }; | |
22307 | ||
8edf1c75 | 22308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22311 | if (obj1) { |
2f4c0a16 RD |
22312 | arg2 = (int) SWIG_AsInt(obj1); |
22313 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22314 | } |
d14a1e28 RD |
22315 | { |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | (arg1)->CenterOnParent(arg2); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
22322 | Py_INCREF(Py_None); resultobj = Py_None; | |
22323 | return resultobj; | |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22330 | PyObject *resultobj; | |
22331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22332 | PyObject * obj0 = 0 ; | |
22333 | char *kwnames[] = { | |
22334 | (char *) "self", NULL | |
22335 | }; | |
22336 | ||
22337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22340 | { |
22341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22342 | (arg1)->Fit(); | |
22343 | ||
22344 | wxPyEndAllowThreads(__tstate); | |
22345 | if (PyErr_Occurred()) SWIG_fail; | |
22346 | } | |
22347 | Py_INCREF(Py_None); resultobj = Py_None; | |
22348 | return resultobj; | |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
22354 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22355 | PyObject *resultobj; | |
22356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22357 | PyObject * obj0 = 0 ; | |
22358 | char *kwnames[] = { | |
22359 | (char *) "self", NULL | |
22360 | }; | |
22361 | ||
22362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22365 | { |
22366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22367 | (arg1)->FitInside(); | |
22368 | ||
22369 | wxPyEndAllowThreads(__tstate); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
22371 | } | |
22372 | Py_INCREF(Py_None); resultobj = Py_None; | |
22373 | return resultobj; | |
22374 | fail: | |
22375 | return NULL; | |
22376 | } | |
22377 | ||
22378 | ||
22379 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22380 | PyObject *resultobj; | |
22381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22382 | int arg2 ; | |
22383 | int arg3 ; | |
22384 | int arg4 = (int) -1 ; | |
22385 | int arg5 = (int) -1 ; | |
22386 | int arg6 = (int) -1 ; | |
22387 | int arg7 = (int) -1 ; | |
22388 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22389 | PyObject * obj1 = 0 ; |
22390 | PyObject * obj2 = 0 ; | |
22391 | PyObject * obj3 = 0 ; | |
22392 | PyObject * obj4 = 0 ; | |
22393 | PyObject * obj5 = 0 ; | |
22394 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22395 | char *kwnames[] = { |
22396 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22397 | }; | |
22398 | ||
8edf1c75 | 22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22402 | arg2 = (int) SWIG_AsInt(obj1); | |
22403 | if (PyErr_Occurred()) SWIG_fail; | |
22404 | arg3 = (int) SWIG_AsInt(obj2); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22406 | if (obj3) { |
2f4c0a16 RD |
22407 | arg4 = (int) SWIG_AsInt(obj3); |
22408 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22409 | } |
22410 | if (obj4) { | |
2f4c0a16 RD |
22411 | arg5 = (int) SWIG_AsInt(obj4); |
22412 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22413 | } |
22414 | if (obj5) { | |
2f4c0a16 RD |
22415 | arg6 = (int) SWIG_AsInt(obj5); |
22416 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22417 | } |
22418 | if (obj6) { | |
2f4c0a16 RD |
22419 | arg7 = (int) SWIG_AsInt(obj6); |
22420 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22421 | } |
d14a1e28 RD |
22422 | { |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
22429 | Py_INCREF(Py_None); resultobj = Py_None; | |
22430 | return resultobj; | |
22431 | fail: | |
22432 | return NULL; | |
22433 | } | |
22434 | ||
22435 | ||
22436 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22437 | PyObject *resultobj; | |
22438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22439 | int arg2 ; | |
22440 | int arg3 ; | |
22441 | int arg4 = (int) -1 ; | |
22442 | int arg5 = (int) -1 ; | |
22443 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22444 | PyObject * obj1 = 0 ; |
22445 | PyObject * obj2 = 0 ; | |
22446 | PyObject * obj3 = 0 ; | |
22447 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22448 | char *kwnames[] = { |
22449 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22450 | }; | |
22451 | ||
8edf1c75 | 22452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22455 | arg2 = (int) SWIG_AsInt(obj1); | |
22456 | if (PyErr_Occurred()) SWIG_fail; | |
22457 | arg3 = (int) SWIG_AsInt(obj2); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22459 | if (obj3) { |
2f4c0a16 RD |
22460 | arg4 = (int) SWIG_AsInt(obj3); |
22461 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22462 | } |
22463 | if (obj4) { | |
2f4c0a16 RD |
22464 | arg5 = (int) SWIG_AsInt(obj4); |
22465 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22466 | } |
d14a1e28 RD |
22467 | { |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22482 | PyObject *resultobj; | |
22483 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22484 | int result; | |
22485 | PyObject * obj0 = 0 ; | |
22486 | char *kwnames[] = { | |
22487 | (char *) "self", NULL | |
22488 | }; | |
22489 | ||
22490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22493 | { |
22494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22495 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22496 | ||
22497 | wxPyEndAllowThreads(__tstate); | |
22498 | if (PyErr_Occurred()) SWIG_fail; | |
22499 | } | |
2f4c0a16 | 22500 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22501 | return resultobj; |
22502 | fail: | |
22503 | return NULL; | |
22504 | } | |
22505 | ||
22506 | ||
22507 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22508 | PyObject *resultobj; | |
22509 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22510 | int result; | |
22511 | PyObject * obj0 = 0 ; | |
22512 | char *kwnames[] = { | |
22513 | (char *) "self", NULL | |
22514 | }; | |
22515 | ||
22516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22519 | { |
22520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22521 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22522 | ||
22523 | wxPyEndAllowThreads(__tstate); | |
22524 | if (PyErr_Occurred()) SWIG_fail; | |
22525 | } | |
2f4c0a16 | 22526 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22527 | return resultobj; |
22528 | fail: | |
22529 | return NULL; | |
22530 | } | |
22531 | ||
22532 | ||
22533 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22534 | PyObject *resultobj; | |
22535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22536 | int result; | |
22537 | PyObject * obj0 = 0 ; | |
22538 | char *kwnames[] = { | |
22539 | (char *) "self", NULL | |
22540 | }; | |
22541 | ||
22542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22545 | { |
22546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22547 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22548 | ||
22549 | wxPyEndAllowThreads(__tstate); | |
22550 | if (PyErr_Occurred()) SWIG_fail; | |
22551 | } | |
2f4c0a16 | 22552 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22553 | return resultobj; |
22554 | fail: | |
22555 | return NULL; | |
22556 | } | |
22557 | ||
22558 | ||
22559 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22560 | PyObject *resultobj; | |
22561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22562 | int result; | |
22563 | PyObject * obj0 = 0 ; | |
22564 | char *kwnames[] = { | |
22565 | (char *) "self", NULL | |
22566 | }; | |
22567 | ||
22568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22571 | { |
22572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22573 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22574 | ||
22575 | wxPyEndAllowThreads(__tstate); | |
22576 | if (PyErr_Occurred()) SWIG_fail; | |
22577 | } | |
2f4c0a16 | 22578 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22579 | return resultobj; |
22580 | fail: | |
22581 | return NULL; | |
22582 | } | |
22583 | ||
22584 | ||
22585 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22586 | PyObject *resultobj; | |
22587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22588 | wxSize result; | |
22589 | PyObject * obj0 = 0 ; | |
22590 | char *kwnames[] = { | |
22591 | (char *) "self", NULL | |
22592 | }; | |
22593 | ||
22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22597 | { |
22598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22599 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22600 | ||
22601 | wxPyEndAllowThreads(__tstate); | |
22602 | if (PyErr_Occurred()) SWIG_fail; | |
22603 | } | |
22604 | { | |
22605 | wxSize * resultptr; | |
22606 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22608 | } |
22609 | return resultobj; | |
22610 | fail: | |
22611 | return NULL; | |
22612 | } | |
22613 | ||
22614 | ||
22615 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22616 | PyObject *resultobj; | |
22617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22618 | wxSize *arg2 = 0 ; | |
22619 | wxSize temp2 ; | |
22620 | PyObject * obj0 = 0 ; | |
22621 | PyObject * obj1 = 0 ; | |
22622 | char *kwnames[] = { | |
22623 | (char *) "self",(char *) "size", NULL | |
22624 | }; | |
22625 | ||
22626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22629 | { |
22630 | arg2 = &temp2; | |
22631 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22632 | } | |
22633 | { | |
22634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22635 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22636 | ||
22637 | wxPyEndAllowThreads(__tstate); | |
22638 | if (PyErr_Occurred()) SWIG_fail; | |
22639 | } | |
22640 | Py_INCREF(Py_None); resultobj = Py_None; | |
22641 | return resultobj; | |
22642 | fail: | |
22643 | return NULL; | |
22644 | } | |
22645 | ||
22646 | ||
22647 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22648 | PyObject *resultobj; | |
22649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22650 | int arg2 ; | |
22651 | int arg3 ; | |
22652 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22653 | PyObject * obj1 = 0 ; |
22654 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22655 | char *kwnames[] = { |
22656 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22657 | }; | |
22658 | ||
8edf1c75 | 22659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22662 | arg2 = (int) SWIG_AsInt(obj1); | |
22663 | if (PyErr_Occurred()) SWIG_fail; | |
22664 | arg3 = (int) SWIG_AsInt(obj2); | |
22665 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22666 | { |
22667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22668 | (arg1)->SetVirtualSize(arg2,arg3); | |
22669 | ||
22670 | wxPyEndAllowThreads(__tstate); | |
22671 | if (PyErr_Occurred()) SWIG_fail; | |
22672 | } | |
22673 | Py_INCREF(Py_None); resultobj = Py_None; | |
22674 | return resultobj; | |
22675 | fail: | |
22676 | return NULL; | |
22677 | } | |
22678 | ||
22679 | ||
22680 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22681 | PyObject *resultobj; | |
22682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22683 | wxSize result; | |
22684 | PyObject * obj0 = 0 ; | |
22685 | char *kwnames[] = { | |
22686 | (char *) "self", NULL | |
22687 | }; | |
22688 | ||
22689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22692 | { |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | { | |
22700 | wxSize * resultptr; | |
22701 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22703 | } |
22704 | return resultobj; | |
22705 | fail: | |
22706 | return NULL; | |
22707 | } | |
22708 | ||
22709 | ||
22710 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22711 | PyObject *resultobj; | |
22712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22713 | int *arg2 = (int *) 0 ; | |
22714 | int *arg3 = (int *) 0 ; | |
22715 | int temp2 ; | |
22716 | int temp3 ; | |
22717 | PyObject * obj0 = 0 ; | |
22718 | char *kwnames[] = { | |
22719 | (char *) "self", NULL | |
22720 | }; | |
22721 | ||
22722 | arg2 = &temp2; | |
22723 | arg3 = &temp3; | |
22724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22727 | { |
22728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22729 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
22730 | ||
22731 | wxPyEndAllowThreads(__tstate); | |
22732 | if (PyErr_Occurred()) SWIG_fail; | |
22733 | } | |
22734 | Py_INCREF(Py_None); resultobj = Py_None; | |
22735 | { | |
22736 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22737 | resultobj = t_output_helper(resultobj,o); | |
22738 | } | |
22739 | { | |
22740 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22741 | resultobj = t_output_helper(resultobj,o); | |
22742 | } | |
22743 | return resultobj; | |
22744 | fail: | |
22745 | return NULL; | |
22746 | } | |
22747 | ||
22748 | ||
22749 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22750 | PyObject *resultobj; | |
22751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22752 | wxSize result; | |
22753 | PyObject * obj0 = 0 ; | |
22754 | char *kwnames[] = { | |
22755 | (char *) "self", NULL | |
22756 | }; | |
22757 | ||
22758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22761 | { |
22762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22763 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
22764 | ||
22765 | wxPyEndAllowThreads(__tstate); | |
22766 | if (PyErr_Occurred()) SWIG_fail; | |
22767 | } | |
22768 | { | |
22769 | wxSize * resultptr; | |
22770 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22772 | } |
22773 | return resultobj; | |
22774 | fail: | |
22775 | return NULL; | |
22776 | } | |
22777 | ||
22778 | ||
22779 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22780 | PyObject *resultobj; | |
22781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22782 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22783 | bool result; |
22784 | PyObject * obj0 = 0 ; | |
22785 | PyObject * obj1 = 0 ; | |
22786 | char *kwnames[] = { | |
22787 | (char *) "self",(char *) "show", NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 22793 | if (obj1) { |
2f4c0a16 RD |
22794 | arg2 = (bool) SWIG_AsBool(obj1); |
22795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22796 | } |
22797 | { | |
22798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22799 | result = (bool)(arg1)->Show(arg2); | |
22800 | ||
22801 | wxPyEndAllowThreads(__tstate); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
22803 | } | |
4e760a36 | 22804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22805 | return resultobj; |
22806 | fail: | |
22807 | return NULL; | |
22808 | } | |
22809 | ||
22810 | ||
22811 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22812 | PyObject *resultobj; | |
22813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22814 | bool result; | |
22815 | PyObject * obj0 = 0 ; | |
22816 | char *kwnames[] = { | |
22817 | (char *) "self", NULL | |
22818 | }; | |
22819 | ||
22820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22823 | { |
22824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22825 | result = (bool)(arg1)->Hide(); | |
22826 | ||
22827 | wxPyEndAllowThreads(__tstate); | |
22828 | if (PyErr_Occurred()) SWIG_fail; | |
22829 | } | |
4e760a36 | 22830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22831 | return resultobj; |
22832 | fail: | |
22833 | return NULL; | |
22834 | } | |
22835 | ||
22836 | ||
22837 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22838 | PyObject *resultobj; | |
22839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22840 | bool arg2 = (bool) True ; |
d14a1e28 RD |
22841 | bool result; |
22842 | PyObject * obj0 = 0 ; | |
22843 | PyObject * obj1 = 0 ; | |
22844 | char *kwnames[] = { | |
22845 | (char *) "self",(char *) "enable", NULL | |
22846 | }; | |
22847 | ||
22848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 22851 | if (obj1) { |
2f4c0a16 RD |
22852 | arg2 = (bool) SWIG_AsBool(obj1); |
22853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22854 | } |
22855 | { | |
22856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22857 | result = (bool)(arg1)->Enable(arg2); | |
22858 | ||
22859 | wxPyEndAllowThreads(__tstate); | |
22860 | if (PyErr_Occurred()) SWIG_fail; | |
22861 | } | |
4e760a36 | 22862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22863 | return resultobj; |
22864 | fail: | |
22865 | return NULL; | |
22866 | } | |
22867 | ||
22868 | ||
22869 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22870 | PyObject *resultobj; | |
22871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22872 | bool result; | |
22873 | PyObject * obj0 = 0 ; | |
22874 | char *kwnames[] = { | |
22875 | (char *) "self", NULL | |
22876 | }; | |
22877 | ||
22878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22881 | { |
22882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22883 | result = (bool)(arg1)->Disable(); | |
22884 | ||
22885 | wxPyEndAllowThreads(__tstate); | |
22886 | if (PyErr_Occurred()) SWIG_fail; | |
22887 | } | |
4e760a36 | 22888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22889 | return resultobj; |
22890 | fail: | |
22891 | return NULL; | |
22892 | } | |
22893 | ||
22894 | ||
22895 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22896 | PyObject *resultobj; | |
22897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22898 | bool result; | |
22899 | PyObject * obj0 = 0 ; | |
22900 | char *kwnames[] = { | |
22901 | (char *) "self", NULL | |
22902 | }; | |
22903 | ||
22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22907 | { |
22908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22909 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
22910 | ||
22911 | wxPyEndAllowThreads(__tstate); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
4e760a36 | 22914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22915 | return resultobj; |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22922 | PyObject *resultobj; | |
22923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22924 | bool result; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | char *kwnames[] = { | |
22927 | (char *) "self", NULL | |
22928 | }; | |
22929 | ||
22930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22933 | { |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
4e760a36 | 22940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22941 | return resultobj; |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
22947 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22948 | PyObject *resultobj; | |
22949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22950 | long arg2 ; | |
22951 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22953 | char *kwnames[] = { |
22954 | (char *) "self",(char *) "style", NULL | |
22955 | }; | |
22956 | ||
8edf1c75 | 22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22960 | arg2 = (long) SWIG_AsLong(obj1); | |
22961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22962 | { |
22963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22964 | (arg1)->SetWindowStyleFlag(arg2); | |
22965 | ||
22966 | wxPyEndAllowThreads(__tstate); | |
22967 | if (PyErr_Occurred()) SWIG_fail; | |
22968 | } | |
22969 | Py_INCREF(Py_None); resultobj = Py_None; | |
22970 | return resultobj; | |
22971 | fail: | |
22972 | return NULL; | |
22973 | } | |
22974 | ||
22975 | ||
22976 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22977 | PyObject *resultobj; | |
22978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22979 | long result; | |
22980 | PyObject * obj0 = 0 ; | |
22981 | char *kwnames[] = { | |
22982 | (char *) "self", NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22988 | { |
22989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22990 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
2f4c0a16 | 22995 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22996 | return resultobj; |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23005 | int arg2 ; | |
23006 | bool result; | |
23007 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23009 | char *kwnames[] = { |
23010 | (char *) "self",(char *) "flag", NULL | |
23011 | }; | |
23012 | ||
8edf1c75 | 23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23016 | arg2 = (int) SWIG_AsInt(obj1); | |
23017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23018 | { |
23019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23020 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23021 | ||
23022 | wxPyEndAllowThreads(__tstate); | |
23023 | if (PyErr_Occurred()) SWIG_fail; | |
23024 | } | |
4e760a36 | 23025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23026 | return resultobj; |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
23032 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23033 | PyObject *resultobj; | |
23034 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23035 | bool result; | |
23036 | PyObject * obj0 = 0 ; | |
23037 | char *kwnames[] = { | |
23038 | (char *) "self", NULL | |
23039 | }; | |
23040 | ||
23041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23044 | { |
23045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23046 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23047 | ||
23048 | wxPyEndAllowThreads(__tstate); | |
23049 | if (PyErr_Occurred()) SWIG_fail; | |
23050 | } | |
4e760a36 | 23051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23052 | return resultobj; |
23053 | fail: | |
23054 | return NULL; | |
23055 | } | |
23056 | ||
23057 | ||
23058 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23059 | PyObject *resultobj; | |
23060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23061 | long arg2 ; | |
23062 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23064 | char *kwnames[] = { |
23065 | (char *) "self",(char *) "exStyle", NULL | |
23066 | }; | |
23067 | ||
8edf1c75 | 23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23071 | arg2 = (long) SWIG_AsLong(obj1); | |
23072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23073 | { |
23074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23075 | (arg1)->SetExtraStyle(arg2); | |
23076 | ||
23077 | wxPyEndAllowThreads(__tstate); | |
23078 | if (PyErr_Occurred()) SWIG_fail; | |
23079 | } | |
23080 | Py_INCREF(Py_None); resultobj = Py_None; | |
23081 | return resultobj; | |
23082 | fail: | |
23083 | return NULL; | |
23084 | } | |
23085 | ||
23086 | ||
23087 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23088 | PyObject *resultobj; | |
23089 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23090 | long result; | |
23091 | PyObject * obj0 = 0 ; | |
23092 | char *kwnames[] = { | |
23093 | (char *) "self", NULL | |
23094 | }; | |
23095 | ||
23096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23099 | { |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
2f4c0a16 | 23106 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23107 | return resultobj; |
23108 | fail: | |
23109 | return NULL; | |
23110 | } | |
23111 | ||
23112 | ||
23113 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23114 | PyObject *resultobj; | |
23115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23116 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23117 | PyObject * obj0 = 0 ; |
23118 | PyObject * obj1 = 0 ; | |
23119 | char *kwnames[] = { | |
23120 | (char *) "self",(char *) "modal", NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23126 | if (obj1) { |
2f4c0a16 RD |
23127 | arg2 = (bool) SWIG_AsBool(obj1); |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23129 | } |
23130 | { | |
23131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23132 | (arg1)->MakeModal(arg2); | |
23133 | ||
23134 | wxPyEndAllowThreads(__tstate); | |
23135 | if (PyErr_Occurred()) SWIG_fail; | |
23136 | } | |
23137 | Py_INCREF(Py_None); resultobj = Py_None; | |
23138 | return resultobj; | |
23139 | fail: | |
23140 | return NULL; | |
23141 | } | |
23142 | ||
23143 | ||
23144 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23145 | PyObject *resultobj; | |
23146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23147 | bool arg2 ; | |
23148 | PyObject * obj0 = 0 ; | |
23149 | PyObject * obj1 = 0 ; | |
23150 | char *kwnames[] = { | |
23151 | (char *) "self",(char *) "enableTheme", NULL | |
23152 | }; | |
23153 | ||
23154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23157 | arg2 = (bool) SWIG_AsBool(obj1); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23159 | { |
23160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23161 | (arg1)->SetThemeEnabled(arg2); | |
23162 | ||
23163 | wxPyEndAllowThreads(__tstate); | |
23164 | if (PyErr_Occurred()) SWIG_fail; | |
23165 | } | |
23166 | Py_INCREF(Py_None); resultobj = Py_None; | |
23167 | return resultobj; | |
23168 | fail: | |
23169 | return NULL; | |
23170 | } | |
23171 | ||
23172 | ||
23173 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23174 | PyObject *resultobj; | |
23175 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23176 | bool result; | |
23177 | PyObject * obj0 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23185 | { |
23186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23187 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
23188 | ||
23189 | wxPyEndAllowThreads(__tstate); | |
23190 | if (PyErr_Occurred()) SWIG_fail; | |
23191 | } | |
4e760a36 | 23192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23193 | return resultobj; |
23194 | fail: | |
23195 | return NULL; | |
23196 | } | |
23197 | ||
23198 | ||
d14a1e28 RD |
23199 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
23200 | PyObject *resultobj; | |
23201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23202 | PyObject * obj0 = 0 ; | |
23203 | char *kwnames[] = { | |
23204 | (char *) "self", NULL | |
23205 | }; | |
23206 | ||
23207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23210 | { |
23211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23212 | (arg1)->SetFocus(); | |
23213 | ||
23214 | wxPyEndAllowThreads(__tstate); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
23216 | } | |
23217 | Py_INCREF(Py_None); resultobj = Py_None; | |
23218 | return resultobj; | |
23219 | fail: | |
23220 | return NULL; | |
23221 | } | |
23222 | ||
23223 | ||
23224 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23225 | PyObject *resultobj; | |
23226 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23227 | PyObject * obj0 = 0 ; | |
23228 | char *kwnames[] = { | |
23229 | (char *) "self", NULL | |
23230 | }; | |
23231 | ||
23232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23235 | { |
23236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23237 | (arg1)->SetFocusFromKbd(); | |
23238 | ||
23239 | wxPyEndAllowThreads(__tstate); | |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
23241 | } | |
23242 | Py_INCREF(Py_None); resultobj = Py_None; | |
23243 | return resultobj; | |
23244 | fail: | |
23245 | return NULL; | |
23246 | } | |
23247 | ||
23248 | ||
23249 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23250 | PyObject *resultobj; | |
23251 | wxWindow *result; | |
23252 | char *kwnames[] = { | |
23253 | NULL | |
23254 | }; | |
23255 | ||
23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | result = (wxWindow *)wxWindow::FindFocus(); | |
23260 | ||
23261 | wxPyEndAllowThreads(__tstate); | |
23262 | if (PyErr_Occurred()) SWIG_fail; | |
23263 | } | |
23264 | { | |
23265 | resultobj = wxPyMake_wxObject(result); | |
23266 | } | |
23267 | return resultobj; | |
23268 | fail: | |
23269 | return NULL; | |
23270 | } | |
23271 | ||
23272 | ||
23273 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23274 | PyObject *resultobj; | |
23275 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23276 | bool result; | |
23277 | PyObject * obj0 = 0 ; | |
23278 | char *kwnames[] = { | |
23279 | (char *) "self", NULL | |
23280 | }; | |
23281 | ||
23282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23285 | { |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23287 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23288 | ||
23289 | wxPyEndAllowThreads(__tstate); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | } | |
4e760a36 | 23292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23293 | return resultobj; |
23294 | fail: | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
23299 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23300 | PyObject *resultobj; | |
23301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23302 | bool result; | |
23303 | PyObject * obj0 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23311 | { |
23312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23313 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
4e760a36 | 23318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23319 | return resultobj; |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23328 | wxWindow *result; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23337 | { |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23340 | ||
23341 | wxPyEndAllowThreads(__tstate); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | } | |
23344 | { | |
23345 | resultobj = wxPyMake_wxObject(result); | |
23346 | } | |
23347 | return resultobj; | |
23348 | fail: | |
23349 | return NULL; | |
23350 | } | |
23351 | ||
23352 | ||
23353 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23354 | PyObject *resultobj; | |
23355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23356 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23357 | wxWindow *result; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj1 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self",(char *) "child", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23369 | { |
23370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23371 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23372 | ||
23373 | wxPyEndAllowThreads(__tstate); | |
23374 | if (PyErr_Occurred()) SWIG_fail; | |
23375 | } | |
23376 | { | |
23377 | resultobj = wxPyMake_wxObject(result); | |
23378 | } | |
23379 | return resultobj; | |
23380 | fail: | |
23381 | return NULL; | |
23382 | } | |
23383 | ||
23384 | ||
23385 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23386 | PyObject *resultobj; | |
23387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23388 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23389 | PyObject * obj0 = 0 ; | |
23390 | PyObject * obj1 = 0 ; | |
23391 | char *kwnames[] = { | |
23392 | (char *) "self",(char *) "win", NULL | |
23393 | }; | |
23394 | ||
23395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23398 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23400 | { |
23401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23402 | (arg1)->SetTmpDefaultItem(arg2); | |
23403 | ||
23404 | wxPyEndAllowThreads(__tstate); | |
23405 | if (PyErr_Occurred()) SWIG_fail; | |
23406 | } | |
23407 | Py_INCREF(Py_None); resultobj = Py_None; | |
23408 | return resultobj; | |
23409 | fail: | |
23410 | return NULL; | |
23411 | } | |
23412 | ||
23413 | ||
23414 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23415 | PyObject *resultobj; | |
23416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23417 | PyObject *result; | |
23418 | PyObject * obj0 = 0 ; | |
23419 | char *kwnames[] = { | |
23420 | (char *) "self", NULL | |
23421 | }; | |
23422 | ||
23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23426 | { |
23427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23428 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23429 | ||
23430 | wxPyEndAllowThreads(__tstate); | |
23431 | if (PyErr_Occurred()) SWIG_fail; | |
23432 | } | |
23433 | resultobj = result; | |
23434 | return resultobj; | |
23435 | fail: | |
23436 | return NULL; | |
23437 | } | |
23438 | ||
23439 | ||
23440 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23441 | PyObject *resultobj; | |
23442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23443 | wxWindow *result; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | char *kwnames[] = { | |
23446 | (char *) "self", NULL | |
23447 | }; | |
23448 | ||
23449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23452 | { |
23453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23454 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23455 | ||
23456 | wxPyEndAllowThreads(__tstate); | |
23457 | if (PyErr_Occurred()) SWIG_fail; | |
23458 | } | |
23459 | { | |
23460 | resultobj = wxPyMake_wxObject(result); | |
23461 | } | |
23462 | return resultobj; | |
23463 | fail: | |
23464 | return NULL; | |
23465 | } | |
23466 | ||
23467 | ||
23468 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23469 | PyObject *resultobj; | |
23470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23471 | wxWindow *result; | |
23472 | PyObject * obj0 = 0 ; | |
23473 | char *kwnames[] = { | |
23474 | (char *) "self", NULL | |
23475 | }; | |
23476 | ||
23477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23480 | { |
23481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23482 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
23487 | { | |
23488 | resultobj = wxPyMake_wxObject(result); | |
23489 | } | |
23490 | return resultobj; | |
23491 | fail: | |
23492 | return NULL; | |
23493 | } | |
23494 | ||
23495 | ||
23496 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23497 | PyObject *resultobj; | |
23498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23499 | bool result; | |
23500 | PyObject * obj0 = 0 ; | |
23501 | char *kwnames[] = { | |
23502 | (char *) "self", NULL | |
23503 | }; | |
23504 | ||
23505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23508 | { |
23509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23510 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23511 | ||
23512 | wxPyEndAllowThreads(__tstate); | |
23513 | if (PyErr_Occurred()) SWIG_fail; | |
23514 | } | |
4e760a36 | 23515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23516 | return resultobj; |
23517 | fail: | |
23518 | return NULL; | |
23519 | } | |
23520 | ||
23521 | ||
23522 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23523 | PyObject *resultobj; | |
23524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23526 | bool result; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | PyObject * obj1 = 0 ; | |
23529 | char *kwnames[] = { | |
23530 | (char *) "self",(char *) "newParent", NULL | |
23531 | }; | |
23532 | ||
23533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23538 | { |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | result = (bool)(arg1)->Reparent(arg2); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
4e760a36 | 23545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23546 | return resultobj; |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23555 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | PyObject * obj1 = 0 ; | |
23558 | char *kwnames[] = { | |
23559 | (char *) "self",(char *) "child", NULL | |
23560 | }; | |
23561 | ||
23562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23567 | { |
23568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23569 | (arg1)->AddChild(arg2); | |
23570 | ||
23571 | wxPyEndAllowThreads(__tstate); | |
23572 | if (PyErr_Occurred()) SWIG_fail; | |
23573 | } | |
23574 | Py_INCREF(Py_None); resultobj = Py_None; | |
23575 | return resultobj; | |
23576 | fail: | |
23577 | return NULL; | |
23578 | } | |
23579 | ||
23580 | ||
23581 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23582 | PyObject *resultobj; | |
23583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23584 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23585 | PyObject * obj0 = 0 ; | |
23586 | PyObject * obj1 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self",(char *) "child", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23596 | { |
23597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23598 | (arg1)->RemoveChild(arg2); | |
23599 | ||
23600 | wxPyEndAllowThreads(__tstate); | |
23601 | if (PyErr_Occurred()) SWIG_fail; | |
23602 | } | |
23603 | Py_INCREF(Py_None); resultobj = Py_None; | |
23604 | return resultobj; | |
23605 | fail: | |
23606 | return NULL; | |
23607 | } | |
23608 | ||
23609 | ||
23610 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23611 | PyObject *resultobj; | |
23612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23613 | long arg2 ; | |
23614 | wxWindow *result; | |
23615 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23617 | char *kwnames[] = { |
23618 | (char *) "self",(char *) "winid", NULL | |
23619 | }; | |
23620 | ||
8edf1c75 | 23621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23624 | arg2 = (long) SWIG_AsLong(obj1); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23626 | { |
23627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23628 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23629 | ||
23630 | wxPyEndAllowThreads(__tstate); | |
23631 | if (PyErr_Occurred()) SWIG_fail; | |
23632 | } | |
23633 | { | |
23634 | resultobj = wxPyMake_wxObject(result); | |
23635 | } | |
23636 | return resultobj; | |
23637 | fail: | |
23638 | return NULL; | |
23639 | } | |
23640 | ||
23641 | ||
23642 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23643 | PyObject *resultobj; | |
23644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23645 | wxString *arg2 = 0 ; | |
23646 | wxWindow *result; | |
423f194a | 23647 | bool temp2 = False ; |
d14a1e28 RD |
23648 | PyObject * obj0 = 0 ; |
23649 | PyObject * obj1 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self",(char *) "name", NULL | |
23652 | }; | |
23653 | ||
23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23657 | { |
23658 | arg2 = wxString_in_helper(obj1); | |
23659 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23660 | temp2 = True; |
d14a1e28 RD |
23661 | } |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
23665 | ||
23666 | wxPyEndAllowThreads(__tstate); | |
23667 | if (PyErr_Occurred()) SWIG_fail; | |
23668 | } | |
23669 | { | |
23670 | resultobj = wxPyMake_wxObject(result); | |
23671 | } | |
23672 | { | |
23673 | if (temp2) | |
23674 | delete arg2; | |
23675 | } | |
23676 | return resultobj; | |
23677 | fail: | |
23678 | { | |
23679 | if (temp2) | |
23680 | delete arg2; | |
23681 | } | |
23682 | return NULL; | |
23683 | } | |
23684 | ||
23685 | ||
23686 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23687 | PyObject *resultobj; | |
23688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23689 | wxEvtHandler *result; | |
23690 | PyObject * obj0 = 0 ; | |
23691 | char *kwnames[] = { | |
23692 | (char *) "self", NULL | |
23693 | }; | |
23694 | ||
23695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23698 | { |
23699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23700 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
23701 | ||
23702 | wxPyEndAllowThreads(__tstate); | |
23703 | if (PyErr_Occurred()) SWIG_fail; | |
23704 | } | |
23705 | { | |
23706 | resultobj = wxPyMake_wxObject(result); | |
23707 | } | |
23708 | return resultobj; | |
23709 | fail: | |
23710 | return NULL; | |
23711 | } | |
23712 | ||
23713 | ||
23714 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23715 | PyObject *resultobj; | |
23716 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23717 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23718 | PyObject * obj0 = 0 ; | |
23719 | PyObject * obj1 = 0 ; | |
23720 | char *kwnames[] = { | |
23721 | (char *) "self",(char *) "handler", NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23729 | { |
23730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23731 | (arg1)->SetEventHandler(arg2); | |
23732 | ||
23733 | wxPyEndAllowThreads(__tstate); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
23736 | Py_INCREF(Py_None); resultobj = Py_None; | |
23737 | return resultobj; | |
23738 | fail: | |
23739 | return NULL; | |
23740 | } | |
23741 | ||
23742 | ||
23743 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23744 | PyObject *resultobj; | |
23745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23746 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | PyObject * obj1 = 0 ; | |
23749 | char *kwnames[] = { | |
23750 | (char *) "self",(char *) "handler", NULL | |
23751 | }; | |
23752 | ||
23753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23758 | { |
23759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23760 | (arg1)->PushEventHandler(arg2); | |
23761 | ||
23762 | wxPyEndAllowThreads(__tstate); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | Py_INCREF(Py_None); resultobj = Py_None; | |
23766 | return resultobj; | |
23767 | fail: | |
23768 | return NULL; | |
23769 | } | |
23770 | ||
23771 | ||
23772 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23773 | PyObject *resultobj; | |
23774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23775 | bool arg2 = (bool) False ; |
d14a1e28 RD |
23776 | wxEvtHandler *result; |
23777 | PyObject * obj0 = 0 ; | |
23778 | PyObject * obj1 = 0 ; | |
23779 | char *kwnames[] = { | |
23780 | (char *) "self",(char *) "deleteHandler", NULL | |
23781 | }; | |
23782 | ||
23783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23786 | if (obj1) { |
2f4c0a16 RD |
23787 | arg2 = (bool) SWIG_AsBool(obj1); |
23788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23789 | } |
23790 | { | |
23791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23792 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
23793 | ||
23794 | wxPyEndAllowThreads(__tstate); | |
23795 | if (PyErr_Occurred()) SWIG_fail; | |
23796 | } | |
23797 | { | |
23798 | resultobj = wxPyMake_wxObject(result); | |
23799 | } | |
23800 | return resultobj; | |
23801 | fail: | |
23802 | return NULL; | |
23803 | } | |
23804 | ||
23805 | ||
23806 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23807 | PyObject *resultobj; | |
23808 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23809 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
23810 | bool result; | |
23811 | PyObject * obj0 = 0 ; | |
23812 | PyObject * obj1 = 0 ; | |
23813 | char *kwnames[] = { | |
23814 | (char *) "self",(char *) "handler", NULL | |
23815 | }; | |
23816 | ||
23817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
23821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23822 | { |
23823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23824 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
23825 | ||
23826 | wxPyEndAllowThreads(__tstate); | |
23827 | if (PyErr_Occurred()) SWIG_fail; | |
23828 | } | |
4e760a36 | 23829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23830 | return resultobj; |
23831 | fail: | |
23832 | return NULL; | |
23833 | } | |
23834 | ||
23835 | ||
23836 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23837 | PyObject *resultobj; | |
23838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23839 | wxValidator *arg2 = 0 ; | |
23840 | PyObject * obj0 = 0 ; | |
23841 | PyObject * obj1 = 0 ; | |
23842 | char *kwnames[] = { | |
23843 | (char *) "self",(char *) "validator", NULL | |
23844 | }; | |
23845 | ||
23846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
23850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23851 | SWIG_fail; | |
d14a1e28 | 23852 | if (arg2 == NULL) { |
2f4c0a16 RD |
23853 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23854 | SWIG_fail; | |
d14a1e28 RD |
23855 | } |
23856 | { | |
23857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23858 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
23859 | ||
23860 | wxPyEndAllowThreads(__tstate); | |
23861 | if (PyErr_Occurred()) SWIG_fail; | |
23862 | } | |
23863 | Py_INCREF(Py_None); resultobj = Py_None; | |
23864 | return resultobj; | |
23865 | fail: | |
23866 | return NULL; | |
23867 | } | |
23868 | ||
23869 | ||
23870 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23871 | PyObject *resultobj; | |
23872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23873 | wxValidator *result; | |
23874 | PyObject * obj0 = 0 ; | |
23875 | char *kwnames[] = { | |
23876 | (char *) "self", NULL | |
23877 | }; | |
23878 | ||
23879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23882 | { |
23883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23884 | result = (wxValidator *)(arg1)->GetValidator(); | |
23885 | ||
23886 | wxPyEndAllowThreads(__tstate); | |
23887 | if (PyErr_Occurred()) SWIG_fail; | |
23888 | } | |
23889 | { | |
23890 | resultobj = wxPyMake_wxObject(result); | |
23891 | } | |
23892 | return resultobj; | |
23893 | fail: | |
23894 | return NULL; | |
23895 | } | |
23896 | ||
23897 | ||
23898 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23899 | PyObject *resultobj; | |
23900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23901 | wxAcceleratorTable *arg2 = 0 ; | |
23902 | PyObject * obj0 = 0 ; | |
23903 | PyObject * obj1 = 0 ; | |
23904 | char *kwnames[] = { | |
23905 | (char *) "self",(char *) "accel", NULL | |
23906 | }; | |
23907 | ||
23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
23912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23913 | SWIG_fail; | |
d14a1e28 | 23914 | if (arg2 == NULL) { |
2f4c0a16 RD |
23915 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23916 | SWIG_fail; | |
d14a1e28 RD |
23917 | } |
23918 | { | |
23919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23920 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
23921 | ||
23922 | wxPyEndAllowThreads(__tstate); | |
23923 | if (PyErr_Occurred()) SWIG_fail; | |
23924 | } | |
23925 | Py_INCREF(Py_None); resultobj = Py_None; | |
23926 | return resultobj; | |
23927 | fail: | |
23928 | return NULL; | |
23929 | } | |
23930 | ||
23931 | ||
23932 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23933 | PyObject *resultobj; | |
23934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23935 | wxAcceleratorTable *result; | |
23936 | PyObject * obj0 = 0 ; | |
23937 | char *kwnames[] = { | |
23938 | (char *) "self", NULL | |
23939 | }; | |
23940 | ||
23941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23944 | { |
23945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23946 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
23947 | ||
23948 | wxPyEndAllowThreads(__tstate); | |
23949 | if (PyErr_Occurred()) SWIG_fail; | |
23950 | } | |
2f4c0a16 | 23951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
23952 | return resultobj; |
23953 | fail: | |
23954 | return NULL; | |
23955 | } | |
23956 | ||
23957 | ||
23958 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23959 | PyObject *resultobj; | |
23960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23961 | int arg2 ; | |
23962 | int arg3 ; | |
23963 | int arg4 ; | |
23964 | bool result; | |
23965 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23966 | PyObject * obj1 = 0 ; |
23967 | PyObject * obj2 = 0 ; | |
23968 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
23969 | char *kwnames[] = { |
23970 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
23971 | }; | |
23972 | ||
8edf1c75 | 23973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
23974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23976 | arg2 = (int) SWIG_AsInt(obj1); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | arg3 = (int) SWIG_AsInt(obj2); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | arg4 = (int) SWIG_AsInt(obj3); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23982 | { |
23983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23984 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
23985 | ||
23986 | wxPyEndAllowThreads(__tstate); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
23988 | } | |
4e760a36 | 23989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
23990 | return resultobj; |
23991 | fail: | |
23992 | return NULL; | |
23993 | } | |
23994 | ||
23995 | ||
23996 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23997 | PyObject *resultobj; | |
23998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23999 | int arg2 ; | |
24000 | bool result; | |
24001 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24003 | char *kwnames[] = { |
24004 | (char *) "self",(char *) "hotkeyId", NULL | |
24005 | }; | |
24006 | ||
8edf1c75 | 24007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24010 | arg2 = (int) SWIG_AsInt(obj1); | |
24011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24012 | { |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
24015 | ||
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
4e760a36 | 24019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24020 | return resultobj; |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj; | |
24028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24029 | wxPoint *arg2 = 0 ; | |
24030 | wxPoint result; | |
24031 | wxPoint temp2 ; | |
24032 | PyObject * obj0 = 0 ; | |
24033 | PyObject * obj1 = 0 ; | |
24034 | char *kwnames[] = { | |
24035 | (char *) "self",(char *) "pt", NULL | |
24036 | }; | |
24037 | ||
24038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24041 | { |
24042 | arg2 = &temp2; | |
24043 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24044 | } | |
24045 | { | |
24046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24047 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24048 | ||
24049 | wxPyEndAllowThreads(__tstate); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
24051 | } | |
24052 | { | |
24053 | wxPoint * resultptr; | |
24054 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24056 | } |
24057 | return resultobj; | |
24058 | fail: | |
24059 | return NULL; | |
24060 | } | |
24061 | ||
24062 | ||
24063 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24064 | PyObject *resultobj; | |
24065 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24066 | wxSize *arg2 = 0 ; | |
24067 | wxSize result; | |
24068 | wxSize temp2 ; | |
24069 | PyObject * obj0 = 0 ; | |
24070 | PyObject * obj1 = 0 ; | |
24071 | char *kwnames[] = { | |
24072 | (char *) "self",(char *) "sz", NULL | |
24073 | }; | |
24074 | ||
24075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24078 | { |
24079 | arg2 = &temp2; | |
24080 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24081 | } | |
24082 | { | |
24083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24084 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24085 | ||
24086 | wxPyEndAllowThreads(__tstate); | |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
24088 | } | |
24089 | { | |
24090 | wxSize * resultptr; | |
24091 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24093 | } |
24094 | return resultobj; | |
24095 | fail: | |
24096 | return NULL; | |
24097 | } | |
24098 | ||
24099 | ||
24100 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24101 | PyObject *resultobj; | |
24102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24103 | wxPoint *arg2 = 0 ; | |
24104 | wxPoint result; | |
24105 | wxPoint temp2 ; | |
24106 | PyObject * obj0 = 0 ; | |
24107 | PyObject * obj1 = 0 ; | |
24108 | char *kwnames[] = { | |
24109 | (char *) "self",(char *) "pt", NULL | |
24110 | }; | |
24111 | ||
24112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24115 | { |
24116 | arg2 = &temp2; | |
24117 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24118 | } | |
24119 | { | |
24120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24121 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24122 | ||
24123 | wxPyEndAllowThreads(__tstate); | |
24124 | if (PyErr_Occurred()) SWIG_fail; | |
24125 | } | |
24126 | { | |
24127 | wxPoint * resultptr; | |
24128 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24130 | } |
24131 | return resultobj; | |
24132 | fail: | |
24133 | return NULL; | |
24134 | } | |
24135 | ||
24136 | ||
24137 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24138 | PyObject *resultobj; | |
24139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24140 | wxSize *arg2 = 0 ; | |
24141 | wxSize result; | |
24142 | wxSize temp2 ; | |
24143 | PyObject * obj0 = 0 ; | |
24144 | PyObject * obj1 = 0 ; | |
24145 | char *kwnames[] = { | |
24146 | (char *) "self",(char *) "sz", NULL | |
24147 | }; | |
24148 | ||
24149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24152 | { |
24153 | arg2 = &temp2; | |
24154 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24155 | } | |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24159 | ||
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
24163 | { | |
24164 | wxSize * resultptr; | |
24165 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24166 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24167 | } |
24168 | return resultobj; | |
24169 | fail: | |
24170 | return NULL; | |
24171 | } | |
24172 | ||
24173 | ||
24174 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24175 | PyObject *resultobj; | |
24176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24177 | wxPoint *arg2 = 0 ; | |
24178 | wxPoint result; | |
24179 | wxPoint temp2 ; | |
24180 | PyObject * obj0 = 0 ; | |
24181 | PyObject * obj1 = 0 ; | |
24182 | char *kwnames[] = { | |
24183 | (char *) "self",(char *) "pt", NULL | |
24184 | }; | |
24185 | ||
24186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24189 | { |
24190 | arg2 = &temp2; | |
24191 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24192 | } | |
24193 | { | |
24194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24195 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
24196 | ||
24197 | wxPyEndAllowThreads(__tstate); | |
24198 | if (PyErr_Occurred()) SWIG_fail; | |
24199 | } | |
24200 | { | |
24201 | wxPoint * resultptr; | |
24202 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24203 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24204 | } |
24205 | return resultobj; | |
24206 | fail: | |
24207 | return NULL; | |
24208 | } | |
24209 | ||
24210 | ||
24211 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24212 | PyObject *resultobj; | |
24213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24214 | wxSize *arg2 = 0 ; | |
24215 | wxSize result; | |
24216 | wxSize temp2 ; | |
24217 | PyObject * obj0 = 0 ; | |
24218 | PyObject * obj1 = 0 ; | |
24219 | char *kwnames[] = { | |
24220 | (char *) "self",(char *) "sz", NULL | |
24221 | }; | |
24222 | ||
24223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24226 | { |
24227 | arg2 = &temp2; | |
24228 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24229 | } | |
24230 | { | |
24231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24232 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24233 | ||
24234 | wxPyEndAllowThreads(__tstate); | |
24235 | if (PyErr_Occurred()) SWIG_fail; | |
24236 | } | |
24237 | { | |
24238 | wxSize * resultptr; | |
24239 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24241 | } |
24242 | return resultobj; | |
24243 | fail: | |
24244 | return NULL; | |
24245 | } | |
24246 | ||
24247 | ||
24248 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24249 | PyObject *resultobj; | |
24250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24251 | int arg2 ; | |
24252 | int arg3 ; | |
24253 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24254 | PyObject * obj1 = 0 ; |
24255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24256 | char *kwnames[] = { |
24257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24258 | }; | |
24259 | ||
8edf1c75 | 24260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24263 | arg2 = (int) SWIG_AsInt(obj1); | |
24264 | if (PyErr_Occurred()) SWIG_fail; | |
24265 | arg3 = (int) SWIG_AsInt(obj2); | |
24266 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24267 | { |
24268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24269 | (arg1)->WarpPointer(arg2,arg3); | |
24270 | ||
24271 | wxPyEndAllowThreads(__tstate); | |
24272 | if (PyErr_Occurred()) SWIG_fail; | |
24273 | } | |
24274 | Py_INCREF(Py_None); resultobj = Py_None; | |
24275 | return resultobj; | |
24276 | fail: | |
24277 | return NULL; | |
24278 | } | |
24279 | ||
24280 | ||
24281 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24282 | PyObject *resultobj; | |
24283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24284 | PyObject * obj0 = 0 ; | |
24285 | char *kwnames[] = { | |
24286 | (char *) "self", NULL | |
24287 | }; | |
24288 | ||
24289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24292 | { |
24293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24294 | (arg1)->CaptureMouse(); | |
24295 | ||
24296 | wxPyEndAllowThreads(__tstate); | |
24297 | if (PyErr_Occurred()) SWIG_fail; | |
24298 | } | |
24299 | Py_INCREF(Py_None); resultobj = Py_None; | |
24300 | return resultobj; | |
24301 | fail: | |
24302 | return NULL; | |
24303 | } | |
24304 | ||
24305 | ||
24306 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24307 | PyObject *resultobj; | |
24308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24309 | PyObject * obj0 = 0 ; | |
24310 | char *kwnames[] = { | |
24311 | (char *) "self", NULL | |
24312 | }; | |
24313 | ||
24314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24317 | { |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | (arg1)->ReleaseMouse(); | |
24320 | ||
24321 | wxPyEndAllowThreads(__tstate); | |
24322 | if (PyErr_Occurred()) SWIG_fail; | |
24323 | } | |
24324 | Py_INCREF(Py_None); resultobj = Py_None; | |
24325 | return resultobj; | |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxWindow *result; | |
24334 | char *kwnames[] = { | |
24335 | NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24339 | { | |
24340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24341 | result = (wxWindow *)wxWindow::GetCapture(); | |
24342 | ||
24343 | wxPyEndAllowThreads(__tstate); | |
24344 | if (PyErr_Occurred()) SWIG_fail; | |
24345 | } | |
24346 | { | |
24347 | resultobj = wxPyMake_wxObject(result); | |
24348 | } | |
24349 | return resultobj; | |
24350 | fail: | |
24351 | return NULL; | |
24352 | } | |
24353 | ||
24354 | ||
24355 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24356 | PyObject *resultobj; | |
24357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24358 | bool result; | |
24359 | PyObject * obj0 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24367 | { |
24368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24369 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24370 | ||
24371 | wxPyEndAllowThreads(__tstate); | |
24372 | if (PyErr_Occurred()) SWIG_fail; | |
24373 | } | |
4e760a36 | 24374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24375 | return resultobj; |
24376 | fail: | |
24377 | return NULL; | |
24378 | } | |
24379 | ||
24380 | ||
24381 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24382 | PyObject *resultobj; | |
24383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24384 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24385 | wxRect *arg3 = (wxRect *) NULL ; |
24386 | PyObject * obj0 = 0 ; | |
24387 | PyObject * obj1 = 0 ; | |
24388 | PyObject * obj2 = 0 ; | |
24389 | char *kwnames[] = { | |
24390 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24391 | }; | |
24392 | ||
24393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24396 | if (obj1) { |
2f4c0a16 RD |
24397 | arg2 = (bool) SWIG_AsBool(obj1); |
24398 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24399 | } |
24400 | if (obj2) { | |
2f4c0a16 RD |
24401 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
24402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24403 | } |
24404 | { | |
24405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24406 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24407 | ||
24408 | wxPyEndAllowThreads(__tstate); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | Py_INCREF(Py_None); resultobj = Py_None; | |
24412 | return resultobj; | |
24413 | fail: | |
24414 | return NULL; | |
24415 | } | |
24416 | ||
24417 | ||
24418 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24419 | PyObject *resultobj; | |
24420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24421 | wxRect *arg2 = 0 ; | |
24422 | wxRect temp2 ; | |
24423 | PyObject * obj0 = 0 ; | |
24424 | PyObject * obj1 = 0 ; | |
24425 | char *kwnames[] = { | |
24426 | (char *) "self",(char *) "rect", NULL | |
24427 | }; | |
24428 | ||
24429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24432 | { |
24433 | arg2 = &temp2; | |
24434 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24435 | } | |
24436 | { | |
24437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24438 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24439 | ||
24440 | wxPyEndAllowThreads(__tstate); | |
24441 | if (PyErr_Occurred()) SWIG_fail; | |
24442 | } | |
24443 | Py_INCREF(Py_None); resultobj = Py_None; | |
24444 | return resultobj; | |
24445 | fail: | |
24446 | return NULL; | |
24447 | } | |
24448 | ||
24449 | ||
24450 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24451 | PyObject *resultobj; | |
24452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24453 | PyObject * obj0 = 0 ; | |
24454 | char *kwnames[] = { | |
24455 | (char *) "self", NULL | |
24456 | }; | |
24457 | ||
24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24461 | { |
24462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24463 | (arg1)->Update(); | |
24464 | ||
24465 | wxPyEndAllowThreads(__tstate); | |
24466 | if (PyErr_Occurred()) SWIG_fail; | |
24467 | } | |
24468 | Py_INCREF(Py_None); resultobj = Py_None; | |
24469 | return resultobj; | |
24470 | fail: | |
24471 | return NULL; | |
24472 | } | |
24473 | ||
24474 | ||
24475 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24476 | PyObject *resultobj; | |
24477 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24486 | { |
24487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24488 | (arg1)->ClearBackground(); | |
24489 | ||
24490 | wxPyEndAllowThreads(__tstate); | |
24491 | if (PyErr_Occurred()) SWIG_fail; | |
24492 | } | |
24493 | Py_INCREF(Py_None); resultobj = Py_None; | |
24494 | return resultobj; | |
24495 | fail: | |
24496 | return NULL; | |
24497 | } | |
24498 | ||
24499 | ||
24500 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24501 | PyObject *resultobj; | |
24502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24503 | PyObject * obj0 = 0 ; | |
24504 | char *kwnames[] = { | |
24505 | (char *) "self", NULL | |
24506 | }; | |
24507 | ||
24508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24511 | { |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | (arg1)->Freeze(); | |
24514 | ||
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
24518 | Py_INCREF(Py_None); resultobj = Py_None; | |
24519 | return resultobj; | |
24520 | fail: | |
24521 | return NULL; | |
24522 | } | |
24523 | ||
24524 | ||
24525 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24526 | PyObject *resultobj; | |
24527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24528 | PyObject * obj0 = 0 ; | |
24529 | char *kwnames[] = { | |
24530 | (char *) "self", NULL | |
24531 | }; | |
24532 | ||
24533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24536 | { |
24537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24538 | (arg1)->Thaw(); | |
24539 | ||
24540 | wxPyEndAllowThreads(__tstate); | |
24541 | if (PyErr_Occurred()) SWIG_fail; | |
24542 | } | |
24543 | Py_INCREF(Py_None); resultobj = Py_None; | |
24544 | return resultobj; | |
24545 | fail: | |
24546 | return NULL; | |
24547 | } | |
24548 | ||
24549 | ||
24550 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24551 | PyObject *resultobj; | |
24552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24553 | wxDC *arg2 = 0 ; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | PyObject * obj1 = 0 ; | |
24556 | char *kwnames[] = { | |
24557 | (char *) "self",(char *) "dc", NULL | |
24558 | }; | |
24559 | ||
24560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24564 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24565 | SWIG_fail; | |
d14a1e28 | 24566 | if (arg2 == NULL) { |
2f4c0a16 RD |
24567 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24568 | SWIG_fail; | |
d14a1e28 RD |
24569 | } |
24570 | { | |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | (arg1)->PrepareDC(*arg2); | |
24573 | ||
24574 | wxPyEndAllowThreads(__tstate); | |
24575 | if (PyErr_Occurred()) SWIG_fail; | |
24576 | } | |
24577 | Py_INCREF(Py_None); resultobj = Py_None; | |
24578 | return resultobj; | |
24579 | fail: | |
24580 | return NULL; | |
24581 | } | |
24582 | ||
24583 | ||
24584 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24585 | PyObject *resultobj; | |
24586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24587 | wxRegion *result; | |
24588 | PyObject * obj0 = 0 ; | |
24589 | char *kwnames[] = { | |
24590 | (char *) "self", NULL | |
24591 | }; | |
24592 | ||
24593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24596 | { |
24597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24598 | { | |
24599 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24600 | result = (wxRegion *) &_result_ref; | |
24601 | } | |
24602 | ||
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
2f4c0a16 | 24606 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
24607 | return resultobj; |
24608 | fail: | |
24609 | return NULL; | |
24610 | } | |
24611 | ||
24612 | ||
24613 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24614 | PyObject *resultobj; | |
24615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24616 | wxRect result; | |
24617 | PyObject * obj0 = 0 ; | |
24618 | char *kwnames[] = { | |
24619 | (char *) "self", NULL | |
24620 | }; | |
24621 | ||
24622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24625 | { |
24626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24627 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24628 | ||
24629 | wxPyEndAllowThreads(__tstate); | |
24630 | if (PyErr_Occurred()) SWIG_fail; | |
24631 | } | |
24632 | { | |
24633 | wxRect * resultptr; | |
24634 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 24635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24636 | } |
24637 | return resultobj; | |
24638 | fail: | |
24639 | return NULL; | |
24640 | } | |
24641 | ||
24642 | ||
24643 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24644 | PyObject *resultobj; | |
24645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24646 | int arg2 ; | |
24647 | int arg3 ; | |
24648 | int arg4 = (int) 1 ; | |
24649 | int arg5 = (int) 1 ; | |
24650 | bool result; | |
24651 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24652 | PyObject * obj1 = 0 ; |
24653 | PyObject * obj2 = 0 ; | |
24654 | PyObject * obj3 = 0 ; | |
24655 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
24656 | char *kwnames[] = { |
24657 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
24658 | }; | |
24659 | ||
8edf1c75 | 24660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
24661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24663 | arg2 = (int) SWIG_AsInt(obj1); | |
24664 | if (PyErr_Occurred()) SWIG_fail; | |
24665 | arg3 = (int) SWIG_AsInt(obj2); | |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24667 | if (obj3) { |
2f4c0a16 RD |
24668 | arg4 = (int) SWIG_AsInt(obj3); |
24669 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
24670 | } |
24671 | if (obj4) { | |
2f4c0a16 RD |
24672 | arg5 = (int) SWIG_AsInt(obj4); |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24674 | } |
d14a1e28 RD |
24675 | { |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
24678 | ||
24679 | wxPyEndAllowThreads(__tstate); | |
24680 | if (PyErr_Occurred()) SWIG_fail; | |
24681 | } | |
4e760a36 | 24682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24683 | return resultobj; |
24684 | fail: | |
24685 | return NULL; | |
24686 | } | |
24687 | ||
24688 | ||
24689 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24690 | PyObject *resultobj; | |
24691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24692 | wxPoint *arg2 = 0 ; | |
24693 | bool result; | |
24694 | wxPoint temp2 ; | |
24695 | PyObject * obj0 = 0 ; | |
24696 | PyObject * obj1 = 0 ; | |
24697 | char *kwnames[] = { | |
24698 | (char *) "self",(char *) "pt", NULL | |
24699 | }; | |
24700 | ||
24701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24704 | { |
24705 | arg2 = &temp2; | |
24706 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24707 | } | |
24708 | { | |
24709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24710 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
24711 | ||
24712 | wxPyEndAllowThreads(__tstate); | |
24713 | if (PyErr_Occurred()) SWIG_fail; | |
24714 | } | |
4e760a36 | 24715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24716 | return resultobj; |
24717 | fail: | |
24718 | return NULL; | |
24719 | } | |
24720 | ||
24721 | ||
24722 | static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24723 | PyObject *resultobj; | |
24724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24725 | wxRect *arg2 = 0 ; | |
24726 | bool result; | |
24727 | wxRect temp2 ; | |
24728 | PyObject * obj0 = 0 ; | |
24729 | PyObject * obj1 = 0 ; | |
24730 | char *kwnames[] = { | |
24731 | (char *) "self",(char *) "rect", NULL | |
24732 | }; | |
24733 | ||
24734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24737 | { |
24738 | arg2 = &temp2; | |
24739 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24740 | } | |
24741 | { | |
24742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24743 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
24744 | ||
24745 | wxPyEndAllowThreads(__tstate); | |
24746 | if (PyErr_Occurred()) SWIG_fail; | |
24747 | } | |
4e760a36 | 24748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24749 | return resultobj; |
24750 | fail: | |
24751 | return NULL; | |
24752 | } | |
24753 | ||
24754 | ||
24755 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24756 | PyObject *resultobj; | |
24757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24758 | wxColour *arg2 = 0 ; | |
24759 | bool result; | |
24760 | wxColour temp2 ; | |
24761 | PyObject * obj0 = 0 ; | |
24762 | PyObject * obj1 = 0 ; | |
24763 | char *kwnames[] = { | |
24764 | (char *) "self",(char *) "colour", NULL | |
24765 | }; | |
24766 | ||
24767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24770 | { |
24771 | arg2 = &temp2; | |
24772 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24773 | } | |
24774 | { | |
24775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24776 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24777 | ||
24778 | wxPyEndAllowThreads(__tstate); | |
24779 | if (PyErr_Occurred()) SWIG_fail; | |
24780 | } | |
4e760a36 | 24781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24782 | return resultobj; |
24783 | fail: | |
24784 | return NULL; | |
24785 | } | |
24786 | ||
24787 | ||
24788 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24789 | PyObject *resultobj; | |
24790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24791 | wxColour *arg2 = 0 ; | |
24792 | bool result; | |
24793 | wxColour temp2 ; | |
24794 | PyObject * obj0 = 0 ; | |
24795 | PyObject * obj1 = 0 ; | |
24796 | char *kwnames[] = { | |
24797 | (char *) "self",(char *) "colour", NULL | |
24798 | }; | |
24799 | ||
24800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24803 | { |
24804 | arg2 = &temp2; | |
24805 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24806 | } | |
24807 | { | |
24808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24809 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24810 | ||
24811 | wxPyEndAllowThreads(__tstate); | |
24812 | if (PyErr_Occurred()) SWIG_fail; | |
24813 | } | |
4e760a36 | 24814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24815 | return resultobj; |
24816 | fail: | |
24817 | return NULL; | |
24818 | } | |
24819 | ||
24820 | ||
24821 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24822 | PyObject *resultobj; | |
24823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24824 | wxColour result; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | char *kwnames[] = { | |
24827 | (char *) "self", NULL | |
24828 | }; | |
24829 | ||
24830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24833 | { |
24834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24835 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
24836 | ||
24837 | wxPyEndAllowThreads(__tstate); | |
24838 | if (PyErr_Occurred()) SWIG_fail; | |
24839 | } | |
24840 | { | |
24841 | wxColour * resultptr; | |
24842 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24844 | } |
24845 | return resultobj; | |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24852 | PyObject *resultobj; | |
24853 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24854 | wxColour result; | |
24855 | PyObject * obj0 = 0 ; | |
24856 | char *kwnames[] = { | |
24857 | (char *) "self", NULL | |
24858 | }; | |
24859 | ||
24860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24863 | { |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
24870 | { | |
24871 | wxColour * resultptr; | |
24872 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24874 | } |
24875 | return resultobj; | |
24876 | fail: | |
24877 | return NULL; | |
24878 | } | |
24879 | ||
24880 | ||
24881 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24882 | PyObject *resultobj; | |
24883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24884 | wxCursor *arg2 = 0 ; | |
24885 | bool result; | |
24886 | PyObject * obj0 = 0 ; | |
24887 | PyObject * obj1 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self",(char *) "cursor", NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24895 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24897 | SWIG_fail; | |
d14a1e28 | 24898 | if (arg2 == NULL) { |
2f4c0a16 RD |
24899 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24900 | SWIG_fail; | |
d14a1e28 RD |
24901 | } |
24902 | { | |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
24905 | ||
24906 | wxPyEndAllowThreads(__tstate); | |
24907 | if (PyErr_Occurred()) SWIG_fail; | |
24908 | } | |
4e760a36 | 24909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24910 | return resultobj; |
24911 | fail: | |
24912 | return NULL; | |
24913 | } | |
24914 | ||
24915 | ||
24916 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24917 | PyObject *resultobj; | |
24918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24919 | wxCursor *result; | |
24920 | PyObject * obj0 = 0 ; | |
24921 | char *kwnames[] = { | |
24922 | (char *) "self", NULL | |
24923 | }; | |
24924 | ||
24925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24928 | { |
24929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24930 | { | |
24931 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
24932 | result = (wxCursor *) &_result_ref; | |
24933 | } | |
24934 | ||
24935 | wxPyEndAllowThreads(__tstate); | |
24936 | if (PyErr_Occurred()) SWIG_fail; | |
24937 | } | |
2f4c0a16 | 24938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
24939 | return resultobj; |
24940 | fail: | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
24945 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24946 | PyObject *resultobj; | |
24947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24948 | wxFont *arg2 = 0 ; | |
24949 | bool result; | |
24950 | PyObject * obj0 = 0 ; | |
24951 | PyObject * obj1 = 0 ; | |
24952 | char *kwnames[] = { | |
24953 | (char *) "self",(char *) "font", NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
24960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24961 | SWIG_fail; | |
d14a1e28 | 24962 | if (arg2 == NULL) { |
2f4c0a16 RD |
24963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24964 | SWIG_fail; | |
d14a1e28 RD |
24965 | } |
24966 | { | |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | } | |
4e760a36 | 24973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
24974 | return resultobj; |
24975 | fail: | |
24976 | return NULL; | |
24977 | } | |
24978 | ||
24979 | ||
24980 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24981 | PyObject *resultobj; | |
24982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24983 | wxFont *result; | |
24984 | PyObject * obj0 = 0 ; | |
24985 | char *kwnames[] = { | |
24986 | (char *) "self", NULL | |
24987 | }; | |
24988 | ||
24989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24992 | { |
24993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24994 | { | |
24995 | wxFont &_result_ref = (arg1)->GetFont(); | |
24996 | result = (wxFont *) &_result_ref; | |
24997 | } | |
24998 | ||
24999 | wxPyEndAllowThreads(__tstate); | |
25000 | if (PyErr_Occurred()) SWIG_fail; | |
25001 | } | |
2f4c0a16 | 25002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
25003 | return resultobj; |
25004 | fail: | |
25005 | return NULL; | |
25006 | } | |
25007 | ||
25008 | ||
25009 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25010 | PyObject *resultobj; | |
25011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25012 | wxCaret *arg2 = (wxCaret *) 0 ; | |
25013 | PyObject * obj0 = 0 ; | |
25014 | PyObject * obj1 = 0 ; | |
25015 | char *kwnames[] = { | |
25016 | (char *) "self",(char *) "caret", NULL | |
25017 | }; | |
25018 | ||
25019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
25023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25024 | { |
25025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25026 | (arg1)->SetCaret(arg2); | |
25027 | ||
25028 | wxPyEndAllowThreads(__tstate); | |
25029 | if (PyErr_Occurred()) SWIG_fail; | |
25030 | } | |
25031 | Py_INCREF(Py_None); resultobj = Py_None; | |
25032 | return resultobj; | |
25033 | fail: | |
25034 | return NULL; | |
25035 | } | |
25036 | ||
25037 | ||
25038 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25039 | PyObject *resultobj; | |
25040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25041 | wxCaret *result; | |
25042 | PyObject * obj0 = 0 ; | |
25043 | char *kwnames[] = { | |
25044 | (char *) "self", NULL | |
25045 | }; | |
25046 | ||
25047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25050 | { |
25051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25052 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
25053 | ||
25054 | wxPyEndAllowThreads(__tstate); | |
25055 | if (PyErr_Occurred()) SWIG_fail; | |
25056 | } | |
2f4c0a16 | 25057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
25058 | return resultobj; |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
25064 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25065 | PyObject *resultobj; | |
25066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25067 | int result; | |
25068 | PyObject * obj0 = 0 ; | |
25069 | char *kwnames[] = { | |
25070 | (char *) "self", NULL | |
25071 | }; | |
25072 | ||
25073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25076 | { |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
25079 | ||
25080 | wxPyEndAllowThreads(__tstate); | |
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
2f4c0a16 | 25083 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25084 | return resultobj; |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
25090 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25091 | PyObject *resultobj; | |
25092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25093 | int result; | |
25094 | PyObject * obj0 = 0 ; | |
25095 | char *kwnames[] = { | |
25096 | (char *) "self", NULL | |
25097 | }; | |
25098 | ||
25099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25102 | { |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25104 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
25105 | ||
25106 | wxPyEndAllowThreads(__tstate); | |
25107 | if (PyErr_Occurred()) SWIG_fail; | |
25108 | } | |
2f4c0a16 | 25109 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25110 | return resultobj; |
25111 | fail: | |
25112 | return NULL; | |
25113 | } | |
25114 | ||
25115 | ||
25116 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25117 | PyObject *resultobj; | |
25118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25119 | wxString *arg2 = 0 ; | |
25120 | int *arg3 = (int *) 0 ; | |
25121 | int *arg4 = (int *) 0 ; | |
423f194a | 25122 | bool temp2 = False ; |
d14a1e28 RD |
25123 | int temp3 ; |
25124 | int temp4 ; | |
25125 | PyObject * obj0 = 0 ; | |
25126 | PyObject * obj1 = 0 ; | |
25127 | char *kwnames[] = { | |
25128 | (char *) "self",(char *) "string", NULL | |
25129 | }; | |
25130 | ||
25131 | arg3 = &temp3; | |
25132 | arg4 = &temp4; | |
25133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25136 | { |
25137 | arg2 = wxString_in_helper(obj1); | |
25138 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25139 | temp2 = True; |
d14a1e28 RD |
25140 | } |
25141 | { | |
25142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25143 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
25144 | ||
25145 | wxPyEndAllowThreads(__tstate); | |
25146 | if (PyErr_Occurred()) SWIG_fail; | |
25147 | } | |
25148 | Py_INCREF(Py_None); resultobj = Py_None; | |
25149 | { | |
25150 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25151 | resultobj = t_output_helper(resultobj,o); | |
25152 | } | |
25153 | { | |
25154 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25155 | resultobj = t_output_helper(resultobj,o); | |
25156 | } | |
25157 | { | |
25158 | if (temp2) | |
25159 | delete arg2; | |
25160 | } | |
25161 | return resultobj; | |
25162 | fail: | |
25163 | { | |
25164 | if (temp2) | |
25165 | delete arg2; | |
25166 | } | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25174 | wxString *arg2 = 0 ; | |
25175 | int *arg3 = (int *) 0 ; | |
25176 | int *arg4 = (int *) 0 ; | |
25177 | int *arg5 = (int *) 0 ; | |
25178 | int *arg6 = (int *) 0 ; | |
25179 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 25180 | bool temp2 = False ; |
d14a1e28 RD |
25181 | int temp3 ; |
25182 | int temp4 ; | |
25183 | int temp5 ; | |
25184 | int temp6 ; | |
25185 | PyObject * obj0 = 0 ; | |
25186 | PyObject * obj1 = 0 ; | |
25187 | PyObject * obj2 = 0 ; | |
25188 | char *kwnames[] = { | |
25189 | (char *) "self",(char *) "string",(char *) "font", NULL | |
25190 | }; | |
25191 | ||
25192 | arg3 = &temp3; | |
25193 | arg4 = &temp4; | |
25194 | arg5 = &temp5; | |
25195 | arg6 = &temp6; | |
25196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25199 | { |
25200 | arg2 = wxString_in_helper(obj1); | |
25201 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25202 | temp2 = True; |
d14a1e28 RD |
25203 | } |
25204 | if (obj2) { | |
2f4c0a16 RD |
25205 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
25206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25207 | } |
25208 | { | |
25209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25210 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
25211 | ||
25212 | wxPyEndAllowThreads(__tstate); | |
25213 | if (PyErr_Occurred()) SWIG_fail; | |
25214 | } | |
25215 | Py_INCREF(Py_None); resultobj = Py_None; | |
25216 | { | |
25217 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25218 | resultobj = t_output_helper(resultobj,o); | |
25219 | } | |
25220 | { | |
25221 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25222 | resultobj = t_output_helper(resultobj,o); | |
25223 | } | |
25224 | { | |
25225 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
25226 | resultobj = t_output_helper(resultobj,o); | |
25227 | } | |
25228 | { | |
25229 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
25230 | resultobj = t_output_helper(resultobj,o); | |
25231 | } | |
25232 | { | |
25233 | if (temp2) | |
25234 | delete arg2; | |
25235 | } | |
25236 | return resultobj; | |
25237 | fail: | |
25238 | { | |
25239 | if (temp2) | |
25240 | delete arg2; | |
25241 | } | |
25242 | return NULL; | |
25243 | } | |
25244 | ||
25245 | ||
25246 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25247 | PyObject *resultobj; | |
25248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25249 | int *arg2 = (int *) 0 ; | |
25250 | int *arg3 = (int *) 0 ; | |
25251 | int temp2 ; | |
25252 | int temp3 ; | |
25253 | PyObject * obj0 = 0 ; | |
25254 | PyObject * obj1 = 0 ; | |
25255 | PyObject * obj2 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25263 | { |
25264 | temp2 = PyInt_AsLong(obj1); | |
25265 | if (PyErr_Occurred()) SWIG_fail; | |
25266 | arg2 = &temp2; | |
25267 | } | |
25268 | { | |
25269 | temp3 = PyInt_AsLong(obj2); | |
25270 | if (PyErr_Occurred()) SWIG_fail; | |
25271 | arg3 = &temp3; | |
25272 | } | |
25273 | { | |
25274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25275 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25276 | ||
25277 | wxPyEndAllowThreads(__tstate); | |
25278 | if (PyErr_Occurred()) SWIG_fail; | |
25279 | } | |
25280 | Py_INCREF(Py_None); resultobj = Py_None; | |
25281 | { | |
25282 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25283 | resultobj = t_output_helper(resultobj,o); | |
25284 | } | |
25285 | { | |
25286 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25287 | resultobj = t_output_helper(resultobj,o); | |
25288 | } | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25298 | int *arg2 = (int *) 0 ; | |
25299 | int *arg3 = (int *) 0 ; | |
25300 | int temp2 ; | |
25301 | int temp3 ; | |
25302 | PyObject * obj0 = 0 ; | |
25303 | PyObject * obj1 = 0 ; | |
25304 | PyObject * obj2 = 0 ; | |
25305 | char *kwnames[] = { | |
25306 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25307 | }; | |
25308 | ||
25309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25312 | { |
25313 | temp2 = PyInt_AsLong(obj1); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | arg2 = &temp2; | |
25316 | } | |
25317 | { | |
25318 | temp3 = PyInt_AsLong(obj2); | |
25319 | if (PyErr_Occurred()) SWIG_fail; | |
25320 | arg3 = &temp3; | |
25321 | } | |
25322 | { | |
25323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25324 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25325 | ||
25326 | wxPyEndAllowThreads(__tstate); | |
25327 | if (PyErr_Occurred()) SWIG_fail; | |
25328 | } | |
25329 | Py_INCREF(Py_None); resultobj = Py_None; | |
25330 | { | |
25331 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25332 | resultobj = t_output_helper(resultobj,o); | |
25333 | } | |
25334 | { | |
25335 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25336 | resultobj = t_output_helper(resultobj,o); | |
25337 | } | |
25338 | return resultobj; | |
25339 | fail: | |
25340 | return NULL; | |
25341 | } | |
25342 | ||
25343 | ||
25344 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25345 | PyObject *resultobj; | |
25346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25347 | wxPoint *arg2 = 0 ; | |
25348 | wxPoint result; | |
25349 | wxPoint temp2 ; | |
25350 | PyObject * obj0 = 0 ; | |
25351 | PyObject * obj1 = 0 ; | |
25352 | char *kwnames[] = { | |
25353 | (char *) "self",(char *) "pt", NULL | |
25354 | }; | |
25355 | ||
25356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25359 | { |
25360 | arg2 = &temp2; | |
25361 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25362 | } | |
25363 | { | |
25364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25365 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25366 | ||
25367 | wxPyEndAllowThreads(__tstate); | |
25368 | if (PyErr_Occurred()) SWIG_fail; | |
25369 | } | |
25370 | { | |
25371 | wxPoint * resultptr; | |
25372 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25374 | } |
25375 | return resultobj; | |
25376 | fail: | |
25377 | return NULL; | |
25378 | } | |
25379 | ||
25380 | ||
25381 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25382 | PyObject *resultobj; | |
25383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25384 | wxPoint *arg2 = 0 ; | |
25385 | wxPoint result; | |
25386 | wxPoint temp2 ; | |
25387 | PyObject * obj0 = 0 ; | |
25388 | PyObject * obj1 = 0 ; | |
25389 | char *kwnames[] = { | |
25390 | (char *) "self",(char *) "pt", NULL | |
25391 | }; | |
25392 | ||
25393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25396 | { |
25397 | arg2 = &temp2; | |
25398 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25399 | } | |
25400 | { | |
25401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25402 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25403 | ||
25404 | wxPyEndAllowThreads(__tstate); | |
25405 | if (PyErr_Occurred()) SWIG_fail; | |
25406 | } | |
25407 | { | |
25408 | wxPoint * resultptr; | |
25409 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25411 | } |
25412 | return resultobj; | |
25413 | fail: | |
25414 | return NULL; | |
25415 | } | |
25416 | ||
25417 | ||
25418 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25419 | PyObject *resultobj; | |
25420 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25421 | int arg2 ; |
25422 | int arg3 ; | |
d14a1e28 RD |
25423 | int result; |
25424 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25425 | PyObject * obj1 = 0 ; |
25426 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25427 | char *kwnames[] = { |
25428 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25429 | }; | |
25430 | ||
8edf1c75 | 25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25434 | arg2 = (int) SWIG_AsInt(obj1); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
25436 | arg3 = (int) SWIG_AsInt(obj2); | |
25437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25438 | { |
25439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25440 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25441 | ||
25442 | wxPyEndAllowThreads(__tstate); | |
25443 | if (PyErr_Occurred()) SWIG_fail; | |
25444 | } | |
2f4c0a16 | 25445 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25446 | return resultobj; |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
25452 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25453 | PyObject *resultobj; | |
25454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25455 | wxPoint *arg2 = 0 ; | |
25456 | int result; | |
25457 | wxPoint temp2 ; | |
25458 | PyObject * obj0 = 0 ; | |
25459 | PyObject * obj1 = 0 ; | |
25460 | char *kwnames[] = { | |
25461 | (char *) "self",(char *) "pt", NULL | |
25462 | }; | |
25463 | ||
25464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25467 | { |
25468 | arg2 = &temp2; | |
25469 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25470 | } | |
25471 | { | |
25472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25473 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25474 | ||
25475 | wxPyEndAllowThreads(__tstate); | |
25476 | if (PyErr_Occurred()) SWIG_fail; | |
25477 | } | |
2f4c0a16 | 25478 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25479 | return resultobj; |
25480 | fail: | |
25481 | return NULL; | |
25482 | } | |
25483 | ||
25484 | ||
2f4c0a16 | 25485 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25486 | PyObject *resultobj; |
25487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25488 | long arg2 ; | |
25489 | int result; | |
25490 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25491 | PyObject * obj1 = 0 ; |
d14a1e28 | 25492 | |
2f4c0a16 RD |
25493 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
25494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25496 | arg2 = (long) SWIG_AsLong(obj1); | |
25497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25498 | { |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25501 | ||
25502 | wxPyEndAllowThreads(__tstate); | |
25503 | if (PyErr_Occurred()) SWIG_fail; | |
25504 | } | |
2f4c0a16 | 25505 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25506 | return resultobj; |
25507 | fail: | |
25508 | return NULL; | |
25509 | } | |
25510 | ||
25511 | ||
2f4c0a16 | 25512 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25513 | PyObject *resultobj; |
25514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25515 | int result; | |
25516 | PyObject * obj0 = 0 ; | |
d14a1e28 | 25517 | |
2f4c0a16 RD |
25518 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
25519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25521 | { |
25522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25523 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25524 | ||
25525 | wxPyEndAllowThreads(__tstate); | |
25526 | if (PyErr_Occurred()) SWIG_fail; | |
25527 | } | |
2f4c0a16 | 25528 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25529 | return resultobj; |
25530 | fail: | |
25531 | return NULL; | |
25532 | } | |
25533 | ||
25534 | ||
2f4c0a16 RD |
25535 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
25536 | int argc; | |
25537 | PyObject *argv[3]; | |
25538 | int ii; | |
25539 | ||
25540 | argc = PyObject_Length(args); | |
25541 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
25542 | argv[ii] = PyTuple_GetItem(args,ii); | |
25543 | } | |
25544 | if (argc == 1) { | |
25545 | int _v; | |
25546 | { | |
25547 | void *ptr; | |
25548 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25549 | _v = 0; | |
25550 | PyErr_Clear(); | |
25551 | } else { | |
25552 | _v = 1; | |
25553 | } | |
25554 | } | |
25555 | if (_v) { | |
25556 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
25557 | } | |
25558 | } | |
25559 | if (argc == 2) { | |
25560 | int _v; | |
25561 | { | |
25562 | void *ptr; | |
25563 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25564 | _v = 0; | |
25565 | PyErr_Clear(); | |
25566 | } else { | |
25567 | _v = 1; | |
25568 | } | |
25569 | } | |
25570 | if (_v) { | |
25571 | _v = SWIG_CheckLong(argv[1]); | |
25572 | if (_v) { | |
25573 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
25574 | } | |
25575 | } | |
25576 | } | |
25577 | ||
25578 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
25579 | return NULL; | |
25580 | } | |
25581 | ||
25582 | ||
d14a1e28 RD |
25583 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
25584 | PyObject *resultobj; | |
25585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25586 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25587 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25589 | char *kwnames[] = { |
25590 | (char *) "self",(char *) "flags", NULL | |
25591 | }; | |
25592 | ||
8edf1c75 | 25593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25596 | if (obj1) { |
2f4c0a16 RD |
25597 | arg2 = (long) SWIG_AsLong(obj1); |
25598 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25599 | } |
d14a1e28 RD |
25600 | { |
25601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25602 | (arg1)->UpdateWindowUI(arg2); | |
25603 | ||
25604 | wxPyEndAllowThreads(__tstate); | |
25605 | if (PyErr_Occurred()) SWIG_fail; | |
25606 | } | |
25607 | Py_INCREF(Py_None); resultobj = Py_None; | |
25608 | return resultobj; | |
25609 | fail: | |
25610 | return NULL; | |
25611 | } | |
25612 | ||
25613 | ||
25614 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25615 | PyObject *resultobj; | |
25616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25617 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25618 | int arg3 ; | |
25619 | int arg4 ; | |
25620 | bool result; | |
25621 | PyObject * obj0 = 0 ; | |
25622 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25623 | PyObject * obj2 = 0 ; |
25624 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25625 | char *kwnames[] = { |
25626 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
25627 | }; | |
25628 | ||
8edf1c75 | 25629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
25633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25634 | arg3 = (int) SWIG_AsInt(obj2); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | arg4 = (int) SWIG_AsInt(obj3); | |
25637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25638 | { |
25639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25640 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
25641 | ||
25642 | wxPyEndAllowThreads(__tstate); | |
25643 | if (PyErr_Occurred()) SWIG_fail; | |
25644 | } | |
4e760a36 | 25645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25646 | return resultobj; |
25647 | fail: | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
25652 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25653 | PyObject *resultobj; | |
25654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25655 | wxMenu *arg2 = (wxMenu *) 0 ; | |
25656 | wxPoint *arg3 = 0 ; | |
25657 | bool result; | |
25658 | wxPoint temp3 ; | |
25659 | PyObject * obj0 = 0 ; | |
25660 | PyObject * obj1 = 0 ; | |
25661 | PyObject * obj2 = 0 ; | |
25662 | char *kwnames[] = { | |
25663 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
25664 | }; | |
25665 | ||
25666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
25670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25671 | { |
25672 | arg3 = &temp3; | |
25673 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25674 | } | |
25675 | { | |
25676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25677 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
25678 | ||
25679 | wxPyEndAllowThreads(__tstate); | |
25680 | if (PyErr_Occurred()) SWIG_fail; | |
25681 | } | |
4e760a36 | 25682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25683 | return resultobj; |
25684 | fail: | |
25685 | return NULL; | |
25686 | } | |
25687 | ||
25688 | ||
25689 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25690 | PyObject *resultobj; | |
25691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25692 | long result; | |
25693 | PyObject * obj0 = 0 ; | |
25694 | char *kwnames[] = { | |
25695 | (char *) "self", NULL | |
25696 | }; | |
25697 | ||
25698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25701 | { |
25702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25703 | result = (long)wxWindow_GetHandle(arg1); | |
25704 | ||
25705 | wxPyEndAllowThreads(__tstate); | |
25706 | if (PyErr_Occurred()) SWIG_fail; | |
25707 | } | |
2f4c0a16 | 25708 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
25709 | return resultobj; |
25710 | fail: | |
25711 | return NULL; | |
25712 | } | |
25713 | ||
25714 | ||
25715 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25716 | PyObject *resultobj; | |
25717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25718 | wxPaintEvent *arg2 = 0 ; | |
25719 | PyObject * obj0 = 0 ; | |
25720 | PyObject * obj1 = 0 ; | |
25721 | char *kwnames[] = { | |
25722 | (char *) "self",(char *) "event", NULL | |
25723 | }; | |
25724 | ||
25725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
25729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25730 | SWIG_fail; | |
d14a1e28 | 25731 | if (arg2 == NULL) { |
2f4c0a16 RD |
25732 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25733 | SWIG_fail; | |
d14a1e28 RD |
25734 | } |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | (arg1)->OnPaint(*arg2); | |
25738 | ||
25739 | wxPyEndAllowThreads(__tstate); | |
25740 | if (PyErr_Occurred()) SWIG_fail; | |
25741 | } | |
25742 | Py_INCREF(Py_None); resultobj = Py_None; | |
25743 | return resultobj; | |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25750 | PyObject *resultobj; | |
25751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25752 | int arg2 ; | |
25753 | bool result; | |
25754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25756 | char *kwnames[] = { |
25757 | (char *) "self",(char *) "orient", NULL | |
25758 | }; | |
25759 | ||
8edf1c75 | 25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25763 | arg2 = (int) SWIG_AsInt(obj1); | |
25764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25765 | { |
25766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25767 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
25768 | ||
25769 | wxPyEndAllowThreads(__tstate); | |
25770 | if (PyErr_Occurred()) SWIG_fail; | |
25771 | } | |
4e760a36 | 25772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
25773 | return resultobj; |
25774 | fail: | |
25775 | return NULL; | |
25776 | } | |
25777 | ||
25778 | ||
25779 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25780 | PyObject *resultobj; | |
25781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25782 | int arg2 ; | |
25783 | int arg3 ; | |
25784 | int arg4 ; | |
25785 | int arg5 ; | |
423f194a | 25786 | bool arg6 = (bool) True ; |
d14a1e28 | 25787 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25788 | PyObject * obj1 = 0 ; |
25789 | PyObject * obj2 = 0 ; | |
25790 | PyObject * obj3 = 0 ; | |
25791 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25792 | PyObject * obj5 = 0 ; |
25793 | char *kwnames[] = { | |
2f4c0a16 | 25794 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
25795 | }; |
25796 | ||
8edf1c75 | 25797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
25798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25800 | arg2 = (int) SWIG_AsInt(obj1); | |
25801 | if (PyErr_Occurred()) SWIG_fail; | |
25802 | arg3 = (int) SWIG_AsInt(obj2); | |
25803 | if (PyErr_Occurred()) SWIG_fail; | |
25804 | arg4 = (int) SWIG_AsInt(obj3); | |
25805 | if (PyErr_Occurred()) SWIG_fail; | |
25806 | arg5 = (int) SWIG_AsInt(obj4); | |
25807 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25808 | if (obj5) { |
2f4c0a16 RD |
25809 | arg6 = (bool) SWIG_AsBool(obj5); |
25810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25811 | } |
25812 | { | |
25813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25814 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
25815 | ||
25816 | wxPyEndAllowThreads(__tstate); | |
25817 | if (PyErr_Occurred()) SWIG_fail; | |
25818 | } | |
25819 | Py_INCREF(Py_None); resultobj = Py_None; | |
25820 | return resultobj; | |
25821 | fail: | |
25822 | return NULL; | |
25823 | } | |
25824 | ||
25825 | ||
25826 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25827 | PyObject *resultobj; | |
25828 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25829 | int arg2 ; | |
25830 | int arg3 ; | |
423f194a | 25831 | bool arg4 = (bool) True ; |
d14a1e28 | 25832 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
25833 | PyObject * obj1 = 0 ; |
25834 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25835 | PyObject * obj3 = 0 ; |
25836 | char *kwnames[] = { | |
2f4c0a16 | 25837 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
25838 | }; |
25839 | ||
8edf1c75 | 25840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25843 | arg2 = (int) SWIG_AsInt(obj1); | |
25844 | if (PyErr_Occurred()) SWIG_fail; | |
25845 | arg3 = (int) SWIG_AsInt(obj2); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25847 | if (obj3) { |
2f4c0a16 RD |
25848 | arg4 = (bool) SWIG_AsBool(obj3); |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25850 | } |
25851 | { | |
25852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25853 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
25854 | ||
25855 | wxPyEndAllowThreads(__tstate); | |
25856 | if (PyErr_Occurred()) SWIG_fail; | |
25857 | } | |
25858 | Py_INCREF(Py_None); resultobj = Py_None; | |
25859 | return resultobj; | |
25860 | fail: | |
25861 | return NULL; | |
25862 | } | |
25863 | ||
25864 | ||
25865 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25866 | PyObject *resultobj; | |
25867 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25868 | int arg2 ; | |
25869 | int result; | |
25870 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25871 | PyObject * obj1 = 0 ; |
d14a1e28 | 25872 | char *kwnames[] = { |
2f4c0a16 | 25873 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25874 | }; |
25875 | ||
8edf1c75 | 25876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25879 | arg2 = (int) SWIG_AsInt(obj1); | |
25880 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25881 | { |
25882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25883 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
25884 | ||
25885 | wxPyEndAllowThreads(__tstate); | |
25886 | if (PyErr_Occurred()) SWIG_fail; | |
25887 | } | |
2f4c0a16 | 25888 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25889 | return resultobj; |
25890 | fail: | |
25891 | return NULL; | |
25892 | } | |
25893 | ||
25894 | ||
25895 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25896 | PyObject *resultobj; | |
25897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25898 | int arg2 ; | |
25899 | int result; | |
25900 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25901 | PyObject * obj1 = 0 ; |
d14a1e28 | 25902 | char *kwnames[] = { |
2f4c0a16 | 25903 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25904 | }; |
25905 | ||
8edf1c75 | 25906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25909 | arg2 = (int) SWIG_AsInt(obj1); | |
25910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25911 | { |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
25914 | ||
25915 | wxPyEndAllowThreads(__tstate); | |
25916 | if (PyErr_Occurred()) SWIG_fail; | |
25917 | } | |
2f4c0a16 | 25918 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25919 | return resultobj; |
25920 | fail: | |
25921 | return NULL; | |
25922 | } | |
25923 | ||
25924 | ||
25925 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25926 | PyObject *resultobj; | |
25927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25928 | int arg2 ; | |
25929 | int result; | |
25930 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25931 | PyObject * obj1 = 0 ; |
d14a1e28 | 25932 | char *kwnames[] = { |
2f4c0a16 | 25933 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
25934 | }; |
25935 | ||
8edf1c75 | 25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25939 | arg2 = (int) SWIG_AsInt(obj1); | |
25940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25941 | { |
25942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25943 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
25944 | ||
25945 | wxPyEndAllowThreads(__tstate); | |
25946 | if (PyErr_Occurred()) SWIG_fail; | |
25947 | } | |
2f4c0a16 | 25948 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25949 | return resultobj; |
25950 | fail: | |
25951 | return NULL; | |
25952 | } | |
25953 | ||
25954 | ||
25955 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25956 | PyObject *resultobj; | |
25957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25958 | int arg2 ; | |
25959 | int arg3 ; | |
25960 | wxRect *arg4 = (wxRect *) NULL ; | |
25961 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25962 | PyObject * obj1 = 0 ; |
25963 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25964 | PyObject * obj3 = 0 ; |
25965 | char *kwnames[] = { | |
25966 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
25967 | }; | |
25968 | ||
8edf1c75 | 25969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25972 | arg2 = (int) SWIG_AsInt(obj1); | |
25973 | if (PyErr_Occurred()) SWIG_fail; | |
25974 | arg3 = (int) SWIG_AsInt(obj2); | |
25975 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 25976 | if (obj3) { |
2f4c0a16 RD |
25977 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
25978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25979 | } |
25980 | { | |
25981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25982 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
25983 | ||
25984 | wxPyEndAllowThreads(__tstate); | |
25985 | if (PyErr_Occurred()) SWIG_fail; | |
25986 | } | |
25987 | Py_INCREF(Py_None); resultobj = Py_None; | |
25988 | return resultobj; | |
25989 | fail: | |
25990 | return NULL; | |
25991 | } | |
25992 | ||
25993 | ||
25994 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25995 | PyObject *resultobj; | |
25996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25997 | int arg2 ; | |
25998 | bool result; | |
25999 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26000 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26001 | char *kwnames[] = { |
26002 | (char *) "self",(char *) "lines", NULL | |
26003 | }; | |
26004 | ||
8edf1c75 | 26005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26008 | arg2 = (int) SWIG_AsInt(obj1); | |
26009 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26010 | { |
26011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26012 | result = (bool)(arg1)->ScrollLines(arg2); | |
26013 | ||
26014 | wxPyEndAllowThreads(__tstate); | |
26015 | if (PyErr_Occurred()) SWIG_fail; | |
26016 | } | |
4e760a36 | 26017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26018 | return resultobj; |
26019 | fail: | |
26020 | return NULL; | |
26021 | } | |
26022 | ||
26023 | ||
26024 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26025 | PyObject *resultobj; | |
26026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26027 | int arg2 ; | |
26028 | bool result; | |
26029 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26031 | char *kwnames[] = { |
26032 | (char *) "self",(char *) "pages", NULL | |
26033 | }; | |
26034 | ||
8edf1c75 | 26035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26038 | arg2 = (int) SWIG_AsInt(obj1); | |
26039 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26040 | { |
26041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26042 | result = (bool)(arg1)->ScrollPages(arg2); | |
26043 | ||
26044 | wxPyEndAllowThreads(__tstate); | |
26045 | if (PyErr_Occurred()) SWIG_fail; | |
26046 | } | |
4e760a36 | 26047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26048 | return resultobj; |
26049 | fail: | |
26050 | return NULL; | |
26051 | } | |
26052 | ||
26053 | ||
26054 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26055 | PyObject *resultobj; | |
26056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26057 | bool result; | |
26058 | PyObject * obj0 = 0 ; | |
26059 | char *kwnames[] = { | |
26060 | (char *) "self", NULL | |
26061 | }; | |
26062 | ||
26063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26066 | { |
26067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26068 | result = (bool)(arg1)->LineUp(); | |
26069 | ||
26070 | wxPyEndAllowThreads(__tstate); | |
26071 | if (PyErr_Occurred()) SWIG_fail; | |
26072 | } | |
4e760a36 | 26073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26074 | return resultobj; |
26075 | fail: | |
26076 | return NULL; | |
26077 | } | |
26078 | ||
26079 | ||
26080 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26081 | PyObject *resultobj; | |
26082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26083 | bool result; | |
26084 | PyObject * obj0 = 0 ; | |
26085 | char *kwnames[] = { | |
26086 | (char *) "self", NULL | |
26087 | }; | |
26088 | ||
26089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26092 | { |
26093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26094 | result = (bool)(arg1)->LineDown(); | |
26095 | ||
26096 | wxPyEndAllowThreads(__tstate); | |
26097 | if (PyErr_Occurred()) SWIG_fail; | |
26098 | } | |
4e760a36 | 26099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26100 | return resultobj; |
26101 | fail: | |
26102 | return NULL; | |
26103 | } | |
26104 | ||
26105 | ||
26106 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26107 | PyObject *resultobj; | |
26108 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26109 | bool result; | |
26110 | PyObject * obj0 = 0 ; | |
26111 | char *kwnames[] = { | |
26112 | (char *) "self", NULL | |
26113 | }; | |
26114 | ||
26115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26118 | { |
26119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26120 | result = (bool)(arg1)->PageUp(); | |
26121 | ||
26122 | wxPyEndAllowThreads(__tstate); | |
26123 | if (PyErr_Occurred()) SWIG_fail; | |
26124 | } | |
4e760a36 | 26125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26126 | return resultobj; |
26127 | fail: | |
26128 | return NULL; | |
26129 | } | |
26130 | ||
26131 | ||
26132 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26133 | PyObject *resultobj; | |
26134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26135 | bool result; | |
26136 | PyObject * obj0 = 0 ; | |
26137 | char *kwnames[] = { | |
26138 | (char *) "self", NULL | |
26139 | }; | |
26140 | ||
26141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26144 | { |
26145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26146 | result = (bool)(arg1)->PageDown(); | |
26147 | ||
26148 | wxPyEndAllowThreads(__tstate); | |
26149 | if (PyErr_Occurred()) SWIG_fail; | |
26150 | } | |
4e760a36 | 26151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26152 | return resultobj; |
26153 | fail: | |
26154 | return NULL; | |
26155 | } | |
26156 | ||
26157 | ||
26158 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26159 | PyObject *resultobj; | |
26160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26161 | wxString *arg2 = 0 ; | |
423f194a | 26162 | bool temp2 = False ; |
d14a1e28 RD |
26163 | PyObject * obj0 = 0 ; |
26164 | PyObject * obj1 = 0 ; | |
26165 | char *kwnames[] = { | |
26166 | (char *) "self",(char *) "text", NULL | |
26167 | }; | |
26168 | ||
26169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26172 | { |
26173 | arg2 = wxString_in_helper(obj1); | |
26174 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26175 | temp2 = True; |
d14a1e28 RD |
26176 | } |
26177 | { | |
26178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26179 | (arg1)->SetHelpText((wxString const &)*arg2); | |
26180 | ||
26181 | wxPyEndAllowThreads(__tstate); | |
26182 | if (PyErr_Occurred()) SWIG_fail; | |
26183 | } | |
26184 | Py_INCREF(Py_None); resultobj = Py_None; | |
26185 | { | |
26186 | if (temp2) | |
26187 | delete arg2; | |
26188 | } | |
26189 | return resultobj; | |
26190 | fail: | |
26191 | { | |
26192 | if (temp2) | |
26193 | delete arg2; | |
26194 | } | |
26195 | return NULL; | |
26196 | } | |
26197 | ||
26198 | ||
26199 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26200 | PyObject *resultobj; | |
26201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26202 | wxString *arg2 = 0 ; | |
423f194a | 26203 | bool temp2 = False ; |
d14a1e28 RD |
26204 | PyObject * obj0 = 0 ; |
26205 | PyObject * obj1 = 0 ; | |
26206 | char *kwnames[] = { | |
26207 | (char *) "self",(char *) "text", NULL | |
26208 | }; | |
26209 | ||
26210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26213 | { |
26214 | arg2 = wxString_in_helper(obj1); | |
26215 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26216 | temp2 = True; |
d14a1e28 RD |
26217 | } |
26218 | { | |
26219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26220 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
26221 | ||
26222 | wxPyEndAllowThreads(__tstate); | |
26223 | if (PyErr_Occurred()) SWIG_fail; | |
26224 | } | |
26225 | Py_INCREF(Py_None); resultobj = Py_None; | |
26226 | { | |
26227 | if (temp2) | |
26228 | delete arg2; | |
26229 | } | |
26230 | return resultobj; | |
26231 | fail: | |
26232 | { | |
26233 | if (temp2) | |
26234 | delete arg2; | |
26235 | } | |
26236 | return NULL; | |
26237 | } | |
26238 | ||
26239 | ||
26240 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26241 | PyObject *resultobj; | |
26242 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26243 | wxString result; | |
26244 | PyObject * obj0 = 0 ; | |
26245 | char *kwnames[] = { | |
26246 | (char *) "self", NULL | |
26247 | }; | |
26248 | ||
26249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26252 | { |
26253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26254 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
26255 | ||
26256 | wxPyEndAllowThreads(__tstate); | |
26257 | if (PyErr_Occurred()) SWIG_fail; | |
26258 | } | |
26259 | { | |
26260 | #if wxUSE_UNICODE | |
26261 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26262 | #else | |
26263 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26264 | #endif | |
26265 | } | |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
26272 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26273 | PyObject *resultobj; | |
26274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26275 | wxString *arg2 = 0 ; | |
423f194a | 26276 | bool temp2 = False ; |
d14a1e28 RD |
26277 | PyObject * obj0 = 0 ; |
26278 | PyObject * obj1 = 0 ; | |
26279 | char *kwnames[] = { | |
26280 | (char *) "self",(char *) "tip", NULL | |
26281 | }; | |
26282 | ||
26283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26286 | { |
26287 | arg2 = wxString_in_helper(obj1); | |
26288 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26289 | temp2 = True; |
d14a1e28 RD |
26290 | } |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | Py_INCREF(Py_None); resultobj = Py_None; | |
26299 | { | |
26300 | if (temp2) | |
26301 | delete arg2; | |
26302 | } | |
26303 | return resultobj; | |
26304 | fail: | |
26305 | { | |
26306 | if (temp2) | |
26307 | delete arg2; | |
26308 | } | |
26309 | return NULL; | |
26310 | } | |
26311 | ||
26312 | ||
26313 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26314 | PyObject *resultobj; | |
26315 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26316 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26317 | PyObject * obj0 = 0 ; | |
26318 | PyObject * obj1 = 0 ; | |
26319 | char *kwnames[] = { | |
26320 | (char *) "self",(char *) "tip", NULL | |
26321 | }; | |
26322 | ||
26323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26326 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
26327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26328 | { |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | (arg1)->SetToolTip(arg2); | |
26331 | ||
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
26335 | Py_INCREF(Py_None); resultobj = Py_None; | |
26336 | return resultobj; | |
26337 | fail: | |
26338 | return NULL; | |
26339 | } | |
26340 | ||
26341 | ||
26342 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26343 | PyObject *resultobj; | |
26344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26345 | wxToolTip *result; | |
26346 | PyObject * obj0 = 0 ; | |
26347 | char *kwnames[] = { | |
26348 | (char *) "self", NULL | |
26349 | }; | |
26350 | ||
26351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26354 | { |
26355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26356 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26357 | ||
26358 | wxPyEndAllowThreads(__tstate); | |
26359 | if (PyErr_Occurred()) SWIG_fail; | |
26360 | } | |
26361 | { | |
26362 | resultobj = wxPyMake_wxObject(result); | |
26363 | } | |
26364 | return resultobj; | |
26365 | fail: | |
26366 | return NULL; | |
26367 | } | |
26368 | ||
26369 | ||
26370 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26371 | PyObject *resultobj; | |
26372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26373 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26374 | PyObject * obj0 = 0 ; |
26375 | PyObject * obj1 = 0 ; | |
26376 | char *kwnames[] = { | |
26377 | (char *) "self",(char *) "dropTarget", NULL | |
26378 | }; | |
26379 | ||
26380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
26384 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26385 | { |
26386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26387 | (arg1)->SetDropTarget(arg2); | |
26388 | ||
26389 | wxPyEndAllowThreads(__tstate); | |
26390 | if (PyErr_Occurred()) SWIG_fail; | |
26391 | } | |
26392 | Py_INCREF(Py_None); resultobj = Py_None; | |
26393 | return resultobj; | |
26394 | fail: | |
26395 | return NULL; | |
26396 | } | |
26397 | ||
26398 | ||
26399 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26400 | PyObject *resultobj; | |
26401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26402 | wxPyDropTarget *result; |
d14a1e28 RD |
26403 | PyObject * obj0 = 0 ; |
26404 | char *kwnames[] = { | |
26405 | (char *) "self", NULL | |
26406 | }; | |
26407 | ||
26408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26411 | { |
26412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26413 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26414 | |
26415 | wxPyEndAllowThreads(__tstate); | |
26416 | if (PyErr_Occurred()) SWIG_fail; | |
26417 | } | |
2f4c0a16 | 26418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26419 | return resultobj; |
26420 | fail: | |
26421 | return NULL; | |
26422 | } | |
26423 | ||
26424 | ||
26425 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26426 | PyObject *resultobj; | |
26427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26428 | bool arg2 ; | |
26429 | PyObject * obj0 = 0 ; | |
26430 | PyObject * obj1 = 0 ; | |
26431 | char *kwnames[] = { | |
26432 | (char *) "self",(char *) "accept", NULL | |
26433 | }; | |
26434 | ||
26435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26438 | arg2 = (bool) SWIG_AsBool(obj1); | |
26439 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26440 | { |
26441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26442 | (arg1)->DragAcceptFiles(arg2); | |
26443 | ||
26444 | wxPyEndAllowThreads(__tstate); | |
26445 | if (PyErr_Occurred()) SWIG_fail; | |
26446 | } | |
26447 | Py_INCREF(Py_None); resultobj = Py_None; | |
26448 | return resultobj; | |
26449 | fail: | |
26450 | return NULL; | |
26451 | } | |
26452 | ||
26453 | ||
26454 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26455 | PyObject *resultobj; | |
26456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26457 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26458 | PyObject * obj0 = 0 ; | |
26459 | PyObject * obj1 = 0 ; | |
26460 | char *kwnames[] = { | |
26461 | (char *) "self",(char *) "constraints", NULL | |
26462 | }; | |
26463 | ||
26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26469 | { |
26470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26471 | (arg1)->SetConstraints(arg2); | |
26472 | ||
26473 | wxPyEndAllowThreads(__tstate); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | } | |
26476 | Py_INCREF(Py_None); resultobj = Py_None; | |
26477 | return resultobj; | |
26478 | fail: | |
26479 | return NULL; | |
26480 | } | |
26481 | ||
26482 | ||
26483 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26484 | PyObject *resultobj; | |
26485 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26486 | wxLayoutConstraints *result; | |
26487 | PyObject * obj0 = 0 ; | |
26488 | char *kwnames[] = { | |
26489 | (char *) "self", NULL | |
26490 | }; | |
26491 | ||
26492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26495 | { |
26496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26497 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26498 | ||
26499 | wxPyEndAllowThreads(__tstate); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | } | |
2f4c0a16 | 26502 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
26503 | return resultobj; |
26504 | fail: | |
26505 | return NULL; | |
26506 | } | |
26507 | ||
26508 | ||
26509 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26510 | PyObject *resultobj; | |
26511 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26512 | bool arg2 ; | |
26513 | PyObject * obj0 = 0 ; | |
26514 | PyObject * obj1 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self",(char *) "autoLayout", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26522 | arg2 = (bool) SWIG_AsBool(obj1); | |
26523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26524 | { |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | (arg1)->SetAutoLayout(arg2); | |
26527 | ||
26528 | wxPyEndAllowThreads(__tstate); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | } | |
26531 | Py_INCREF(Py_None); resultobj = Py_None; | |
26532 | return resultobj; | |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
26538 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26539 | PyObject *resultobj; | |
26540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26541 | bool result; | |
26542 | PyObject * obj0 = 0 ; | |
26543 | char *kwnames[] = { | |
26544 | (char *) "self", NULL | |
26545 | }; | |
26546 | ||
26547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26550 | { |
26551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26552 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26553 | ||
26554 | wxPyEndAllowThreads(__tstate); | |
26555 | if (PyErr_Occurred()) SWIG_fail; | |
26556 | } | |
4e760a36 | 26557 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26558 | return resultobj; |
26559 | fail: | |
26560 | return NULL; | |
26561 | } | |
26562 | ||
26563 | ||
26564 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26565 | PyObject *resultobj; | |
26566 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26567 | bool result; | |
26568 | PyObject * obj0 = 0 ; | |
26569 | char *kwnames[] = { | |
26570 | (char *) "self", NULL | |
26571 | }; | |
26572 | ||
26573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26576 | { |
26577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26578 | result = (bool)(arg1)->Layout(); | |
26579 | ||
26580 | wxPyEndAllowThreads(__tstate); | |
26581 | if (PyErr_Occurred()) SWIG_fail; | |
26582 | } | |
4e760a36 | 26583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26584 | return resultobj; |
26585 | fail: | |
26586 | return NULL; | |
26587 | } | |
26588 | ||
26589 | ||
26590 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26591 | PyObject *resultobj; | |
26592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26593 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26594 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26595 | PyObject * obj0 = 0 ; |
26596 | PyObject * obj1 = 0 ; | |
26597 | PyObject * obj2 = 0 ; | |
26598 | char *kwnames[] = { | |
26599 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26600 | }; | |
26601 | ||
26602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
26606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 26607 | if (obj2) { |
2f4c0a16 RD |
26608 | arg3 = (bool) SWIG_AsBool(obj2); |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26610 | } |
26611 | { | |
26612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26613 | (arg1)->SetSizer(arg2,arg3); | |
26614 | ||
26615 | wxPyEndAllowThreads(__tstate); | |
26616 | if (PyErr_Occurred()) SWIG_fail; | |
26617 | } | |
26618 | Py_INCREF(Py_None); resultobj = Py_None; | |
26619 | return resultobj; | |
26620 | fail: | |
26621 | return NULL; | |
26622 | } | |
26623 | ||
26624 | ||
26625 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26626 | PyObject *resultobj; | |
26627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26628 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 26629 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26630 | PyObject * obj0 = 0 ; |
26631 | PyObject * obj1 = 0 ; | |
26632 | PyObject * obj2 = 0 ; | |
26633 | char *kwnames[] = { | |
26634 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
26635 | }; | |
26636 | ||
26637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) 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 | 26642 | if (obj2) { |
2f4c0a16 RD |
26643 | arg3 = (bool) SWIG_AsBool(obj2); |
26644 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26645 | } |
26646 | { | |
26647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26648 | (arg1)->SetSizerAndFit(arg2,arg3); | |
26649 | ||
26650 | wxPyEndAllowThreads(__tstate); | |
26651 | if (PyErr_Occurred()) SWIG_fail; | |
26652 | } | |
26653 | Py_INCREF(Py_None); resultobj = Py_None; | |
26654 | return resultobj; | |
26655 | fail: | |
26656 | return NULL; | |
26657 | } | |
26658 | ||
26659 | ||
26660 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26661 | PyObject *resultobj; | |
26662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26663 | wxSizer *result; | |
26664 | PyObject * obj0 = 0 ; | |
26665 | char *kwnames[] = { | |
26666 | (char *) "self", NULL | |
26667 | }; | |
26668 | ||
26669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26672 | { |
26673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26674 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
26675 | ||
26676 | wxPyEndAllowThreads(__tstate); | |
26677 | if (PyErr_Occurred()) SWIG_fail; | |
26678 | } | |
26679 | { | |
26680 | resultobj = wxPyMake_wxSizer(result); | |
26681 | } | |
26682 | return resultobj; | |
26683 | fail: | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
26688 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26689 | PyObject *resultobj; | |
26690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26691 | wxSizer *arg2 = (wxSizer *) 0 ; | |
26692 | PyObject * obj0 = 0 ; | |
26693 | PyObject * obj1 = 0 ; | |
26694 | char *kwnames[] = { | |
26695 | (char *) "self",(char *) "sizer", NULL | |
26696 | }; | |
26697 | ||
26698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
26702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26703 | { |
26704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26705 | (arg1)->SetContainingSizer(arg2); | |
26706 | ||
26707 | wxPyEndAllowThreads(__tstate); | |
26708 | if (PyErr_Occurred()) SWIG_fail; | |
26709 | } | |
26710 | Py_INCREF(Py_None); resultobj = Py_None; | |
26711 | return resultobj; | |
26712 | fail: | |
26713 | return NULL; | |
26714 | } | |
26715 | ||
26716 | ||
26717 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26718 | PyObject *resultobj; | |
26719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26720 | wxSizer *result; | |
26721 | PyObject * obj0 = 0 ; | |
26722 | char *kwnames[] = { | |
26723 | (char *) "self", NULL | |
26724 | }; | |
26725 | ||
26726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26729 | { |
26730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26731 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
26732 | ||
26733 | wxPyEndAllowThreads(__tstate); | |
26734 | if (PyErr_Occurred()) SWIG_fail; | |
26735 | } | |
26736 | { | |
26737 | resultobj = wxPyMake_wxSizer(result); | |
26738 | } | |
26739 | return resultobj; | |
26740 | fail: | |
26741 | return NULL; | |
26742 | } | |
26743 | ||
26744 | ||
26745 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
26746 | PyObject *obj; | |
26747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26748 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
26749 | Py_INCREF(obj); | |
26750 | return Py_BuildValue((char *)""); | |
26751 | } | |
26752 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26753 | PyObject *resultobj; | |
26754 | long arg1 ; | |
26755 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26756 | wxWindow *result; | |
8edf1c75 | 26757 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
26758 | PyObject * obj1 = 0 ; |
26759 | char *kwnames[] = { | |
26760 | (char *) "id",(char *) "parent", NULL | |
26761 | }; | |
26762 | ||
8edf1c75 | 26763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26764 | arg1 = (long) SWIG_AsLong(obj0); |
26765 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26766 | if (obj1) { |
2f4c0a16 RD |
26767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26769 | } |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
26777 | { | |
26778 | resultobj = wxPyMake_wxObject(result); | |
26779 | } | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
26786 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26787 | PyObject *resultobj; | |
26788 | wxString *arg1 = 0 ; | |
26789 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26790 | wxWindow *result; | |
423f194a | 26791 | bool temp1 = False ; |
d14a1e28 RD |
26792 | PyObject * obj0 = 0 ; |
26793 | PyObject * obj1 = 0 ; | |
26794 | char *kwnames[] = { | |
26795 | (char *) "name",(char *) "parent", NULL | |
26796 | }; | |
26797 | ||
26798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
26799 | { | |
26800 | arg1 = wxString_in_helper(obj0); | |
26801 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26802 | temp1 = True; |
d14a1e28 RD |
26803 | } |
26804 | if (obj1) { | |
2f4c0a16 RD |
26805 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26807 | } |
26808 | { | |
26809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26810 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
26811 | ||
26812 | wxPyEndAllowThreads(__tstate); | |
26813 | if (PyErr_Occurred()) SWIG_fail; | |
26814 | } | |
26815 | { | |
26816 | resultobj = wxPyMake_wxObject(result); | |
26817 | } | |
26818 | { | |
26819 | if (temp1) | |
26820 | delete arg1; | |
26821 | } | |
26822 | return resultobj; | |
26823 | fail: | |
26824 | { | |
26825 | if (temp1) | |
26826 | delete arg1; | |
26827 | } | |
26828 | return NULL; | |
26829 | } | |
26830 | ||
26831 | ||
26832 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26833 | PyObject *resultobj; | |
26834 | wxString *arg1 = 0 ; | |
26835 | wxWindow *arg2 = (wxWindow *) NULL ; | |
26836 | wxWindow *result; | |
423f194a | 26837 | bool temp1 = False ; |
d14a1e28 RD |
26838 | PyObject * obj0 = 0 ; |
26839 | PyObject * obj1 = 0 ; | |
26840 | char *kwnames[] = { | |
26841 | (char *) "label",(char *) "parent", NULL | |
26842 | }; | |
26843 | ||
26844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
26845 | { | |
26846 | arg1 = wxString_in_helper(obj0); | |
26847 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 26848 | temp1 = True; |
d14a1e28 RD |
26849 | } |
26850 | if (obj1) { | |
2f4c0a16 RD |
26851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
26852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26853 | } |
26854 | { | |
26855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26856 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
26857 | ||
26858 | wxPyEndAllowThreads(__tstate); | |
26859 | if (PyErr_Occurred()) SWIG_fail; | |
26860 | } | |
26861 | { | |
26862 | resultobj = wxPyMake_wxObject(result); | |
26863 | } | |
26864 | { | |
26865 | if (temp1) | |
26866 | delete arg1; | |
26867 | } | |
26868 | return resultobj; | |
26869 | fail: | |
26870 | { | |
26871 | if (temp1) | |
26872 | delete arg1; | |
26873 | } | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
26878 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26879 | PyObject *resultobj; | |
26880 | unsigned long arg1 ; | |
26881 | wxWindow *result; | |
26882 | PyObject * obj0 = 0 ; | |
26883 | char *kwnames[] = { | |
26884 | (char *) "hWnd", NULL | |
26885 | }; | |
26886 | ||
26887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26888 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
26889 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26890 | { |
26891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26892 | result = (wxWindow *)wxWindow_FromHWND(arg1); | |
26893 | ||
26894 | wxPyEndAllowThreads(__tstate); | |
26895 | if (PyErr_Occurred()) SWIG_fail; | |
26896 | } | |
26897 | { | |
26898 | resultobj = wxPyMake_wxObject(result); | |
26899 | } | |
26900 | return resultobj; | |
26901 | fail: | |
26902 | return NULL; | |
26903 | } | |
26904 | ||
26905 | ||
26906 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26907 | PyObject *resultobj; | |
26908 | wxValidator *result; | |
26909 | char *kwnames[] = { | |
26910 | NULL | |
26911 | }; | |
26912 | ||
26913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
26914 | { | |
26915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26916 | result = (wxValidator *)new wxValidator(); | |
26917 | ||
26918 | wxPyEndAllowThreads(__tstate); | |
26919 | if (PyErr_Occurred()) SWIG_fail; | |
26920 | } | |
26921 | { | |
26922 | resultobj = wxPyMake_wxObject(result); | |
26923 | } | |
26924 | return resultobj; | |
26925 | fail: | |
26926 | return NULL; | |
26927 | } | |
26928 | ||
26929 | ||
26930 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26931 | PyObject *resultobj; | |
26932 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26933 | wxValidator *result; | |
26934 | PyObject * obj0 = 0 ; | |
26935 | char *kwnames[] = { | |
26936 | (char *) "self", NULL | |
26937 | }; | |
26938 | ||
26939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26942 | { |
26943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26944 | result = (wxValidator *)(arg1)->Clone(); | |
26945 | ||
26946 | wxPyEndAllowThreads(__tstate); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | { | |
26950 | resultobj = wxPyMake_wxObject(result); | |
26951 | } | |
26952 | return resultobj; | |
26953 | fail: | |
26954 | return NULL; | |
26955 | } | |
26956 | ||
26957 | ||
26958 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26959 | PyObject *resultobj; | |
26960 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26961 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26962 | bool result; | |
26963 | PyObject * obj0 = 0 ; | |
26964 | PyObject * obj1 = 0 ; | |
26965 | char *kwnames[] = { | |
26966 | (char *) "self",(char *) "parent", NULL | |
26967 | }; | |
26968 | ||
26969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26972 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
26973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26974 | { |
26975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26976 | result = (bool)(arg1)->Validate(arg2); | |
26977 | ||
26978 | wxPyEndAllowThreads(__tstate); | |
26979 | if (PyErr_Occurred()) SWIG_fail; | |
26980 | } | |
4e760a36 | 26981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
26982 | return resultobj; |
26983 | fail: | |
26984 | return NULL; | |
26985 | } | |
26986 | ||
26987 | ||
26988 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26989 | PyObject *resultobj; | |
26990 | wxValidator *arg1 = (wxValidator *) 0 ; | |
26991 | bool result; | |
26992 | PyObject * obj0 = 0 ; | |
26993 | char *kwnames[] = { | |
26994 | (char *) "self", NULL | |
26995 | }; | |
26996 | ||
26997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
26999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27000 | { |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | result = (bool)(arg1)->TransferToWindow(); | |
27003 | ||
27004 | wxPyEndAllowThreads(__tstate); | |
27005 | if (PyErr_Occurred()) SWIG_fail; | |
27006 | } | |
4e760a36 | 27007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27008 | return resultobj; |
27009 | fail: | |
27010 | return NULL; | |
27011 | } | |
27012 | ||
27013 | ||
27014 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27015 | PyObject *resultobj; | |
27016 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27017 | bool result; | |
27018 | PyObject * obj0 = 0 ; | |
27019 | char *kwnames[] = { | |
27020 | (char *) "self", NULL | |
27021 | }; | |
27022 | ||
27023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27026 | { |
27027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27028 | result = (bool)(arg1)->TransferFromWindow(); | |
27029 | ||
27030 | wxPyEndAllowThreads(__tstate); | |
27031 | if (PyErr_Occurred()) SWIG_fail; | |
27032 | } | |
4e760a36 | 27033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27034 | return resultobj; |
27035 | fail: | |
27036 | return NULL; | |
27037 | } | |
27038 | ||
27039 | ||
27040 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27041 | PyObject *resultobj; | |
27042 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27043 | wxWindow *result; | |
27044 | PyObject * obj0 = 0 ; | |
27045 | char *kwnames[] = { | |
27046 | (char *) "self", NULL | |
27047 | }; | |
27048 | ||
27049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27052 | { |
27053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27054 | result = (wxWindow *)(arg1)->GetWindow(); | |
27055 | ||
27056 | wxPyEndAllowThreads(__tstate); | |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
27058 | } | |
27059 | { | |
27060 | resultobj = wxPyMake_wxObject(result); | |
27061 | } | |
27062 | return resultobj; | |
27063 | fail: | |
27064 | return NULL; | |
27065 | } | |
27066 | ||
27067 | ||
27068 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27069 | PyObject *resultobj; | |
27070 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27071 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27072 | PyObject * obj0 = 0 ; | |
27073 | PyObject * obj1 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "self",(char *) "window", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27083 | { |
27084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27085 | (arg1)->SetWindow(arg2); | |
27086 | ||
27087 | wxPyEndAllowThreads(__tstate); | |
27088 | if (PyErr_Occurred()) SWIG_fail; | |
27089 | } | |
27090 | Py_INCREF(Py_None); resultobj = Py_None; | |
27091 | return resultobj; | |
27092 | fail: | |
27093 | return NULL; | |
27094 | } | |
27095 | ||
27096 | ||
27097 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27098 | PyObject *resultobj; | |
27099 | bool result; | |
27100 | char *kwnames[] = { | |
27101 | NULL | |
27102 | }; | |
27103 | ||
27104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
27105 | { | |
27106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27107 | result = (bool)wxValidator::IsSilent(); | |
27108 | ||
27109 | wxPyEndAllowThreads(__tstate); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
4e760a36 | 27112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
27113 | return resultobj; |
27114 | fail: | |
27115 | return NULL; | |
27116 | } | |
27117 | ||
27118 | ||
27119 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27120 | PyObject *resultobj; | |
423f194a | 27121 | int arg1 = (int) True ; |
8edf1c75 | 27122 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27123 | char *kwnames[] = { |
27124 | (char *) "doIt", NULL | |
27125 | }; | |
27126 | ||
8edf1c75 RD |
27127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
27128 | if (obj0) { | |
2f4c0a16 RD |
27129 | arg1 = (int) SWIG_AsInt(obj0); |
27130 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27131 | } |
d14a1e28 RD |
27132 | { |
27133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27134 | wxValidator::SetBellOnError(arg1); | |
27135 | ||
27136 | wxPyEndAllowThreads(__tstate); | |
27137 | if (PyErr_Occurred()) SWIG_fail; | |
27138 | } | |
27139 | Py_INCREF(Py_None); resultobj = Py_None; | |
27140 | return resultobj; | |
27141 | fail: | |
27142 | return NULL; | |
27143 | } | |
27144 | ||
27145 | ||
27146 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
27147 | PyObject *obj; | |
27148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27149 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
27150 | Py_INCREF(obj); | |
27151 | return Py_BuildValue((char *)""); | |
27152 | } | |
27153 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27154 | PyObject *resultobj; | |
27155 | wxPyValidator *result; | |
27156 | char *kwnames[] = { | |
27157 | NULL | |
27158 | }; | |
27159 | ||
27160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
27161 | { | |
27162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27163 | result = (wxPyValidator *)new wxPyValidator(); | |
27164 | ||
27165 | wxPyEndAllowThreads(__tstate); | |
27166 | if (PyErr_Occurred()) SWIG_fail; | |
27167 | } | |
2f4c0a16 | 27168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
27169 | return resultobj; |
27170 | fail: | |
27171 | return NULL; | |
27172 | } | |
27173 | ||
27174 | ||
27175 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27176 | PyObject *resultobj; | |
27177 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
27178 | PyObject *arg2 = (PyObject *) 0 ; | |
27179 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 27180 | int arg4 = (int) True ; |
d14a1e28 RD |
27181 | PyObject * obj0 = 0 ; |
27182 | PyObject * obj1 = 0 ; | |
27183 | PyObject * obj2 = 0 ; | |
8edf1c75 | 27184 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27185 | char *kwnames[] = { |
27186 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
27187 | }; | |
27188 | ||
8edf1c75 | 27189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
27191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27192 | arg2 = obj1; |
27193 | arg3 = obj2; | |
8edf1c75 | 27194 | if (obj3) { |
2f4c0a16 RD |
27195 | arg4 = (int) SWIG_AsInt(obj3); |
27196 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27197 | } |
d14a1e28 RD |
27198 | { |
27199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27200 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
27201 | ||
27202 | wxPyEndAllowThreads(__tstate); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | } | |
27205 | Py_INCREF(Py_None); resultobj = Py_None; | |
27206 | return resultobj; | |
27207 | fail: | |
27208 | return NULL; | |
27209 | } | |
27210 | ||
27211 | ||
27212 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
27213 | PyObject *obj; | |
27214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27215 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
27216 | Py_INCREF(obj); | |
27217 | return Py_BuildValue((char *)""); | |
27218 | } | |
2f4c0a16 | 27219 | static int _wrap_DefaultValidator_set(PyObject *_val) { |
d14a1e28 RD |
27220 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
27221 | return 1; | |
27222 | } | |
27223 | ||
27224 | ||
27225 | static PyObject *_wrap_DefaultValidator_get() { | |
27226 | PyObject *pyobj; | |
27227 | ||
2f4c0a16 | 27228 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
27229 | return pyobj; |
27230 | } | |
27231 | ||
27232 | ||
27233 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27234 | PyObject *resultobj; | |
27235 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27236 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27237 | long arg2 = (long) 0 ; | |
27238 | wxMenu *result; | |
423f194a | 27239 | bool temp1 = False ; |
d14a1e28 | 27240 | PyObject * obj0 = 0 ; |
8edf1c75 | 27241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27242 | char *kwnames[] = { |
27243 | (char *) "title",(char *) "style", NULL | |
27244 | }; | |
27245 | ||
8edf1c75 | 27246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
27247 | if (obj0) { |
27248 | { | |
27249 | arg1 = wxString_in_helper(obj0); | |
27250 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27251 | temp1 = True; |
d14a1e28 RD |
27252 | } |
27253 | } | |
8edf1c75 | 27254 | if (obj1) { |
2f4c0a16 RD |
27255 | arg2 = (long) SWIG_AsLong(obj1); |
27256 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27257 | } |
d14a1e28 RD |
27258 | { |
27259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27260 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
27261 | ||
27262 | wxPyEndAllowThreads(__tstate); | |
27263 | if (PyErr_Occurred()) SWIG_fail; | |
27264 | } | |
27265 | { | |
27266 | resultobj = wxPyMake_wxObject(result); | |
27267 | } | |
27268 | { | |
27269 | if (temp1) | |
27270 | delete arg1; | |
27271 | } | |
27272 | return resultobj; | |
27273 | fail: | |
27274 | { | |
27275 | if (temp1) | |
27276 | delete arg1; | |
27277 | } | |
27278 | return NULL; | |
27279 | } | |
27280 | ||
27281 | ||
27282 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27283 | PyObject *resultobj; | |
27284 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27285 | int arg2 ; | |
27286 | wxString *arg3 = 0 ; | |
27287 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27288 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27289 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 27290 | wxMenuItem *result; |
423f194a RD |
27291 | bool temp3 = False ; |
27292 | bool temp4 = False ; | |
d14a1e28 | 27293 | PyObject * obj0 = 0 ; |
8edf1c75 | 27294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27295 | PyObject * obj2 = 0 ; |
27296 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27297 | PyObject * obj4 = 0 ; |
d14a1e28 | 27298 | char *kwnames[] = { |
f0983263 | 27299 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27300 | }; |
27301 | ||
8edf1c75 | 27302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27305 | arg2 = (int) SWIG_AsInt(obj1); | |
27306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27307 | { |
27308 | arg3 = wxString_in_helper(obj2); | |
27309 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27310 | temp3 = True; |
d14a1e28 RD |
27311 | } |
27312 | if (obj3) { | |
27313 | { | |
27314 | arg4 = wxString_in_helper(obj3); | |
27315 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27316 | temp4 = True; |
d14a1e28 RD |
27317 | } |
27318 | } | |
8edf1c75 | 27319 | if (obj4) { |
2f4c0a16 RD |
27320 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
27321 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27322 | } |
d14a1e28 RD |
27323 | { |
27324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27325 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27326 | |
27327 | wxPyEndAllowThreads(__tstate); | |
27328 | if (PyErr_Occurred()) SWIG_fail; | |
27329 | } | |
83448d71 RD |
27330 | { |
27331 | resultobj = wxPyMake_wxObject(result); | |
27332 | } | |
d14a1e28 RD |
27333 | { |
27334 | if (temp3) | |
27335 | delete arg3; | |
27336 | } | |
27337 | { | |
27338 | if (temp4) | |
27339 | delete arg4; | |
27340 | } | |
27341 | return resultobj; | |
27342 | fail: | |
27343 | { | |
27344 | if (temp3) | |
27345 | delete arg3; | |
27346 | } | |
27347 | { | |
27348 | if (temp4) | |
27349 | delete arg4; | |
27350 | } | |
27351 | return NULL; | |
27352 | } | |
27353 | ||
27354 | ||
27355 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27356 | PyObject *resultobj; | |
27357 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27358 | wxMenuItem *result; |
d14a1e28 RD |
27359 | PyObject * obj0 = 0 ; |
27360 | char *kwnames[] = { | |
27361 | (char *) "self", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27367 | { |
27368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27369 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27370 | |
27371 | wxPyEndAllowThreads(__tstate); | |
27372 | if (PyErr_Occurred()) SWIG_fail; | |
27373 | } | |
83448d71 RD |
27374 | { |
27375 | resultobj = wxPyMake_wxObject(result); | |
27376 | } | |
d14a1e28 RD |
27377 | return resultobj; |
27378 | fail: | |
27379 | return NULL; | |
27380 | } | |
27381 | ||
27382 | ||
27383 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27384 | PyObject *resultobj; | |
27385 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27386 | int arg2 ; | |
27387 | wxString *arg3 = 0 ; | |
27388 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27389 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27390 | wxMenuItem *result; |
423f194a RD |
27391 | bool temp3 = False ; |
27392 | bool temp4 = False ; | |
d14a1e28 | 27393 | PyObject * obj0 = 0 ; |
8edf1c75 | 27394 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27395 | PyObject * obj2 = 0 ; |
27396 | PyObject * obj3 = 0 ; | |
27397 | char *kwnames[] = { | |
f0983263 | 27398 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27399 | }; |
27400 | ||
8edf1c75 | 27401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27404 | arg2 = (int) SWIG_AsInt(obj1); | |
27405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27406 | { |
27407 | arg3 = wxString_in_helper(obj2); | |
27408 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27409 | temp3 = True; |
d14a1e28 RD |
27410 | } |
27411 | if (obj3) { | |
27412 | { | |
27413 | arg4 = wxString_in_helper(obj3); | |
27414 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27415 | temp4 = True; |
d14a1e28 RD |
27416 | } |
27417 | } | |
27418 | { | |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27420 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27421 | |
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
83448d71 RD |
27425 | { |
27426 | resultobj = wxPyMake_wxObject(result); | |
27427 | } | |
d14a1e28 RD |
27428 | { |
27429 | if (temp3) | |
27430 | delete arg3; | |
27431 | } | |
27432 | { | |
27433 | if (temp4) | |
27434 | delete arg4; | |
27435 | } | |
27436 | return resultobj; | |
27437 | fail: | |
27438 | { | |
27439 | if (temp3) | |
27440 | delete arg3; | |
27441 | } | |
27442 | { | |
27443 | if (temp4) | |
27444 | delete arg4; | |
27445 | } | |
27446 | return NULL; | |
27447 | } | |
27448 | ||
27449 | ||
27450 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27451 | PyObject *resultobj; | |
27452 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27453 | int arg2 ; | |
27454 | wxString *arg3 = 0 ; | |
27455 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27456 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27457 | wxMenuItem *result; |
423f194a RD |
27458 | bool temp3 = False ; |
27459 | bool temp4 = False ; | |
d14a1e28 | 27460 | PyObject * obj0 = 0 ; |
8edf1c75 | 27461 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27462 | PyObject * obj2 = 0 ; |
27463 | PyObject * obj3 = 0 ; | |
27464 | char *kwnames[] = { | |
f0983263 | 27465 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27466 | }; |
27467 | ||
8edf1c75 | 27468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27471 | arg2 = (int) SWIG_AsInt(obj1); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27473 | { |
27474 | arg3 = wxString_in_helper(obj2); | |
27475 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27476 | temp3 = True; |
d14a1e28 RD |
27477 | } |
27478 | if (obj3) { | |
27479 | { | |
27480 | arg4 = wxString_in_helper(obj3); | |
27481 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27482 | temp4 = True; |
d14a1e28 RD |
27483 | } |
27484 | } | |
27485 | { | |
27486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27487 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27488 | |
27489 | wxPyEndAllowThreads(__tstate); | |
27490 | if (PyErr_Occurred()) SWIG_fail; | |
27491 | } | |
83448d71 RD |
27492 | { |
27493 | resultobj = wxPyMake_wxObject(result); | |
27494 | } | |
d14a1e28 RD |
27495 | { |
27496 | if (temp3) | |
27497 | delete arg3; | |
27498 | } | |
27499 | { | |
27500 | if (temp4) | |
27501 | delete arg4; | |
27502 | } | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | { | |
27506 | if (temp3) | |
27507 | delete arg3; | |
27508 | } | |
27509 | { | |
27510 | if (temp4) | |
27511 | delete arg4; | |
27512 | } | |
27513 | return NULL; | |
27514 | } | |
27515 | ||
27516 | ||
27517 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27518 | PyObject *resultobj; | |
27519 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27520 | int arg2 ; | |
27521 | wxString *arg3 = 0 ; | |
27522 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27523 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27524 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27525 | wxMenuItem *result; |
423f194a RD |
27526 | bool temp3 = False ; |
27527 | bool temp5 = False ; | |
d14a1e28 | 27528 | PyObject * obj0 = 0 ; |
8edf1c75 | 27529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27530 | PyObject * obj2 = 0 ; |
27531 | PyObject * obj3 = 0 ; | |
27532 | PyObject * obj4 = 0 ; | |
27533 | char *kwnames[] = { | |
f0983263 | 27534 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27535 | }; |
27536 | ||
8edf1c75 | 27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27540 | arg2 = (int) SWIG_AsInt(obj1); | |
27541 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27542 | { |
27543 | arg3 = wxString_in_helper(obj2); | |
27544 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27545 | temp3 = True; |
d14a1e28 | 27546 | } |
2f4c0a16 RD |
27547 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27549 | if (obj4) { |
27550 | { | |
27551 | arg5 = wxString_in_helper(obj4); | |
27552 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27553 | temp5 = True; |
d14a1e28 RD |
27554 | } |
27555 | } | |
27556 | { | |
27557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27558 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27559 | |
27560 | wxPyEndAllowThreads(__tstate); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
83448d71 RD |
27563 | { |
27564 | resultobj = wxPyMake_wxObject(result); | |
27565 | } | |
d14a1e28 RD |
27566 | { |
27567 | if (temp3) | |
27568 | delete arg3; | |
27569 | } | |
27570 | { | |
27571 | if (temp5) | |
27572 | delete arg5; | |
27573 | } | |
27574 | return resultobj; | |
27575 | fail: | |
27576 | { | |
27577 | if (temp3) | |
27578 | delete arg3; | |
27579 | } | |
27580 | { | |
27581 | if (temp5) | |
27582 | delete arg5; | |
27583 | } | |
27584 | return NULL; | |
27585 | } | |
27586 | ||
27587 | ||
27588 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27589 | PyObject *resultobj; | |
27590 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27591 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 27592 | wxMenuItem *result; |
d14a1e28 RD |
27593 | PyObject * obj0 = 0 ; |
27594 | PyObject * obj1 = 0 ; | |
27595 | char *kwnames[] = { | |
27596 | (char *) "self",(char *) "item", NULL | |
27597 | }; | |
27598 | ||
27599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
27603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27604 | { |
27605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27606 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
27607 | |
27608 | wxPyEndAllowThreads(__tstate); | |
27609 | if (PyErr_Occurred()) SWIG_fail; | |
27610 | } | |
83448d71 RD |
27611 | { |
27612 | resultobj = wxPyMake_wxObject(result); | |
27613 | } | |
d14a1e28 RD |
27614 | return resultobj; |
27615 | fail: | |
27616 | return NULL; | |
27617 | } | |
27618 | ||
27619 | ||
27620 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27621 | PyObject *resultobj; | |
27622 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27623 | PyObject * obj0 = 0 ; | |
27624 | char *kwnames[] = { | |
27625 | (char *) "self", NULL | |
27626 | }; | |
27627 | ||
27628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27631 | { |
27632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27633 | (arg1)->Break(); | |
27634 | ||
27635 | wxPyEndAllowThreads(__tstate); | |
27636 | if (PyErr_Occurred()) SWIG_fail; | |
27637 | } | |
27638 | Py_INCREF(Py_None); resultobj = Py_None; | |
27639 | return resultobj; | |
27640 | fail: | |
27641 | return NULL; | |
27642 | } | |
27643 | ||
27644 | ||
27645 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27646 | PyObject *resultobj; | |
27647 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27648 | size_t arg2 ; | |
27649 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
83448d71 | 27650 | wxMenuItem *result; |
d14a1e28 RD |
27651 | PyObject * obj0 = 0 ; |
27652 | PyObject * obj1 = 0 ; | |
27653 | PyObject * obj2 = 0 ; | |
27654 | char *kwnames[] = { | |
27655 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
27656 | }; | |
27657 | ||
27658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27661 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27662 | if (PyErr_Occurred()) SWIG_fail; | |
27663 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
27664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27665 | { |
27666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27667 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
27668 | |
27669 | wxPyEndAllowThreads(__tstate); | |
27670 | if (PyErr_Occurred()) SWIG_fail; | |
27671 | } | |
83448d71 RD |
27672 | { |
27673 | resultobj = wxPyMake_wxObject(result); | |
27674 | } | |
d14a1e28 RD |
27675 | return resultobj; |
27676 | fail: | |
27677 | return NULL; | |
27678 | } | |
27679 | ||
27680 | ||
27681 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27682 | PyObject *resultobj; | |
27683 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27684 | size_t arg2 ; | |
27685 | int arg3 ; | |
27686 | wxString *arg4 = 0 ; | |
27687 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27688 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
27689 | int arg6 = (int) wxITEM_NORMAL ; | |
83448d71 | 27690 | wxMenuItem *result; |
423f194a RD |
27691 | bool temp4 = False ; |
27692 | bool temp5 = False ; | |
d14a1e28 RD |
27693 | PyObject * obj0 = 0 ; |
27694 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27695 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27696 | PyObject * obj3 = 0 ; |
27697 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27698 | PyObject * obj5 = 0 ; |
d14a1e28 | 27699 | char *kwnames[] = { |
f0983263 | 27700 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27701 | }; |
27702 | ||
8edf1c75 | 27703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27706 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27707 | if (PyErr_Occurred()) SWIG_fail; | |
27708 | arg3 = (int) SWIG_AsInt(obj2); | |
27709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27710 | { |
27711 | arg4 = wxString_in_helper(obj3); | |
27712 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27713 | temp4 = True; |
d14a1e28 RD |
27714 | } |
27715 | if (obj4) { | |
27716 | { | |
27717 | arg5 = wxString_in_helper(obj4); | |
27718 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27719 | temp5 = True; |
d14a1e28 RD |
27720 | } |
27721 | } | |
8edf1c75 | 27722 | if (obj5) { |
2f4c0a16 RD |
27723 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27725 | } |
d14a1e28 RD |
27726 | { |
27727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27728 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
27729 | |
27730 | wxPyEndAllowThreads(__tstate); | |
27731 | if (PyErr_Occurred()) SWIG_fail; | |
27732 | } | |
83448d71 RD |
27733 | { |
27734 | resultobj = wxPyMake_wxObject(result); | |
27735 | } | |
d14a1e28 RD |
27736 | { |
27737 | if (temp4) | |
27738 | delete arg4; | |
27739 | } | |
27740 | { | |
27741 | if (temp5) | |
27742 | delete arg5; | |
27743 | } | |
27744 | return resultobj; | |
27745 | fail: | |
27746 | { | |
27747 | if (temp4) | |
27748 | delete arg4; | |
27749 | } | |
27750 | { | |
27751 | if (temp5) | |
27752 | delete arg5; | |
27753 | } | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
27758 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27759 | PyObject *resultobj; | |
27760 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27761 | size_t arg2 ; | |
83448d71 | 27762 | wxMenuItem *result; |
d14a1e28 RD |
27763 | PyObject * obj0 = 0 ; |
27764 | PyObject * obj1 = 0 ; | |
27765 | char *kwnames[] = { | |
27766 | (char *) "self",(char *) "pos", NULL | |
27767 | }; | |
27768 | ||
27769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27772 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27774 | { |
27775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27776 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
27777 | |
27778 | wxPyEndAllowThreads(__tstate); | |
27779 | if (PyErr_Occurred()) SWIG_fail; | |
27780 | } | |
83448d71 RD |
27781 | { |
27782 | resultobj = wxPyMake_wxObject(result); | |
27783 | } | |
d14a1e28 RD |
27784 | return resultobj; |
27785 | fail: | |
27786 | return NULL; | |
27787 | } | |
27788 | ||
27789 | ||
27790 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27791 | PyObject *resultobj; | |
27792 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27793 | size_t arg2 ; | |
27794 | int arg3 ; | |
27795 | wxString *arg4 = 0 ; | |
27796 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27797 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27798 | wxMenuItem *result; |
423f194a RD |
27799 | bool temp4 = False ; |
27800 | bool temp5 = False ; | |
d14a1e28 RD |
27801 | PyObject * obj0 = 0 ; |
27802 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27803 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27804 | PyObject * obj3 = 0 ; |
27805 | PyObject * obj4 = 0 ; | |
27806 | char *kwnames[] = { | |
f0983263 | 27807 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27808 | }; |
27809 | ||
8edf1c75 | 27810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27813 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27814 | if (PyErr_Occurred()) SWIG_fail; | |
27815 | arg3 = (int) SWIG_AsInt(obj2); | |
27816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27817 | { |
27818 | arg4 = wxString_in_helper(obj3); | |
27819 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27820 | temp4 = True; |
d14a1e28 RD |
27821 | } |
27822 | if (obj4) { | |
27823 | { | |
27824 | arg5 = wxString_in_helper(obj4); | |
27825 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27826 | temp5 = True; |
d14a1e28 RD |
27827 | } |
27828 | } | |
27829 | { | |
27830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27831 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27832 | |
27833 | wxPyEndAllowThreads(__tstate); | |
27834 | if (PyErr_Occurred()) SWIG_fail; | |
27835 | } | |
83448d71 RD |
27836 | { |
27837 | resultobj = wxPyMake_wxObject(result); | |
27838 | } | |
d14a1e28 RD |
27839 | { |
27840 | if (temp4) | |
27841 | delete arg4; | |
27842 | } | |
27843 | { | |
27844 | if (temp5) | |
27845 | delete arg5; | |
27846 | } | |
27847 | return resultobj; | |
27848 | fail: | |
27849 | { | |
27850 | if (temp4) | |
27851 | delete arg4; | |
27852 | } | |
27853 | { | |
27854 | if (temp5) | |
27855 | delete arg5; | |
27856 | } | |
27857 | return NULL; | |
27858 | } | |
27859 | ||
27860 | ||
27861 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27862 | PyObject *resultobj; | |
27863 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27864 | size_t arg2 ; | |
27865 | int arg3 ; | |
27866 | wxString *arg4 = 0 ; | |
27867 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27868 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27869 | wxMenuItem *result; |
423f194a RD |
27870 | bool temp4 = False ; |
27871 | bool temp5 = False ; | |
d14a1e28 RD |
27872 | PyObject * obj0 = 0 ; |
27873 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27874 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27875 | PyObject * obj3 = 0 ; |
27876 | PyObject * obj4 = 0 ; | |
27877 | char *kwnames[] = { | |
f0983263 | 27878 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27879 | }; |
27880 | ||
8edf1c75 | 27881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27884 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27885 | if (PyErr_Occurred()) SWIG_fail; | |
27886 | arg3 = (int) SWIG_AsInt(obj2); | |
27887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27888 | { |
27889 | arg4 = wxString_in_helper(obj3); | |
27890 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27891 | temp4 = True; |
d14a1e28 RD |
27892 | } |
27893 | if (obj4) { | |
27894 | { | |
27895 | arg5 = wxString_in_helper(obj4); | |
27896 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27897 | temp5 = True; |
d14a1e28 RD |
27898 | } |
27899 | } | |
27900 | { | |
27901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27902 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27903 | |
27904 | wxPyEndAllowThreads(__tstate); | |
27905 | if (PyErr_Occurred()) SWIG_fail; | |
27906 | } | |
83448d71 RD |
27907 | { |
27908 | resultobj = wxPyMake_wxObject(result); | |
27909 | } | |
d14a1e28 RD |
27910 | { |
27911 | if (temp4) | |
27912 | delete arg4; | |
27913 | } | |
27914 | { | |
27915 | if (temp5) | |
27916 | delete arg5; | |
27917 | } | |
27918 | return resultobj; | |
27919 | fail: | |
27920 | { | |
27921 | if (temp4) | |
27922 | delete arg4; | |
27923 | } | |
27924 | { | |
27925 | if (temp5) | |
27926 | delete arg5; | |
27927 | } | |
27928 | return NULL; | |
27929 | } | |
27930 | ||
27931 | ||
27932 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27933 | PyObject *resultobj; | |
27934 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27935 | size_t arg2 ; | |
27936 | int arg3 ; | |
27937 | wxString *arg4 = 0 ; | |
27938 | wxMenu *arg5 = (wxMenu *) 0 ; | |
27939 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
27940 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
83448d71 | 27941 | wxMenuItem *result; |
423f194a RD |
27942 | bool temp4 = False ; |
27943 | bool temp6 = False ; | |
d14a1e28 RD |
27944 | PyObject * obj0 = 0 ; |
27945 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27946 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27947 | PyObject * obj3 = 0 ; |
27948 | PyObject * obj4 = 0 ; | |
27949 | PyObject * obj5 = 0 ; | |
27950 | char *kwnames[] = { | |
f0983263 | 27951 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27952 | }; |
27953 | ||
8edf1c75 | 27954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27957 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
27958 | if (PyErr_Occurred()) SWIG_fail; | |
27959 | arg3 = (int) SWIG_AsInt(obj2); | |
27960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27961 | { |
27962 | arg4 = wxString_in_helper(obj3); | |
27963 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27964 | temp4 = True; |
d14a1e28 | 27965 | } |
2f4c0a16 RD |
27966 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
27967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27968 | if (obj5) { |
27969 | { | |
27970 | arg6 = wxString_in_helper(obj5); | |
27971 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 27972 | temp6 = True; |
d14a1e28 RD |
27973 | } |
27974 | } | |
27975 | { | |
27976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27977 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
27978 | |
27979 | wxPyEndAllowThreads(__tstate); | |
27980 | if (PyErr_Occurred()) SWIG_fail; | |
27981 | } | |
83448d71 RD |
27982 | { |
27983 | resultobj = wxPyMake_wxObject(result); | |
27984 | } | |
d14a1e28 RD |
27985 | { |
27986 | if (temp4) | |
27987 | delete arg4; | |
27988 | } | |
27989 | { | |
27990 | if (temp6) | |
27991 | delete arg6; | |
27992 | } | |
27993 | return resultobj; | |
27994 | fail: | |
27995 | { | |
27996 | if (temp4) | |
27997 | delete arg4; | |
27998 | } | |
27999 | { | |
28000 | if (temp6) | |
28001 | delete arg6; | |
28002 | } | |
28003 | return NULL; | |
28004 | } | |
28005 | ||
28006 | ||
28007 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28008 | PyObject *resultobj; | |
28009 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28010 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 28011 | wxMenuItem *result; |
d14a1e28 RD |
28012 | PyObject * obj0 = 0 ; |
28013 | PyObject * obj1 = 0 ; | |
28014 | char *kwnames[] = { | |
28015 | (char *) "self",(char *) "item", NULL | |
28016 | }; | |
28017 | ||
28018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28021 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28023 | { |
28024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28025 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
28026 | |
28027 | wxPyEndAllowThreads(__tstate); | |
28028 | if (PyErr_Occurred()) SWIG_fail; | |
28029 | } | |
83448d71 RD |
28030 | { |
28031 | resultobj = wxPyMake_wxObject(result); | |
28032 | } | |
d14a1e28 RD |
28033 | return resultobj; |
28034 | fail: | |
28035 | return NULL; | |
28036 | } | |
28037 | ||
28038 | ||
28039 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28040 | PyObject *resultobj; | |
28041 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28042 | int arg2 ; | |
28043 | wxString *arg3 = 0 ; | |
28044 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28045 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28046 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 28047 | wxMenuItem *result; |
423f194a RD |
28048 | bool temp3 = False ; |
28049 | bool temp4 = False ; | |
d14a1e28 | 28050 | PyObject * obj0 = 0 ; |
8edf1c75 | 28051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28052 | PyObject * obj2 = 0 ; |
28053 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28054 | PyObject * obj4 = 0 ; |
d14a1e28 | 28055 | char *kwnames[] = { |
f0983263 | 28056 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28057 | }; |
28058 | ||
8edf1c75 | 28059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28062 | arg2 = (int) SWIG_AsInt(obj1); | |
28063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28064 | { |
28065 | arg3 = wxString_in_helper(obj2); | |
28066 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28067 | temp3 = True; |
d14a1e28 RD |
28068 | } |
28069 | if (obj3) { | |
28070 | { | |
28071 | arg4 = wxString_in_helper(obj3); | |
28072 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28073 | temp4 = True; |
d14a1e28 RD |
28074 | } |
28075 | } | |
8edf1c75 | 28076 | if (obj4) { |
2f4c0a16 RD |
28077 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28078 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28079 | } |
d14a1e28 RD |
28080 | { |
28081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28082 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28083 | |
28084 | wxPyEndAllowThreads(__tstate); | |
28085 | if (PyErr_Occurred()) SWIG_fail; | |
28086 | } | |
83448d71 RD |
28087 | { |
28088 | resultobj = wxPyMake_wxObject(result); | |
28089 | } | |
d14a1e28 RD |
28090 | { |
28091 | if (temp3) | |
28092 | delete arg3; | |
28093 | } | |
28094 | { | |
28095 | if (temp4) | |
28096 | delete arg4; | |
28097 | } | |
28098 | return resultobj; | |
28099 | fail: | |
28100 | { | |
28101 | if (temp3) | |
28102 | delete arg3; | |
28103 | } | |
28104 | { | |
28105 | if (temp4) | |
28106 | delete arg4; | |
28107 | } | |
28108 | return NULL; | |
28109 | } | |
28110 | ||
28111 | ||
28112 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28113 | PyObject *resultobj; | |
28114 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 28115 | wxMenuItem *result; |
d14a1e28 RD |
28116 | PyObject * obj0 = 0 ; |
28117 | char *kwnames[] = { | |
28118 | (char *) "self", NULL | |
28119 | }; | |
28120 | ||
28121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28124 | { |
28125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28126 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
28127 | |
28128 | wxPyEndAllowThreads(__tstate); | |
28129 | if (PyErr_Occurred()) SWIG_fail; | |
28130 | } | |
83448d71 RD |
28131 | { |
28132 | resultobj = wxPyMake_wxObject(result); | |
28133 | } | |
d14a1e28 RD |
28134 | return resultobj; |
28135 | fail: | |
28136 | return NULL; | |
28137 | } | |
28138 | ||
28139 | ||
28140 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28141 | PyObject *resultobj; | |
28142 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28143 | int arg2 ; | |
28144 | wxString *arg3 = 0 ; | |
28145 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28146 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28147 | wxMenuItem *result; |
423f194a RD |
28148 | bool temp3 = False ; |
28149 | bool temp4 = False ; | |
d14a1e28 | 28150 | PyObject * obj0 = 0 ; |
8edf1c75 | 28151 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28152 | PyObject * obj2 = 0 ; |
28153 | PyObject * obj3 = 0 ; | |
28154 | char *kwnames[] = { | |
f0983263 | 28155 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28156 | }; |
28157 | ||
8edf1c75 | 28158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28161 | arg2 = (int) SWIG_AsInt(obj1); | |
28162 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28163 | { |
28164 | arg3 = wxString_in_helper(obj2); | |
28165 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28166 | temp3 = True; |
d14a1e28 RD |
28167 | } |
28168 | if (obj3) { | |
28169 | { | |
28170 | arg4 = wxString_in_helper(obj3); | |
28171 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28172 | temp4 = True; |
d14a1e28 RD |
28173 | } |
28174 | } | |
28175 | { | |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28177 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28178 | |
28179 | wxPyEndAllowThreads(__tstate); | |
28180 | if (PyErr_Occurred()) SWIG_fail; | |
28181 | } | |
83448d71 RD |
28182 | { |
28183 | resultobj = wxPyMake_wxObject(result); | |
28184 | } | |
d14a1e28 RD |
28185 | { |
28186 | if (temp3) | |
28187 | delete arg3; | |
28188 | } | |
28189 | { | |
28190 | if (temp4) | |
28191 | delete arg4; | |
28192 | } | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | { | |
28196 | if (temp3) | |
28197 | delete arg3; | |
28198 | } | |
28199 | { | |
28200 | if (temp4) | |
28201 | delete arg4; | |
28202 | } | |
28203 | return NULL; | |
28204 | } | |
28205 | ||
28206 | ||
28207 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28208 | PyObject *resultobj; | |
28209 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28210 | int arg2 ; | |
28211 | wxString *arg3 = 0 ; | |
28212 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28213 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28214 | wxMenuItem *result; |
423f194a RD |
28215 | bool temp3 = False ; |
28216 | bool temp4 = False ; | |
d14a1e28 | 28217 | PyObject * obj0 = 0 ; |
8edf1c75 | 28218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28219 | PyObject * obj2 = 0 ; |
28220 | PyObject * obj3 = 0 ; | |
28221 | char *kwnames[] = { | |
f0983263 | 28222 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28223 | }; |
28224 | ||
8edf1c75 | 28225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28228 | arg2 = (int) SWIG_AsInt(obj1); | |
28229 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28230 | { |
28231 | arg3 = wxString_in_helper(obj2); | |
28232 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28233 | temp3 = True; |
d14a1e28 RD |
28234 | } |
28235 | if (obj3) { | |
28236 | { | |
28237 | arg4 = wxString_in_helper(obj3); | |
28238 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28239 | temp4 = True; |
d14a1e28 RD |
28240 | } |
28241 | } | |
28242 | { | |
28243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28244 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28245 | |
28246 | wxPyEndAllowThreads(__tstate); | |
28247 | if (PyErr_Occurred()) SWIG_fail; | |
28248 | } | |
83448d71 RD |
28249 | { |
28250 | resultobj = wxPyMake_wxObject(result); | |
28251 | } | |
d14a1e28 RD |
28252 | { |
28253 | if (temp3) | |
28254 | delete arg3; | |
28255 | } | |
28256 | { | |
28257 | if (temp4) | |
28258 | delete arg4; | |
28259 | } | |
28260 | return resultobj; | |
28261 | fail: | |
28262 | { | |
28263 | if (temp3) | |
28264 | delete arg3; | |
28265 | } | |
28266 | { | |
28267 | if (temp4) | |
28268 | delete arg4; | |
28269 | } | |
28270 | return NULL; | |
28271 | } | |
28272 | ||
28273 | ||
28274 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28275 | PyObject *resultobj; | |
28276 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28277 | int arg2 ; | |
28278 | wxString *arg3 = 0 ; | |
28279 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28280 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28281 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28282 | wxMenuItem *result; |
423f194a RD |
28283 | bool temp3 = False ; |
28284 | bool temp5 = False ; | |
d14a1e28 | 28285 | PyObject * obj0 = 0 ; |
8edf1c75 | 28286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28287 | PyObject * obj2 = 0 ; |
28288 | PyObject * obj3 = 0 ; | |
28289 | PyObject * obj4 = 0 ; | |
28290 | char *kwnames[] = { | |
f0983263 | 28291 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28292 | }; |
28293 | ||
8edf1c75 | 28294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28297 | arg2 = (int) SWIG_AsInt(obj1); | |
28298 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28299 | { |
28300 | arg3 = wxString_in_helper(obj2); | |
28301 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28302 | temp3 = True; |
d14a1e28 | 28303 | } |
2f4c0a16 RD |
28304 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28306 | if (obj4) { |
28307 | { | |
28308 | arg5 = wxString_in_helper(obj4); | |
28309 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28310 | temp5 = True; |
d14a1e28 RD |
28311 | } |
28312 | } | |
28313 | { | |
28314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28315 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28316 | |
28317 | wxPyEndAllowThreads(__tstate); | |
28318 | if (PyErr_Occurred()) SWIG_fail; | |
28319 | } | |
83448d71 RD |
28320 | { |
28321 | resultobj = wxPyMake_wxObject(result); | |
28322 | } | |
d14a1e28 RD |
28323 | { |
28324 | if (temp3) | |
28325 | delete arg3; | |
28326 | } | |
28327 | { | |
28328 | if (temp5) | |
28329 | delete arg5; | |
28330 | } | |
28331 | return resultobj; | |
28332 | fail: | |
28333 | { | |
28334 | if (temp3) | |
28335 | delete arg3; | |
28336 | } | |
28337 | { | |
28338 | if (temp5) | |
28339 | delete arg5; | |
28340 | } | |
28341 | return NULL; | |
28342 | } | |
28343 | ||
28344 | ||
28345 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28346 | PyObject *resultobj; | |
28347 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28348 | int arg2 ; | |
28349 | wxMenuItem *result; | |
28350 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28351 | PyObject * obj1 = 0 ; |
d14a1e28 | 28352 | char *kwnames[] = { |
f0983263 | 28353 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28354 | }; |
28355 | ||
8edf1c75 | 28356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28359 | arg2 = (int) SWIG_AsInt(obj1); | |
28360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28361 | { |
28362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28363 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28364 | ||
28365 | wxPyEndAllowThreads(__tstate); | |
28366 | if (PyErr_Occurred()) SWIG_fail; | |
28367 | } | |
28368 | { | |
28369 | resultobj = wxPyMake_wxObject(result); | |
28370 | } | |
28371 | return resultobj; | |
28372 | fail: | |
28373 | return NULL; | |
28374 | } | |
28375 | ||
28376 | ||
28377 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28378 | PyObject *resultobj; | |
28379 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28380 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28381 | wxMenuItem *result; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | PyObject * obj1 = 0 ; | |
28384 | char *kwnames[] = { | |
28385 | (char *) "self",(char *) "item", NULL | |
28386 | }; | |
28387 | ||
28388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28393 | { |
28394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28395 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28396 | ||
28397 | wxPyEndAllowThreads(__tstate); | |
28398 | if (PyErr_Occurred()) SWIG_fail; | |
28399 | } | |
28400 | { | |
28401 | resultobj = wxPyMake_wxObject(result); | |
28402 | } | |
28403 | return resultobj; | |
28404 | fail: | |
28405 | return NULL; | |
28406 | } | |
28407 | ||
28408 | ||
28409 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28410 | PyObject *resultobj; | |
28411 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28412 | int arg2 ; | |
28413 | bool result; | |
28414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28415 | PyObject * obj1 = 0 ; |
d14a1e28 | 28416 | char *kwnames[] = { |
f0983263 | 28417 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28418 | }; |
28419 | ||
8edf1c75 | 28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28423 | arg2 = (int) SWIG_AsInt(obj1); | |
28424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28425 | { |
28426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28427 | result = (bool)(arg1)->Delete(arg2); | |
28428 | ||
28429 | wxPyEndAllowThreads(__tstate); | |
28430 | if (PyErr_Occurred()) SWIG_fail; | |
28431 | } | |
4e760a36 | 28432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28433 | return resultobj; |
28434 | fail: | |
28435 | return NULL; | |
28436 | } | |
28437 | ||
28438 | ||
28439 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28440 | PyObject *resultobj; | |
28441 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28442 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28443 | bool result; | |
28444 | PyObject * obj0 = 0 ; | |
28445 | PyObject * obj1 = 0 ; | |
28446 | char *kwnames[] = { | |
28447 | (char *) "self",(char *) "item", NULL | |
28448 | }; | |
28449 | ||
28450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28455 | { |
28456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28457 | result = (bool)(arg1)->Delete(arg2); | |
28458 | ||
28459 | wxPyEndAllowThreads(__tstate); | |
28460 | if (PyErr_Occurred()) SWIG_fail; | |
28461 | } | |
4e760a36 | 28462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28463 | return resultobj; |
28464 | fail: | |
28465 | return NULL; | |
28466 | } | |
28467 | ||
28468 | ||
28469 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28470 | PyObject *resultobj; | |
28471 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28472 | PyObject * obj0 = 0 ; | |
28473 | char *kwnames[] = { | |
28474 | (char *) "self", NULL | |
28475 | }; | |
28476 | ||
28477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28480 | { |
28481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28482 | wxMenu_Destroy(arg1); | |
28483 | ||
28484 | wxPyEndAllowThreads(__tstate); | |
28485 | if (PyErr_Occurred()) SWIG_fail; | |
28486 | } | |
28487 | Py_INCREF(Py_None); resultobj = Py_None; | |
28488 | return resultobj; | |
28489 | fail: | |
28490 | return NULL; | |
28491 | } | |
28492 | ||
28493 | ||
28494 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28495 | PyObject *resultobj; | |
28496 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28497 | int arg2 ; | |
28498 | bool result; | |
28499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28500 | PyObject * obj1 = 0 ; |
d14a1e28 | 28501 | char *kwnames[] = { |
f0983263 | 28502 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28503 | }; |
28504 | ||
8edf1c75 | 28505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28508 | arg2 = (int) SWIG_AsInt(obj1); | |
28509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28510 | { |
28511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28512 | result = (bool)(arg1)->Destroy(arg2); | |
28513 | ||
28514 | wxPyEndAllowThreads(__tstate); | |
28515 | if (PyErr_Occurred()) SWIG_fail; | |
28516 | } | |
4e760a36 | 28517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28518 | return resultobj; |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
28524 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28525 | PyObject *resultobj; | |
28526 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28527 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28528 | bool result; | |
28529 | PyObject * obj0 = 0 ; | |
28530 | PyObject * obj1 = 0 ; | |
28531 | char *kwnames[] = { | |
28532 | (char *) "self",(char *) "item", NULL | |
28533 | }; | |
28534 | ||
28535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28540 | { |
28541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28542 | result = (bool)(arg1)->Destroy(arg2); | |
28543 | ||
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
4e760a36 | 28547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28548 | return resultobj; |
28549 | fail: | |
28550 | return NULL; | |
28551 | } | |
28552 | ||
28553 | ||
28554 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28555 | PyObject *resultobj; | |
28556 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28557 | size_t result; | |
28558 | PyObject * obj0 = 0 ; | |
28559 | char *kwnames[] = { | |
28560 | (char *) "self", NULL | |
28561 | }; | |
28562 | ||
28563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28566 | { |
28567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28568 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28569 | ||
28570 | wxPyEndAllowThreads(__tstate); | |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
2f4c0a16 | 28573 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
28574 | return resultobj; |
28575 | fail: | |
28576 | return NULL; | |
28577 | } | |
28578 | ||
28579 | ||
28580 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28581 | PyObject *resultobj; | |
28582 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28583 | PyObject *result; | |
28584 | PyObject * obj0 = 0 ; | |
28585 | char *kwnames[] = { | |
28586 | (char *) "self", NULL | |
28587 | }; | |
28588 | ||
28589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28592 | { |
28593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28594 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
28595 | ||
28596 | wxPyEndAllowThreads(__tstate); | |
28597 | if (PyErr_Occurred()) SWIG_fail; | |
28598 | } | |
28599 | resultobj = result; | |
28600 | return resultobj; | |
28601 | fail: | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
28606 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28607 | PyObject *resultobj; | |
28608 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28609 | wxString *arg2 = 0 ; | |
28610 | int result; | |
423f194a | 28611 | bool temp2 = False ; |
d14a1e28 RD |
28612 | PyObject * obj0 = 0 ; |
28613 | PyObject * obj1 = 0 ; | |
28614 | char *kwnames[] = { | |
28615 | (char *) "self",(char *) "item", NULL | |
28616 | }; | |
28617 | ||
28618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28621 | { |
28622 | arg2 = wxString_in_helper(obj1); | |
28623 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28624 | temp2 = True; |
d14a1e28 RD |
28625 | } |
28626 | { | |
28627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28628 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
28629 | ||
28630 | wxPyEndAllowThreads(__tstate); | |
28631 | if (PyErr_Occurred()) SWIG_fail; | |
28632 | } | |
2f4c0a16 | 28633 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28634 | { |
28635 | if (temp2) | |
28636 | delete arg2; | |
28637 | } | |
28638 | return resultobj; | |
28639 | fail: | |
28640 | { | |
28641 | if (temp2) | |
28642 | delete arg2; | |
28643 | } | |
28644 | return NULL; | |
28645 | } | |
28646 | ||
28647 | ||
28648 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28649 | PyObject *resultobj; | |
28650 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28651 | int arg2 ; | |
28652 | wxMenuItem *result; | |
28653 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28654 | PyObject * obj1 = 0 ; |
d14a1e28 | 28655 | char *kwnames[] = { |
f0983263 | 28656 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28657 | }; |
28658 | ||
8edf1c75 | 28659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28662 | arg2 = (int) SWIG_AsInt(obj1); | |
28663 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28664 | { |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | { | |
28672 | resultobj = wxPyMake_wxObject(result); | |
28673 | } | |
28674 | return resultobj; | |
28675 | fail: | |
28676 | return NULL; | |
28677 | } | |
28678 | ||
28679 | ||
28680 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28681 | PyObject *resultobj; | |
28682 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28683 | size_t arg2 ; | |
28684 | wxMenuItem *result; | |
28685 | PyObject * obj0 = 0 ; | |
28686 | PyObject * obj1 = 0 ; | |
28687 | char *kwnames[] = { | |
28688 | (char *) "self",(char *) "position", NULL | |
28689 | }; | |
28690 | ||
28691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28694 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28695 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28696 | { |
28697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28698 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
28699 | ||
28700 | wxPyEndAllowThreads(__tstate); | |
28701 | if (PyErr_Occurred()) SWIG_fail; | |
28702 | } | |
28703 | { | |
28704 | resultobj = wxPyMake_wxObject(result); | |
28705 | } | |
28706 | return resultobj; | |
28707 | fail: | |
28708 | return NULL; | |
28709 | } | |
28710 | ||
28711 | ||
28712 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28713 | PyObject *resultobj; | |
28714 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28715 | int arg2 ; | |
28716 | bool arg3 ; | |
28717 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28719 | PyObject * obj2 = 0 ; |
28720 | char *kwnames[] = { | |
f0983263 | 28721 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
28722 | }; |
28723 | ||
8edf1c75 | 28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | arg2 = (int) SWIG_AsInt(obj1); | |
28728 | if (PyErr_Occurred()) SWIG_fail; | |
28729 | arg3 = (bool) SWIG_AsBool(obj2); | |
28730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28731 | { |
28732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28733 | (arg1)->Enable(arg2,arg3); | |
28734 | ||
28735 | wxPyEndAllowThreads(__tstate); | |
28736 | if (PyErr_Occurred()) SWIG_fail; | |
28737 | } | |
28738 | Py_INCREF(Py_None); resultobj = Py_None; | |
28739 | return resultobj; | |
28740 | fail: | |
28741 | return NULL; | |
28742 | } | |
28743 | ||
28744 | ||
28745 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28746 | PyObject *resultobj; | |
28747 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28748 | int arg2 ; | |
28749 | bool result; | |
28750 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28751 | PyObject * obj1 = 0 ; |
d14a1e28 | 28752 | char *kwnames[] = { |
f0983263 | 28753 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28754 | }; |
28755 | ||
8edf1c75 | 28756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28759 | arg2 = (int) SWIG_AsInt(obj1); | |
28760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28761 | { |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
4e760a36 | 28768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28769 | return resultobj; |
28770 | fail: | |
28771 | return NULL; | |
28772 | } | |
28773 | ||
28774 | ||
28775 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28776 | PyObject *resultobj; | |
28777 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28778 | int arg2 ; | |
28779 | bool arg3 ; | |
28780 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28782 | PyObject * obj2 = 0 ; |
28783 | char *kwnames[] = { | |
f0983263 | 28784 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
28785 | }; |
28786 | ||
8edf1c75 | 28787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28790 | arg2 = (int) SWIG_AsInt(obj1); | |
28791 | if (PyErr_Occurred()) SWIG_fail; | |
28792 | arg3 = (bool) SWIG_AsBool(obj2); | |
28793 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28794 | { |
28795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28796 | (arg1)->Check(arg2,arg3); | |
28797 | ||
28798 | wxPyEndAllowThreads(__tstate); | |
28799 | if (PyErr_Occurred()) SWIG_fail; | |
28800 | } | |
28801 | Py_INCREF(Py_None); resultobj = Py_None; | |
28802 | return resultobj; | |
28803 | fail: | |
28804 | return NULL; | |
28805 | } | |
28806 | ||
28807 | ||
28808 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28809 | PyObject *resultobj; | |
28810 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28811 | int arg2 ; | |
28812 | bool result; | |
28813 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28814 | PyObject * obj1 = 0 ; |
d14a1e28 | 28815 | char *kwnames[] = { |
f0983263 | 28816 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28817 | }; |
28818 | ||
8edf1c75 | 28819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28822 | arg2 = (int) SWIG_AsInt(obj1); | |
28823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28824 | { |
28825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28826 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
28827 | ||
28828 | wxPyEndAllowThreads(__tstate); | |
28829 | if (PyErr_Occurred()) SWIG_fail; | |
28830 | } | |
4e760a36 | 28831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
28832 | return resultobj; |
28833 | fail: | |
28834 | return NULL; | |
28835 | } | |
28836 | ||
28837 | ||
28838 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28839 | PyObject *resultobj; | |
28840 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28841 | int arg2 ; | |
28842 | wxString *arg3 = 0 ; | |
423f194a | 28843 | bool temp3 = False ; |
d14a1e28 | 28844 | PyObject * obj0 = 0 ; |
8edf1c75 | 28845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28846 | PyObject * obj2 = 0 ; |
28847 | char *kwnames[] = { | |
f0983263 | 28848 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
28849 | }; |
28850 | ||
8edf1c75 | 28851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28854 | arg2 = (int) SWIG_AsInt(obj1); | |
28855 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28856 | { |
28857 | arg3 = wxString_in_helper(obj2); | |
28858 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28859 | temp3 = True; |
d14a1e28 RD |
28860 | } |
28861 | { | |
28862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28863 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
28864 | ||
28865 | wxPyEndAllowThreads(__tstate); | |
28866 | if (PyErr_Occurred()) SWIG_fail; | |
28867 | } | |
28868 | Py_INCREF(Py_None); resultobj = Py_None; | |
28869 | { | |
28870 | if (temp3) | |
28871 | delete arg3; | |
28872 | } | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | { | |
28876 | if (temp3) | |
28877 | delete arg3; | |
28878 | } | |
28879 | return NULL; | |
28880 | } | |
28881 | ||
28882 | ||
28883 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28884 | PyObject *resultobj; | |
28885 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28886 | int arg2 ; | |
28887 | wxString result; | |
28888 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28889 | PyObject * obj1 = 0 ; |
d14a1e28 | 28890 | char *kwnames[] = { |
f0983263 | 28891 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28892 | }; |
28893 | ||
8edf1c75 | 28894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28897 | arg2 = (int) SWIG_AsInt(obj1); | |
28898 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28899 | { |
28900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28901 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
28902 | ||
28903 | wxPyEndAllowThreads(__tstate); | |
28904 | if (PyErr_Occurred()) SWIG_fail; | |
28905 | } | |
28906 | { | |
28907 | #if wxUSE_UNICODE | |
28908 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28909 | #else | |
28910 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28911 | #endif | |
28912 | } | |
28913 | return resultobj; | |
28914 | fail: | |
28915 | return NULL; | |
28916 | } | |
28917 | ||
28918 | ||
28919 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28920 | PyObject *resultobj; | |
28921 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28922 | int arg2 ; | |
28923 | wxString *arg3 = 0 ; | |
423f194a | 28924 | bool temp3 = False ; |
d14a1e28 | 28925 | PyObject * obj0 = 0 ; |
8edf1c75 | 28926 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28927 | PyObject * obj2 = 0 ; |
28928 | char *kwnames[] = { | |
f0983263 | 28929 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
28930 | }; |
28931 | ||
8edf1c75 | 28932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28935 | arg2 = (int) SWIG_AsInt(obj1); | |
28936 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28937 | { |
28938 | arg3 = wxString_in_helper(obj2); | |
28939 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28940 | temp3 = True; |
d14a1e28 RD |
28941 | } |
28942 | { | |
28943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28944 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
28945 | ||
28946 | wxPyEndAllowThreads(__tstate); | |
28947 | if (PyErr_Occurred()) SWIG_fail; | |
28948 | } | |
28949 | Py_INCREF(Py_None); resultobj = Py_None; | |
28950 | { | |
28951 | if (temp3) | |
28952 | delete arg3; | |
28953 | } | |
28954 | return resultobj; | |
28955 | fail: | |
28956 | { | |
28957 | if (temp3) | |
28958 | delete arg3; | |
28959 | } | |
28960 | return NULL; | |
28961 | } | |
28962 | ||
28963 | ||
28964 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28965 | PyObject *resultobj; | |
28966 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28967 | int arg2 ; | |
28968 | wxString result; | |
28969 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28970 | PyObject * obj1 = 0 ; |
d14a1e28 | 28971 | char *kwnames[] = { |
f0983263 | 28972 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28973 | }; |
28974 | ||
8edf1c75 | 28975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28978 | arg2 = (int) SWIG_AsInt(obj1); | |
28979 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28980 | { |
28981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28982 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
28983 | ||
28984 | wxPyEndAllowThreads(__tstate); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | { | |
28988 | #if wxUSE_UNICODE | |
28989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28990 | #else | |
28991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28992 | #endif | |
28993 | } | |
28994 | return resultobj; | |
28995 | fail: | |
28996 | return NULL; | |
28997 | } | |
28998 | ||
28999 | ||
29000 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29001 | PyObject *resultobj; | |
29002 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29003 | wxString *arg2 = 0 ; | |
423f194a | 29004 | bool temp2 = False ; |
d14a1e28 RD |
29005 | PyObject * obj0 = 0 ; |
29006 | PyObject * obj1 = 0 ; | |
29007 | char *kwnames[] = { | |
29008 | (char *) "self",(char *) "title", NULL | |
29009 | }; | |
29010 | ||
29011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29014 | { |
29015 | arg2 = wxString_in_helper(obj1); | |
29016 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29017 | temp2 = True; |
d14a1e28 RD |
29018 | } |
29019 | { | |
29020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29021 | (arg1)->SetTitle((wxString const &)*arg2); | |
29022 | ||
29023 | wxPyEndAllowThreads(__tstate); | |
29024 | if (PyErr_Occurred()) SWIG_fail; | |
29025 | } | |
29026 | Py_INCREF(Py_None); resultobj = Py_None; | |
29027 | { | |
29028 | if (temp2) | |
29029 | delete arg2; | |
29030 | } | |
29031 | return resultobj; | |
29032 | fail: | |
29033 | { | |
29034 | if (temp2) | |
29035 | delete arg2; | |
29036 | } | |
29037 | return NULL; | |
29038 | } | |
29039 | ||
29040 | ||
29041 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29042 | PyObject *resultobj; | |
29043 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29044 | wxString result; | |
29045 | PyObject * obj0 = 0 ; | |
29046 | char *kwnames[] = { | |
29047 | (char *) "self", NULL | |
29048 | }; | |
29049 | ||
29050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",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 = ((wxMenu const *)arg1)->GetTitle(); | |
29056 | ||
29057 | wxPyEndAllowThreads(__tstate); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | } | |
29060 | { | |
29061 | #if wxUSE_UNICODE | |
29062 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29063 | #else | |
29064 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29065 | #endif | |
29066 | } | |
29067 | return resultobj; | |
29068 | fail: | |
29069 | return NULL; | |
29070 | } | |
29071 | ||
29072 | ||
29073 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29074 | PyObject *resultobj; | |
29075 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29076 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
29077 | PyObject * obj0 = 0 ; | |
29078 | PyObject * obj1 = 0 ; | |
29079 | char *kwnames[] = { | |
29080 | (char *) "self",(char *) "handler", NULL | |
29081 | }; | |
29082 | ||
29083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
29087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29088 | { |
29089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29090 | (arg1)->SetEventHandler(arg2); | |
29091 | ||
29092 | wxPyEndAllowThreads(__tstate); | |
29093 | if (PyErr_Occurred()) SWIG_fail; | |
29094 | } | |
29095 | Py_INCREF(Py_None); resultobj = Py_None; | |
29096 | return resultobj; | |
29097 | fail: | |
29098 | return NULL; | |
29099 | } | |
29100 | ||
29101 | ||
29102 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29103 | PyObject *resultobj; | |
29104 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29105 | wxEvtHandler *result; | |
29106 | PyObject * obj0 = 0 ; | |
29107 | char *kwnames[] = { | |
29108 | (char *) "self", NULL | |
29109 | }; | |
29110 | ||
29111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29114 | { |
29115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29116 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
29117 | ||
29118 | wxPyEndAllowThreads(__tstate); | |
29119 | if (PyErr_Occurred()) SWIG_fail; | |
29120 | } | |
29121 | { | |
29122 | resultobj = wxPyMake_wxObject(result); | |
29123 | } | |
29124 | return resultobj; | |
29125 | fail: | |
29126 | return NULL; | |
29127 | } | |
29128 | ||
29129 | ||
29130 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29131 | PyObject *resultobj; | |
29132 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29133 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29134 | PyObject * obj0 = 0 ; | |
29135 | PyObject * obj1 = 0 ; | |
29136 | char *kwnames[] = { | |
29137 | (char *) "self",(char *) "win", NULL | |
29138 | }; | |
29139 | ||
29140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29145 | { |
29146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29147 | (arg1)->SetInvokingWindow(arg2); | |
29148 | ||
29149 | wxPyEndAllowThreads(__tstate); | |
29150 | if (PyErr_Occurred()) SWIG_fail; | |
29151 | } | |
29152 | Py_INCREF(Py_None); resultobj = Py_None; | |
29153 | return resultobj; | |
29154 | fail: | |
29155 | return NULL; | |
29156 | } | |
29157 | ||
29158 | ||
29159 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29160 | PyObject *resultobj; | |
29161 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29162 | wxWindow *result; | |
29163 | PyObject * obj0 = 0 ; | |
29164 | char *kwnames[] = { | |
29165 | (char *) "self", NULL | |
29166 | }; | |
29167 | ||
29168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29171 | { |
29172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29173 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
29174 | ||
29175 | wxPyEndAllowThreads(__tstate); | |
29176 | if (PyErr_Occurred()) SWIG_fail; | |
29177 | } | |
29178 | { | |
29179 | resultobj = wxPyMake_wxObject(result); | |
29180 | } | |
29181 | return resultobj; | |
29182 | fail: | |
29183 | return NULL; | |
29184 | } | |
29185 | ||
29186 | ||
29187 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29188 | PyObject *resultobj; | |
29189 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29190 | long result; | |
29191 | PyObject * obj0 = 0 ; | |
29192 | char *kwnames[] = { | |
29193 | (char *) "self", NULL | |
29194 | }; | |
29195 | ||
29196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29199 | { |
29200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29201 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
29202 | ||
29203 | wxPyEndAllowThreads(__tstate); | |
29204 | if (PyErr_Occurred()) SWIG_fail; | |
29205 | } | |
2f4c0a16 | 29206 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
29207 | return resultobj; |
29208 | fail: | |
29209 | return NULL; | |
29210 | } | |
29211 | ||
29212 | ||
29213 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29214 | PyObject *resultobj; | |
29215 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29216 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
29217 | PyObject * obj0 = 0 ; | |
29218 | PyObject * obj1 = 0 ; | |
29219 | char *kwnames[] = { | |
29220 | (char *) "self",(char *) "source", NULL | |
29221 | }; | |
29222 | ||
29223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29226 | if (obj1) { |
2f4c0a16 RD |
29227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
29228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29229 | } |
29230 | { | |
29231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29232 | (arg1)->UpdateUI(arg2); | |
29233 | ||
29234 | wxPyEndAllowThreads(__tstate); | |
29235 | if (PyErr_Occurred()) SWIG_fail; | |
29236 | } | |
29237 | Py_INCREF(Py_None); resultobj = Py_None; | |
29238 | return resultobj; | |
29239 | fail: | |
29240 | return NULL; | |
29241 | } | |
29242 | ||
29243 | ||
29244 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29245 | PyObject *resultobj; | |
29246 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29247 | wxMenuBar *result; | |
29248 | PyObject * obj0 = 0 ; | |
29249 | char *kwnames[] = { | |
29250 | (char *) "self", NULL | |
29251 | }; | |
29252 | ||
29253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29256 | { |
29257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29258 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
29259 | ||
29260 | wxPyEndAllowThreads(__tstate); | |
29261 | if (PyErr_Occurred()) SWIG_fail; | |
29262 | } | |
29263 | { | |
29264 | resultobj = wxPyMake_wxObject(result); | |
29265 | } | |
29266 | return resultobj; | |
29267 | fail: | |
29268 | return NULL; | |
29269 | } | |
29270 | ||
29271 | ||
29272 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29273 | PyObject *resultobj; | |
29274 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29275 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
29276 | PyObject * obj0 = 0 ; | |
29277 | PyObject * obj1 = 0 ; | |
29278 | char *kwnames[] = { | |
29279 | (char *) "self",(char *) "menubar", NULL | |
29280 | }; | |
29281 | ||
29282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
29286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29287 | { |
29288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29289 | (arg1)->Attach(arg2); | |
29290 | ||
29291 | wxPyEndAllowThreads(__tstate); | |
29292 | if (PyErr_Occurred()) SWIG_fail; | |
29293 | } | |
29294 | Py_INCREF(Py_None); resultobj = Py_None; | |
29295 | return resultobj; | |
29296 | fail: | |
29297 | return NULL; | |
29298 | } | |
29299 | ||
29300 | ||
29301 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29302 | PyObject *resultobj; | |
29303 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29304 | PyObject * obj0 = 0 ; | |
29305 | char *kwnames[] = { | |
29306 | (char *) "self", NULL | |
29307 | }; | |
29308 | ||
29309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29312 | { |
29313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29314 | (arg1)->Detach(); | |
29315 | ||
29316 | wxPyEndAllowThreads(__tstate); | |
29317 | if (PyErr_Occurred()) SWIG_fail; | |
29318 | } | |
29319 | Py_INCREF(Py_None); resultobj = Py_None; | |
29320 | return resultobj; | |
29321 | fail: | |
29322 | return NULL; | |
29323 | } | |
29324 | ||
29325 | ||
29326 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29327 | PyObject *resultobj; | |
29328 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29329 | bool result; | |
29330 | PyObject * obj0 = 0 ; | |
29331 | char *kwnames[] = { | |
29332 | (char *) "self", NULL | |
29333 | }; | |
29334 | ||
29335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29338 | { |
29339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29340 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29341 | ||
29342 | wxPyEndAllowThreads(__tstate); | |
29343 | if (PyErr_Occurred()) SWIG_fail; | |
29344 | } | |
4e760a36 | 29345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29346 | return resultobj; |
29347 | fail: | |
29348 | return NULL; | |
29349 | } | |
29350 | ||
29351 | ||
29352 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29353 | PyObject *resultobj; | |
29354 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29355 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29356 | PyObject * obj0 = 0 ; | |
29357 | PyObject * obj1 = 0 ; | |
29358 | char *kwnames[] = { | |
29359 | (char *) "self",(char *) "parent", NULL | |
29360 | }; | |
29361 | ||
29362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29367 | { |
29368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29369 | (arg1)->SetParent(arg2); | |
29370 | ||
29371 | wxPyEndAllowThreads(__tstate); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
29373 | } | |
29374 | Py_INCREF(Py_None); resultobj = Py_None; | |
29375 | return resultobj; | |
29376 | fail: | |
29377 | return NULL; | |
29378 | } | |
29379 | ||
29380 | ||
29381 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29382 | PyObject *resultobj; | |
29383 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29384 | wxMenu *result; | |
29385 | PyObject * obj0 = 0 ; | |
29386 | char *kwnames[] = { | |
29387 | (char *) "self", NULL | |
29388 | }; | |
29389 | ||
29390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29393 | { |
29394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29395 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29396 | ||
29397 | wxPyEndAllowThreads(__tstate); | |
29398 | if (PyErr_Occurred()) SWIG_fail; | |
29399 | } | |
29400 | { | |
29401 | resultobj = wxPyMake_wxObject(result); | |
29402 | } | |
29403 | return resultobj; | |
29404 | fail: | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
29409 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29410 | PyObject *obj; | |
29411 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29412 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29413 | Py_INCREF(obj); | |
29414 | return Py_BuildValue((char *)""); | |
29415 | } | |
29416 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29417 | PyObject *resultobj; | |
29418 | long arg1 = (long) 0 ; | |
29419 | wxMenuBar *result; | |
8edf1c75 | 29420 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29421 | char *kwnames[] = { |
29422 | (char *) "style", NULL | |
29423 | }; | |
29424 | ||
8edf1c75 RD |
29425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29426 | if (obj0) { | |
2f4c0a16 RD |
29427 | arg1 = (long) SWIG_AsLong(obj0); |
29428 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29429 | } |
d14a1e28 RD |
29430 | { |
29431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29432 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29433 | ||
29434 | wxPyEndAllowThreads(__tstate); | |
29435 | if (PyErr_Occurred()) SWIG_fail; | |
29436 | } | |
29437 | { | |
29438 | resultobj = wxPyMake_wxObject(result); | |
29439 | } | |
29440 | return resultobj; | |
29441 | fail: | |
29442 | return NULL; | |
29443 | } | |
29444 | ||
29445 | ||
29446 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29447 | PyObject *resultobj; | |
29448 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29449 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29450 | wxString *arg3 = 0 ; | |
29451 | bool result; | |
423f194a | 29452 | bool temp3 = False ; |
d14a1e28 RD |
29453 | PyObject * obj0 = 0 ; |
29454 | PyObject * obj1 = 0 ; | |
29455 | PyObject * obj2 = 0 ; | |
29456 | char *kwnames[] = { | |
29457 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29458 | }; | |
29459 | ||
29460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29465 | { |
29466 | arg3 = wxString_in_helper(obj2); | |
29467 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29468 | temp3 = True; |
d14a1e28 RD |
29469 | } |
29470 | { | |
29471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29472 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29473 | ||
29474 | wxPyEndAllowThreads(__tstate); | |
29475 | if (PyErr_Occurred()) SWIG_fail; | |
29476 | } | |
4e760a36 | 29477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29478 | { |
29479 | if (temp3) | |
29480 | delete arg3; | |
29481 | } | |
29482 | return resultobj; | |
29483 | fail: | |
29484 | { | |
29485 | if (temp3) | |
29486 | delete arg3; | |
29487 | } | |
29488 | return NULL; | |
29489 | } | |
29490 | ||
29491 | ||
29492 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29493 | PyObject *resultobj; | |
29494 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29495 | size_t arg2 ; | |
29496 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29497 | wxString *arg4 = 0 ; | |
29498 | bool result; | |
423f194a | 29499 | bool temp4 = False ; |
d14a1e28 RD |
29500 | PyObject * obj0 = 0 ; |
29501 | PyObject * obj1 = 0 ; | |
29502 | PyObject * obj2 = 0 ; | |
29503 | PyObject * obj3 = 0 ; | |
29504 | char *kwnames[] = { | |
29505 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29506 | }; | |
29507 | ||
29508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29511 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29512 | if (PyErr_Occurred()) SWIG_fail; | |
29513 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29515 | { |
29516 | arg4 = wxString_in_helper(obj3); | |
29517 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29518 | temp4 = True; |
d14a1e28 RD |
29519 | } |
29520 | { | |
29521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29522 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29523 | ||
29524 | wxPyEndAllowThreads(__tstate); | |
29525 | if (PyErr_Occurred()) SWIG_fail; | |
29526 | } | |
4e760a36 | 29527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29528 | { |
29529 | if (temp4) | |
29530 | delete arg4; | |
29531 | } | |
29532 | return resultobj; | |
29533 | fail: | |
29534 | { | |
29535 | if (temp4) | |
29536 | delete arg4; | |
29537 | } | |
29538 | return NULL; | |
29539 | } | |
29540 | ||
29541 | ||
29542 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29543 | PyObject *resultobj; | |
29544 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29545 | size_t result; | |
29546 | PyObject * obj0 = 0 ; | |
29547 | char *kwnames[] = { | |
29548 | (char *) "self", NULL | |
29549 | }; | |
29550 | ||
29551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29554 | { |
29555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29556 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29557 | ||
29558 | wxPyEndAllowThreads(__tstate); | |
29559 | if (PyErr_Occurred()) SWIG_fail; | |
29560 | } | |
2f4c0a16 | 29561 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29562 | return resultobj; |
29563 | fail: | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
29568 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29569 | PyObject *resultobj; | |
29570 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29571 | size_t arg2 ; | |
29572 | wxMenu *result; | |
29573 | PyObject * obj0 = 0 ; | |
29574 | PyObject * obj1 = 0 ; | |
29575 | char *kwnames[] = { | |
29576 | (char *) "self",(char *) "pos", NULL | |
29577 | }; | |
29578 | ||
29579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29582 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29584 | { |
29585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29586 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
29587 | ||
29588 | wxPyEndAllowThreads(__tstate); | |
29589 | if (PyErr_Occurred()) SWIG_fail; | |
29590 | } | |
29591 | { | |
29592 | resultobj = wxPyMake_wxObject(result); | |
29593 | } | |
29594 | return resultobj; | |
29595 | fail: | |
29596 | return NULL; | |
29597 | } | |
29598 | ||
29599 | ||
29600 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29601 | PyObject *resultobj; | |
29602 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29603 | size_t arg2 ; | |
29604 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29605 | wxString *arg4 = 0 ; | |
29606 | wxMenu *result; | |
423f194a | 29607 | bool temp4 = False ; |
d14a1e28 RD |
29608 | PyObject * obj0 = 0 ; |
29609 | PyObject * obj1 = 0 ; | |
29610 | PyObject * obj2 = 0 ; | |
29611 | PyObject * obj3 = 0 ; | |
29612 | char *kwnames[] = { | |
29613 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29614 | }; | |
29615 | ||
29616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29619 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29623 | { |
29624 | arg4 = wxString_in_helper(obj3); | |
29625 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29626 | temp4 = True; |
d14a1e28 RD |
29627 | } |
29628 | { | |
29629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29630 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
29631 | ||
29632 | wxPyEndAllowThreads(__tstate); | |
29633 | if (PyErr_Occurred()) SWIG_fail; | |
29634 | } | |
29635 | { | |
29636 | resultobj = wxPyMake_wxObject(result); | |
29637 | } | |
29638 | { | |
29639 | if (temp4) | |
29640 | delete arg4; | |
29641 | } | |
29642 | return resultobj; | |
29643 | fail: | |
29644 | { | |
29645 | if (temp4) | |
29646 | delete arg4; | |
29647 | } | |
29648 | return NULL; | |
29649 | } | |
29650 | ||
29651 | ||
29652 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29653 | PyObject *resultobj; | |
29654 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29655 | size_t arg2 ; | |
29656 | wxMenu *result; | |
29657 | PyObject * obj0 = 0 ; | |
29658 | PyObject * obj1 = 0 ; | |
29659 | char *kwnames[] = { | |
29660 | (char *) "self",(char *) "pos", NULL | |
29661 | }; | |
29662 | ||
29663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29666 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29667 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29668 | { |
29669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29670 | result = (wxMenu *)(arg1)->Remove(arg2); | |
29671 | ||
29672 | wxPyEndAllowThreads(__tstate); | |
29673 | if (PyErr_Occurred()) SWIG_fail; | |
29674 | } | |
29675 | { | |
29676 | resultobj = wxPyMake_wxObject(result); | |
29677 | } | |
29678 | return resultobj; | |
29679 | fail: | |
29680 | return NULL; | |
29681 | } | |
29682 | ||
29683 | ||
29684 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29685 | PyObject *resultobj; | |
29686 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29687 | size_t arg2 ; | |
29688 | bool arg3 ; | |
29689 | PyObject * obj0 = 0 ; | |
29690 | PyObject * obj1 = 0 ; | |
29691 | PyObject * obj2 = 0 ; | |
29692 | char *kwnames[] = { | |
29693 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
29694 | }; | |
29695 | ||
29696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29699 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29700 | if (PyErr_Occurred()) SWIG_fail; | |
29701 | arg3 = (bool) SWIG_AsBool(obj2); | |
29702 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29703 | { |
29704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29705 | (arg1)->EnableTop(arg2,arg3); | |
29706 | ||
29707 | wxPyEndAllowThreads(__tstate); | |
29708 | if (PyErr_Occurred()) SWIG_fail; | |
29709 | } | |
29710 | Py_INCREF(Py_None); resultobj = Py_None; | |
29711 | return resultobj; | |
29712 | fail: | |
29713 | return NULL; | |
29714 | } | |
29715 | ||
29716 | ||
29717 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29718 | PyObject *resultobj; | |
29719 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29720 | size_t arg2 ; | |
29721 | bool result; | |
29722 | PyObject * obj0 = 0 ; | |
29723 | PyObject * obj1 = 0 ; | |
29724 | char *kwnames[] = { | |
29725 | (char *) "self",(char *) "pos", NULL | |
29726 | }; | |
29727 | ||
29728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29731 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29733 | { |
29734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29735 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
29736 | ||
29737 | wxPyEndAllowThreads(__tstate); | |
29738 | if (PyErr_Occurred()) SWIG_fail; | |
29739 | } | |
4e760a36 | 29740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
29741 | return resultobj; |
29742 | fail: | |
29743 | return NULL; | |
29744 | } | |
29745 | ||
29746 | ||
29747 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29748 | PyObject *resultobj; | |
29749 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29750 | size_t arg2 ; | |
29751 | wxString *arg3 = 0 ; | |
423f194a | 29752 | bool temp3 = False ; |
d14a1e28 RD |
29753 | PyObject * obj0 = 0 ; |
29754 | PyObject * obj1 = 0 ; | |
29755 | PyObject * obj2 = 0 ; | |
29756 | char *kwnames[] = { | |
29757 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
29758 | }; | |
29759 | ||
29760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29763 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29765 | { |
29766 | arg3 = wxString_in_helper(obj2); | |
29767 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29768 | temp3 = True; |
d14a1e28 RD |
29769 | } |
29770 | { | |
29771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29772 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
29773 | ||
29774 | wxPyEndAllowThreads(__tstate); | |
29775 | if (PyErr_Occurred()) SWIG_fail; | |
29776 | } | |
29777 | Py_INCREF(Py_None); resultobj = Py_None; | |
29778 | { | |
29779 | if (temp3) | |
29780 | delete arg3; | |
29781 | } | |
29782 | return resultobj; | |
29783 | fail: | |
29784 | { | |
29785 | if (temp3) | |
29786 | delete arg3; | |
29787 | } | |
29788 | return NULL; | |
29789 | } | |
29790 | ||
29791 | ||
29792 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29793 | PyObject *resultobj; | |
29794 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29795 | size_t arg2 ; | |
29796 | wxString result; | |
29797 | PyObject * obj0 = 0 ; | |
29798 | PyObject * obj1 = 0 ; | |
29799 | char *kwnames[] = { | |
29800 | (char *) "self",(char *) "pos", NULL | |
29801 | }; | |
29802 | ||
29803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29806 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29807 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29808 | { |
29809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29810 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
29811 | ||
29812 | wxPyEndAllowThreads(__tstate); | |
29813 | if (PyErr_Occurred()) SWIG_fail; | |
29814 | } | |
29815 | { | |
29816 | #if wxUSE_UNICODE | |
29817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29818 | #else | |
29819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29820 | #endif | |
29821 | } | |
29822 | return resultobj; | |
29823 | fail: | |
29824 | return NULL; | |
29825 | } | |
29826 | ||
29827 | ||
29828 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29829 | PyObject *resultobj; | |
29830 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29831 | wxString *arg2 = 0 ; | |
29832 | wxString *arg3 = 0 ; | |
29833 | int result; | |
423f194a RD |
29834 | bool temp2 = False ; |
29835 | bool temp3 = False ; | |
d14a1e28 RD |
29836 | PyObject * obj0 = 0 ; |
29837 | PyObject * obj1 = 0 ; | |
29838 | PyObject * obj2 = 0 ; | |
29839 | char *kwnames[] = { | |
29840 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
29841 | }; | |
29842 | ||
29843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29846 | { |
29847 | arg2 = wxString_in_helper(obj1); | |
29848 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29849 | temp2 = True; |
d14a1e28 RD |
29850 | } |
29851 | { | |
29852 | arg3 = wxString_in_helper(obj2); | |
29853 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29854 | temp3 = True; |
d14a1e28 RD |
29855 | } |
29856 | { | |
29857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29858 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
29859 | ||
29860 | wxPyEndAllowThreads(__tstate); | |
29861 | if (PyErr_Occurred()) SWIG_fail; | |
29862 | } | |
2f4c0a16 | 29863 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29864 | { |
29865 | if (temp2) | |
29866 | delete arg2; | |
29867 | } | |
29868 | { | |
29869 | if (temp3) | |
29870 | delete arg3; | |
29871 | } | |
29872 | return resultobj; | |
29873 | fail: | |
29874 | { | |
29875 | if (temp2) | |
29876 | delete arg2; | |
29877 | } | |
29878 | { | |
29879 | if (temp3) | |
29880 | delete arg3; | |
29881 | } | |
29882 | return NULL; | |
29883 | } | |
29884 | ||
29885 | ||
29886 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29887 | PyObject *resultobj; | |
29888 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29889 | int arg2 ; | |
29890 | wxMenuItem *result; | |
29891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29892 | PyObject * obj1 = 0 ; |
d14a1e28 | 29893 | char *kwnames[] = { |
f0983263 | 29894 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29895 | }; |
29896 | ||
8edf1c75 | 29897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29900 | arg2 = (int) SWIG_AsInt(obj1); | |
29901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29902 | { |
29903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29904 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
29905 | ||
29906 | wxPyEndAllowThreads(__tstate); | |
29907 | if (PyErr_Occurred()) SWIG_fail; | |
29908 | } | |
29909 | { | |
29910 | resultobj = wxPyMake_wxObject(result); | |
29911 | } | |
29912 | return resultobj; | |
29913 | fail: | |
29914 | return NULL; | |
29915 | } | |
29916 | ||
29917 | ||
29918 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29919 | PyObject *resultobj; | |
29920 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29921 | wxString *arg2 = 0 ; | |
29922 | int result; | |
423f194a | 29923 | bool temp2 = False ; |
d14a1e28 RD |
29924 | PyObject * obj0 = 0 ; |
29925 | PyObject * obj1 = 0 ; | |
29926 | char *kwnames[] = { | |
29927 | (char *) "self",(char *) "title", NULL | |
29928 | }; | |
29929 | ||
29930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29933 | { |
29934 | arg2 = wxString_in_helper(obj1); | |
29935 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29936 | temp2 = True; |
d14a1e28 RD |
29937 | } |
29938 | { | |
29939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29940 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
29941 | ||
29942 | wxPyEndAllowThreads(__tstate); | |
29943 | if (PyErr_Occurred()) SWIG_fail; | |
29944 | } | |
2f4c0a16 | 29945 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29946 | { |
29947 | if (temp2) | |
29948 | delete arg2; | |
29949 | } | |
29950 | return resultobj; | |
29951 | fail: | |
29952 | { | |
29953 | if (temp2) | |
29954 | delete arg2; | |
29955 | } | |
29956 | return NULL; | |
29957 | } | |
29958 | ||
29959 | ||
29960 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29961 | PyObject *resultobj; | |
29962 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29963 | int arg2 ; | |
29964 | bool arg3 ; | |
29965 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29966 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29967 | PyObject * obj2 = 0 ; |
29968 | char *kwnames[] = { | |
f0983263 | 29969 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29970 | }; |
29971 | ||
8edf1c75 | 29972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29975 | arg2 = (int) SWIG_AsInt(obj1); | |
29976 | if (PyErr_Occurred()) SWIG_fail; | |
29977 | arg3 = (bool) SWIG_AsBool(obj2); | |
29978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29979 | { |
29980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29981 | (arg1)->Enable(arg2,arg3); | |
29982 | ||
29983 | wxPyEndAllowThreads(__tstate); | |
29984 | if (PyErr_Occurred()) SWIG_fail; | |
29985 | } | |
29986 | Py_INCREF(Py_None); resultobj = Py_None; | |
29987 | return resultobj; | |
29988 | fail: | |
29989 | return NULL; | |
29990 | } | |
29991 | ||
29992 | ||
29993 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29994 | PyObject *resultobj; | |
29995 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29996 | int arg2 ; | |
29997 | bool arg3 ; | |
29998 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30000 | PyObject * obj2 = 0 ; |
30001 | char *kwnames[] = { | |
f0983263 | 30002 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30003 | }; |
30004 | ||
8edf1c75 | 30005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30008 | arg2 = (int) SWIG_AsInt(obj1); | |
30009 | if (PyErr_Occurred()) SWIG_fail; | |
30010 | arg3 = (bool) SWIG_AsBool(obj2); | |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30012 | { |
30013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30014 | (arg1)->Check(arg2,arg3); | |
30015 | ||
30016 | wxPyEndAllowThreads(__tstate); | |
30017 | if (PyErr_Occurred()) SWIG_fail; | |
30018 | } | |
30019 | Py_INCREF(Py_None); resultobj = Py_None; | |
30020 | return resultobj; | |
30021 | fail: | |
30022 | return NULL; | |
30023 | } | |
30024 | ||
30025 | ||
30026 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30027 | PyObject *resultobj; | |
30028 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30029 | int arg2 ; | |
30030 | bool result; | |
30031 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30032 | PyObject * obj1 = 0 ; |
d14a1e28 | 30033 | char *kwnames[] = { |
f0983263 | 30034 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30035 | }; |
30036 | ||
8edf1c75 | 30037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30040 | arg2 = (int) SWIG_AsInt(obj1); | |
30041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30042 | { |
30043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30044 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
30045 | ||
30046 | wxPyEndAllowThreads(__tstate); | |
30047 | if (PyErr_Occurred()) SWIG_fail; | |
30048 | } | |
4e760a36 | 30049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30050 | return resultobj; |
30051 | fail: | |
30052 | return NULL; | |
30053 | } | |
30054 | ||
30055 | ||
30056 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30057 | PyObject *resultobj; | |
30058 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30059 | int arg2 ; | |
30060 | bool result; | |
30061 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30062 | PyObject * obj1 = 0 ; |
d14a1e28 | 30063 | char *kwnames[] = { |
f0983263 | 30064 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30065 | }; |
30066 | ||
8edf1c75 | 30067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30070 | arg2 = (int) SWIG_AsInt(obj1); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30072 | { |
30073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30074 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
30075 | ||
30076 | wxPyEndAllowThreads(__tstate); | |
30077 | if (PyErr_Occurred()) SWIG_fail; | |
30078 | } | |
4e760a36 | 30079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30080 | return resultobj; |
30081 | fail: | |
30082 | return NULL; | |
30083 | } | |
30084 | ||
30085 | ||
30086 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30087 | PyObject *resultobj; | |
30088 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30089 | int arg2 ; | |
30090 | wxString *arg3 = 0 ; | |
423f194a | 30091 | bool temp3 = False ; |
d14a1e28 | 30092 | PyObject * obj0 = 0 ; |
8edf1c75 | 30093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30094 | PyObject * obj2 = 0 ; |
30095 | char *kwnames[] = { | |
f0983263 | 30096 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30097 | }; |
30098 | ||
8edf1c75 | 30099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30102 | arg2 = (int) SWIG_AsInt(obj1); | |
30103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30104 | { |
30105 | arg3 = wxString_in_helper(obj2); | |
30106 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30107 | temp3 = True; |
d14a1e28 RD |
30108 | } |
30109 | { | |
30110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30111 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30112 | ||
30113 | wxPyEndAllowThreads(__tstate); | |
30114 | if (PyErr_Occurred()) SWIG_fail; | |
30115 | } | |
30116 | Py_INCREF(Py_None); resultobj = Py_None; | |
30117 | { | |
30118 | if (temp3) | |
30119 | delete arg3; | |
30120 | } | |
30121 | return resultobj; | |
30122 | fail: | |
30123 | { | |
30124 | if (temp3) | |
30125 | delete arg3; | |
30126 | } | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30134 | int arg2 ; | |
30135 | wxString result; | |
30136 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30137 | PyObject * obj1 = 0 ; |
d14a1e28 | 30138 | char *kwnames[] = { |
f0983263 | 30139 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30140 | }; |
30141 | ||
8edf1c75 | 30142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30145 | arg2 = (int) SWIG_AsInt(obj1); | |
30146 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30147 | { |
30148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30149 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
30150 | ||
30151 | wxPyEndAllowThreads(__tstate); | |
30152 | if (PyErr_Occurred()) SWIG_fail; | |
30153 | } | |
30154 | { | |
30155 | #if wxUSE_UNICODE | |
30156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30157 | #else | |
30158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30159 | #endif | |
30160 | } | |
30161 | return resultobj; | |
30162 | fail: | |
30163 | return NULL; | |
30164 | } | |
30165 | ||
30166 | ||
30167 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30168 | PyObject *resultobj; | |
30169 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30170 | int arg2 ; | |
30171 | wxString *arg3 = 0 ; | |
423f194a | 30172 | bool temp3 = False ; |
d14a1e28 | 30173 | PyObject * obj0 = 0 ; |
8edf1c75 | 30174 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30175 | PyObject * obj2 = 0 ; |
30176 | char *kwnames[] = { | |
f0983263 | 30177 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30178 | }; |
30179 | ||
8edf1c75 | 30180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30183 | arg2 = (int) SWIG_AsInt(obj1); | |
30184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30185 | { |
30186 | arg3 = wxString_in_helper(obj2); | |
30187 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30188 | temp3 = True; |
d14a1e28 RD |
30189 | } |
30190 | { | |
30191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30192 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30193 | ||
30194 | wxPyEndAllowThreads(__tstate); | |
30195 | if (PyErr_Occurred()) SWIG_fail; | |
30196 | } | |
30197 | Py_INCREF(Py_None); resultobj = Py_None; | |
30198 | { | |
30199 | if (temp3) | |
30200 | delete arg3; | |
30201 | } | |
30202 | return resultobj; | |
30203 | fail: | |
30204 | { | |
30205 | if (temp3) | |
30206 | delete arg3; | |
30207 | } | |
30208 | return NULL; | |
30209 | } | |
30210 | ||
30211 | ||
30212 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30213 | PyObject *resultobj; | |
30214 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30215 | int arg2 ; | |
30216 | wxString result; | |
30217 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30218 | PyObject * obj1 = 0 ; |
d14a1e28 | 30219 | char *kwnames[] = { |
f0983263 | 30220 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30221 | }; |
30222 | ||
8edf1c75 | 30223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30226 | arg2 = (int) SWIG_AsInt(obj1); | |
30227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30228 | { |
30229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30230 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
30231 | ||
30232 | wxPyEndAllowThreads(__tstate); | |
30233 | if (PyErr_Occurred()) SWIG_fail; | |
30234 | } | |
30235 | { | |
30236 | #if wxUSE_UNICODE | |
30237 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30238 | #else | |
30239 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30240 | #endif | |
30241 | } | |
30242 | return resultobj; | |
30243 | fail: | |
30244 | return NULL; | |
30245 | } | |
30246 | ||
30247 | ||
30248 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30249 | PyObject *resultobj; | |
30250 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30251 | wxFrame *result; | |
30252 | PyObject * obj0 = 0 ; | |
30253 | char *kwnames[] = { | |
30254 | (char *) "self", NULL | |
30255 | }; | |
30256 | ||
30257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30260 | { |
30261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30262 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
30263 | ||
30264 | wxPyEndAllowThreads(__tstate); | |
30265 | if (PyErr_Occurred()) SWIG_fail; | |
30266 | } | |
30267 | { | |
30268 | resultobj = wxPyMake_wxObject(result); | |
30269 | } | |
30270 | return resultobj; | |
30271 | fail: | |
30272 | return NULL; | |
30273 | } | |
30274 | ||
30275 | ||
30276 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30277 | PyObject *resultobj; | |
30278 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30279 | bool result; | |
30280 | PyObject * obj0 = 0 ; | |
30281 | char *kwnames[] = { | |
30282 | (char *) "self", NULL | |
30283 | }; | |
30284 | ||
30285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30288 | { |
30289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30290 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30291 | ||
30292 | wxPyEndAllowThreads(__tstate); | |
30293 | if (PyErr_Occurred()) SWIG_fail; | |
30294 | } | |
4e760a36 | 30295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30296 | return resultobj; |
30297 | fail: | |
30298 | return NULL; | |
30299 | } | |
30300 | ||
30301 | ||
30302 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30303 | PyObject *resultobj; | |
30304 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30305 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30306 | PyObject * obj0 = 0 ; | |
30307 | PyObject * obj1 = 0 ; | |
30308 | char *kwnames[] = { | |
30309 | (char *) "self",(char *) "frame", NULL | |
30310 | }; | |
30311 | ||
30312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
30316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30317 | { |
30318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30319 | (arg1)->Attach(arg2); | |
30320 | ||
30321 | wxPyEndAllowThreads(__tstate); | |
30322 | if (PyErr_Occurred()) SWIG_fail; | |
30323 | } | |
30324 | Py_INCREF(Py_None); resultobj = Py_None; | |
30325 | return resultobj; | |
30326 | fail: | |
30327 | return NULL; | |
30328 | } | |
30329 | ||
30330 | ||
30331 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30332 | PyObject *resultobj; | |
30333 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30334 | PyObject * obj0 = 0 ; | |
30335 | char *kwnames[] = { | |
30336 | (char *) "self", NULL | |
30337 | }; | |
30338 | ||
30339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30342 | { |
30343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30344 | (arg1)->Detach(); | |
30345 | ||
30346 | wxPyEndAllowThreads(__tstate); | |
30347 | if (PyErr_Occurred()) SWIG_fail; | |
30348 | } | |
30349 | Py_INCREF(Py_None); resultobj = Py_None; | |
30350 | return resultobj; | |
30351 | fail: | |
30352 | return NULL; | |
30353 | } | |
30354 | ||
30355 | ||
30356 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30357 | PyObject *obj; | |
30358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30359 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30360 | Py_INCREF(obj); | |
30361 | return Py_BuildValue((char *)""); | |
30362 | } | |
30363 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30364 | PyObject *resultobj; | |
30365 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30366 | int arg2 = (int) wxID_SEPARATOR ; | |
30367 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30368 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30369 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30370 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30371 | int arg5 = (int) wxITEM_NORMAL ; | |
30372 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30373 | wxMenuItem *result; | |
423f194a RD |
30374 | bool temp3 = False ; |
30375 | bool temp4 = False ; | |
d14a1e28 | 30376 | PyObject * obj0 = 0 ; |
8edf1c75 | 30377 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30378 | PyObject * obj2 = 0 ; |
30379 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30380 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30381 | PyObject * obj5 = 0 ; |
30382 | char *kwnames[] = { | |
30383 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30384 | }; | |
30385 | ||
8edf1c75 | 30386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 30387 | if (obj0) { |
2f4c0a16 RD |
30388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30390 | } |
8edf1c75 | 30391 | if (obj1) { |
2f4c0a16 RD |
30392 | arg2 = (int) SWIG_AsInt(obj1); |
30393 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30394 | } |
d14a1e28 RD |
30395 | if (obj2) { |
30396 | { | |
30397 | arg3 = wxString_in_helper(obj2); | |
30398 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30399 | temp3 = True; |
d14a1e28 RD |
30400 | } |
30401 | } | |
30402 | if (obj3) { | |
30403 | { | |
30404 | arg4 = wxString_in_helper(obj3); | |
30405 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30406 | temp4 = True; |
d14a1e28 RD |
30407 | } |
30408 | } | |
8edf1c75 | 30409 | if (obj4) { |
2f4c0a16 RD |
30410 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
30411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30412 | } |
d14a1e28 | 30413 | if (obj5) { |
2f4c0a16 RD |
30414 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
30415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30416 | } |
30417 | { | |
30418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30419 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30420 | ||
30421 | wxPyEndAllowThreads(__tstate); | |
30422 | if (PyErr_Occurred()) SWIG_fail; | |
30423 | } | |
30424 | { | |
30425 | resultobj = wxPyMake_wxObject(result); | |
30426 | } | |
30427 | { | |
30428 | if (temp3) | |
30429 | delete arg3; | |
30430 | } | |
30431 | { | |
30432 | if (temp4) | |
30433 | delete arg4; | |
30434 | } | |
30435 | return resultobj; | |
30436 | fail: | |
30437 | { | |
30438 | if (temp3) | |
30439 | delete arg3; | |
30440 | } | |
30441 | { | |
30442 | if (temp4) | |
30443 | delete arg4; | |
30444 | } | |
30445 | return NULL; | |
30446 | } | |
30447 | ||
30448 | ||
30449 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30450 | PyObject *resultobj; | |
30451 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30452 | wxMenu *result; | |
30453 | PyObject * obj0 = 0 ; | |
30454 | char *kwnames[] = { | |
30455 | (char *) "self", NULL | |
30456 | }; | |
30457 | ||
30458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30461 | { |
30462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30463 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30464 | ||
30465 | wxPyEndAllowThreads(__tstate); | |
30466 | if (PyErr_Occurred()) SWIG_fail; | |
30467 | } | |
30468 | { | |
30469 | resultobj = wxPyMake_wxObject(result); | |
30470 | } | |
30471 | return resultobj; | |
30472 | fail: | |
30473 | return NULL; | |
30474 | } | |
30475 | ||
30476 | ||
30477 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30478 | PyObject *resultobj; | |
30479 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30480 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30481 | PyObject * obj0 = 0 ; | |
30482 | PyObject * obj1 = 0 ; | |
30483 | char *kwnames[] = { | |
30484 | (char *) "self",(char *) "menu", NULL | |
30485 | }; | |
30486 | ||
30487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30492 | { |
30493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30494 | (arg1)->SetMenu(arg2); | |
30495 | ||
30496 | wxPyEndAllowThreads(__tstate); | |
30497 | if (PyErr_Occurred()) SWIG_fail; | |
30498 | } | |
30499 | Py_INCREF(Py_None); resultobj = Py_None; | |
30500 | return resultobj; | |
30501 | fail: | |
30502 | return NULL; | |
30503 | } | |
30504 | ||
30505 | ||
30506 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30507 | PyObject *resultobj; | |
30508 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30509 | int arg2 ; | |
30510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30511 | PyObject * obj1 = 0 ; |
d14a1e28 | 30512 | char *kwnames[] = { |
f0983263 | 30513 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30514 | }; |
30515 | ||
8edf1c75 | 30516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30519 | arg2 = (int) SWIG_AsInt(obj1); | |
30520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30521 | { |
30522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30523 | (arg1)->SetId(arg2); | |
30524 | ||
30525 | wxPyEndAllowThreads(__tstate); | |
30526 | if (PyErr_Occurred()) SWIG_fail; | |
30527 | } | |
30528 | Py_INCREF(Py_None); resultobj = Py_None; | |
30529 | return resultobj; | |
30530 | fail: | |
30531 | return NULL; | |
30532 | } | |
30533 | ||
30534 | ||
30535 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30536 | PyObject *resultobj; | |
30537 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30538 | int result; | |
30539 | PyObject * obj0 = 0 ; | |
30540 | char *kwnames[] = { | |
30541 | (char *) "self", NULL | |
30542 | }; | |
30543 | ||
30544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30547 | { |
30548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30549 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30550 | ||
30551 | wxPyEndAllowThreads(__tstate); | |
30552 | if (PyErr_Occurred()) SWIG_fail; | |
30553 | } | |
2f4c0a16 | 30554 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30555 | return resultobj; |
30556 | fail: | |
30557 | return NULL; | |
30558 | } | |
30559 | ||
30560 | ||
30561 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30562 | PyObject *resultobj; | |
30563 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30564 | bool result; | |
30565 | PyObject * obj0 = 0 ; | |
30566 | char *kwnames[] = { | |
30567 | (char *) "self", NULL | |
30568 | }; | |
30569 | ||
30570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30573 | { |
30574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30575 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
30576 | ||
30577 | wxPyEndAllowThreads(__tstate); | |
30578 | if (PyErr_Occurred()) SWIG_fail; | |
30579 | } | |
4e760a36 | 30580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30581 | return resultobj; |
30582 | fail: | |
30583 | return NULL; | |
30584 | } | |
30585 | ||
30586 | ||
30587 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30588 | PyObject *resultobj; | |
30589 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30590 | wxString *arg2 = 0 ; | |
423f194a | 30591 | bool temp2 = False ; |
d14a1e28 RD |
30592 | PyObject * obj0 = 0 ; |
30593 | PyObject * obj1 = 0 ; | |
30594 | char *kwnames[] = { | |
30595 | (char *) "self",(char *) "str", NULL | |
30596 | }; | |
30597 | ||
30598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30601 | { |
30602 | arg2 = wxString_in_helper(obj1); | |
30603 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30604 | temp2 = True; |
d14a1e28 RD |
30605 | } |
30606 | { | |
30607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30608 | (arg1)->SetText((wxString const &)*arg2); | |
30609 | ||
30610 | wxPyEndAllowThreads(__tstate); | |
30611 | if (PyErr_Occurred()) SWIG_fail; | |
30612 | } | |
30613 | Py_INCREF(Py_None); resultobj = Py_None; | |
30614 | { | |
30615 | if (temp2) | |
30616 | delete arg2; | |
30617 | } | |
30618 | return resultobj; | |
30619 | fail: | |
30620 | { | |
30621 | if (temp2) | |
30622 | delete arg2; | |
30623 | } | |
30624 | return NULL; | |
30625 | } | |
30626 | ||
30627 | ||
30628 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30629 | PyObject *resultobj; | |
30630 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30631 | wxString result; | |
30632 | PyObject * obj0 = 0 ; | |
30633 | char *kwnames[] = { | |
30634 | (char *) "self", NULL | |
30635 | }; | |
30636 | ||
30637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30640 | { |
30641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30642 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
30643 | ||
30644 | wxPyEndAllowThreads(__tstate); | |
30645 | if (PyErr_Occurred()) SWIG_fail; | |
30646 | } | |
30647 | { | |
30648 | #if wxUSE_UNICODE | |
30649 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30650 | #else | |
30651 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30652 | #endif | |
30653 | } | |
30654 | return resultobj; | |
30655 | fail: | |
30656 | return NULL; | |
30657 | } | |
30658 | ||
30659 | ||
30660 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30661 | PyObject *resultobj; | |
30662 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30663 | wxString *result; | |
30664 | PyObject * obj0 = 0 ; | |
30665 | char *kwnames[] = { | |
30666 | (char *) "self", NULL | |
30667 | }; | |
30668 | ||
30669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30672 | { |
30673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30674 | { | |
30675 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
30676 | result = (wxString *) &_result_ref; | |
30677 | } | |
30678 | ||
30679 | wxPyEndAllowThreads(__tstate); | |
30680 | if (PyErr_Occurred()) SWIG_fail; | |
30681 | } | |
f0983263 RD |
30682 | { |
30683 | #if wxUSE_UNICODE | |
30684 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30685 | #else | |
30686 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30687 | #endif | |
30688 | } | |
d14a1e28 RD |
30689 | return resultobj; |
30690 | fail: | |
30691 | return NULL; | |
30692 | } | |
30693 | ||
30694 | ||
30695 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30696 | PyObject *resultobj; | |
30697 | wxString *arg1 = 0 ; | |
30698 | wxString result; | |
423f194a | 30699 | bool temp1 = False ; |
d14a1e28 RD |
30700 | PyObject * obj0 = 0 ; |
30701 | char *kwnames[] = { | |
30702 | (char *) "text", NULL | |
30703 | }; | |
30704 | ||
30705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
30706 | { | |
30707 | arg1 = wxString_in_helper(obj0); | |
30708 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 30709 | temp1 = True; |
d14a1e28 RD |
30710 | } |
30711 | { | |
30712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30713 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
30714 | ||
30715 | wxPyEndAllowThreads(__tstate); | |
30716 | if (PyErr_Occurred()) SWIG_fail; | |
30717 | } | |
30718 | { | |
30719 | #if wxUSE_UNICODE | |
30720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30721 | #else | |
30722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30723 | #endif | |
30724 | } | |
30725 | { | |
30726 | if (temp1) | |
30727 | delete arg1; | |
30728 | } | |
30729 | return resultobj; | |
30730 | fail: | |
30731 | { | |
30732 | if (temp1) | |
30733 | delete arg1; | |
30734 | } | |
30735 | return NULL; | |
30736 | } | |
30737 | ||
30738 | ||
30739 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30740 | PyObject *resultobj; | |
30741 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30742 | int result; | |
30743 | PyObject * obj0 = 0 ; | |
30744 | char *kwnames[] = { | |
30745 | (char *) "self", NULL | |
30746 | }; | |
30747 | ||
30748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30751 | { |
30752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30753 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
30754 | ||
30755 | wxPyEndAllowThreads(__tstate); | |
30756 | if (PyErr_Occurred()) SWIG_fail; | |
30757 | } | |
2f4c0a16 | 30758 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30759 | return resultobj; |
30760 | fail: | |
30761 | return NULL; | |
30762 | } | |
30763 | ||
30764 | ||
30765 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30766 | PyObject *resultobj; | |
30767 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30768 | bool arg2 ; | |
30769 | PyObject * obj0 = 0 ; | |
30770 | PyObject * obj1 = 0 ; | |
30771 | char *kwnames[] = { | |
30772 | (char *) "self",(char *) "checkable", NULL | |
30773 | }; | |
30774 | ||
30775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30778 | arg2 = (bool) SWIG_AsBool(obj1); | |
30779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30780 | { |
30781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30782 | (arg1)->SetCheckable(arg2); | |
30783 | ||
30784 | wxPyEndAllowThreads(__tstate); | |
30785 | if (PyErr_Occurred()) SWIG_fail; | |
30786 | } | |
30787 | Py_INCREF(Py_None); resultobj = Py_None; | |
30788 | return resultobj; | |
30789 | fail: | |
30790 | return NULL; | |
30791 | } | |
30792 | ||
30793 | ||
30794 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30795 | PyObject *resultobj; | |
30796 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30797 | bool result; | |
30798 | PyObject * obj0 = 0 ; | |
30799 | char *kwnames[] = { | |
30800 | (char *) "self", NULL | |
30801 | }; | |
30802 | ||
30803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30806 | { |
30807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30808 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
30809 | ||
30810 | wxPyEndAllowThreads(__tstate); | |
30811 | if (PyErr_Occurred()) SWIG_fail; | |
30812 | } | |
4e760a36 | 30813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30814 | return resultobj; |
30815 | fail: | |
30816 | return NULL; | |
30817 | } | |
30818 | ||
30819 | ||
30820 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30821 | PyObject *resultobj; | |
30822 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30823 | bool result; | |
30824 | PyObject * obj0 = 0 ; | |
30825 | char *kwnames[] = { | |
30826 | (char *) "self", NULL | |
30827 | }; | |
30828 | ||
30829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30832 | { |
30833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30834 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
30835 | ||
30836 | wxPyEndAllowThreads(__tstate); | |
30837 | if (PyErr_Occurred()) SWIG_fail; | |
30838 | } | |
4e760a36 | 30839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30840 | return resultobj; |
30841 | fail: | |
30842 | return NULL; | |
30843 | } | |
30844 | ||
30845 | ||
30846 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30847 | PyObject *resultobj; | |
30848 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30849 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30850 | PyObject * obj0 = 0 ; | |
30851 | PyObject * obj1 = 0 ; | |
30852 | char *kwnames[] = { | |
30853 | (char *) "self",(char *) "menu", NULL | |
30854 | }; | |
30855 | ||
30856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30861 | { |
30862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30863 | (arg1)->SetSubMenu(arg2); | |
30864 | ||
30865 | wxPyEndAllowThreads(__tstate); | |
30866 | if (PyErr_Occurred()) SWIG_fail; | |
30867 | } | |
30868 | Py_INCREF(Py_None); resultobj = Py_None; | |
30869 | return resultobj; | |
30870 | fail: | |
30871 | return NULL; | |
30872 | } | |
30873 | ||
30874 | ||
30875 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30876 | PyObject *resultobj; | |
30877 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30878 | wxMenu *result; | |
30879 | PyObject * obj0 = 0 ; | |
30880 | char *kwnames[] = { | |
30881 | (char *) "self", NULL | |
30882 | }; | |
30883 | ||
30884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30887 | { |
30888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30889 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
30890 | ||
30891 | wxPyEndAllowThreads(__tstate); | |
30892 | if (PyErr_Occurred()) SWIG_fail; | |
30893 | } | |
30894 | { | |
30895 | resultobj = wxPyMake_wxObject(result); | |
30896 | } | |
30897 | return resultobj; | |
30898 | fail: | |
30899 | return NULL; | |
30900 | } | |
30901 | ||
30902 | ||
30903 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30904 | PyObject *resultobj; | |
30905 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30906 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30907 | PyObject * obj0 = 0 ; |
30908 | PyObject * obj1 = 0 ; | |
30909 | char *kwnames[] = { | |
30910 | (char *) "self",(char *) "enable", NULL | |
30911 | }; | |
30912 | ||
30913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30916 | if (obj1) { |
2f4c0a16 RD |
30917 | arg2 = (bool) SWIG_AsBool(obj1); |
30918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30919 | } |
30920 | { | |
30921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30922 | (arg1)->Enable(arg2); | |
30923 | ||
30924 | wxPyEndAllowThreads(__tstate); | |
30925 | if (PyErr_Occurred()) SWIG_fail; | |
30926 | } | |
30927 | Py_INCREF(Py_None); resultobj = Py_None; | |
30928 | return resultobj; | |
30929 | fail: | |
30930 | return NULL; | |
30931 | } | |
30932 | ||
30933 | ||
30934 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30935 | PyObject *resultobj; | |
30936 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30937 | bool result; | |
30938 | PyObject * obj0 = 0 ; | |
30939 | char *kwnames[] = { | |
30940 | (char *) "self", NULL | |
30941 | }; | |
30942 | ||
30943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30946 | { |
30947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30948 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
30949 | ||
30950 | wxPyEndAllowThreads(__tstate); | |
30951 | if (PyErr_Occurred()) SWIG_fail; | |
30952 | } | |
4e760a36 | 30953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
30954 | return resultobj; |
30955 | fail: | |
30956 | return NULL; | |
30957 | } | |
30958 | ||
30959 | ||
30960 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30961 | PyObject *resultobj; | |
30962 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 30963 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30964 | PyObject * obj0 = 0 ; |
30965 | PyObject * obj1 = 0 ; | |
30966 | char *kwnames[] = { | |
30967 | (char *) "self",(char *) "check", NULL | |
30968 | }; | |
30969 | ||
30970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30973 | if (obj1) { |
2f4c0a16 RD |
30974 | arg2 = (bool) SWIG_AsBool(obj1); |
30975 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30976 | } |
30977 | { | |
30978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30979 | (arg1)->Check(arg2); | |
30980 | ||
30981 | wxPyEndAllowThreads(__tstate); | |
30982 | if (PyErr_Occurred()) SWIG_fail; | |
30983 | } | |
30984 | Py_INCREF(Py_None); resultobj = Py_None; | |
30985 | return resultobj; | |
30986 | fail: | |
30987 | return NULL; | |
30988 | } | |
30989 | ||
30990 | ||
30991 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30992 | PyObject *resultobj; | |
30993 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30994 | bool result; | |
30995 | PyObject * obj0 = 0 ; | |
30996 | char *kwnames[] = { | |
30997 | (char *) "self", NULL | |
30998 | }; | |
30999 | ||
31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31003 | { |
31004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31005 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
31006 | ||
31007 | wxPyEndAllowThreads(__tstate); | |
31008 | if (PyErr_Occurred()) SWIG_fail; | |
31009 | } | |
4e760a36 | 31010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31011 | return resultobj; |
31012 | fail: | |
31013 | return NULL; | |
31014 | } | |
31015 | ||
31016 | ||
31017 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31018 | PyObject *resultobj; | |
31019 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31020 | PyObject * obj0 = 0 ; | |
31021 | char *kwnames[] = { | |
31022 | (char *) "self", NULL | |
31023 | }; | |
31024 | ||
31025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31028 | { |
31029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31030 | (arg1)->Toggle(); | |
31031 | ||
31032 | wxPyEndAllowThreads(__tstate); | |
31033 | if (PyErr_Occurred()) SWIG_fail; | |
31034 | } | |
31035 | Py_INCREF(Py_None); resultobj = Py_None; | |
31036 | return resultobj; | |
31037 | fail: | |
31038 | return NULL; | |
31039 | } | |
31040 | ||
31041 | ||
31042 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31043 | PyObject *resultobj; | |
31044 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31045 | wxString *arg2 = 0 ; | |
423f194a | 31046 | bool temp2 = False ; |
d14a1e28 RD |
31047 | PyObject * obj0 = 0 ; |
31048 | PyObject * obj1 = 0 ; | |
31049 | char *kwnames[] = { | |
31050 | (char *) "self",(char *) "str", NULL | |
31051 | }; | |
31052 | ||
31053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31056 | { |
31057 | arg2 = wxString_in_helper(obj1); | |
31058 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31059 | temp2 = True; |
d14a1e28 RD |
31060 | } |
31061 | { | |
31062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31063 | (arg1)->SetHelp((wxString const &)*arg2); | |
31064 | ||
31065 | wxPyEndAllowThreads(__tstate); | |
31066 | if (PyErr_Occurred()) SWIG_fail; | |
31067 | } | |
31068 | Py_INCREF(Py_None); resultobj = Py_None; | |
31069 | { | |
31070 | if (temp2) | |
31071 | delete arg2; | |
31072 | } | |
31073 | return resultobj; | |
31074 | fail: | |
31075 | { | |
31076 | if (temp2) | |
31077 | delete arg2; | |
31078 | } | |
31079 | return NULL; | |
31080 | } | |
31081 | ||
31082 | ||
31083 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31084 | PyObject *resultobj; | |
31085 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31086 | wxString *result; | |
31087 | PyObject * obj0 = 0 ; | |
31088 | char *kwnames[] = { | |
31089 | (char *) "self", NULL | |
31090 | }; | |
31091 | ||
31092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31095 | { |
31096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31097 | { | |
31098 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
31099 | result = (wxString *) &_result_ref; | |
31100 | } | |
31101 | ||
31102 | wxPyEndAllowThreads(__tstate); | |
31103 | if (PyErr_Occurred()) SWIG_fail; | |
31104 | } | |
f0983263 RD |
31105 | { |
31106 | #if wxUSE_UNICODE | |
31107 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31108 | #else | |
31109 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31110 | #endif | |
31111 | } | |
d14a1e28 RD |
31112 | return resultobj; |
31113 | fail: | |
31114 | return NULL; | |
31115 | } | |
31116 | ||
31117 | ||
31118 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31119 | PyObject *resultobj; | |
31120 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31121 | wxAcceleratorEntry *result; | |
31122 | PyObject * obj0 = 0 ; | |
31123 | char *kwnames[] = { | |
31124 | (char *) "self", NULL | |
31125 | }; | |
31126 | ||
31127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31130 | { |
31131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31132 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
31133 | ||
31134 | wxPyEndAllowThreads(__tstate); | |
31135 | if (PyErr_Occurred()) SWIG_fail; | |
31136 | } | |
2f4c0a16 | 31137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
31138 | return resultobj; |
31139 | fail: | |
31140 | return NULL; | |
31141 | } | |
31142 | ||
31143 | ||
31144 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31145 | PyObject *resultobj; | |
31146 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31147 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
31148 | PyObject * obj0 = 0 ; | |
31149 | PyObject * obj1 = 0 ; | |
31150 | char *kwnames[] = { | |
31151 | (char *) "self",(char *) "accel", NULL | |
31152 | }; | |
31153 | ||
31154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
31158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31159 | { |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | (arg1)->SetAccel(arg2); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | Py_INCREF(Py_None); resultobj = Py_None; | |
31167 | return resultobj; | |
31168 | fail: | |
31169 | return NULL; | |
31170 | } | |
31171 | ||
31172 | ||
31173 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31174 | PyObject *resultobj; | |
31175 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31176 | wxFont *arg2 = 0 ; | |
31177 | PyObject * obj0 = 0 ; | |
31178 | PyObject * obj1 = 0 ; | |
31179 | char *kwnames[] = { | |
31180 | (char *) "self",(char *) "font", NULL | |
31181 | }; | |
31182 | ||
31183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
31187 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31188 | SWIG_fail; | |
d14a1e28 | 31189 | if (arg2 == NULL) { |
2f4c0a16 RD |
31190 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31191 | SWIG_fail; | |
d14a1e28 RD |
31192 | } |
31193 | { | |
31194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31195 | (arg1)->SetFont((wxFont const &)*arg2); | |
31196 | ||
31197 | wxPyEndAllowThreads(__tstate); | |
31198 | if (PyErr_Occurred()) SWIG_fail; | |
31199 | } | |
31200 | Py_INCREF(Py_None); resultobj = Py_None; | |
31201 | return resultobj; | |
31202 | fail: | |
31203 | return NULL; | |
31204 | } | |
31205 | ||
31206 | ||
31207 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31208 | PyObject *resultobj; | |
31209 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31210 | wxFont result; | |
31211 | PyObject * obj0 = 0 ; | |
31212 | char *kwnames[] = { | |
31213 | (char *) "self", NULL | |
31214 | }; | |
31215 | ||
31216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31219 | { |
31220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31221 | result = (arg1)->GetFont(); | |
31222 | ||
31223 | wxPyEndAllowThreads(__tstate); | |
31224 | if (PyErr_Occurred()) SWIG_fail; | |
31225 | } | |
31226 | { | |
31227 | wxFont * resultptr; | |
31228 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 31229 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
31230 | } |
31231 | return resultobj; | |
31232 | fail: | |
31233 | return NULL; | |
31234 | } | |
31235 | ||
31236 | ||
31237 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31238 | PyObject *resultobj; | |
31239 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31240 | wxColour *arg2 = 0 ; | |
31241 | wxColour temp2 ; | |
31242 | PyObject * obj0 = 0 ; | |
31243 | PyObject * obj1 = 0 ; | |
31244 | char *kwnames[] = { | |
31245 | (char *) "self",(char *) "colText", NULL | |
31246 | }; | |
31247 | ||
31248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31251 | { |
31252 | arg2 = &temp2; | |
31253 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31254 | } | |
31255 | { | |
31256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31257 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
31258 | ||
31259 | wxPyEndAllowThreads(__tstate); | |
31260 | if (PyErr_Occurred()) SWIG_fail; | |
31261 | } | |
31262 | Py_INCREF(Py_None); resultobj = Py_None; | |
31263 | return resultobj; | |
31264 | fail: | |
31265 | return NULL; | |
31266 | } | |
31267 | ||
31268 | ||
31269 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31270 | PyObject *resultobj; | |
31271 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31272 | wxColour result; | |
31273 | PyObject * obj0 = 0 ; | |
31274 | char *kwnames[] = { | |
31275 | (char *) "self", NULL | |
31276 | }; | |
31277 | ||
31278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31281 | { |
31282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31283 | result = (arg1)->GetTextColour(); | |
31284 | ||
31285 | wxPyEndAllowThreads(__tstate); | |
31286 | if (PyErr_Occurred()) SWIG_fail; | |
31287 | } | |
31288 | { | |
31289 | wxColour * resultptr; | |
31290 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31292 | } |
31293 | return resultobj; | |
31294 | fail: | |
31295 | return NULL; | |
31296 | } | |
31297 | ||
31298 | ||
31299 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31300 | PyObject *resultobj; | |
31301 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31302 | wxColour *arg2 = 0 ; | |
31303 | wxColour temp2 ; | |
31304 | PyObject * obj0 = 0 ; | |
31305 | PyObject * obj1 = 0 ; | |
31306 | char *kwnames[] = { | |
31307 | (char *) "self",(char *) "colBack", NULL | |
31308 | }; | |
31309 | ||
31310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31313 | { |
31314 | arg2 = &temp2; | |
31315 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31316 | } | |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | Py_INCREF(Py_None); resultobj = Py_None; | |
31325 | return resultobj; | |
31326 | fail: | |
31327 | return NULL; | |
31328 | } | |
31329 | ||
31330 | ||
31331 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31332 | PyObject *resultobj; | |
31333 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31334 | wxColour result; | |
31335 | PyObject * obj0 = 0 ; | |
31336 | char *kwnames[] = { | |
31337 | (char *) "self", NULL | |
31338 | }; | |
31339 | ||
31340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31343 | { |
31344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31345 | result = (arg1)->GetBackgroundColour(); | |
31346 | ||
31347 | wxPyEndAllowThreads(__tstate); | |
31348 | if (PyErr_Occurred()) SWIG_fail; | |
31349 | } | |
31350 | { | |
31351 | wxColour * resultptr; | |
31352 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31354 | } |
31355 | return resultobj; | |
31356 | fail: | |
31357 | return NULL; | |
31358 | } | |
31359 | ||
31360 | ||
31361 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31362 | PyObject *resultobj; | |
31363 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31364 | wxBitmap *arg2 = 0 ; | |
31365 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31366 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31367 | PyObject * obj0 = 0 ; | |
31368 | PyObject * obj1 = 0 ; | |
31369 | PyObject * obj2 = 0 ; | |
31370 | char *kwnames[] = { | |
31371 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
31372 | }; | |
31373 | ||
31374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31377 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31378 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31379 | SWIG_fail; | |
d14a1e28 | 31380 | if (arg2 == NULL) { |
2f4c0a16 RD |
31381 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31382 | SWIG_fail; | |
d14a1e28 RD |
31383 | } |
31384 | if (obj2) { | |
2f4c0a16 RD |
31385 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
31386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31387 | SWIG_fail; | |
d14a1e28 | 31388 | if (arg3 == NULL) { |
2f4c0a16 RD |
31389 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31390 | SWIG_fail; | |
d14a1e28 RD |
31391 | } |
31392 | } | |
31393 | { | |
31394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31395 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31396 | ||
31397 | wxPyEndAllowThreads(__tstate); | |
31398 | if (PyErr_Occurred()) SWIG_fail; | |
31399 | } | |
31400 | Py_INCREF(Py_None); resultobj = Py_None; | |
31401 | return resultobj; | |
31402 | fail: | |
31403 | return NULL; | |
31404 | } | |
31405 | ||
31406 | ||
31407 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31408 | PyObject *resultobj; | |
31409 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31410 | wxBitmap *arg2 = 0 ; | |
31411 | PyObject * obj0 = 0 ; | |
31412 | PyObject * obj1 = 0 ; | |
31413 | char *kwnames[] = { | |
31414 | (char *) "self",(char *) "bmpDisabled", NULL | |
31415 | }; | |
31416 | ||
31417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31422 | SWIG_fail; | |
d14a1e28 | 31423 | if (arg2 == NULL) { |
2f4c0a16 RD |
31424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31425 | SWIG_fail; | |
d14a1e28 RD |
31426 | } |
31427 | { | |
31428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31429 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
31430 | ||
31431 | wxPyEndAllowThreads(__tstate); | |
31432 | if (PyErr_Occurred()) SWIG_fail; | |
31433 | } | |
31434 | Py_INCREF(Py_None); resultobj = Py_None; | |
31435 | return resultobj; | |
31436 | fail: | |
31437 | return NULL; | |
31438 | } | |
31439 | ||
31440 | ||
31441 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31442 | PyObject *resultobj; | |
31443 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31444 | wxBitmap *result; | |
31445 | PyObject * obj0 = 0 ; | |
31446 | char *kwnames[] = { | |
31447 | (char *) "self", NULL | |
31448 | }; | |
31449 | ||
31450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31453 | { |
31454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31455 | { | |
31456 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
31457 | result = (wxBitmap *) &_result_ref; | |
31458 | } | |
31459 | ||
31460 | wxPyEndAllowThreads(__tstate); | |
31461 | if (PyErr_Occurred()) SWIG_fail; | |
31462 | } | |
2f4c0a16 | 31463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
31464 | return resultobj; |
31465 | fail: | |
31466 | return NULL; | |
31467 | } | |
31468 | ||
31469 | ||
31470 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31471 | PyObject *resultobj; | |
31472 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31473 | int arg2 ; | |
31474 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31475 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31476 | char *kwnames[] = { |
31477 | (char *) "self",(char *) "nWidth", NULL | |
31478 | }; | |
31479 | ||
8edf1c75 | 31480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31483 | arg2 = (int) SWIG_AsInt(obj1); | |
31484 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31485 | { |
31486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31487 | (arg1)->SetMarginWidth(arg2); | |
31488 | ||
31489 | wxPyEndAllowThreads(__tstate); | |
31490 | if (PyErr_Occurred()) SWIG_fail; | |
31491 | } | |
31492 | Py_INCREF(Py_None); resultobj = Py_None; | |
31493 | return resultobj; | |
31494 | fail: | |
31495 | return NULL; | |
31496 | } | |
31497 | ||
31498 | ||
31499 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31500 | PyObject *resultobj; | |
31501 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31502 | int result; | |
31503 | PyObject * obj0 = 0 ; | |
31504 | char *kwnames[] = { | |
31505 | (char *) "self", NULL | |
31506 | }; | |
31507 | ||
31508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31511 | { |
31512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31513 | result = (int)(arg1)->GetMarginWidth(); | |
31514 | ||
31515 | wxPyEndAllowThreads(__tstate); | |
31516 | if (PyErr_Occurred()) SWIG_fail; | |
31517 | } | |
2f4c0a16 | 31518 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31519 | return resultobj; |
31520 | fail: | |
31521 | return NULL; | |
31522 | } | |
31523 | ||
31524 | ||
31525 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31526 | PyObject *resultobj; | |
31527 | int result; | |
31528 | char *kwnames[] = { | |
31529 | NULL | |
31530 | }; | |
31531 | ||
31532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31533 | { | |
31534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31535 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
31536 | ||
31537 | wxPyEndAllowThreads(__tstate); | |
31538 | if (PyErr_Occurred()) SWIG_fail; | |
31539 | } | |
2f4c0a16 | 31540 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31541 | return resultobj; |
31542 | fail: | |
31543 | return NULL; | |
31544 | } | |
31545 | ||
31546 | ||
31547 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31548 | PyObject *resultobj; | |
31549 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31550 | bool result; | |
31551 | PyObject * obj0 = 0 ; | |
31552 | char *kwnames[] = { | |
31553 | (char *) "self", NULL | |
31554 | }; | |
31555 | ||
31556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31559 | { |
31560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31561 | result = (bool)(arg1)->IsOwnerDrawn(); | |
31562 | ||
31563 | wxPyEndAllowThreads(__tstate); | |
31564 | if (PyErr_Occurred()) SWIG_fail; | |
31565 | } | |
4e760a36 | 31566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31567 | return resultobj; |
31568 | fail: | |
31569 | return NULL; | |
31570 | } | |
31571 | ||
31572 | ||
31573 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31574 | PyObject *resultobj; | |
31575 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31576 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31577 | PyObject * obj0 = 0 ; |
31578 | PyObject * obj1 = 0 ; | |
31579 | char *kwnames[] = { | |
31580 | (char *) "self",(char *) "ownerDrawn", NULL | |
31581 | }; | |
31582 | ||
31583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31586 | if (obj1) { |
2f4c0a16 RD |
31587 | arg2 = (bool) SWIG_AsBool(obj1); |
31588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31589 | } |
31590 | { | |
31591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31592 | (arg1)->SetOwnerDrawn(arg2); | |
31593 | ||
31594 | wxPyEndAllowThreads(__tstate); | |
31595 | if (PyErr_Occurred()) SWIG_fail; | |
31596 | } | |
31597 | Py_INCREF(Py_None); resultobj = Py_None; | |
31598 | return resultobj; | |
31599 | fail: | |
31600 | return NULL; | |
31601 | } | |
31602 | ||
31603 | ||
31604 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31605 | PyObject *resultobj; | |
31606 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31607 | PyObject * obj0 = 0 ; | |
31608 | char *kwnames[] = { | |
31609 | (char *) "self", NULL | |
31610 | }; | |
31611 | ||
31612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31615 | { |
31616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31617 | (arg1)->ResetOwnerDrawn(); | |
31618 | ||
31619 | wxPyEndAllowThreads(__tstate); | |
31620 | if (PyErr_Occurred()) SWIG_fail; | |
31621 | } | |
31622 | Py_INCREF(Py_None); resultobj = Py_None; | |
31623 | return resultobj; | |
31624 | fail: | |
31625 | return NULL; | |
31626 | } | |
31627 | ||
31628 | ||
31629 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31630 | PyObject *resultobj; | |
31631 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31632 | wxBitmap *arg2 = 0 ; | |
31633 | PyObject * obj0 = 0 ; | |
31634 | PyObject * obj1 = 0 ; | |
31635 | char *kwnames[] = { | |
31636 | (char *) "self",(char *) "bitmap", NULL | |
31637 | }; | |
31638 | ||
31639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31644 | SWIG_fail; | |
d14a1e28 | 31645 | if (arg2 == NULL) { |
2f4c0a16 RD |
31646 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31647 | SWIG_fail; | |
d14a1e28 RD |
31648 | } |
31649 | { | |
31650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31651 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
31652 | ||
31653 | wxPyEndAllowThreads(__tstate); | |
31654 | if (PyErr_Occurred()) SWIG_fail; | |
31655 | } | |
31656 | Py_INCREF(Py_None); resultobj = Py_None; | |
31657 | return resultobj; | |
31658 | fail: | |
31659 | return NULL; | |
31660 | } | |
31661 | ||
31662 | ||
31663 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31664 | PyObject *resultobj; | |
31665 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31666 | wxBitmap *result; | |
31667 | PyObject * obj0 = 0 ; | |
31668 | char *kwnames[] = { | |
31669 | (char *) "self", NULL | |
31670 | }; | |
31671 | ||
31672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31675 | { |
31676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31677 | { | |
31678 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
31679 | result = (wxBitmap *) &_result_ref; | |
31680 | } | |
31681 | ||
31682 | wxPyEndAllowThreads(__tstate); | |
31683 | if (PyErr_Occurred()) SWIG_fail; | |
31684 | } | |
2f4c0a16 | 31685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
31686 | return resultobj; |
31687 | fail: | |
31688 | return NULL; | |
31689 | } | |
31690 | ||
31691 | ||
31692 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
31693 | PyObject *obj; | |
31694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31695 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
31696 | Py_INCREF(obj); | |
31697 | return Py_BuildValue((char *)""); | |
31698 | } | |
2f4c0a16 | 31699 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
d03fd34d RD |
31700 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
31701 | return 1; | |
31702 | } | |
31703 | ||
31704 | ||
31705 | static PyObject *_wrap_ControlNameStr_get() { | |
31706 | PyObject *pyobj; | |
31707 | ||
31708 | { | |
31709 | #if wxUSE_UNICODE | |
31710 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31711 | #else | |
31712 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
31713 | #endif | |
31714 | } | |
31715 | return pyobj; | |
31716 | } | |
31717 | ||
31718 | ||
d14a1e28 RD |
31719 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
31720 | PyObject *resultobj; | |
31721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 31722 | int arg2 ; |
d14a1e28 RD |
31723 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31724 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31725 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31726 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31727 | long arg5 = (long) 0 ; | |
31728 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31729 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31730 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
31731 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31732 | wxControl *result; | |
31733 | wxPoint temp3 ; | |
31734 | wxSize temp4 ; | |
423f194a | 31735 | bool temp7 = False ; |
d14a1e28 | 31736 | PyObject * obj0 = 0 ; |
8edf1c75 | 31737 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31738 | PyObject * obj2 = 0 ; |
31739 | PyObject * obj3 = 0 ; | |
8edf1c75 | 31740 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31741 | PyObject * obj5 = 0 ; |
31742 | PyObject * obj6 = 0 ; | |
31743 | char *kwnames[] = { | |
31744 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31745 | }; | |
31746 | ||
8edf1c75 | 31747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
31748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
31749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31750 | arg2 = (int) SWIG_AsInt(obj1); | |
31751 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31752 | if (obj2) { |
31753 | { | |
31754 | arg3 = &temp3; | |
31755 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31756 | } | |
31757 | } | |
31758 | if (obj3) { | |
31759 | { | |
31760 | arg4 = &temp4; | |
31761 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31762 | } | |
31763 | } | |
8edf1c75 | 31764 | if (obj4) { |
2f4c0a16 RD |
31765 | arg5 = (long) SWIG_AsLong(obj4); |
31766 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 31767 | } |
d14a1e28 | 31768 | if (obj5) { |
2f4c0a16 RD |
31769 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
31770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31771 | SWIG_fail; | |
d14a1e28 | 31772 | if (arg6 == NULL) { |
2f4c0a16 RD |
31773 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31774 | SWIG_fail; | |
d14a1e28 RD |
31775 | } |
31776 | } | |
31777 | if (obj6) { | |
31778 | { | |
31779 | arg7 = wxString_in_helper(obj6); | |
31780 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 31781 | temp7 = True; |
d14a1e28 RD |
31782 | } |
31783 | } | |
31784 | { | |
31785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31786 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
31787 | ||
31788 | wxPyEndAllowThreads(__tstate); | |
31789 | if (PyErr_Occurred()) SWIG_fail; | |
31790 | } | |
31791 | { | |
31792 | resultobj = wxPyMake_wxObject(result); | |
31793 | } | |
31794 | { | |
31795 | if (temp7) | |
31796 | delete arg7; | |
31797 | } | |
31798 | return resultobj; | |
31799 | fail: | |
31800 | { | |
31801 | if (temp7) | |
31802 | delete arg7; | |
31803 | } | |
31804 | return NULL; | |
31805 | } | |
31806 | ||
31807 | ||
31808 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31809 | PyObject *resultobj; | |
31810 | wxControl *result; | |
31811 | char *kwnames[] = { | |
31812 | NULL | |
31813 | }; | |
31814 | ||
31815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
31816 | { | |
31817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31818 | result = (wxControl *)new wxControl(); | |
31819 | ||
31820 | wxPyEndAllowThreads(__tstate); | |
31821 | if (PyErr_Occurred()) SWIG_fail; | |
31822 | } | |
31823 | { | |
31824 | resultobj = wxPyMake_wxObject(result); | |
31825 | } | |
31826 | return resultobj; | |
31827 | fail: | |
31828 | return NULL; | |
31829 | } | |
31830 | ||
31831 | ||
31832 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31833 | PyObject *resultobj; | |
31834 | wxControl *arg1 = (wxControl *) 0 ; | |
31835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 31836 | int arg3 ; |
d14a1e28 RD |
31837 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
31838 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31839 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31840 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31841 | long arg6 = (long) 0 ; | |
31842 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
31843 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
31844 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
31845 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31846 | bool result; | |
31847 | wxPoint temp4 ; | |
31848 | wxSize temp5 ; | |
423f194a | 31849 | bool temp8 = False ; |
d14a1e28 RD |
31850 | PyObject * obj0 = 0 ; |
31851 | PyObject * obj1 = 0 ; | |
8edf1c75 | 31852 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31853 | PyObject * obj3 = 0 ; |
31854 | PyObject * obj4 = 0 ; | |
8edf1c75 | 31855 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
31856 | PyObject * obj6 = 0 ; |
31857 | PyObject * obj7 = 0 ; | |
31858 | char *kwnames[] = { | |
31859 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31860 | }; | |
31861 | ||
8edf1c75 | 31862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
31863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31867 | arg3 = (int) SWIG_AsInt(obj2); | |
31868 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31869 | if (obj3) { |
31870 | { | |
31871 | arg4 = &temp4; | |
31872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31873 | } | |
31874 | } | |
31875 | if (obj4) { | |
31876 | { | |
31877 | arg5 = &temp5; | |
31878 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31879 | } | |
31880 | } | |
8edf1c75 | 31881 | if (obj5) { |
2f4c0a16 RD |
31882 | arg6 = (long) SWIG_AsLong(obj5); |
31883 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 31884 | } |
d14a1e28 | 31885 | if (obj6) { |
2f4c0a16 RD |
31886 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
31887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31888 | SWIG_fail; | |
d14a1e28 | 31889 | if (arg7 == NULL) { |
2f4c0a16 RD |
31890 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31891 | SWIG_fail; | |
d14a1e28 RD |
31892 | } |
31893 | } | |
31894 | if (obj7) { | |
31895 | { | |
31896 | arg8 = wxString_in_helper(obj7); | |
31897 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 31898 | temp8 = True; |
d14a1e28 RD |
31899 | } |
31900 | } | |
31901 | { | |
31902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31903 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
31904 | ||
31905 | wxPyEndAllowThreads(__tstate); | |
31906 | if (PyErr_Occurred()) SWIG_fail; | |
31907 | } | |
4e760a36 | 31908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
31909 | { |
31910 | if (temp8) | |
31911 | delete arg8; | |
31912 | } | |
31913 | return resultobj; | |
31914 | fail: | |
31915 | { | |
31916 | if (temp8) | |
31917 | delete arg8; | |
31918 | } | |
31919 | return NULL; | |
31920 | } | |
31921 | ||
31922 | ||
31923 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31924 | PyObject *resultobj; | |
31925 | wxControl *arg1 = (wxControl *) 0 ; | |
31926 | wxCommandEvent *arg2 = 0 ; | |
31927 | PyObject * obj0 = 0 ; | |
31928 | PyObject * obj1 = 0 ; | |
31929 | char *kwnames[] = { | |
31930 | (char *) "self",(char *) "event", NULL | |
31931 | }; | |
31932 | ||
31933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31936 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
31937 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31938 | SWIG_fail; | |
d14a1e28 | 31939 | if (arg2 == NULL) { |
2f4c0a16 RD |
31940 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31941 | SWIG_fail; | |
d14a1e28 RD |
31942 | } |
31943 | { | |
31944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31945 | (arg1)->Command(*arg2); | |
31946 | ||
31947 | wxPyEndAllowThreads(__tstate); | |
31948 | if (PyErr_Occurred()) SWIG_fail; | |
31949 | } | |
31950 | Py_INCREF(Py_None); resultobj = Py_None; | |
31951 | return resultobj; | |
31952 | fail: | |
31953 | return NULL; | |
31954 | } | |
31955 | ||
31956 | ||
31957 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31958 | PyObject *resultobj; | |
31959 | wxControl *arg1 = (wxControl *) 0 ; | |
31960 | wxString result; | |
31961 | PyObject * obj0 = 0 ; | |
31962 | char *kwnames[] = { | |
31963 | (char *) "self", NULL | |
31964 | }; | |
31965 | ||
31966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
31968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31969 | { |
31970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31971 | result = (arg1)->GetLabel(); | |
31972 | ||
31973 | wxPyEndAllowThreads(__tstate); | |
31974 | if (PyErr_Occurred()) SWIG_fail; | |
31975 | } | |
31976 | { | |
31977 | #if wxUSE_UNICODE | |
31978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31979 | #else | |
31980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31981 | #endif | |
31982 | } | |
31983 | return resultobj; | |
31984 | fail: | |
31985 | return NULL; | |
31986 | } | |
31987 | ||
31988 | ||
31989 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31990 | PyObject *resultobj; | |
31991 | wxControl *arg1 = (wxControl *) 0 ; | |
31992 | wxString *arg2 = 0 ; | |
423f194a | 31993 | bool temp2 = False ; |
d14a1e28 RD |
31994 | PyObject * obj0 = 0 ; |
31995 | PyObject * obj1 = 0 ; | |
31996 | char *kwnames[] = { | |
31997 | (char *) "self",(char *) "label", NULL | |
31998 | }; | |
31999 | ||
32000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32003 | { |
32004 | arg2 = wxString_in_helper(obj1); | |
32005 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32006 | temp2 = True; |
d14a1e28 RD |
32007 | } |
32008 | { | |
32009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32010 | (arg1)->SetLabel((wxString const &)*arg2); | |
32011 | ||
32012 | wxPyEndAllowThreads(__tstate); | |
32013 | if (PyErr_Occurred()) SWIG_fail; | |
32014 | } | |
32015 | Py_INCREF(Py_None); resultobj = Py_None; | |
32016 | { | |
32017 | if (temp2) | |
32018 | delete arg2; | |
32019 | } | |
32020 | return resultobj; | |
32021 | fail: | |
32022 | { | |
32023 | if (temp2) | |
32024 | delete arg2; | |
32025 | } | |
32026 | return NULL; | |
32027 | } | |
32028 | ||
32029 | ||
32030 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
32031 | PyObject *obj; | |
32032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32033 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32034 | Py_INCREF(obj); | |
32035 | return Py_BuildValue((char *)""); | |
32036 | } | |
32037 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32038 | PyObject *resultobj; | |
32039 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32040 | wxString *arg2 = 0 ; | |
32041 | PyObject *arg3 = (PyObject *) NULL ; | |
32042 | int result; | |
423f194a | 32043 | bool temp2 = False ; |
d14a1e28 RD |
32044 | PyObject * obj0 = 0 ; |
32045 | PyObject * obj1 = 0 ; | |
32046 | PyObject * obj2 = 0 ; | |
32047 | char *kwnames[] = { | |
32048 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32049 | }; | |
32050 | ||
32051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32054 | { |
32055 | arg2 = wxString_in_helper(obj1); | |
32056 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32057 | temp2 = True; |
d14a1e28 RD |
32058 | } |
32059 | if (obj2) { | |
32060 | arg3 = obj2; | |
32061 | } | |
32062 | { | |
32063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32064 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32065 | ||
32066 | wxPyEndAllowThreads(__tstate); | |
32067 | if (PyErr_Occurred()) SWIG_fail; | |
32068 | } | |
2f4c0a16 | 32069 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32070 | { |
32071 | if (temp2) | |
32072 | delete arg2; | |
32073 | } | |
32074 | return resultobj; | |
32075 | fail: | |
32076 | { | |
32077 | if (temp2) | |
32078 | delete arg2; | |
32079 | } | |
32080 | return NULL; | |
32081 | } | |
32082 | ||
32083 | ||
32084 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32085 | PyObject *resultobj; | |
32086 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32087 | wxArrayString *arg2 = 0 ; | |
db914595 | 32088 | bool temp2 = False ; |
d14a1e28 RD |
32089 | PyObject * obj0 = 0 ; |
32090 | PyObject * obj1 = 0 ; | |
32091 | char *kwnames[] = { | |
32092 | (char *) "self",(char *) "strings", NULL | |
32093 | }; | |
32094 | ||
32095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32098 | { |
32099 | if (! PySequence_Check(obj1)) { | |
32100 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
32101 | SWIG_fail; | |
32102 | } | |
32103 | arg2 = new wxArrayString; | |
db914595 | 32104 | temp2 = True; |
d14a1e28 RD |
32105 | int i, len=PySequence_Length(obj1); |
32106 | for (i=0; i<len; i++) { | |
32107 | PyObject* item = PySequence_GetItem(obj1, i); | |
32108 | #if wxUSE_UNICODE | |
32109 | PyObject* str = PyObject_Unicode(item); | |
32110 | #else | |
32111 | PyObject* str = PyObject_Str(item); | |
32112 | #endif | |
32113 | arg2->Add(Py2wxString(str)); | |
32114 | Py_DECREF(item); | |
32115 | Py_DECREF(str); | |
32116 | } | |
32117 | } | |
32118 | { | |
32119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32120 | (arg1)->Append((wxArrayString const &)*arg2); | |
32121 | ||
32122 | wxPyEndAllowThreads(__tstate); | |
32123 | if (PyErr_Occurred()) SWIG_fail; | |
32124 | } | |
32125 | Py_INCREF(Py_None); resultobj = Py_None; | |
32126 | { | |
db914595 | 32127 | if (temp2) delete arg2; |
d14a1e28 RD |
32128 | } |
32129 | return resultobj; | |
32130 | fail: | |
32131 | { | |
db914595 | 32132 | if (temp2) delete arg2; |
d14a1e28 RD |
32133 | } |
32134 | return NULL; | |
32135 | } | |
32136 | ||
32137 | ||
32138 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32139 | PyObject *resultobj; | |
32140 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32141 | wxString *arg2 = 0 ; | |
32142 | int arg3 ; | |
32143 | PyObject *arg4 = (PyObject *) NULL ; | |
32144 | int result; | |
423f194a | 32145 | bool temp2 = False ; |
d14a1e28 RD |
32146 | PyObject * obj0 = 0 ; |
32147 | PyObject * obj1 = 0 ; | |
8edf1c75 | 32148 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32149 | PyObject * obj3 = 0 ; |
32150 | char *kwnames[] = { | |
32151 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
32152 | }; | |
32153 | ||
8edf1c75 | 32154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32157 | { |
32158 | arg2 = wxString_in_helper(obj1); | |
32159 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32160 | temp2 = True; |
d14a1e28 | 32161 | } |
2f4c0a16 RD |
32162 | arg3 = (int) SWIG_AsInt(obj2); |
32163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32164 | if (obj3) { |
32165 | arg4 = obj3; | |
32166 | } | |
32167 | { | |
32168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32169 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
32170 | ||
32171 | wxPyEndAllowThreads(__tstate); | |
32172 | if (PyErr_Occurred()) SWIG_fail; | |
32173 | } | |
2f4c0a16 | 32174 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32175 | { |
32176 | if (temp2) | |
32177 | delete arg2; | |
32178 | } | |
32179 | return resultobj; | |
32180 | fail: | |
32181 | { | |
32182 | if (temp2) | |
32183 | delete arg2; | |
32184 | } | |
32185 | return NULL; | |
32186 | } | |
32187 | ||
32188 | ||
32189 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32190 | PyObject *resultobj; | |
32191 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32192 | PyObject * obj0 = 0 ; | |
32193 | char *kwnames[] = { | |
32194 | (char *) "self", NULL | |
32195 | }; | |
32196 | ||
32197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32200 | { |
32201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32202 | (arg1)->Clear(); | |
32203 | ||
32204 | wxPyEndAllowThreads(__tstate); | |
32205 | if (PyErr_Occurred()) SWIG_fail; | |
32206 | } | |
32207 | Py_INCREF(Py_None); resultobj = Py_None; | |
32208 | return resultobj; | |
32209 | fail: | |
32210 | return NULL; | |
32211 | } | |
32212 | ||
32213 | ||
32214 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32215 | PyObject *resultobj; | |
32216 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32217 | int arg2 ; | |
32218 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32220 | char *kwnames[] = { |
32221 | (char *) "self",(char *) "n", NULL | |
32222 | }; | |
32223 | ||
8edf1c75 | 32224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32227 | arg2 = (int) SWIG_AsInt(obj1); | |
32228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32229 | { |
32230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32231 | (arg1)->Delete(arg2); | |
32232 | ||
32233 | wxPyEndAllowThreads(__tstate); | |
32234 | if (PyErr_Occurred()) SWIG_fail; | |
32235 | } | |
32236 | Py_INCREF(Py_None); resultobj = Py_None; | |
32237 | return resultobj; | |
32238 | fail: | |
32239 | return NULL; | |
32240 | } | |
32241 | ||
32242 | ||
32243 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32244 | PyObject *resultobj; | |
32245 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32246 | int result; | |
32247 | PyObject * obj0 = 0 ; | |
32248 | char *kwnames[] = { | |
32249 | (char *) "self", NULL | |
32250 | }; | |
32251 | ||
32252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32255 | { |
32256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32257 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
32258 | ||
32259 | wxPyEndAllowThreads(__tstate); | |
32260 | if (PyErr_Occurred()) SWIG_fail; | |
32261 | } | |
2f4c0a16 | 32262 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32263 | return resultobj; |
32264 | fail: | |
32265 | return NULL; | |
32266 | } | |
32267 | ||
32268 | ||
32269 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32270 | PyObject *resultobj; | |
32271 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32272 | bool result; | |
32273 | PyObject * obj0 = 0 ; | |
32274 | char *kwnames[] = { | |
32275 | (char *) "self", NULL | |
32276 | }; | |
32277 | ||
32278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32281 | { |
32282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32283 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
32284 | ||
32285 | wxPyEndAllowThreads(__tstate); | |
32286 | if (PyErr_Occurred()) SWIG_fail; | |
32287 | } | |
4e760a36 | 32288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
32289 | return resultobj; |
32290 | fail: | |
32291 | return NULL; | |
32292 | } | |
32293 | ||
32294 | ||
32295 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32296 | PyObject *resultobj; | |
32297 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32298 | int arg2 ; | |
32299 | wxString result; | |
32300 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32302 | char *kwnames[] = { |
32303 | (char *) "self",(char *) "n", NULL | |
32304 | }; | |
32305 | ||
8edf1c75 | 32306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32309 | arg2 = (int) SWIG_AsInt(obj1); | |
32310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32311 | { |
32312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32313 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
32314 | ||
32315 | wxPyEndAllowThreads(__tstate); | |
32316 | if (PyErr_Occurred()) SWIG_fail; | |
32317 | } | |
32318 | { | |
32319 | #if wxUSE_UNICODE | |
32320 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32321 | #else | |
32322 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32323 | #endif | |
32324 | } | |
32325 | return resultobj; | |
32326 | fail: | |
32327 | return NULL; | |
32328 | } | |
32329 | ||
32330 | ||
32331 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32332 | PyObject *resultobj; | |
32333 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32334 | wxArrayString result; | |
32335 | PyObject * obj0 = 0 ; | |
32336 | char *kwnames[] = { | |
32337 | (char *) "self", NULL | |
32338 | }; | |
32339 | ||
32340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32343 | { |
32344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32345 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
32346 | ||
32347 | wxPyEndAllowThreads(__tstate); | |
32348 | if (PyErr_Occurred()) SWIG_fail; | |
32349 | } | |
32350 | { | |
32351 | resultobj = wxArrayString2PyList_helper(result); | |
32352 | } | |
32353 | return resultobj; | |
32354 | fail: | |
32355 | return NULL; | |
32356 | } | |
32357 | ||
32358 | ||
32359 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32360 | PyObject *resultobj; | |
32361 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32362 | int arg2 ; | |
32363 | wxString *arg3 = 0 ; | |
423f194a | 32364 | bool temp3 = False ; |
d14a1e28 | 32365 | PyObject * obj0 = 0 ; |
8edf1c75 | 32366 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32367 | PyObject * obj2 = 0 ; |
32368 | char *kwnames[] = { | |
32369 | (char *) "self",(char *) "n",(char *) "s", NULL | |
32370 | }; | |
32371 | ||
8edf1c75 | 32372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32375 | arg2 = (int) SWIG_AsInt(obj1); | |
32376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32377 | { |
32378 | arg3 = wxString_in_helper(obj2); | |
32379 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 32380 | temp3 = True; |
d14a1e28 RD |
32381 | } |
32382 | { | |
32383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32384 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
32385 | ||
32386 | wxPyEndAllowThreads(__tstate); | |
32387 | if (PyErr_Occurred()) SWIG_fail; | |
32388 | } | |
32389 | Py_INCREF(Py_None); resultobj = Py_None; | |
32390 | { | |
32391 | if (temp3) | |
32392 | delete arg3; | |
32393 | } | |
32394 | return resultobj; | |
32395 | fail: | |
32396 | { | |
32397 | if (temp3) | |
32398 | delete arg3; | |
32399 | } | |
32400 | return NULL; | |
32401 | } | |
32402 | ||
32403 | ||
32404 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32405 | PyObject *resultobj; | |
32406 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32407 | wxString *arg2 = 0 ; | |
32408 | int result; | |
423f194a | 32409 | bool temp2 = False ; |
d14a1e28 RD |
32410 | PyObject * obj0 = 0 ; |
32411 | PyObject * obj1 = 0 ; | |
32412 | char *kwnames[] = { | |
32413 | (char *) "self",(char *) "s", NULL | |
32414 | }; | |
32415 | ||
32416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32419 | { |
32420 | arg2 = wxString_in_helper(obj1); | |
32421 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32422 | temp2 = True; |
d14a1e28 RD |
32423 | } |
32424 | { | |
32425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32426 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
32427 | ||
32428 | wxPyEndAllowThreads(__tstate); | |
32429 | if (PyErr_Occurred()) SWIG_fail; | |
32430 | } | |
2f4c0a16 | 32431 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32432 | { |
32433 | if (temp2) | |
32434 | delete arg2; | |
32435 | } | |
32436 | return resultobj; | |
32437 | fail: | |
32438 | { | |
32439 | if (temp2) | |
32440 | delete arg2; | |
32441 | } | |
32442 | return NULL; | |
32443 | } | |
32444 | ||
32445 | ||
32446 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32447 | PyObject *resultobj; | |
32448 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32449 | int arg2 ; | |
32450 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32451 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32452 | char *kwnames[] = { |
32453 | (char *) "self",(char *) "n", NULL | |
32454 | }; | |
32455 | ||
8edf1c75 | 32456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32459 | arg2 = (int) SWIG_AsInt(obj1); | |
32460 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32461 | { |
32462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32463 | (arg1)->Select(arg2); | |
32464 | ||
32465 | wxPyEndAllowThreads(__tstate); | |
32466 | if (PyErr_Occurred()) SWIG_fail; | |
32467 | } | |
32468 | Py_INCREF(Py_None); resultobj = Py_None; | |
32469 | return resultobj; | |
32470 | fail: | |
32471 | return NULL; | |
32472 | } | |
32473 | ||
32474 | ||
32475 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32476 | PyObject *resultobj; | |
32477 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32478 | int result; | |
32479 | PyObject * obj0 = 0 ; | |
32480 | char *kwnames[] = { | |
32481 | (char *) "self", NULL | |
32482 | }; | |
32483 | ||
32484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32487 | { |
32488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32489 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
32490 | ||
32491 | wxPyEndAllowThreads(__tstate); | |
32492 | if (PyErr_Occurred()) SWIG_fail; | |
32493 | } | |
2f4c0a16 | 32494 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32495 | return resultobj; |
32496 | fail: | |
32497 | return NULL; | |
32498 | } | |
32499 | ||
32500 | ||
32501 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32502 | PyObject *resultobj; | |
32503 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32504 | wxString result; | |
32505 | PyObject * obj0 = 0 ; | |
32506 | char *kwnames[] = { | |
32507 | (char *) "self", NULL | |
32508 | }; | |
32509 | ||
32510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32513 | { |
32514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32515 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32516 | ||
32517 | wxPyEndAllowThreads(__tstate); | |
32518 | if (PyErr_Occurred()) SWIG_fail; | |
32519 | } | |
32520 | { | |
32521 | #if wxUSE_UNICODE | |
32522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32523 | #else | |
32524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32525 | #endif | |
32526 | } | |
32527 | return resultobj; | |
32528 | fail: | |
32529 | return NULL; | |
32530 | } | |
32531 | ||
32532 | ||
32533 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32534 | PyObject *resultobj; | |
32535 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32536 | int arg2 ; | |
32537 | PyObject *result; | |
32538 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32540 | char *kwnames[] = { |
32541 | (char *) "self",(char *) "n", NULL | |
32542 | }; | |
32543 | ||
8edf1c75 | 32544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32547 | arg2 = (int) SWIG_AsInt(obj1); | |
32548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32549 | { |
32550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32551 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
32552 | ||
32553 | wxPyEndAllowThreads(__tstate); | |
32554 | if (PyErr_Occurred()) SWIG_fail; | |
32555 | } | |
32556 | resultobj = result; | |
32557 | return resultobj; | |
32558 | fail: | |
32559 | return NULL; | |
32560 | } | |
32561 | ||
32562 | ||
32563 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32564 | PyObject *resultobj; | |
32565 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32566 | int arg2 ; | |
32567 | PyObject *arg3 = (PyObject *) 0 ; | |
32568 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32569 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32570 | PyObject * obj2 = 0 ; |
32571 | char *kwnames[] = { | |
32572 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
32573 | }; | |
32574 | ||
8edf1c75 | 32575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32578 | arg2 = (int) SWIG_AsInt(obj1); | |
32579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32580 | arg3 = obj2; |
32581 | { | |
32582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32583 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
32584 | ||
32585 | wxPyEndAllowThreads(__tstate); | |
32586 | if (PyErr_Occurred()) SWIG_fail; | |
32587 | } | |
32588 | Py_INCREF(Py_None); resultobj = Py_None; | |
32589 | return resultobj; | |
32590 | fail: | |
32591 | return NULL; | |
32592 | } | |
32593 | ||
32594 | ||
32595 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
32596 | PyObject *obj; | |
32597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32598 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
32599 | Py_INCREF(obj); | |
32600 | return Py_BuildValue((char *)""); | |
32601 | } | |
32602 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
32603 | PyObject *obj; | |
32604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32605 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
32606 | Py_INCREF(obj); | |
32607 | return Py_BuildValue((char *)""); | |
32608 | } | |
32609 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32610 | PyObject *resultobj; | |
32611 | wxSizerItem *result; | |
32612 | char *kwnames[] = { | |
32613 | NULL | |
32614 | }; | |
32615 | ||
32616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
32617 | { | |
32618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32619 | result = (wxSizerItem *)new wxSizerItem(); | |
32620 | ||
32621 | wxPyEndAllowThreads(__tstate); | |
32622 | if (PyErr_Occurred()) SWIG_fail; | |
32623 | } | |
2f4c0a16 | 32624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32625 | return resultobj; |
32626 | fail: | |
32627 | return NULL; | |
32628 | } | |
32629 | ||
32630 | ||
32631 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32632 | PyObject *resultobj; | |
32633 | int arg1 ; | |
32634 | int arg2 ; | |
32635 | int arg3 ; | |
32636 | int arg4 ; | |
32637 | int arg5 ; | |
32638 | wxObject *arg6 = (wxObject *) 0 ; | |
32639 | wxSizerItem *result; | |
8edf1c75 RD |
32640 | PyObject * obj0 = 0 ; |
32641 | PyObject * obj1 = 0 ; | |
32642 | PyObject * obj2 = 0 ; | |
32643 | PyObject * obj3 = 0 ; | |
32644 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32645 | PyObject * obj5 = 0 ; |
32646 | char *kwnames[] = { | |
32647 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32648 | }; | |
32649 | ||
8edf1c75 | 32650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
32651 | arg1 = (int) SWIG_AsInt(obj0); |
32652 | if (PyErr_Occurred()) SWIG_fail; | |
32653 | arg2 = (int) SWIG_AsInt(obj1); | |
32654 | if (PyErr_Occurred()) SWIG_fail; | |
32655 | arg3 = (int) SWIG_AsInt(obj2); | |
32656 | if (PyErr_Occurred()) SWIG_fail; | |
32657 | arg4 = (int) SWIG_AsInt(obj3); | |
32658 | if (PyErr_Occurred()) SWIG_fail; | |
32659 | arg5 = (int) SWIG_AsInt(obj4); | |
32660 | if (PyErr_Occurred()) SWIG_fail; | |
32661 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
32662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32663 | { |
32664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32665 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
32666 | ||
32667 | wxPyEndAllowThreads(__tstate); | |
32668 | if (PyErr_Occurred()) SWIG_fail; | |
32669 | } | |
2f4c0a16 | 32670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32671 | return resultobj; |
32672 | fail: | |
32673 | return NULL; | |
32674 | } | |
32675 | ||
32676 | ||
32677 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32678 | PyObject *resultobj; | |
32679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32680 | int arg2 ; | |
32681 | int arg3 ; | |
32682 | int arg4 ; | |
32683 | wxObject *arg5 = (wxObject *) 0 ; | |
32684 | wxSizerItem *result; | |
32685 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32686 | PyObject * obj1 = 0 ; |
32687 | PyObject * obj2 = 0 ; | |
32688 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32689 | PyObject * obj4 = 0 ; |
32690 | char *kwnames[] = { | |
32691 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32692 | }; | |
32693 | ||
8edf1c75 | 32694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32697 | arg2 = (int) SWIG_AsInt(obj1); | |
32698 | if (PyErr_Occurred()) SWIG_fail; | |
32699 | arg3 = (int) SWIG_AsInt(obj2); | |
32700 | if (PyErr_Occurred()) SWIG_fail; | |
32701 | arg4 = (int) SWIG_AsInt(obj3); | |
32702 | if (PyErr_Occurred()) SWIG_fail; | |
32703 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
32704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32705 | { |
32706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32707 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32708 | ||
32709 | wxPyEndAllowThreads(__tstate); | |
32710 | if (PyErr_Occurred()) SWIG_fail; | |
32711 | } | |
2f4c0a16 | 32712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32713 | return resultobj; |
32714 | fail: | |
32715 | return NULL; | |
32716 | } | |
32717 | ||
32718 | ||
32719 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32720 | PyObject *resultobj; | |
32721 | wxSizer *arg1 = (wxSizer *) 0 ; | |
32722 | int arg2 ; | |
32723 | int arg3 ; | |
32724 | int arg4 ; | |
32725 | wxObject *arg5 = (wxObject *) 0 ; | |
32726 | wxSizerItem *result; | |
32727 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32728 | PyObject * obj1 = 0 ; |
32729 | PyObject * obj2 = 0 ; | |
32730 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
32731 | PyObject * obj4 = 0 ; |
32732 | char *kwnames[] = { | |
32733 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
32734 | }; | |
32735 | ||
8edf1c75 | 32736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
32737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
32738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32739 | arg2 = (int) SWIG_AsInt(obj1); | |
32740 | if (PyErr_Occurred()) SWIG_fail; | |
32741 | arg3 = (int) SWIG_AsInt(obj2); | |
32742 | if (PyErr_Occurred()) SWIG_fail; | |
32743 | arg4 = (int) SWIG_AsInt(obj3); | |
32744 | if (PyErr_Occurred()) SWIG_fail; | |
32745 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
32746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32747 | { |
32748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32749 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
32750 | ||
32751 | wxPyEndAllowThreads(__tstate); | |
32752 | if (PyErr_Occurred()) SWIG_fail; | |
32753 | } | |
2f4c0a16 | 32754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
32755 | return resultobj; |
32756 | fail: | |
32757 | return NULL; | |
32758 | } | |
32759 | ||
32760 | ||
32761 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32762 | PyObject *resultobj; | |
32763 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32764 | PyObject * obj0 = 0 ; | |
32765 | char *kwnames[] = { | |
32766 | (char *) "self", NULL | |
32767 | }; | |
32768 | ||
32769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32772 | { |
32773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32774 | (arg1)->DeleteWindows(); | |
32775 | ||
32776 | wxPyEndAllowThreads(__tstate); | |
32777 | if (PyErr_Occurred()) SWIG_fail; | |
32778 | } | |
32779 | Py_INCREF(Py_None); resultobj = Py_None; | |
32780 | return resultobj; | |
32781 | fail: | |
32782 | return NULL; | |
32783 | } | |
32784 | ||
32785 | ||
32786 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32787 | PyObject *resultobj; | |
32788 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32789 | PyObject * obj0 = 0 ; | |
32790 | char *kwnames[] = { | |
32791 | (char *) "self", NULL | |
32792 | }; | |
32793 | ||
32794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32797 | { |
32798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32799 | (arg1)->DetachSizer(); | |
32800 | ||
32801 | wxPyEndAllowThreads(__tstate); | |
32802 | if (PyErr_Occurred()) SWIG_fail; | |
32803 | } | |
32804 | Py_INCREF(Py_None); resultobj = Py_None; | |
32805 | return resultobj; | |
32806 | fail: | |
32807 | return NULL; | |
32808 | } | |
32809 | ||
32810 | ||
32811 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32812 | PyObject *resultobj; | |
32813 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32814 | wxSize result; | |
32815 | PyObject * obj0 = 0 ; | |
32816 | char *kwnames[] = { | |
32817 | (char *) "self", NULL | |
32818 | }; | |
32819 | ||
32820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32823 | { |
32824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32825 | result = (arg1)->GetSize(); | |
32826 | ||
32827 | wxPyEndAllowThreads(__tstate); | |
32828 | if (PyErr_Occurred()) SWIG_fail; | |
32829 | } | |
32830 | { | |
32831 | wxSize * resultptr; | |
32832 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32834 | } |
32835 | return resultobj; | |
32836 | fail: | |
32837 | return NULL; | |
32838 | } | |
32839 | ||
32840 | ||
32841 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32842 | PyObject *resultobj; | |
32843 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32844 | wxSize result; | |
32845 | PyObject * obj0 = 0 ; | |
32846 | char *kwnames[] = { | |
32847 | (char *) "self", NULL | |
32848 | }; | |
32849 | ||
32850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32853 | { |
32854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32855 | result = (arg1)->CalcMin(); | |
32856 | ||
32857 | wxPyEndAllowThreads(__tstate); | |
32858 | if (PyErr_Occurred()) SWIG_fail; | |
32859 | } | |
32860 | { | |
32861 | wxSize * resultptr; | |
32862 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32864 | } |
32865 | return resultobj; | |
32866 | fail: | |
32867 | return NULL; | |
32868 | } | |
32869 | ||
32870 | ||
32871 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32872 | PyObject *resultobj; | |
32873 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32874 | wxPoint arg2 ; | |
32875 | wxSize arg3 ; | |
32876 | wxPoint *argp2 ; | |
32877 | wxSize *argp3 ; | |
32878 | PyObject * obj0 = 0 ; | |
32879 | PyObject * obj1 = 0 ; | |
32880 | PyObject * obj2 = 0 ; | |
32881 | char *kwnames[] = { | |
32882 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
32883 | }; | |
32884 | ||
32885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32888 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
32889 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32890 | arg2 = *argp2; | |
32891 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
32892 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
32893 | arg3 = *argp3; | |
d14a1e28 RD |
32894 | { |
32895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32896 | (arg1)->SetDimension(arg2,arg3); | |
32897 | ||
32898 | wxPyEndAllowThreads(__tstate); | |
32899 | if (PyErr_Occurred()) SWIG_fail; | |
32900 | } | |
32901 | Py_INCREF(Py_None); resultobj = Py_None; | |
32902 | return resultobj; | |
32903 | fail: | |
32904 | return NULL; | |
32905 | } | |
32906 | ||
32907 | ||
32908 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32909 | PyObject *resultobj; | |
32910 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32911 | wxSize result; | |
32912 | PyObject * obj0 = 0 ; | |
32913 | char *kwnames[] = { | |
32914 | (char *) "self", NULL | |
32915 | }; | |
32916 | ||
32917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32920 | { |
32921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32922 | result = (arg1)->GetMinSize(); | |
32923 | ||
32924 | wxPyEndAllowThreads(__tstate); | |
32925 | if (PyErr_Occurred()) SWIG_fail; | |
32926 | } | |
32927 | { | |
32928 | wxSize * resultptr; | |
32929 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 32930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32931 | } |
32932 | return resultobj; | |
32933 | fail: | |
32934 | return NULL; | |
32935 | } | |
32936 | ||
32937 | ||
32938 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32939 | PyObject *resultobj; | |
32940 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32941 | int arg2 ; | |
32942 | int arg3 ; | |
32943 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32944 | PyObject * obj1 = 0 ; |
32945 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32946 | char *kwnames[] = { |
32947 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32948 | }; | |
32949 | ||
8edf1c75 | 32950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32953 | arg2 = (int) SWIG_AsInt(obj1); | |
32954 | if (PyErr_Occurred()) SWIG_fail; | |
32955 | arg3 = (int) SWIG_AsInt(obj2); | |
32956 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32957 | { |
32958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32959 | (arg1)->SetInitSize(arg2,arg3); | |
32960 | ||
32961 | wxPyEndAllowThreads(__tstate); | |
32962 | if (PyErr_Occurred()) SWIG_fail; | |
32963 | } | |
32964 | Py_INCREF(Py_None); resultobj = Py_None; | |
32965 | return resultobj; | |
32966 | fail: | |
32967 | return NULL; | |
32968 | } | |
32969 | ||
32970 | ||
32971 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32972 | PyObject *resultobj; | |
32973 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
32974 | int arg2 ; | |
32975 | int arg3 ; | |
32976 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
32977 | PyObject * obj1 = 0 ; |
32978 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32979 | char *kwnames[] = { |
32980 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32981 | }; | |
32982 | ||
8edf1c75 | 32983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
32985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32986 | arg2 = (int) SWIG_AsInt(obj1); | |
32987 | if (PyErr_Occurred()) SWIG_fail; | |
32988 | arg3 = (int) SWIG_AsInt(obj2); | |
32989 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32990 | { |
32991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32992 | (arg1)->SetRatio(arg2,arg3); | |
32993 | ||
32994 | wxPyEndAllowThreads(__tstate); | |
32995 | if (PyErr_Occurred()) SWIG_fail; | |
32996 | } | |
32997 | Py_INCREF(Py_None); resultobj = Py_None; | |
32998 | return resultobj; | |
32999 | fail: | |
33000 | return NULL; | |
33001 | } | |
33002 | ||
33003 | ||
33004 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33005 | PyObject *resultobj; | |
33006 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33007 | wxSize arg2 ; | |
33008 | wxSize *argp2 ; | |
33009 | PyObject * obj0 = 0 ; | |
33010 | PyObject * obj1 = 0 ; | |
33011 | char *kwnames[] = { | |
33012 | (char *) "self",(char *) "size", NULL | |
33013 | }; | |
33014 | ||
33015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33018 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33019 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33020 | arg2 = *argp2; | |
d14a1e28 RD |
33021 | { |
33022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33023 | (arg1)->SetRatio(arg2); | |
33024 | ||
33025 | wxPyEndAllowThreads(__tstate); | |
33026 | if (PyErr_Occurred()) SWIG_fail; | |
33027 | } | |
33028 | Py_INCREF(Py_None); resultobj = Py_None; | |
33029 | return resultobj; | |
33030 | fail: | |
33031 | return NULL; | |
33032 | } | |
33033 | ||
33034 | ||
33035 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33036 | PyObject *resultobj; | |
33037 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33038 | float arg2 ; | |
33039 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33041 | char *kwnames[] = { |
33042 | (char *) "self",(char *) "ratio", NULL | |
33043 | }; | |
33044 | ||
8edf1c75 | 33045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33048 | arg2 = (float) SWIG_AsFloat(obj1); | |
33049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33050 | { |
33051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33052 | (arg1)->SetRatio(arg2); | |
33053 | ||
33054 | wxPyEndAllowThreads(__tstate); | |
33055 | if (PyErr_Occurred()) SWIG_fail; | |
33056 | } | |
33057 | Py_INCREF(Py_None); resultobj = Py_None; | |
33058 | return resultobj; | |
33059 | fail: | |
33060 | return NULL; | |
33061 | } | |
33062 | ||
33063 | ||
33064 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33065 | PyObject *resultobj; | |
33066 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33067 | float result; | |
33068 | PyObject * obj0 = 0 ; | |
33069 | char *kwnames[] = { | |
33070 | (char *) "self", NULL | |
33071 | }; | |
33072 | ||
33073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33076 | { |
33077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33078 | result = (float)(arg1)->GetRatio(); | |
33079 | ||
33080 | wxPyEndAllowThreads(__tstate); | |
33081 | if (PyErr_Occurred()) SWIG_fail; | |
33082 | } | |
2f4c0a16 | 33083 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
33084 | return resultobj; |
33085 | fail: | |
33086 | return NULL; | |
33087 | } | |
33088 | ||
33089 | ||
33090 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33091 | PyObject *resultobj; | |
33092 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33093 | bool result; | |
33094 | PyObject * obj0 = 0 ; | |
33095 | char *kwnames[] = { | |
33096 | (char *) "self", NULL | |
33097 | }; | |
33098 | ||
33099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33102 | { |
33103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33104 | result = (bool)(arg1)->IsWindow(); | |
33105 | ||
33106 | wxPyEndAllowThreads(__tstate); | |
33107 | if (PyErr_Occurred()) SWIG_fail; | |
33108 | } | |
4e760a36 | 33109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33110 | return resultobj; |
33111 | fail: | |
33112 | return NULL; | |
33113 | } | |
33114 | ||
33115 | ||
33116 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33117 | PyObject *resultobj; | |
33118 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33119 | bool result; | |
33120 | PyObject * obj0 = 0 ; | |
33121 | char *kwnames[] = { | |
33122 | (char *) "self", NULL | |
33123 | }; | |
33124 | ||
33125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33128 | { |
33129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33130 | result = (bool)(arg1)->IsSizer(); | |
33131 | ||
33132 | wxPyEndAllowThreads(__tstate); | |
33133 | if (PyErr_Occurred()) SWIG_fail; | |
33134 | } | |
4e760a36 | 33135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33136 | return resultobj; |
33137 | fail: | |
33138 | return NULL; | |
33139 | } | |
33140 | ||
33141 | ||
33142 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33143 | PyObject *resultobj; | |
33144 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33145 | bool result; | |
33146 | PyObject * obj0 = 0 ; | |
33147 | char *kwnames[] = { | |
33148 | (char *) "self", NULL | |
33149 | }; | |
33150 | ||
33151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33154 | { |
33155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33156 | result = (bool)(arg1)->IsSpacer(); | |
33157 | ||
33158 | wxPyEndAllowThreads(__tstate); | |
33159 | if (PyErr_Occurred()) SWIG_fail; | |
33160 | } | |
4e760a36 | 33161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33162 | return resultobj; |
33163 | fail: | |
33164 | return NULL; | |
33165 | } | |
33166 | ||
33167 | ||
33168 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33169 | PyObject *resultobj; | |
33170 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33171 | int arg2 ; | |
33172 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33174 | char *kwnames[] = { |
33175 | (char *) "self",(char *) "proportion", NULL | |
33176 | }; | |
33177 | ||
8edf1c75 | 33178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33181 | arg2 = (int) SWIG_AsInt(obj1); | |
33182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33183 | { |
33184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33185 | (arg1)->SetProportion(arg2); | |
33186 | ||
33187 | wxPyEndAllowThreads(__tstate); | |
33188 | if (PyErr_Occurred()) SWIG_fail; | |
33189 | } | |
33190 | Py_INCREF(Py_None); resultobj = Py_None; | |
33191 | return resultobj; | |
33192 | fail: | |
33193 | return NULL; | |
33194 | } | |
33195 | ||
33196 | ||
33197 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33198 | PyObject *resultobj; | |
33199 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33200 | int result; | |
33201 | PyObject * obj0 = 0 ; | |
33202 | char *kwnames[] = { | |
33203 | (char *) "self", NULL | |
33204 | }; | |
33205 | ||
33206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33209 | { |
33210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33211 | result = (int)(arg1)->GetProportion(); | |
33212 | ||
33213 | wxPyEndAllowThreads(__tstate); | |
33214 | if (PyErr_Occurred()) SWIG_fail; | |
33215 | } | |
2f4c0a16 | 33216 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33217 | return resultobj; |
33218 | fail: | |
33219 | return NULL; | |
33220 | } | |
33221 | ||
33222 | ||
33223 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33224 | PyObject *resultobj; | |
33225 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33226 | int arg2 ; | |
33227 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33229 | char *kwnames[] = { |
33230 | (char *) "self",(char *) "flag", NULL | |
33231 | }; | |
33232 | ||
8edf1c75 | 33233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33236 | arg2 = (int) SWIG_AsInt(obj1); | |
33237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33238 | { |
33239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33240 | (arg1)->SetFlag(arg2); | |
33241 | ||
33242 | wxPyEndAllowThreads(__tstate); | |
33243 | if (PyErr_Occurred()) SWIG_fail; | |
33244 | } | |
33245 | Py_INCREF(Py_None); resultobj = Py_None; | |
33246 | return resultobj; | |
33247 | fail: | |
33248 | return NULL; | |
33249 | } | |
33250 | ||
33251 | ||
33252 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33253 | PyObject *resultobj; | |
33254 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33255 | int result; | |
33256 | PyObject * obj0 = 0 ; | |
33257 | char *kwnames[] = { | |
33258 | (char *) "self", NULL | |
33259 | }; | |
33260 | ||
33261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33264 | { |
33265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33266 | result = (int)(arg1)->GetFlag(); | |
33267 | ||
33268 | wxPyEndAllowThreads(__tstate); | |
33269 | if (PyErr_Occurred()) SWIG_fail; | |
33270 | } | |
2f4c0a16 | 33271 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33272 | return resultobj; |
33273 | fail: | |
33274 | return NULL; | |
33275 | } | |
33276 | ||
33277 | ||
33278 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33279 | PyObject *resultobj; | |
33280 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33281 | int arg2 ; | |
33282 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33283 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33284 | char *kwnames[] = { |
33285 | (char *) "self",(char *) "border", NULL | |
33286 | }; | |
33287 | ||
8edf1c75 | 33288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33291 | arg2 = (int) SWIG_AsInt(obj1); | |
33292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33293 | { |
33294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33295 | (arg1)->SetBorder(arg2); | |
33296 | ||
33297 | wxPyEndAllowThreads(__tstate); | |
33298 | if (PyErr_Occurred()) SWIG_fail; | |
33299 | } | |
33300 | Py_INCREF(Py_None); resultobj = Py_None; | |
33301 | return resultobj; | |
33302 | fail: | |
33303 | return NULL; | |
33304 | } | |
33305 | ||
33306 | ||
33307 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33308 | PyObject *resultobj; | |
33309 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33310 | int result; | |
33311 | PyObject * obj0 = 0 ; | |
33312 | char *kwnames[] = { | |
33313 | (char *) "self", NULL | |
33314 | }; | |
33315 | ||
33316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33319 | { |
33320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33321 | result = (int)(arg1)->GetBorder(); | |
33322 | ||
33323 | wxPyEndAllowThreads(__tstate); | |
33324 | if (PyErr_Occurred()) SWIG_fail; | |
33325 | } | |
2f4c0a16 | 33326 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33327 | return resultobj; |
33328 | fail: | |
33329 | return NULL; | |
33330 | } | |
33331 | ||
33332 | ||
33333 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33334 | PyObject *resultobj; | |
33335 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33336 | wxWindow *result; | |
33337 | PyObject * obj0 = 0 ; | |
33338 | char *kwnames[] = { | |
33339 | (char *) "self", NULL | |
33340 | }; | |
33341 | ||
33342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33345 | { |
33346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33347 | result = (wxWindow *)(arg1)->GetWindow(); | |
33348 | ||
33349 | wxPyEndAllowThreads(__tstate); | |
33350 | if (PyErr_Occurred()) SWIG_fail; | |
33351 | } | |
33352 | { | |
33353 | resultobj = wxPyMake_wxObject(result); | |
33354 | } | |
33355 | return resultobj; | |
33356 | fail: | |
33357 | return NULL; | |
33358 | } | |
33359 | ||
33360 | ||
33361 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33362 | PyObject *resultobj; | |
33363 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33364 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33365 | PyObject * obj0 = 0 ; | |
33366 | PyObject * obj1 = 0 ; | |
33367 | char *kwnames[] = { | |
33368 | (char *) "self",(char *) "window", NULL | |
33369 | }; | |
33370 | ||
33371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33374 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33376 | { |
33377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33378 | (arg1)->SetWindow(arg2); | |
33379 | ||
33380 | wxPyEndAllowThreads(__tstate); | |
33381 | if (PyErr_Occurred()) SWIG_fail; | |
33382 | } | |
33383 | Py_INCREF(Py_None); resultobj = Py_None; | |
33384 | return resultobj; | |
33385 | fail: | |
33386 | return NULL; | |
33387 | } | |
33388 | ||
33389 | ||
33390 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33391 | PyObject *resultobj; | |
33392 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33393 | wxSizer *result; | |
33394 | PyObject * obj0 = 0 ; | |
33395 | char *kwnames[] = { | |
33396 | (char *) "self", NULL | |
33397 | }; | |
33398 | ||
33399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33402 | { |
33403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33404 | result = (wxSizer *)(arg1)->GetSizer(); | |
33405 | ||
33406 | wxPyEndAllowThreads(__tstate); | |
33407 | if (PyErr_Occurred()) SWIG_fail; | |
33408 | } | |
33409 | { | |
33410 | resultobj = wxPyMake_wxSizer(result); | |
33411 | } | |
33412 | return resultobj; | |
33413 | fail: | |
33414 | return NULL; | |
33415 | } | |
33416 | ||
33417 | ||
33418 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33419 | PyObject *resultobj; | |
33420 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33421 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33422 | PyObject * obj0 = 0 ; | |
33423 | PyObject * obj1 = 0 ; | |
33424 | char *kwnames[] = { | |
33425 | (char *) "self",(char *) "sizer", NULL | |
33426 | }; | |
33427 | ||
33428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
33432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33433 | { |
33434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33435 | (arg1)->SetSizer(arg2); | |
33436 | ||
33437 | wxPyEndAllowThreads(__tstate); | |
33438 | if (PyErr_Occurred()) SWIG_fail; | |
33439 | } | |
33440 | Py_INCREF(Py_None); resultobj = Py_None; | |
33441 | return resultobj; | |
33442 | fail: | |
33443 | return NULL; | |
33444 | } | |
33445 | ||
33446 | ||
33447 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33448 | PyObject *resultobj; | |
33449 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33450 | wxSize *result; | |
33451 | PyObject * obj0 = 0 ; | |
33452 | char *kwnames[] = { | |
33453 | (char *) "self", NULL | |
33454 | }; | |
33455 | ||
33456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33459 | { |
33460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33461 | { | |
33462 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
33463 | result = (wxSize *) &_result_ref; | |
33464 | } | |
33465 | ||
33466 | wxPyEndAllowThreads(__tstate); | |
33467 | if (PyErr_Occurred()) SWIG_fail; | |
33468 | } | |
2f4c0a16 | 33469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
33470 | return resultobj; |
33471 | fail: | |
33472 | return NULL; | |
33473 | } | |
33474 | ||
33475 | ||
33476 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33477 | PyObject *resultobj; | |
33478 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33479 | wxSize *arg2 = 0 ; | |
33480 | wxSize temp2 ; | |
33481 | PyObject * obj0 = 0 ; | |
33482 | PyObject * obj1 = 0 ; | |
33483 | char *kwnames[] = { | |
33484 | (char *) "self",(char *) "size", NULL | |
33485 | }; | |
33486 | ||
33487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33490 | { |
33491 | arg2 = &temp2; | |
33492 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33493 | } | |
33494 | { | |
33495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33496 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33497 | ||
33498 | wxPyEndAllowThreads(__tstate); | |
33499 | if (PyErr_Occurred()) SWIG_fail; | |
33500 | } | |
33501 | Py_INCREF(Py_None); resultobj = Py_None; | |
33502 | return resultobj; | |
33503 | fail: | |
33504 | return NULL; | |
33505 | } | |
33506 | ||
33507 | ||
33508 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33509 | PyObject *resultobj; | |
33510 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33511 | bool arg2 ; | |
33512 | PyObject * obj0 = 0 ; | |
33513 | PyObject * obj1 = 0 ; | |
33514 | char *kwnames[] = { | |
33515 | (char *) "self",(char *) "show", NULL | |
33516 | }; | |
33517 | ||
33518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33521 | arg2 = (bool) SWIG_AsBool(obj1); | |
33522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33523 | { |
33524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33525 | (arg1)->Show(arg2); | |
33526 | ||
33527 | wxPyEndAllowThreads(__tstate); | |
33528 | if (PyErr_Occurred()) SWIG_fail; | |
33529 | } | |
33530 | Py_INCREF(Py_None); resultobj = Py_None; | |
33531 | return resultobj; | |
33532 | fail: | |
33533 | return NULL; | |
33534 | } | |
33535 | ||
33536 | ||
33537 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33538 | PyObject *resultobj; | |
33539 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33540 | bool result; | |
33541 | PyObject * obj0 = 0 ; | |
33542 | char *kwnames[] = { | |
33543 | (char *) "self", NULL | |
33544 | }; | |
33545 | ||
33546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33549 | { |
33550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33551 | result = (bool)(arg1)->IsShown(); | |
33552 | ||
33553 | wxPyEndAllowThreads(__tstate); | |
33554 | if (PyErr_Occurred()) SWIG_fail; | |
33555 | } | |
4e760a36 | 33556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33557 | return resultobj; |
33558 | fail: | |
33559 | return NULL; | |
33560 | } | |
33561 | ||
33562 | ||
33563 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33564 | PyObject *resultobj; | |
33565 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33566 | wxPoint result; | |
33567 | PyObject * obj0 = 0 ; | |
33568 | char *kwnames[] = { | |
33569 | (char *) "self", NULL | |
33570 | }; | |
33571 | ||
33572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33575 | { |
33576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33577 | result = (arg1)->GetPosition(); | |
33578 | ||
33579 | wxPyEndAllowThreads(__tstate); | |
33580 | if (PyErr_Occurred()) SWIG_fail; | |
33581 | } | |
33582 | { | |
33583 | wxPoint * resultptr; | |
33584 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 33585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
33586 | } |
33587 | return resultobj; | |
33588 | fail: | |
33589 | return NULL; | |
33590 | } | |
33591 | ||
33592 | ||
33593 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33594 | PyObject *resultobj; | |
33595 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33596 | PyObject *result; | |
33597 | PyObject * obj0 = 0 ; | |
33598 | char *kwnames[] = { | |
33599 | (char *) "self", NULL | |
33600 | }; | |
33601 | ||
33602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33605 | { |
33606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33607 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
33608 | ||
33609 | wxPyEndAllowThreads(__tstate); | |
33610 | if (PyErr_Occurred()) SWIG_fail; | |
33611 | } | |
33612 | resultobj = result; | |
33613 | return resultobj; | |
33614 | fail: | |
33615 | return NULL; | |
33616 | } | |
33617 | ||
33618 | ||
33619 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
33620 | PyObject *obj; | |
33621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33622 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
33623 | Py_INCREF(obj); | |
33624 | return Py_BuildValue((char *)""); | |
33625 | } | |
33626 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33627 | PyObject *resultobj; | |
33628 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33629 | PyObject *arg2 = (PyObject *) 0 ; | |
33630 | PyObject * obj0 = 0 ; | |
33631 | PyObject * obj1 = 0 ; | |
33632 | char *kwnames[] = { | |
33633 | (char *) "self",(char *) "_self", NULL | |
33634 | }; | |
33635 | ||
33636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33639 | arg2 = obj1; |
33640 | { | |
33641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33642 | wxSizer__setOORInfo(arg1,arg2); | |
33643 | ||
33644 | wxPyEndAllowThreads(__tstate); | |
33645 | if (PyErr_Occurred()) SWIG_fail; | |
33646 | } | |
33647 | Py_INCREF(Py_None); resultobj = Py_None; | |
33648 | return resultobj; | |
33649 | fail: | |
33650 | return NULL; | |
33651 | } | |
33652 | ||
33653 | ||
33654 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33655 | PyObject *resultobj; | |
33656 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33657 | PyObject *arg2 = (PyObject *) 0 ; | |
33658 | int arg3 = (int) 0 ; | |
33659 | int arg4 = (int) 0 ; | |
33660 | int arg5 = (int) 0 ; | |
33661 | PyObject *arg6 = (PyObject *) NULL ; | |
33662 | PyObject * obj0 = 0 ; | |
33663 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33664 | PyObject * obj2 = 0 ; |
33665 | PyObject * obj3 = 0 ; | |
33666 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33667 | PyObject * obj5 = 0 ; |
33668 | char *kwnames[] = { | |
33669 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33670 | }; | |
33671 | ||
8edf1c75 | 33672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33675 | arg2 = obj1; |
8edf1c75 | 33676 | if (obj2) { |
2f4c0a16 RD |
33677 | arg3 = (int) SWIG_AsInt(obj2); |
33678 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33679 | } |
33680 | if (obj3) { | |
2f4c0a16 RD |
33681 | arg4 = (int) SWIG_AsInt(obj3); |
33682 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33683 | } |
33684 | if (obj4) { | |
2f4c0a16 RD |
33685 | arg5 = (int) SWIG_AsInt(obj4); |
33686 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33687 | } |
d14a1e28 RD |
33688 | if (obj5) { |
33689 | arg6 = obj5; | |
33690 | } | |
33691 | { | |
33692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33693 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
33694 | ||
33695 | wxPyEndAllowThreads(__tstate); | |
33696 | if (PyErr_Occurred()) SWIG_fail; | |
33697 | } | |
33698 | Py_INCREF(Py_None); resultobj = Py_None; | |
33699 | return resultobj; | |
33700 | fail: | |
33701 | return NULL; | |
33702 | } | |
33703 | ||
33704 | ||
33705 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33706 | PyObject *resultobj; | |
33707 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33708 | int arg2 ; | |
33709 | PyObject *arg3 = (PyObject *) 0 ; | |
33710 | int arg4 = (int) 0 ; | |
33711 | int arg5 = (int) 0 ; | |
33712 | int arg6 = (int) 0 ; | |
33713 | PyObject *arg7 = (PyObject *) NULL ; | |
33714 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33715 | PyObject * obj1 = 0 ; |
d14a1e28 | 33716 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
33717 | PyObject * obj3 = 0 ; |
33718 | PyObject * obj4 = 0 ; | |
33719 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
33720 | PyObject * obj6 = 0 ; |
33721 | char *kwnames[] = { | |
33722 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33723 | }; | |
33724 | ||
8edf1c75 | 33725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
33726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33728 | arg2 = (int) SWIG_AsInt(obj1); | |
33729 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 33730 | arg3 = obj2; |
8edf1c75 | 33731 | if (obj3) { |
2f4c0a16 RD |
33732 | arg4 = (int) SWIG_AsInt(obj3); |
33733 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33734 | } |
33735 | if (obj4) { | |
2f4c0a16 RD |
33736 | arg5 = (int) SWIG_AsInt(obj4); |
33737 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33738 | } |
33739 | if (obj5) { | |
2f4c0a16 RD |
33740 | arg6 = (int) SWIG_AsInt(obj5); |
33741 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33742 | } |
d14a1e28 RD |
33743 | if (obj6) { |
33744 | arg7 = obj6; | |
33745 | } | |
33746 | { | |
33747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33748 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
33749 | ||
33750 | wxPyEndAllowThreads(__tstate); | |
33751 | if (PyErr_Occurred()) SWIG_fail; | |
33752 | } | |
33753 | Py_INCREF(Py_None); resultobj = Py_None; | |
33754 | return resultobj; | |
33755 | fail: | |
33756 | return NULL; | |
33757 | } | |
33758 | ||
33759 | ||
33760 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33761 | PyObject *resultobj; | |
33762 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33763 | PyObject *arg2 = (PyObject *) 0 ; | |
33764 | int arg3 = (int) 0 ; | |
33765 | int arg4 = (int) 0 ; | |
33766 | int arg5 = (int) 0 ; | |
33767 | PyObject *arg6 = (PyObject *) NULL ; | |
33768 | PyObject * obj0 = 0 ; | |
33769 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
33770 | PyObject * obj2 = 0 ; |
33771 | PyObject * obj3 = 0 ; | |
33772 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33773 | PyObject * obj5 = 0 ; |
33774 | char *kwnames[] = { | |
33775 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33776 | }; | |
33777 | ||
8edf1c75 | 33778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33781 | arg2 = obj1; |
8edf1c75 | 33782 | if (obj2) { |
2f4c0a16 RD |
33783 | arg3 = (int) SWIG_AsInt(obj2); |
33784 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33785 | } |
33786 | if (obj3) { | |
2f4c0a16 RD |
33787 | arg4 = (int) SWIG_AsInt(obj3); |
33788 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
33789 | } |
33790 | if (obj4) { | |
2f4c0a16 RD |
33791 | arg5 = (int) SWIG_AsInt(obj4); |
33792 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 33793 | } |
d14a1e28 RD |
33794 | if (obj5) { |
33795 | arg6 = obj5; | |
33796 | } | |
33797 | { | |
33798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33799 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
33800 | ||
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
33804 | Py_INCREF(Py_None); resultobj = Py_None; | |
33805 | return resultobj; | |
33806 | fail: | |
33807 | return NULL; | |
33808 | } | |
33809 | ||
33810 | ||
33811 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33812 | PyObject *resultobj; | |
33813 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33814 | PyObject *arg2 = (PyObject *) 0 ; | |
33815 | bool result; | |
33816 | PyObject * obj0 = 0 ; | |
33817 | PyObject * obj1 = 0 ; | |
33818 | char *kwnames[] = { | |
33819 | (char *) "self",(char *) "item", NULL | |
33820 | }; | |
33821 | ||
33822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33825 | arg2 = obj1; |
33826 | { | |
33827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33828 | result = (bool)wxSizer_Remove(arg1,arg2); | |
33829 | ||
33830 | wxPyEndAllowThreads(__tstate); | |
33831 | if (PyErr_Occurred()) SWIG_fail; | |
33832 | } | |
4e760a36 | 33833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
33834 | return resultobj; |
33835 | fail: | |
33836 | return NULL; | |
33837 | } | |
33838 | ||
33839 | ||
33840 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33841 | PyObject *resultobj; | |
33842 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33843 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
33844 | wxSize *arg3 = 0 ; |
33845 | wxSize temp3 ; | |
d14a1e28 RD |
33846 | PyObject * obj0 = 0 ; |
33847 | PyObject * obj1 = 0 ; | |
33848 | PyObject * obj2 = 0 ; | |
33849 | char *kwnames[] = { | |
33850 | (char *) "self",(char *) "item",(char *) "size", NULL | |
33851 | }; | |
33852 | ||
33853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 33856 | arg2 = obj1; |
423f194a RD |
33857 | { |
33858 | arg3 = &temp3; | |
33859 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33860 | } | |
d14a1e28 RD |
33861 | { |
33862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 33863 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
33864 | |
33865 | wxPyEndAllowThreads(__tstate); | |
33866 | if (PyErr_Occurred()) SWIG_fail; | |
33867 | } | |
33868 | Py_INCREF(Py_None); resultobj = Py_None; | |
33869 | return resultobj; | |
33870 | fail: | |
33871 | return NULL; | |
33872 | } | |
33873 | ||
33874 | ||
33875 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33876 | PyObject *resultobj; | |
33877 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33878 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33879 | PyObject * obj0 = 0 ; | |
33880 | PyObject * obj1 = 0 ; | |
33881 | char *kwnames[] = { | |
33882 | (char *) "self",(char *) "item", NULL | |
33883 | }; | |
33884 | ||
33885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
33889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33890 | { |
33891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33892 | (arg1)->Add(arg2); | |
33893 | ||
33894 | wxPyEndAllowThreads(__tstate); | |
33895 | if (PyErr_Occurred()) SWIG_fail; | |
33896 | } | |
33897 | Py_INCREF(Py_None); resultobj = Py_None; | |
33898 | return resultobj; | |
33899 | fail: | |
33900 | return NULL; | |
33901 | } | |
33902 | ||
33903 | ||
33904 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33905 | PyObject *resultobj; | |
33906 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33907 | size_t arg2 ; | |
33908 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
33909 | PyObject * obj0 = 0 ; | |
33910 | PyObject * obj1 = 0 ; | |
33911 | PyObject * obj2 = 0 ; | |
33912 | char *kwnames[] = { | |
33913 | (char *) "self",(char *) "index",(char *) "item", NULL | |
33914 | }; | |
33915 | ||
33916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33919 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
33920 | if (PyErr_Occurred()) SWIG_fail; | |
33921 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
33922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33923 | { |
33924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33925 | (arg1)->Insert(arg2,arg3); | |
33926 | ||
33927 | wxPyEndAllowThreads(__tstate); | |
33928 | if (PyErr_Occurred()) SWIG_fail; | |
33929 | } | |
33930 | Py_INCREF(Py_None); resultobj = Py_None; | |
33931 | return resultobj; | |
33932 | fail: | |
33933 | return NULL; | |
33934 | } | |
33935 | ||
33936 | ||
33937 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33938 | PyObject *resultobj; | |
33939 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33940 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
33941 | PyObject * obj0 = 0 ; | |
33942 | PyObject * obj1 = 0 ; | |
33943 | char *kwnames[] = { | |
33944 | (char *) "self",(char *) "item", NULL | |
33945 | }; | |
33946 | ||
33947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
33951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33952 | { |
33953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33954 | (arg1)->Prepend(arg2); | |
33955 | ||
33956 | wxPyEndAllowThreads(__tstate); | |
33957 | if (PyErr_Occurred()) SWIG_fail; | |
33958 | } | |
33959 | Py_INCREF(Py_None); resultobj = Py_None; | |
33960 | return resultobj; | |
33961 | fail: | |
33962 | return NULL; | |
33963 | } | |
33964 | ||
33965 | ||
33966 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33967 | PyObject *resultobj; | |
33968 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33969 | int arg2 ; | |
33970 | int arg3 ; | |
33971 | int arg4 ; | |
33972 | int arg5 ; | |
33973 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33974 | PyObject * obj1 = 0 ; |
33975 | PyObject * obj2 = 0 ; | |
33976 | PyObject * obj3 = 0 ; | |
33977 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33978 | char *kwnames[] = { |
33979 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33980 | }; | |
33981 | ||
8edf1c75 | 33982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33985 | arg2 = (int) SWIG_AsInt(obj1); | |
33986 | if (PyErr_Occurred()) SWIG_fail; | |
33987 | arg3 = (int) SWIG_AsInt(obj2); | |
33988 | if (PyErr_Occurred()) SWIG_fail; | |
33989 | arg4 = (int) SWIG_AsInt(obj3); | |
33990 | if (PyErr_Occurred()) SWIG_fail; | |
33991 | arg5 = (int) SWIG_AsInt(obj4); | |
33992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33993 | { |
33994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33995 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
33996 | ||
33997 | wxPyEndAllowThreads(__tstate); | |
33998 | if (PyErr_Occurred()) SWIG_fail; | |
33999 | } | |
34000 | Py_INCREF(Py_None); resultobj = Py_None; | |
34001 | return resultobj; | |
34002 | fail: | |
34003 | return NULL; | |
34004 | } | |
34005 | ||
34006 | ||
34007 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34008 | PyObject *resultobj; | |
34009 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
34010 | wxSize *arg2 = 0 ; |
34011 | wxSize temp2 ; | |
d14a1e28 RD |
34012 | PyObject * obj0 = 0 ; |
34013 | PyObject * obj1 = 0 ; | |
34014 | char *kwnames[] = { | |
34015 | (char *) "self",(char *) "size", NULL | |
34016 | }; | |
34017 | ||
34018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",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; | |
a64def11 RD |
34021 | { |
34022 | arg2 = &temp2; | |
34023 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34024 | } | |
d14a1e28 RD |
34025 | { |
34026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 34027 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
34028 | |
34029 | wxPyEndAllowThreads(__tstate); | |
34030 | if (PyErr_Occurred()) SWIG_fail; | |
34031 | } | |
34032 | Py_INCREF(Py_None); resultobj = Py_None; | |
34033 | return resultobj; | |
34034 | fail: | |
34035 | return NULL; | |
34036 | } | |
34037 | ||
34038 | ||
34039 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34040 | PyObject *resultobj; | |
34041 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34042 | wxSize result; | |
34043 | PyObject * obj0 = 0 ; | |
34044 | char *kwnames[] = { | |
34045 | (char *) "self", NULL | |
34046 | }; | |
34047 | ||
34048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34051 | { |
34052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34053 | result = (arg1)->GetSize(); | |
34054 | ||
34055 | wxPyEndAllowThreads(__tstate); | |
34056 | if (PyErr_Occurred()) SWIG_fail; | |
34057 | } | |
34058 | { | |
34059 | wxSize * resultptr; | |
34060 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34062 | } |
34063 | return resultobj; | |
34064 | fail: | |
34065 | return NULL; | |
34066 | } | |
34067 | ||
34068 | ||
34069 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34070 | PyObject *resultobj; | |
34071 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34072 | wxPoint result; | |
34073 | PyObject * obj0 = 0 ; | |
34074 | char *kwnames[] = { | |
34075 | (char *) "self", NULL | |
34076 | }; | |
34077 | ||
34078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34081 | { |
34082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34083 | result = (arg1)->GetPosition(); | |
34084 | ||
34085 | wxPyEndAllowThreads(__tstate); | |
34086 | if (PyErr_Occurred()) SWIG_fail; | |
34087 | } | |
34088 | { | |
34089 | wxPoint * resultptr; | |
34090 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 34091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34092 | } |
34093 | return resultobj; | |
34094 | fail: | |
34095 | return NULL; | |
34096 | } | |
34097 | ||
34098 | ||
34099 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34100 | PyObject *resultobj; | |
34101 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34102 | wxSize result; | |
34103 | PyObject * obj0 = 0 ; | |
34104 | char *kwnames[] = { | |
34105 | (char *) "self", NULL | |
34106 | }; | |
34107 | ||
34108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34111 | { |
34112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34113 | result = (arg1)->GetMinSize(); | |
34114 | ||
34115 | wxPyEndAllowThreads(__tstate); | |
34116 | if (PyErr_Occurred()) SWIG_fail; | |
34117 | } | |
34118 | { | |
34119 | wxSize * resultptr; | |
34120 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34122 | } |
34123 | return resultobj; | |
34124 | fail: | |
34125 | return NULL; | |
34126 | } | |
34127 | ||
34128 | ||
34129 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34130 | PyObject *resultobj; | |
34131 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34132 | PyObject * obj0 = 0 ; | |
34133 | char *kwnames[] = { | |
34134 | (char *) "self", NULL | |
34135 | }; | |
34136 | ||
34137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34140 | { |
34141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34142 | (arg1)->RecalcSizes(); | |
34143 | ||
34144 | wxPyEndAllowThreads(__tstate); | |
34145 | if (PyErr_Occurred()) SWIG_fail; | |
34146 | } | |
34147 | Py_INCREF(Py_None); resultobj = Py_None; | |
34148 | return resultobj; | |
34149 | fail: | |
34150 | return NULL; | |
34151 | } | |
34152 | ||
34153 | ||
34154 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34155 | PyObject *resultobj; | |
34156 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34157 | wxSize result; | |
34158 | PyObject * obj0 = 0 ; | |
34159 | char *kwnames[] = { | |
34160 | (char *) "self", NULL | |
34161 | }; | |
34162 | ||
34163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34166 | { |
34167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34168 | result = (arg1)->CalcMin(); | |
34169 | ||
34170 | wxPyEndAllowThreads(__tstate); | |
34171 | if (PyErr_Occurred()) SWIG_fail; | |
34172 | } | |
34173 | { | |
34174 | wxSize * resultptr; | |
34175 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34176 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34177 | } |
34178 | return resultobj; | |
34179 | fail: | |
34180 | return NULL; | |
34181 | } | |
34182 | ||
34183 | ||
34184 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34185 | PyObject *resultobj; | |
34186 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34187 | PyObject * obj0 = 0 ; | |
34188 | char *kwnames[] = { | |
34189 | (char *) "self", NULL | |
34190 | }; | |
34191 | ||
34192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34195 | { |
34196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34197 | (arg1)->Layout(); | |
34198 | ||
34199 | wxPyEndAllowThreads(__tstate); | |
34200 | if (PyErr_Occurred()) SWIG_fail; | |
34201 | } | |
34202 | Py_INCREF(Py_None); resultobj = Py_None; | |
34203 | return resultobj; | |
34204 | fail: | |
34205 | return NULL; | |
34206 | } | |
34207 | ||
34208 | ||
34209 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34210 | PyObject *resultobj; | |
34211 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34212 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34213 | wxSize result; | |
34214 | PyObject * obj0 = 0 ; | |
34215 | PyObject * obj1 = 0 ; | |
34216 | char *kwnames[] = { | |
34217 | (char *) "self",(char *) "window", NULL | |
34218 | }; | |
34219 | ||
34220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34225 | { |
34226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34227 | result = (arg1)->Fit(arg2); | |
34228 | ||
34229 | wxPyEndAllowThreads(__tstate); | |
34230 | if (PyErr_Occurred()) SWIG_fail; | |
34231 | } | |
34232 | { | |
34233 | wxSize * resultptr; | |
34234 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34236 | } |
34237 | return resultobj; | |
34238 | fail: | |
34239 | return NULL; | |
34240 | } | |
34241 | ||
34242 | ||
34243 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34244 | PyObject *resultobj; | |
34245 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34247 | PyObject * obj0 = 0 ; | |
34248 | PyObject * obj1 = 0 ; | |
34249 | char *kwnames[] = { | |
34250 | (char *) "self",(char *) "window", NULL | |
34251 | }; | |
34252 | ||
34253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34258 | { |
34259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34260 | (arg1)->FitInside(arg2); | |
34261 | ||
34262 | wxPyEndAllowThreads(__tstate); | |
34263 | if (PyErr_Occurred()) SWIG_fail; | |
34264 | } | |
34265 | Py_INCREF(Py_None); resultobj = Py_None; | |
34266 | return resultobj; | |
34267 | fail: | |
34268 | return NULL; | |
34269 | } | |
34270 | ||
34271 | ||
34272 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34273 | PyObject *resultobj; | |
34274 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34275 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34276 | PyObject * obj0 = 0 ; | |
34277 | PyObject * obj1 = 0 ; | |
34278 | char *kwnames[] = { | |
34279 | (char *) "self",(char *) "window", NULL | |
34280 | }; | |
34281 | ||
34282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34287 | { |
34288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34289 | (arg1)->SetSizeHints(arg2); | |
34290 | ||
34291 | wxPyEndAllowThreads(__tstate); | |
34292 | if (PyErr_Occurred()) SWIG_fail; | |
34293 | } | |
34294 | Py_INCREF(Py_None); resultobj = Py_None; | |
34295 | return resultobj; | |
34296 | fail: | |
34297 | return NULL; | |
34298 | } | |
34299 | ||
34300 | ||
34301 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34302 | PyObject *resultobj; | |
34303 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34305 | PyObject * obj0 = 0 ; | |
34306 | PyObject * obj1 = 0 ; | |
34307 | char *kwnames[] = { | |
34308 | (char *) "self",(char *) "window", NULL | |
34309 | }; | |
34310 | ||
34311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34316 | { |
34317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34318 | (arg1)->SetVirtualSizeHints(arg2); | |
34319 | ||
34320 | wxPyEndAllowThreads(__tstate); | |
34321 | if (PyErr_Occurred()) SWIG_fail; | |
34322 | } | |
34323 | Py_INCREF(Py_None); resultobj = Py_None; | |
34324 | return resultobj; | |
34325 | fail: | |
34326 | return NULL; | |
34327 | } | |
34328 | ||
34329 | ||
34330 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34331 | PyObject *resultobj; | |
34332 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 34333 | bool arg2 = (bool) False ; |
d14a1e28 RD |
34334 | PyObject * obj0 = 0 ; |
34335 | PyObject * obj1 = 0 ; | |
34336 | char *kwnames[] = { | |
34337 | (char *) "self",(char *) "delete_windows", NULL | |
34338 | }; | |
34339 | ||
34340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34343 | if (obj1) { |
2f4c0a16 RD |
34344 | arg2 = (bool) SWIG_AsBool(obj1); |
34345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34346 | } |
34347 | { | |
34348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34349 | (arg1)->Clear(arg2); | |
34350 | ||
34351 | wxPyEndAllowThreads(__tstate); | |
34352 | if (PyErr_Occurred()) SWIG_fail; | |
34353 | } | |
34354 | Py_INCREF(Py_None); resultobj = Py_None; | |
34355 | return resultobj; | |
34356 | fail: | |
34357 | return NULL; | |
34358 | } | |
34359 | ||
34360 | ||
34361 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34362 | PyObject *resultobj; | |
34363 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34364 | PyObject * obj0 = 0 ; | |
34365 | char *kwnames[] = { | |
34366 | (char *) "self", NULL | |
34367 | }; | |
34368 | ||
34369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34372 | { |
34373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34374 | (arg1)->DeleteWindows(); | |
34375 | ||
34376 | wxPyEndAllowThreads(__tstate); | |
34377 | if (PyErr_Occurred()) SWIG_fail; | |
34378 | } | |
34379 | Py_INCREF(Py_None); resultobj = Py_None; | |
34380 | return resultobj; | |
34381 | fail: | |
34382 | return NULL; | |
34383 | } | |
34384 | ||
34385 | ||
34386 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34387 | PyObject *resultobj; | |
34388 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34389 | PyObject *result; | |
34390 | PyObject * obj0 = 0 ; | |
34391 | char *kwnames[] = { | |
34392 | (char *) "self", NULL | |
34393 | }; | |
34394 | ||
34395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34398 | { |
34399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34400 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
34401 | ||
34402 | wxPyEndAllowThreads(__tstate); | |
34403 | if (PyErr_Occurred()) SWIG_fail; | |
34404 | } | |
34405 | resultobj = result; | |
34406 | return resultobj; | |
34407 | fail: | |
34408 | return NULL; | |
34409 | } | |
34410 | ||
34411 | ||
34412 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34413 | PyObject *resultobj; | |
34414 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34415 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 34416 | bool arg3 = (bool) True ; |
d14a1e28 RD |
34417 | PyObject * obj0 = 0 ; |
34418 | PyObject * obj1 = 0 ; | |
34419 | PyObject * obj2 = 0 ; | |
34420 | char *kwnames[] = { | |
34421 | (char *) "self",(char *) "item",(char *) "show", NULL | |
34422 | }; | |
34423 | ||
34424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34427 | arg2 = obj1; |
34428 | if (obj2) { | |
2f4c0a16 RD |
34429 | arg3 = (bool) SWIG_AsBool(obj2); |
34430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34431 | } |
34432 | { | |
34433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34434 | wxSizer_Show(arg1,arg2,arg3); | |
34435 | ||
34436 | wxPyEndAllowThreads(__tstate); | |
34437 | if (PyErr_Occurred()) SWIG_fail; | |
34438 | } | |
34439 | Py_INCREF(Py_None); resultobj = Py_None; | |
34440 | return resultobj; | |
34441 | fail: | |
34442 | return NULL; | |
34443 | } | |
34444 | ||
34445 | ||
34446 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34447 | PyObject *resultobj; | |
34448 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34449 | PyObject *arg2 = (PyObject *) 0 ; | |
34450 | PyObject * obj0 = 0 ; | |
34451 | PyObject * obj1 = 0 ; | |
34452 | char *kwnames[] = { | |
34453 | (char *) "self",(char *) "item", NULL | |
34454 | }; | |
34455 | ||
34456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34459 | arg2 = obj1; |
34460 | { | |
34461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34462 | wxSizer_Hide(arg1,arg2); | |
34463 | ||
34464 | wxPyEndAllowThreads(__tstate); | |
34465 | if (PyErr_Occurred()) SWIG_fail; | |
34466 | } | |
34467 | Py_INCREF(Py_None); resultobj = Py_None; | |
34468 | return resultobj; | |
34469 | fail: | |
34470 | return NULL; | |
34471 | } | |
34472 | ||
34473 | ||
34474 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34475 | PyObject *resultobj; | |
34476 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34477 | PyObject *arg2 = (PyObject *) 0 ; | |
34478 | bool result; | |
34479 | PyObject * obj0 = 0 ; | |
34480 | PyObject * obj1 = 0 ; | |
34481 | char *kwnames[] = { | |
34482 | (char *) "self",(char *) "item", NULL | |
34483 | }; | |
34484 | ||
34485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34488 | arg2 = obj1; |
34489 | { | |
34490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34491 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
34492 | ||
34493 | wxPyEndAllowThreads(__tstate); | |
34494 | if (PyErr_Occurred()) SWIG_fail; | |
34495 | } | |
4e760a36 | 34496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
34497 | return resultobj; |
34498 | fail: | |
34499 | return NULL; | |
34500 | } | |
34501 | ||
34502 | ||
34503 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34504 | PyObject *resultobj; | |
34505 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34506 | bool arg2 ; | |
34507 | PyObject * obj0 = 0 ; | |
34508 | PyObject * obj1 = 0 ; | |
34509 | char *kwnames[] = { | |
34510 | (char *) "self",(char *) "show", NULL | |
34511 | }; | |
34512 | ||
34513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34516 | arg2 = (bool) SWIG_AsBool(obj1); | |
34517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34518 | { |
34519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34520 | (arg1)->ShowItems(arg2); | |
34521 | ||
34522 | wxPyEndAllowThreads(__tstate); | |
34523 | if (PyErr_Occurred()) SWIG_fail; | |
34524 | } | |
34525 | Py_INCREF(Py_None); resultobj = Py_None; | |
34526 | return resultobj; | |
34527 | fail: | |
34528 | return NULL; | |
34529 | } | |
34530 | ||
34531 | ||
34532 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
34533 | PyObject *obj; | |
34534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34535 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
34536 | Py_INCREF(obj); | |
34537 | return Py_BuildValue((char *)""); | |
34538 | } | |
34539 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34540 | PyObject *resultobj; | |
34541 | wxPySizer *result; | |
34542 | char *kwnames[] = { | |
34543 | NULL | |
34544 | }; | |
34545 | ||
34546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
34547 | { | |
34548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34549 | result = (wxPySizer *)new wxPySizer(); | |
34550 | ||
34551 | wxPyEndAllowThreads(__tstate); | |
34552 | if (PyErr_Occurred()) SWIG_fail; | |
34553 | } | |
2f4c0a16 | 34554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
34555 | return resultobj; |
34556 | fail: | |
34557 | return NULL; | |
34558 | } | |
34559 | ||
34560 | ||
34561 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34562 | PyObject *resultobj; | |
34563 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
34564 | PyObject *arg2 = (PyObject *) 0 ; | |
34565 | PyObject *arg3 = (PyObject *) 0 ; | |
34566 | PyObject * obj0 = 0 ; | |
34567 | PyObject * obj1 = 0 ; | |
34568 | PyObject * obj2 = 0 ; | |
34569 | char *kwnames[] = { | |
34570 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
34571 | }; | |
34572 | ||
34573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
34575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34576 | arg2 = obj1; |
34577 | arg3 = obj2; | |
34578 | { | |
34579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34580 | (arg1)->_setCallbackInfo(arg2,arg3); | |
34581 | ||
34582 | wxPyEndAllowThreads(__tstate); | |
34583 | if (PyErr_Occurred()) SWIG_fail; | |
34584 | } | |
34585 | Py_INCREF(Py_None); resultobj = Py_None; | |
34586 | return resultobj; | |
34587 | fail: | |
34588 | return NULL; | |
34589 | } | |
34590 | ||
34591 | ||
34592 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
34593 | PyObject *obj; | |
34594 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34595 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
34596 | Py_INCREF(obj); | |
34597 | return Py_BuildValue((char *)""); | |
34598 | } | |
34599 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34600 | PyObject *resultobj; | |
34601 | int arg1 = (int) wxHORIZONTAL ; | |
34602 | wxBoxSizer *result; | |
8edf1c75 | 34603 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
34604 | char *kwnames[] = { |
34605 | (char *) "orient", NULL | |
34606 | }; | |
34607 | ||
8edf1c75 RD |
34608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
34609 | if (obj0) { | |
2f4c0a16 RD |
34610 | arg1 = (int) SWIG_AsInt(obj0); |
34611 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34612 | } |
d14a1e28 RD |
34613 | { |
34614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34615 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
34616 | ||
34617 | wxPyEndAllowThreads(__tstate); | |
34618 | if (PyErr_Occurred()) SWIG_fail; | |
34619 | } | |
2f4c0a16 | 34620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
34621 | return resultobj; |
34622 | fail: | |
34623 | return NULL; | |
34624 | } | |
34625 | ||
34626 | ||
34627 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34628 | PyObject *resultobj; | |
34629 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34630 | int result; | |
34631 | PyObject * obj0 = 0 ; | |
34632 | char *kwnames[] = { | |
34633 | (char *) "self", NULL | |
34634 | }; | |
34635 | ||
34636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34639 | { |
34640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34641 | result = (int)(arg1)->GetOrientation(); | |
34642 | ||
34643 | wxPyEndAllowThreads(__tstate); | |
34644 | if (PyErr_Occurred()) SWIG_fail; | |
34645 | } | |
2f4c0a16 | 34646 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34647 | return resultobj; |
34648 | fail: | |
34649 | return NULL; | |
34650 | } | |
34651 | ||
34652 | ||
34653 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34654 | PyObject *resultobj; | |
34655 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34656 | int arg2 ; | |
34657 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34658 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34659 | char *kwnames[] = { |
34660 | (char *) "self",(char *) "orient", NULL | |
34661 | }; | |
34662 | ||
8edf1c75 | 34663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34666 | arg2 = (int) SWIG_AsInt(obj1); | |
34667 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34668 | { |
34669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34670 | (arg1)->SetOrientation(arg2); | |
34671 | ||
34672 | wxPyEndAllowThreads(__tstate); | |
34673 | if (PyErr_Occurred()) SWIG_fail; | |
34674 | } | |
34675 | Py_INCREF(Py_None); resultobj = Py_None; | |
34676 | return resultobj; | |
34677 | fail: | |
34678 | return NULL; | |
34679 | } | |
34680 | ||
34681 | ||
34682 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34683 | PyObject *resultobj; | |
34684 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34685 | PyObject * obj0 = 0 ; | |
34686 | char *kwnames[] = { | |
34687 | (char *) "self", NULL | |
34688 | }; | |
34689 | ||
34690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34693 | { |
34694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34695 | (arg1)->RecalcSizes(); | |
34696 | ||
34697 | wxPyEndAllowThreads(__tstate); | |
34698 | if (PyErr_Occurred()) SWIG_fail; | |
34699 | } | |
34700 | Py_INCREF(Py_None); resultobj = Py_None; | |
34701 | return resultobj; | |
34702 | fail: | |
34703 | return NULL; | |
34704 | } | |
34705 | ||
34706 | ||
34707 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34708 | PyObject *resultobj; | |
34709 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
34710 | wxSize result; | |
34711 | PyObject * obj0 = 0 ; | |
34712 | char *kwnames[] = { | |
34713 | (char *) "self", NULL | |
34714 | }; | |
34715 | ||
34716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
34718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34719 | { |
34720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34721 | result = (arg1)->CalcMin(); | |
34722 | ||
34723 | wxPyEndAllowThreads(__tstate); | |
34724 | if (PyErr_Occurred()) SWIG_fail; | |
34725 | } | |
34726 | { | |
34727 | wxSize * resultptr; | |
34728 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34730 | } |
34731 | return resultobj; | |
34732 | fail: | |
34733 | return NULL; | |
34734 | } | |
34735 | ||
34736 | ||
34737 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34738 | PyObject *obj; | |
34739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34740 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
34741 | Py_INCREF(obj); | |
34742 | return Py_BuildValue((char *)""); | |
34743 | } | |
34744 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34745 | PyObject *resultobj; | |
34746 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
34747 | int arg2 = (int) wxHORIZONTAL ; | |
34748 | wxStaticBoxSizer *result; | |
34749 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34750 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34751 | char *kwnames[] = { |
34752 | (char *) "box",(char *) "orient", NULL | |
34753 | }; | |
34754 | ||
8edf1c75 | 34755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
34757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 34758 | if (obj1) { |
2f4c0a16 RD |
34759 | arg2 = (int) SWIG_AsInt(obj1); |
34760 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34761 | } |
d14a1e28 RD |
34762 | { |
34763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34764 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
34765 | ||
34766 | wxPyEndAllowThreads(__tstate); | |
34767 | if (PyErr_Occurred()) SWIG_fail; | |
34768 | } | |
2f4c0a16 | 34769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
34770 | return resultobj; |
34771 | fail: | |
34772 | return NULL; | |
34773 | } | |
34774 | ||
34775 | ||
34776 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34777 | PyObject *resultobj; | |
34778 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34779 | wxStaticBox *result; | |
34780 | PyObject * obj0 = 0 ; | |
34781 | char *kwnames[] = { | |
34782 | (char *) "self", NULL | |
34783 | }; | |
34784 | ||
34785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34788 | { |
34789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34790 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
34791 | ||
34792 | wxPyEndAllowThreads(__tstate); | |
34793 | if (PyErr_Occurred()) SWIG_fail; | |
34794 | } | |
34795 | { | |
34796 | resultobj = wxPyMake_wxObject(result); | |
34797 | } | |
34798 | return resultobj; | |
34799 | fail: | |
34800 | return NULL; | |
34801 | } | |
34802 | ||
34803 | ||
34804 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34805 | PyObject *resultobj; | |
34806 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34807 | PyObject * obj0 = 0 ; | |
34808 | char *kwnames[] = { | |
34809 | (char *) "self", NULL | |
34810 | }; | |
34811 | ||
34812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34815 | { |
34816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34817 | (arg1)->RecalcSizes(); | |
34818 | ||
34819 | wxPyEndAllowThreads(__tstate); | |
34820 | if (PyErr_Occurred()) SWIG_fail; | |
34821 | } | |
34822 | Py_INCREF(Py_None); resultobj = Py_None; | |
34823 | return resultobj; | |
34824 | fail: | |
34825 | return NULL; | |
34826 | } | |
34827 | ||
34828 | ||
34829 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34830 | PyObject *resultobj; | |
34831 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
34832 | wxSize result; | |
34833 | PyObject * obj0 = 0 ; | |
34834 | char *kwnames[] = { | |
34835 | (char *) "self", NULL | |
34836 | }; | |
34837 | ||
34838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
34840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34841 | { |
34842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34843 | result = (arg1)->CalcMin(); | |
34844 | ||
34845 | wxPyEndAllowThreads(__tstate); | |
34846 | if (PyErr_Occurred()) SWIG_fail; | |
34847 | } | |
34848 | { | |
34849 | wxSize * resultptr; | |
34850 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34852 | } |
34853 | return resultobj; | |
34854 | fail: | |
34855 | return NULL; | |
34856 | } | |
34857 | ||
34858 | ||
34859 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
34860 | PyObject *obj; | |
34861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34862 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
34863 | Py_INCREF(obj); | |
34864 | return Py_BuildValue((char *)""); | |
34865 | } | |
34866 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34867 | PyObject *resultobj; | |
34868 | int arg1 = (int) 1 ; | |
34869 | int arg2 = (int) 0 ; | |
34870 | int arg3 = (int) 0 ; | |
34871 | int arg4 = (int) 0 ; | |
34872 | wxGridSizer *result; | |
8edf1c75 RD |
34873 | PyObject * obj0 = 0 ; |
34874 | PyObject * obj1 = 0 ; | |
34875 | PyObject * obj2 = 0 ; | |
34876 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
34877 | char *kwnames[] = { |
34878 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
34879 | }; | |
34880 | ||
8edf1c75 RD |
34881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
34882 | if (obj0) { | |
2f4c0a16 RD |
34883 | arg1 = (int) SWIG_AsInt(obj0); |
34884 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34885 | } |
34886 | if (obj1) { | |
2f4c0a16 RD |
34887 | arg2 = (int) SWIG_AsInt(obj1); |
34888 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34889 | } |
34890 | if (obj2) { | |
2f4c0a16 RD |
34891 | arg3 = (int) SWIG_AsInt(obj2); |
34892 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34893 | } |
34894 | if (obj3) { | |
2f4c0a16 RD |
34895 | arg4 = (int) SWIG_AsInt(obj3); |
34896 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34897 | } |
d14a1e28 RD |
34898 | { |
34899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34900 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
34901 | ||
34902 | wxPyEndAllowThreads(__tstate); | |
34903 | if (PyErr_Occurred()) SWIG_fail; | |
34904 | } | |
2f4c0a16 | 34905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
34906 | return resultobj; |
34907 | fail: | |
34908 | return NULL; | |
34909 | } | |
34910 | ||
34911 | ||
34912 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34913 | PyObject *resultobj; | |
34914 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34915 | PyObject * obj0 = 0 ; | |
34916 | char *kwnames[] = { | |
34917 | (char *) "self", NULL | |
34918 | }; | |
34919 | ||
34920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34923 | { |
34924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34925 | (arg1)->RecalcSizes(); | |
34926 | ||
34927 | wxPyEndAllowThreads(__tstate); | |
34928 | if (PyErr_Occurred()) SWIG_fail; | |
34929 | } | |
34930 | Py_INCREF(Py_None); resultobj = Py_None; | |
34931 | return resultobj; | |
34932 | fail: | |
34933 | return NULL; | |
34934 | } | |
34935 | ||
34936 | ||
34937 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34938 | PyObject *resultobj; | |
34939 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34940 | wxSize result; | |
34941 | PyObject * obj0 = 0 ; | |
34942 | char *kwnames[] = { | |
34943 | (char *) "self", NULL | |
34944 | }; | |
34945 | ||
34946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34949 | { |
34950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34951 | result = (arg1)->CalcMin(); | |
34952 | ||
34953 | wxPyEndAllowThreads(__tstate); | |
34954 | if (PyErr_Occurred()) SWIG_fail; | |
34955 | } | |
34956 | { | |
34957 | wxSize * resultptr; | |
34958 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34960 | } |
34961 | return resultobj; | |
34962 | fail: | |
34963 | return NULL; | |
34964 | } | |
34965 | ||
34966 | ||
34967 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34968 | PyObject *resultobj; | |
34969 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34970 | int arg2 ; | |
34971 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34973 | char *kwnames[] = { |
34974 | (char *) "self",(char *) "cols", NULL | |
34975 | }; | |
34976 | ||
8edf1c75 | 34977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
34978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
34979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34980 | arg2 = (int) SWIG_AsInt(obj1); | |
34981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34982 | { |
34983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34984 | (arg1)->SetCols(arg2); | |
34985 | ||
34986 | wxPyEndAllowThreads(__tstate); | |
34987 | if (PyErr_Occurred()) SWIG_fail; | |
34988 | } | |
34989 | Py_INCREF(Py_None); resultobj = Py_None; | |
34990 | return resultobj; | |
34991 | fail: | |
34992 | return NULL; | |
34993 | } | |
34994 | ||
34995 | ||
34996 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34997 | PyObject *resultobj; | |
34998 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
34999 | int arg2 ; | |
35000 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35002 | char *kwnames[] = { |
35003 | (char *) "self",(char *) "rows", NULL | |
35004 | }; | |
35005 | ||
8edf1c75 | 35006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35009 | arg2 = (int) SWIG_AsInt(obj1); | |
35010 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35011 | { |
35012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35013 | (arg1)->SetRows(arg2); | |
35014 | ||
35015 | wxPyEndAllowThreads(__tstate); | |
35016 | if (PyErr_Occurred()) SWIG_fail; | |
35017 | } | |
35018 | Py_INCREF(Py_None); resultobj = Py_None; | |
35019 | return resultobj; | |
35020 | fail: | |
35021 | return NULL; | |
35022 | } | |
35023 | ||
35024 | ||
35025 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35026 | PyObject *resultobj; | |
35027 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35028 | int arg2 ; | |
35029 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35031 | char *kwnames[] = { |
35032 | (char *) "self",(char *) "gap", NULL | |
35033 | }; | |
35034 | ||
8edf1c75 | 35035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35038 | arg2 = (int) SWIG_AsInt(obj1); | |
35039 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35040 | { |
35041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35042 | (arg1)->SetVGap(arg2); | |
35043 | ||
35044 | wxPyEndAllowThreads(__tstate); | |
35045 | if (PyErr_Occurred()) SWIG_fail; | |
35046 | } | |
35047 | Py_INCREF(Py_None); resultobj = Py_None; | |
35048 | return resultobj; | |
35049 | fail: | |
35050 | return NULL; | |
35051 | } | |
35052 | ||
35053 | ||
35054 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35055 | PyObject *resultobj; | |
35056 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35057 | int arg2 ; | |
35058 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35060 | char *kwnames[] = { |
35061 | (char *) "self",(char *) "gap", NULL | |
35062 | }; | |
35063 | ||
8edf1c75 | 35064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35067 | arg2 = (int) SWIG_AsInt(obj1); | |
35068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35069 | { |
35070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35071 | (arg1)->SetHGap(arg2); | |
35072 | ||
35073 | wxPyEndAllowThreads(__tstate); | |
35074 | if (PyErr_Occurred()) SWIG_fail; | |
35075 | } | |
35076 | Py_INCREF(Py_None); resultobj = Py_None; | |
35077 | return resultobj; | |
35078 | fail: | |
35079 | return NULL; | |
35080 | } | |
35081 | ||
35082 | ||
35083 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35084 | PyObject *resultobj; | |
35085 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35086 | int result; | |
35087 | PyObject * obj0 = 0 ; | |
35088 | char *kwnames[] = { | |
35089 | (char *) "self", NULL | |
35090 | }; | |
35091 | ||
35092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35095 | { |
35096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35097 | result = (int)(arg1)->GetCols(); | |
35098 | ||
35099 | wxPyEndAllowThreads(__tstate); | |
35100 | if (PyErr_Occurred()) SWIG_fail; | |
35101 | } | |
2f4c0a16 | 35102 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35103 | return resultobj; |
35104 | fail: | |
35105 | return NULL; | |
35106 | } | |
35107 | ||
35108 | ||
35109 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35110 | PyObject *resultobj; | |
35111 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35112 | int result; | |
35113 | PyObject * obj0 = 0 ; | |
35114 | char *kwnames[] = { | |
35115 | (char *) "self", NULL | |
35116 | }; | |
35117 | ||
35118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35121 | { |
35122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35123 | result = (int)(arg1)->GetRows(); | |
35124 | ||
35125 | wxPyEndAllowThreads(__tstate); | |
35126 | if (PyErr_Occurred()) SWIG_fail; | |
35127 | } | |
2f4c0a16 | 35128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35129 | return resultobj; |
35130 | fail: | |
35131 | return NULL; | |
35132 | } | |
35133 | ||
35134 | ||
35135 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35136 | PyObject *resultobj; | |
35137 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35138 | int result; | |
35139 | PyObject * obj0 = 0 ; | |
35140 | char *kwnames[] = { | |
35141 | (char *) "self", NULL | |
35142 | }; | |
35143 | ||
35144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35147 | { |
35148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35149 | result = (int)(arg1)->GetVGap(); | |
35150 | ||
35151 | wxPyEndAllowThreads(__tstate); | |
35152 | if (PyErr_Occurred()) SWIG_fail; | |
35153 | } | |
2f4c0a16 | 35154 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35155 | return resultobj; |
35156 | fail: | |
35157 | return NULL; | |
35158 | } | |
35159 | ||
35160 | ||
35161 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35162 | PyObject *resultobj; | |
35163 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35164 | int result; | |
35165 | PyObject * obj0 = 0 ; | |
35166 | char *kwnames[] = { | |
35167 | (char *) "self", NULL | |
35168 | }; | |
35169 | ||
35170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35173 | { |
35174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35175 | result = (int)(arg1)->GetHGap(); | |
35176 | ||
35177 | wxPyEndAllowThreads(__tstate); | |
35178 | if (PyErr_Occurred()) SWIG_fail; | |
35179 | } | |
2f4c0a16 | 35180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35181 | return resultobj; |
35182 | fail: | |
35183 | return NULL; | |
35184 | } | |
35185 | ||
35186 | ||
35187 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
35188 | PyObject *obj; | |
35189 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35190 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
35191 | Py_INCREF(obj); | |
35192 | return Py_BuildValue((char *)""); | |
35193 | } | |
35194 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35195 | PyObject *resultobj; | |
35196 | int arg1 = (int) 1 ; | |
35197 | int arg2 = (int) 0 ; | |
35198 | int arg3 = (int) 0 ; | |
35199 | int arg4 = (int) 0 ; | |
35200 | wxFlexGridSizer *result; | |
8edf1c75 RD |
35201 | PyObject * obj0 = 0 ; |
35202 | PyObject * obj1 = 0 ; | |
35203 | PyObject * obj2 = 0 ; | |
35204 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35205 | char *kwnames[] = { |
35206 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35207 | }; | |
35208 | ||
8edf1c75 RD |
35209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35210 | if (obj0) { | |
2f4c0a16 RD |
35211 | arg1 = (int) SWIG_AsInt(obj0); |
35212 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35213 | } |
35214 | if (obj1) { | |
2f4c0a16 RD |
35215 | arg2 = (int) SWIG_AsInt(obj1); |
35216 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35217 | } |
35218 | if (obj2) { | |
2f4c0a16 RD |
35219 | arg3 = (int) SWIG_AsInt(obj2); |
35220 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35221 | } |
35222 | if (obj3) { | |
2f4c0a16 RD |
35223 | arg4 = (int) SWIG_AsInt(obj3); |
35224 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35225 | } |
d14a1e28 RD |
35226 | { |
35227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35228 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
35229 | ||
35230 | wxPyEndAllowThreads(__tstate); | |
35231 | if (PyErr_Occurred()) SWIG_fail; | |
35232 | } | |
2f4c0a16 | 35233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
35234 | return resultobj; |
35235 | fail: | |
35236 | return NULL; | |
35237 | } | |
35238 | ||
35239 | ||
35240 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35241 | PyObject *resultobj; | |
35242 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35243 | PyObject * obj0 = 0 ; | |
35244 | char *kwnames[] = { | |
35245 | (char *) "self", NULL | |
35246 | }; | |
35247 | ||
35248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35251 | { |
35252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35253 | (arg1)->RecalcSizes(); | |
35254 | ||
35255 | wxPyEndAllowThreads(__tstate); | |
35256 | if (PyErr_Occurred()) SWIG_fail; | |
35257 | } | |
35258 | Py_INCREF(Py_None); resultobj = Py_None; | |
35259 | return resultobj; | |
35260 | fail: | |
35261 | return NULL; | |
35262 | } | |
35263 | ||
35264 | ||
35265 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35266 | PyObject *resultobj; | |
35267 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35268 | wxSize result; | |
35269 | PyObject * obj0 = 0 ; | |
35270 | char *kwnames[] = { | |
35271 | (char *) "self", NULL | |
35272 | }; | |
35273 | ||
35274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35277 | { |
35278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35279 | result = (arg1)->CalcMin(); | |
35280 | ||
35281 | wxPyEndAllowThreads(__tstate); | |
35282 | if (PyErr_Occurred()) SWIG_fail; | |
35283 | } | |
35284 | { | |
35285 | wxSize * resultptr; | |
35286 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35288 | } |
35289 | return resultobj; | |
35290 | fail: | |
35291 | return NULL; | |
35292 | } | |
35293 | ||
35294 | ||
35295 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35296 | PyObject *resultobj; | |
35297 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35298 | size_t arg2 ; | |
35299 | int arg3 = (int) 0 ; | |
35300 | PyObject * obj0 = 0 ; | |
35301 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35302 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35303 | char *kwnames[] = { |
35304 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35305 | }; | |
35306 | ||
8edf1c75 | 35307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35310 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35311 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35312 | if (obj2) { |
2f4c0a16 RD |
35313 | arg3 = (int) SWIG_AsInt(obj2); |
35314 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35315 | } |
d14a1e28 RD |
35316 | { |
35317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35318 | (arg1)->AddGrowableRow(arg2,arg3); | |
35319 | ||
35320 | wxPyEndAllowThreads(__tstate); | |
35321 | if (PyErr_Occurred()) SWIG_fail; | |
35322 | } | |
35323 | Py_INCREF(Py_None); resultobj = Py_None; | |
35324 | return resultobj; | |
35325 | fail: | |
35326 | return NULL; | |
35327 | } | |
35328 | ||
35329 | ||
35330 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35331 | PyObject *resultobj; | |
35332 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35333 | size_t arg2 ; | |
35334 | PyObject * obj0 = 0 ; | |
35335 | PyObject * obj1 = 0 ; | |
35336 | char *kwnames[] = { | |
35337 | (char *) "self",(char *) "idx", NULL | |
35338 | }; | |
35339 | ||
35340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35343 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35345 | { |
35346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35347 | (arg1)->RemoveGrowableRow(arg2); | |
35348 | ||
35349 | wxPyEndAllowThreads(__tstate); | |
35350 | if (PyErr_Occurred()) SWIG_fail; | |
35351 | } | |
35352 | Py_INCREF(Py_None); resultobj = Py_None; | |
35353 | return resultobj; | |
35354 | fail: | |
35355 | return NULL; | |
35356 | } | |
35357 | ||
35358 | ||
35359 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35360 | PyObject *resultobj; | |
35361 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35362 | size_t arg2 ; | |
35363 | int arg3 = (int) 0 ; | |
35364 | PyObject * obj0 = 0 ; | |
35365 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35366 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35367 | char *kwnames[] = { |
35368 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35369 | }; | |
35370 | ||
8edf1c75 | 35371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35374 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35375 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35376 | if (obj2) { |
2f4c0a16 RD |
35377 | arg3 = (int) SWIG_AsInt(obj2); |
35378 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35379 | } |
d14a1e28 RD |
35380 | { |
35381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35382 | (arg1)->AddGrowableCol(arg2,arg3); | |
35383 | ||
35384 | wxPyEndAllowThreads(__tstate); | |
35385 | if (PyErr_Occurred()) SWIG_fail; | |
35386 | } | |
35387 | Py_INCREF(Py_None); resultobj = Py_None; | |
35388 | return resultobj; | |
35389 | fail: | |
35390 | return NULL; | |
35391 | } | |
35392 | ||
35393 | ||
35394 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35395 | PyObject *resultobj; | |
35396 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35397 | size_t arg2 ; | |
35398 | PyObject * obj0 = 0 ; | |
35399 | PyObject * obj1 = 0 ; | |
35400 | char *kwnames[] = { | |
35401 | (char *) "self",(char *) "idx", NULL | |
35402 | }; | |
35403 | ||
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35407 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35409 | { |
35410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35411 | (arg1)->RemoveGrowableCol(arg2); | |
35412 | ||
35413 | wxPyEndAllowThreads(__tstate); | |
35414 | if (PyErr_Occurred()) SWIG_fail; | |
35415 | } | |
35416 | Py_INCREF(Py_None); resultobj = Py_None; | |
35417 | return resultobj; | |
35418 | fail: | |
35419 | return NULL; | |
35420 | } | |
35421 | ||
35422 | ||
35423 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35424 | PyObject *resultobj; | |
35425 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35426 | int arg2 ; | |
35427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35429 | char *kwnames[] = { |
35430 | (char *) "self",(char *) "direction", NULL | |
35431 | }; | |
35432 | ||
8edf1c75 | 35433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35436 | arg2 = (int) SWIG_AsInt(obj1); | |
35437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35438 | { |
35439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35440 | (arg1)->SetFlexibleDirection(arg2); | |
35441 | ||
35442 | wxPyEndAllowThreads(__tstate); | |
35443 | if (PyErr_Occurred()) SWIG_fail; | |
35444 | } | |
35445 | Py_INCREF(Py_None); resultobj = Py_None; | |
35446 | return resultobj; | |
35447 | fail: | |
35448 | return NULL; | |
35449 | } | |
35450 | ||
35451 | ||
35452 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35453 | PyObject *resultobj; | |
35454 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35455 | int result; | |
35456 | PyObject * obj0 = 0 ; | |
35457 | char *kwnames[] = { | |
35458 | (char *) "self", NULL | |
35459 | }; | |
35460 | ||
35461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35464 | { |
35465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35466 | result = (int)(arg1)->GetFlexibleDirection(); | |
35467 | ||
35468 | wxPyEndAllowThreads(__tstate); | |
35469 | if (PyErr_Occurred()) SWIG_fail; | |
35470 | } | |
2f4c0a16 | 35471 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35472 | return resultobj; |
35473 | fail: | |
35474 | return NULL; | |
35475 | } | |
35476 | ||
35477 | ||
35478 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35479 | PyObject *resultobj; | |
35480 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35481 | int arg2 ; | |
35482 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35484 | char *kwnames[] = { |
35485 | (char *) "self",(char *) "mode", NULL | |
35486 | }; | |
35487 | ||
8edf1c75 | 35488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35491 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
35492 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35493 | { |
35494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35495 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35496 | ||
35497 | wxPyEndAllowThreads(__tstate); | |
35498 | if (PyErr_Occurred()) SWIG_fail; | |
35499 | } | |
35500 | Py_INCREF(Py_None); resultobj = Py_None; | |
35501 | return resultobj; | |
35502 | fail: | |
35503 | return NULL; | |
35504 | } | |
35505 | ||
35506 | ||
35507 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35508 | PyObject *resultobj; | |
35509 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35510 | int result; | |
35511 | PyObject * obj0 = 0 ; | |
35512 | char *kwnames[] = { | |
35513 | (char *) "self", NULL | |
35514 | }; | |
35515 | ||
35516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35519 | { |
35520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35521 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
35522 | ||
35523 | wxPyEndAllowThreads(__tstate); | |
35524 | if (PyErr_Occurred()) SWIG_fail; | |
35525 | } | |
2f4c0a16 | 35526 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35527 | return resultobj; |
35528 | fail: | |
35529 | return NULL; | |
35530 | } | |
35531 | ||
35532 | ||
423f194a RD |
35533 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
35534 | PyObject *resultobj; | |
35535 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35536 | wxArrayInt *result; | |
35537 | PyObject * obj0 = 0 ; | |
35538 | char *kwnames[] = { | |
35539 | (char *) "self", NULL | |
35540 | }; | |
35541 | ||
35542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
35545 | { |
35546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35547 | { | |
35548 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
35549 | result = (wxArrayInt *) &_result_ref; | |
35550 | } | |
35551 | ||
35552 | wxPyEndAllowThreads(__tstate); | |
35553 | if (PyErr_Occurred()) SWIG_fail; | |
35554 | } | |
35555 | { | |
35556 | resultobj = PyList_New(0); | |
35557 | size_t idx; | |
35558 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35559 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35560 | PyList_Append(resultobj, val); | |
35561 | Py_DECREF(val); | |
35562 | } | |
35563 | } | |
35564 | return resultobj; | |
35565 | fail: | |
35566 | return NULL; | |
35567 | } | |
35568 | ||
35569 | ||
35570 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35571 | PyObject *resultobj; | |
35572 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35573 | wxArrayInt *result; | |
35574 | PyObject * obj0 = 0 ; | |
35575 | char *kwnames[] = { | |
35576 | (char *) "self", NULL | |
35577 | }; | |
35578 | ||
35579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
35582 | { |
35583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35584 | { | |
35585 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
35586 | result = (wxArrayInt *) &_result_ref; | |
35587 | } | |
35588 | ||
35589 | wxPyEndAllowThreads(__tstate); | |
35590 | if (PyErr_Occurred()) SWIG_fail; | |
35591 | } | |
35592 | { | |
35593 | resultobj = PyList_New(0); | |
35594 | size_t idx; | |
35595 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
35596 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
35597 | PyList_Append(resultobj, val); | |
35598 | Py_DECREF(val); | |
35599 | } | |
35600 | } | |
35601 | return resultobj; | |
35602 | fail: | |
35603 | return NULL; | |
35604 | } | |
35605 | ||
35606 | ||
d14a1e28 RD |
35607 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
35608 | PyObject *obj; | |
35609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35610 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
35611 | Py_INCREF(obj); | |
35612 | return Py_BuildValue((char *)""); | |
35613 | } | |
35614 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35615 | PyObject *resultobj; | |
35616 | int arg1 = (int) 0 ; | |
35617 | int arg2 = (int) 0 ; | |
35618 | wxGBPosition *result; | |
8edf1c75 RD |
35619 | PyObject * obj0 = 0 ; |
35620 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35621 | char *kwnames[] = { |
35622 | (char *) "row",(char *) "col", NULL | |
35623 | }; | |
35624 | ||
8edf1c75 RD |
35625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
35626 | if (obj0) { | |
2f4c0a16 RD |
35627 | arg1 = (int) SWIG_AsInt(obj0); |
35628 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35629 | } |
35630 | if (obj1) { | |
2f4c0a16 RD |
35631 | arg2 = (int) SWIG_AsInt(obj1); |
35632 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35633 | } |
d14a1e28 RD |
35634 | { |
35635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35636 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
35637 | ||
35638 | wxPyEndAllowThreads(__tstate); | |
35639 | if (PyErr_Occurred()) SWIG_fail; | |
35640 | } | |
2f4c0a16 | 35641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
35642 | return resultobj; |
35643 | fail: | |
35644 | return NULL; | |
35645 | } | |
35646 | ||
35647 | ||
35648 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35649 | PyObject *resultobj; | |
35650 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35651 | int result; | |
35652 | PyObject * obj0 = 0 ; | |
35653 | char *kwnames[] = { | |
35654 | (char *) "self", NULL | |
35655 | }; | |
35656 | ||
35657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35660 | { |
35661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35662 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
35663 | ||
35664 | wxPyEndAllowThreads(__tstate); | |
35665 | if (PyErr_Occurred()) SWIG_fail; | |
35666 | } | |
2f4c0a16 | 35667 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35668 | return resultobj; |
35669 | fail: | |
35670 | return NULL; | |
35671 | } | |
35672 | ||
35673 | ||
35674 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35675 | PyObject *resultobj; | |
35676 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35677 | int result; | |
35678 | PyObject * obj0 = 0 ; | |
35679 | char *kwnames[] = { | |
35680 | (char *) "self", NULL | |
35681 | }; | |
35682 | ||
35683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35686 | { |
35687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35688 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
35689 | ||
35690 | wxPyEndAllowThreads(__tstate); | |
35691 | if (PyErr_Occurred()) SWIG_fail; | |
35692 | } | |
2f4c0a16 | 35693 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35694 | return resultobj; |
35695 | fail: | |
35696 | return NULL; | |
35697 | } | |
35698 | ||
35699 | ||
35700 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35701 | PyObject *resultobj; | |
35702 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35703 | int arg2 ; | |
35704 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35706 | char *kwnames[] = { |
35707 | (char *) "self",(char *) "row", NULL | |
35708 | }; | |
35709 | ||
8edf1c75 | 35710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35713 | arg2 = (int) SWIG_AsInt(obj1); | |
35714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35715 | { |
35716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35717 | (arg1)->SetRow(arg2); | |
35718 | ||
35719 | wxPyEndAllowThreads(__tstate); | |
35720 | if (PyErr_Occurred()) SWIG_fail; | |
35721 | } | |
35722 | Py_INCREF(Py_None); resultobj = Py_None; | |
35723 | return resultobj; | |
35724 | fail: | |
35725 | return NULL; | |
35726 | } | |
35727 | ||
35728 | ||
35729 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35730 | PyObject *resultobj; | |
35731 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35732 | int arg2 ; | |
35733 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35734 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35735 | char *kwnames[] = { |
35736 | (char *) "self",(char *) "col", NULL | |
35737 | }; | |
35738 | ||
8edf1c75 | 35739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35742 | arg2 = (int) SWIG_AsInt(obj1); | |
35743 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35744 | { |
35745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35746 | (arg1)->SetCol(arg2); | |
35747 | ||
35748 | wxPyEndAllowThreads(__tstate); | |
35749 | if (PyErr_Occurred()) SWIG_fail; | |
35750 | } | |
35751 | Py_INCREF(Py_None); resultobj = Py_None; | |
35752 | return resultobj; | |
35753 | fail: | |
35754 | return NULL; | |
35755 | } | |
35756 | ||
35757 | ||
35758 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35759 | PyObject *resultobj; | |
35760 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
328fcd84 | 35761 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35762 | bool result; |
d14a1e28 RD |
35763 | PyObject * obj0 = 0 ; |
35764 | PyObject * obj1 = 0 ; | |
35765 | char *kwnames[] = { | |
328fcd84 | 35766 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35767 | }; |
35768 | ||
35769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35772 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBPosition, | |
35773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35774 | { |
35775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35776 | result = (bool)wxGBPosition___eq__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35777 | |
35778 | wxPyEndAllowThreads(__tstate); | |
35779 | if (PyErr_Occurred()) SWIG_fail; | |
35780 | } | |
4e760a36 | 35781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35782 | return resultobj; |
35783 | fail: | |
35784 | return NULL; | |
35785 | } | |
35786 | ||
35787 | ||
35788 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35789 | PyObject *resultobj; | |
35790 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
328fcd84 | 35791 | wxGBPosition *arg2 = (wxGBPosition *) 0 ; |
d14a1e28 | 35792 | bool result; |
d14a1e28 RD |
35793 | PyObject * obj0 = 0 ; |
35794 | PyObject * obj1 = 0 ; | |
35795 | char *kwnames[] = { | |
328fcd84 | 35796 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
35797 | }; |
35798 | ||
35799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBPosition, | |
35803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35804 | { |
35805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 35806 | result = (bool)wxGBPosition___ne__(arg1,(wxGBPosition const *)arg2); |
d14a1e28 RD |
35807 | |
35808 | wxPyEndAllowThreads(__tstate); | |
35809 | if (PyErr_Occurred()) SWIG_fail; | |
35810 | } | |
4e760a36 | 35811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
35812 | return resultobj; |
35813 | fail: | |
35814 | return NULL; | |
35815 | } | |
35816 | ||
35817 | ||
423f194a RD |
35818 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
35819 | PyObject *resultobj; | |
35820 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35821 | int arg2 = (int) 0 ; | |
35822 | int arg3 = (int) 0 ; | |
35823 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
35824 | PyObject * obj1 = 0 ; |
35825 | PyObject * obj2 = 0 ; | |
423f194a RD |
35826 | char *kwnames[] = { |
35827 | (char *) "self",(char *) "row",(char *) "col", NULL | |
35828 | }; | |
35829 | ||
8edf1c75 | 35830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 35833 | if (obj1) { |
2f4c0a16 RD |
35834 | arg2 = (int) SWIG_AsInt(obj1); |
35835 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35836 | } |
35837 | if (obj2) { | |
2f4c0a16 RD |
35838 | arg3 = (int) SWIG_AsInt(obj2); |
35839 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35840 | } |
423f194a RD |
35841 | { |
35842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35843 | wxGBPosition_Set(arg1,arg2,arg3); | |
35844 | ||
35845 | wxPyEndAllowThreads(__tstate); | |
35846 | if (PyErr_Occurred()) SWIG_fail; | |
35847 | } | |
35848 | Py_INCREF(Py_None); resultobj = Py_None; | |
35849 | return resultobj; | |
35850 | fail: | |
35851 | return NULL; | |
35852 | } | |
35853 | ||
35854 | ||
35855 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
35856 | PyObject *resultobj; |
35857 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
35858 | PyObject *result; | |
35859 | PyObject * obj0 = 0 ; | |
35860 | char *kwnames[] = { | |
35861 | (char *) "self", NULL | |
35862 | }; | |
35863 | ||
423f194a | 35864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
35865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
35866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35867 | { |
35868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 35869 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
35870 | |
35871 | wxPyEndAllowThreads(__tstate); | |
35872 | if (PyErr_Occurred()) SWIG_fail; | |
35873 | } | |
35874 | resultobj = result; | |
35875 | return resultobj; | |
35876 | fail: | |
35877 | return NULL; | |
35878 | } | |
35879 | ||
35880 | ||
35881 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
35882 | PyObject *obj; | |
35883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35884 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
35885 | Py_INCREF(obj); | |
35886 | return Py_BuildValue((char *)""); | |
35887 | } | |
35888 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35889 | PyObject *resultobj; | |
35890 | int arg1 = (int) 1 ; | |
35891 | int arg2 = (int) 1 ; | |
35892 | wxGBSpan *result; | |
8edf1c75 RD |
35893 | PyObject * obj0 = 0 ; |
35894 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
35895 | char *kwnames[] = { |
35896 | (char *) "rowspan",(char *) "colspan", NULL | |
35897 | }; | |
35898 | ||
8edf1c75 RD |
35899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
35900 | if (obj0) { | |
2f4c0a16 RD |
35901 | arg1 = (int) SWIG_AsInt(obj0); |
35902 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35903 | } |
35904 | if (obj1) { | |
2f4c0a16 RD |
35905 | arg2 = (int) SWIG_AsInt(obj1); |
35906 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35907 | } |
d14a1e28 RD |
35908 | { |
35909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35910 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
35911 | ||
35912 | wxPyEndAllowThreads(__tstate); | |
35913 | if (PyErr_Occurred()) SWIG_fail; | |
35914 | } | |
2f4c0a16 | 35915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
35916 | return resultobj; |
35917 | fail: | |
35918 | return NULL; | |
35919 | } | |
35920 | ||
35921 | ||
35922 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35923 | PyObject *resultobj; | |
35924 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35925 | int result; | |
35926 | PyObject * obj0 = 0 ; | |
35927 | char *kwnames[] = { | |
35928 | (char *) "self", NULL | |
35929 | }; | |
35930 | ||
35931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35934 | { |
35935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35936 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
35937 | ||
35938 | wxPyEndAllowThreads(__tstate); | |
35939 | if (PyErr_Occurred()) SWIG_fail; | |
35940 | } | |
2f4c0a16 | 35941 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35942 | return resultobj; |
35943 | fail: | |
35944 | return NULL; | |
35945 | } | |
35946 | ||
35947 | ||
35948 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35949 | PyObject *resultobj; | |
35950 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35951 | int result; | |
35952 | PyObject * obj0 = 0 ; | |
35953 | char *kwnames[] = { | |
35954 | (char *) "self", NULL | |
35955 | }; | |
35956 | ||
35957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35960 | { |
35961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35962 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
35963 | ||
35964 | wxPyEndAllowThreads(__tstate); | |
35965 | if (PyErr_Occurred()) SWIG_fail; | |
35966 | } | |
2f4c0a16 | 35967 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35968 | return resultobj; |
35969 | fail: | |
35970 | return NULL; | |
35971 | } | |
35972 | ||
35973 | ||
35974 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35975 | PyObject *resultobj; | |
35976 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
35977 | int arg2 ; | |
35978 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35980 | char *kwnames[] = { |
35981 | (char *) "self",(char *) "rowspan", NULL | |
35982 | }; | |
35983 | ||
8edf1c75 | 35984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
35986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35987 | arg2 = (int) SWIG_AsInt(obj1); | |
35988 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35989 | { |
35990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35991 | (arg1)->SetRowspan(arg2); | |
35992 | ||
35993 | wxPyEndAllowThreads(__tstate); | |
35994 | if (PyErr_Occurred()) SWIG_fail; | |
35995 | } | |
35996 | Py_INCREF(Py_None); resultobj = Py_None; | |
35997 | return resultobj; | |
35998 | fail: | |
35999 | return NULL; | |
36000 | } | |
36001 | ||
36002 | ||
36003 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36004 | PyObject *resultobj; | |
36005 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36006 | int arg2 ; | |
36007 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36009 | char *kwnames[] = { |
36010 | (char *) "self",(char *) "colspan", NULL | |
36011 | }; | |
36012 | ||
8edf1c75 | 36013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36016 | arg2 = (int) SWIG_AsInt(obj1); | |
36017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36018 | { |
36019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36020 | (arg1)->SetColspan(arg2); | |
36021 | ||
36022 | wxPyEndAllowThreads(__tstate); | |
36023 | if (PyErr_Occurred()) SWIG_fail; | |
36024 | } | |
36025 | Py_INCREF(Py_None); resultobj = Py_None; | |
36026 | return resultobj; | |
36027 | fail: | |
36028 | return NULL; | |
36029 | } | |
36030 | ||
36031 | ||
36032 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36033 | PyObject *resultobj; | |
36034 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
328fcd84 | 36035 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 36036 | bool result; |
d14a1e28 RD |
36037 | PyObject * obj0 = 0 ; |
36038 | PyObject * obj1 = 0 ; | |
36039 | char *kwnames[] = { | |
328fcd84 | 36040 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36041 | }; |
36042 | ||
36043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSpan, | |
36047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36048 | { |
36049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 36050 | result = (bool)wxGBSpan___eq__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
36051 | |
36052 | wxPyEndAllowThreads(__tstate); | |
36053 | if (PyErr_Occurred()) SWIG_fail; | |
36054 | } | |
4e760a36 | 36055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36056 | return resultobj; |
36057 | fail: | |
36058 | return NULL; | |
36059 | } | |
36060 | ||
36061 | ||
36062 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36063 | PyObject *resultobj; | |
36064 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
328fcd84 | 36065 | wxGBSpan *arg2 = (wxGBSpan *) 0 ; |
d14a1e28 | 36066 | bool result; |
d14a1e28 RD |
36067 | PyObject * obj0 = 0 ; |
36068 | PyObject * obj1 = 0 ; | |
36069 | char *kwnames[] = { | |
328fcd84 | 36070 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36071 | }; |
36072 | ||
36073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSpan, | |
36077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36078 | { |
36079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 36080 | result = (bool)wxGBSpan___ne__(arg1,(wxGBSpan const *)arg2); |
d14a1e28 RD |
36081 | |
36082 | wxPyEndAllowThreads(__tstate); | |
36083 | if (PyErr_Occurred()) SWIG_fail; | |
36084 | } | |
4e760a36 | 36085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36086 | return resultobj; |
36087 | fail: | |
36088 | return NULL; | |
36089 | } | |
36090 | ||
36091 | ||
423f194a RD |
36092 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36093 | PyObject *resultobj; | |
36094 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36095 | int arg2 = (int) 1 ; | |
36096 | int arg3 = (int) 1 ; | |
36097 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
36098 | PyObject * obj1 = 0 ; |
36099 | PyObject * obj2 = 0 ; | |
423f194a RD |
36100 | char *kwnames[] = { |
36101 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
36102 | }; | |
36103 | ||
8edf1c75 | 36104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
36105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 36107 | if (obj1) { |
2f4c0a16 RD |
36108 | arg2 = (int) SWIG_AsInt(obj1); |
36109 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36110 | } |
36111 | if (obj2) { | |
2f4c0a16 RD |
36112 | arg3 = (int) SWIG_AsInt(obj2); |
36113 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36114 | } |
423f194a RD |
36115 | { |
36116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36117 | wxGBSpan_Set(arg1,arg2,arg3); | |
36118 | ||
36119 | wxPyEndAllowThreads(__tstate); | |
36120 | if (PyErr_Occurred()) SWIG_fail; | |
36121 | } | |
36122 | Py_INCREF(Py_None); resultobj = Py_None; | |
36123 | return resultobj; | |
36124 | fail: | |
36125 | return NULL; | |
36126 | } | |
36127 | ||
36128 | ||
36129 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36130 | PyObject *resultobj; |
36131 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36132 | PyObject *result; | |
36133 | PyObject * obj0 = 0 ; | |
36134 | char *kwnames[] = { | |
36135 | (char *) "self", NULL | |
36136 | }; | |
36137 | ||
423f194a | 36138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
36139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36141 | { |
36142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 36143 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
36144 | |
36145 | wxPyEndAllowThreads(__tstate); | |
36146 | if (PyErr_Occurred()) SWIG_fail; | |
36147 | } | |
36148 | resultobj = result; | |
36149 | return resultobj; | |
36150 | fail: | |
36151 | return NULL; | |
36152 | } | |
36153 | ||
36154 | ||
36155 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
36156 | PyObject *obj; | |
36157 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36158 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
36159 | Py_INCREF(obj); | |
36160 | return Py_BuildValue((char *)""); | |
36161 | } | |
2f4c0a16 | 36162 | static int _wrap_DefaultSpan_set(PyObject *_val) { |
d14a1e28 RD |
36163 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
36164 | return 1; | |
36165 | } | |
36166 | ||
36167 | ||
36168 | static PyObject *_wrap_DefaultSpan_get() { | |
36169 | PyObject *pyobj; | |
36170 | ||
2f4c0a16 | 36171 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
36172 | return pyobj; |
36173 | } | |
36174 | ||
36175 | ||
36176 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36177 | PyObject *resultobj; | |
36178 | wxGBSizerItem *result; | |
36179 | char *kwnames[] = { | |
36180 | NULL | |
36181 | }; | |
36182 | ||
36183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
36184 | { | |
36185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36186 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
36187 | ||
36188 | wxPyEndAllowThreads(__tstate); | |
36189 | if (PyErr_Occurred()) SWIG_fail; | |
36190 | } | |
2f4c0a16 | 36191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36192 | return resultobj; |
36193 | fail: | |
36194 | return NULL; | |
36195 | } | |
36196 | ||
36197 | ||
36198 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36199 | PyObject *resultobj; | |
36200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36201 | wxGBPosition *arg2 = 0 ; | |
36202 | wxGBSpan *arg3 = 0 ; | |
36203 | int arg4 ; | |
36204 | int arg5 ; | |
36205 | wxObject *arg6 = (wxObject *) 0 ; | |
36206 | wxGBSizerItem *result; | |
36207 | wxGBPosition temp2 ; | |
36208 | wxGBSpan temp3 ; | |
36209 | PyObject * obj0 = 0 ; | |
36210 | PyObject * obj1 = 0 ; | |
36211 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36212 | PyObject * obj3 = 0 ; |
36213 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36214 | PyObject * obj5 = 0 ; |
36215 | char *kwnames[] = { | |
36216 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36217 | }; | |
36218 | ||
8edf1c75 | 36219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
36221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36222 | { |
36223 | arg2 = &temp2; | |
36224 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36225 | } | |
36226 | { | |
36227 | arg3 = &temp3; | |
36228 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36229 | } | |
2f4c0a16 RD |
36230 | arg4 = (int) SWIG_AsInt(obj3); |
36231 | if (PyErr_Occurred()) SWIG_fail; | |
36232 | arg5 = (int) SWIG_AsInt(obj4); | |
36233 | if (PyErr_Occurred()) SWIG_fail; | |
36234 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36236 | { |
36237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36238 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36239 | ||
36240 | wxPyEndAllowThreads(__tstate); | |
36241 | if (PyErr_Occurred()) SWIG_fail; | |
36242 | } | |
2f4c0a16 | 36243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36244 | return resultobj; |
36245 | fail: | |
36246 | return NULL; | |
36247 | } | |
36248 | ||
36249 | ||
36250 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36251 | PyObject *resultobj; | |
36252 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36253 | wxGBPosition *arg2 = 0 ; | |
36254 | wxGBSpan *arg3 = 0 ; | |
36255 | int arg4 ; | |
36256 | int arg5 ; | |
36257 | wxObject *arg6 = (wxObject *) 0 ; | |
36258 | wxGBSizerItem *result; | |
36259 | wxGBPosition temp2 ; | |
36260 | wxGBSpan temp3 ; | |
36261 | PyObject * obj0 = 0 ; | |
36262 | PyObject * obj1 = 0 ; | |
36263 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36264 | PyObject * obj3 = 0 ; |
36265 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36266 | PyObject * obj5 = 0 ; |
36267 | char *kwnames[] = { | |
36268 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36269 | }; | |
36270 | ||
8edf1c75 | 36271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36274 | { |
36275 | arg2 = &temp2; | |
36276 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36277 | } | |
36278 | { | |
36279 | arg3 = &temp3; | |
36280 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36281 | } | |
2f4c0a16 RD |
36282 | arg4 = (int) SWIG_AsInt(obj3); |
36283 | if (PyErr_Occurred()) SWIG_fail; | |
36284 | arg5 = (int) SWIG_AsInt(obj4); | |
36285 | if (PyErr_Occurred()) SWIG_fail; | |
36286 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36288 | { |
36289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36290 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36291 | ||
36292 | wxPyEndAllowThreads(__tstate); | |
36293 | if (PyErr_Occurred()) SWIG_fail; | |
36294 | } | |
2f4c0a16 | 36295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36296 | return resultobj; |
36297 | fail: | |
36298 | return NULL; | |
36299 | } | |
36300 | ||
36301 | ||
36302 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36303 | PyObject *resultobj; | |
36304 | int arg1 ; | |
36305 | int arg2 ; | |
36306 | wxGBPosition *arg3 = 0 ; | |
36307 | wxGBSpan *arg4 = 0 ; | |
36308 | int arg5 ; | |
36309 | int arg6 ; | |
36310 | wxObject *arg7 = (wxObject *) 0 ; | |
36311 | wxGBSizerItem *result; | |
36312 | wxGBPosition temp3 ; | |
36313 | wxGBSpan temp4 ; | |
8edf1c75 RD |
36314 | PyObject * obj0 = 0 ; |
36315 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36316 | PyObject * obj2 = 0 ; |
36317 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36318 | PyObject * obj4 = 0 ; |
36319 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36320 | PyObject * obj6 = 0 ; |
36321 | char *kwnames[] = { | |
36322 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36323 | }; | |
36324 | ||
8edf1c75 | 36325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
36326 | arg1 = (int) SWIG_AsInt(obj0); |
36327 | if (PyErr_Occurred()) SWIG_fail; | |
36328 | arg2 = (int) SWIG_AsInt(obj1); | |
36329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36330 | { |
36331 | arg3 = &temp3; | |
36332 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36333 | } | |
36334 | { | |
36335 | arg4 = &temp4; | |
36336 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36337 | } | |
2f4c0a16 RD |
36338 | arg5 = (int) SWIG_AsInt(obj4); |
36339 | if (PyErr_Occurred()) SWIG_fail; | |
36340 | arg6 = (int) SWIG_AsInt(obj5); | |
36341 | if (PyErr_Occurred()) SWIG_fail; | |
36342 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
36343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36344 | { |
36345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36346 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36347 | ||
36348 | wxPyEndAllowThreads(__tstate); | |
36349 | if (PyErr_Occurred()) SWIG_fail; | |
36350 | } | |
2f4c0a16 | 36351 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36352 | return resultobj; |
36353 | fail: | |
36354 | return NULL; | |
36355 | } | |
36356 | ||
36357 | ||
36358 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36359 | PyObject *resultobj; | |
36360 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36361 | wxGBPosition result; | |
36362 | PyObject * obj0 = 0 ; | |
36363 | char *kwnames[] = { | |
36364 | (char *) "self", NULL | |
36365 | }; | |
36366 | ||
36367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36370 | { |
36371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36372 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
36373 | ||
36374 | wxPyEndAllowThreads(__tstate); | |
36375 | if (PyErr_Occurred()) SWIG_fail; | |
36376 | } | |
36377 | { | |
36378 | wxGBPosition * resultptr; | |
36379 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36381 | } |
36382 | return resultobj; | |
36383 | fail: | |
36384 | return NULL; | |
36385 | } | |
36386 | ||
36387 | ||
36388 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36389 | PyObject *resultobj; | |
36390 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36391 | wxGBSpan result; | |
36392 | PyObject * obj0 = 0 ; | |
36393 | char *kwnames[] = { | |
36394 | (char *) "self", NULL | |
36395 | }; | |
36396 | ||
36397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36400 | { |
36401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36402 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
36403 | ||
36404 | wxPyEndAllowThreads(__tstate); | |
36405 | if (PyErr_Occurred()) SWIG_fail; | |
36406 | } | |
36407 | { | |
36408 | wxGBSpan * resultptr; | |
36409 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36411 | } |
36412 | return resultobj; | |
36413 | fail: | |
36414 | return NULL; | |
36415 | } | |
36416 | ||
36417 | ||
36418 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36419 | PyObject *resultobj; | |
36420 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36421 | wxGBPosition *arg2 = 0 ; | |
36422 | bool result; | |
36423 | wxGBPosition temp2 ; | |
36424 | PyObject * obj0 = 0 ; | |
36425 | PyObject * obj1 = 0 ; | |
36426 | char *kwnames[] = { | |
36427 | (char *) "self",(char *) "pos", NULL | |
36428 | }; | |
36429 | ||
36430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36433 | { |
36434 | arg2 = &temp2; | |
36435 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36436 | } | |
36437 | { | |
36438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36439 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
36440 | ||
36441 | wxPyEndAllowThreads(__tstate); | |
36442 | if (PyErr_Occurred()) SWIG_fail; | |
36443 | } | |
4e760a36 | 36444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36445 | return resultobj; |
36446 | fail: | |
36447 | return NULL; | |
36448 | } | |
36449 | ||
36450 | ||
36451 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36452 | PyObject *resultobj; | |
36453 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36454 | wxGBSpan *arg2 = 0 ; | |
36455 | bool result; | |
36456 | wxGBSpan temp2 ; | |
36457 | PyObject * obj0 = 0 ; | |
36458 | PyObject * obj1 = 0 ; | |
36459 | char *kwnames[] = { | |
36460 | (char *) "self",(char *) "span", NULL | |
36461 | }; | |
36462 | ||
36463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36466 | { |
36467 | arg2 = &temp2; | |
36468 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36469 | } | |
36470 | { | |
36471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36472 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
36473 | ||
36474 | wxPyEndAllowThreads(__tstate); | |
36475 | if (PyErr_Occurred()) SWIG_fail; | |
36476 | } | |
4e760a36 | 36477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36478 | return resultobj; |
36479 | fail: | |
36480 | return NULL; | |
36481 | } | |
36482 | ||
36483 | ||
36484 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
36485 | PyObject *resultobj; | |
36486 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36487 | wxGBSizerItem *arg2 = 0 ; | |
36488 | bool result; | |
36489 | PyObject * obj0 = 0 ; | |
36490 | PyObject * obj1 = 0 ; | |
36491 | ||
36492 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
36496 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36497 | SWIG_fail; | |
d14a1e28 | 36498 | if (arg2 == NULL) { |
2f4c0a16 RD |
36499 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36500 | SWIG_fail; | |
d14a1e28 RD |
36501 | } |
36502 | { | |
36503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36504 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
36505 | ||
36506 | wxPyEndAllowThreads(__tstate); | |
36507 | if (PyErr_Occurred()) SWIG_fail; | |
36508 | } | |
4e760a36 | 36509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36510 | return resultobj; |
36511 | fail: | |
36512 | return NULL; | |
36513 | } | |
36514 | ||
36515 | ||
36516 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
36517 | PyObject *resultobj; | |
36518 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36519 | wxGBPosition *arg2 = 0 ; | |
36520 | wxGBSpan *arg3 = 0 ; | |
36521 | bool result; | |
36522 | wxGBPosition temp2 ; | |
36523 | wxGBSpan temp3 ; | |
36524 | PyObject * obj0 = 0 ; | |
36525 | PyObject * obj1 = 0 ; | |
36526 | PyObject * obj2 = 0 ; | |
36527 | ||
36528 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36531 | { |
36532 | arg2 = &temp2; | |
36533 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36534 | } | |
36535 | { | |
36536 | arg3 = &temp3; | |
36537 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36538 | } | |
36539 | { | |
36540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36541 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
36542 | ||
36543 | wxPyEndAllowThreads(__tstate); | |
36544 | if (PyErr_Occurred()) SWIG_fail; | |
36545 | } | |
4e760a36 | 36546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36547 | return resultobj; |
36548 | fail: | |
36549 | return NULL; | |
36550 | } | |
36551 | ||
36552 | ||
36553 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
36554 | int argc; | |
36555 | PyObject *argv[4]; | |
36556 | int ii; | |
36557 | ||
36558 | argc = PyObject_Length(args); | |
36559 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
36560 | argv[ii] = PyTuple_GetItem(args,ii); | |
36561 | } | |
36562 | if (argc == 2) { | |
36563 | int _v; | |
36564 | { | |
36565 | void *ptr; | |
2f4c0a16 | 36566 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36567 | _v = 0; |
36568 | PyErr_Clear(); | |
36569 | } else { | |
36570 | _v = 1; | |
36571 | } | |
36572 | } | |
36573 | if (_v) { | |
36574 | { | |
36575 | void *ptr; | |
2f4c0a16 | 36576 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36577 | _v = 0; |
36578 | PyErr_Clear(); | |
36579 | } else { | |
36580 | _v = 1; | |
36581 | } | |
36582 | } | |
36583 | if (_v) { | |
36584 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
36585 | } | |
36586 | } | |
36587 | } | |
36588 | if (argc == 3) { | |
36589 | int _v; | |
36590 | { | |
36591 | void *ptr; | |
2f4c0a16 | 36592 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
36593 | _v = 0; |
36594 | PyErr_Clear(); | |
36595 | } else { | |
36596 | _v = 1; | |
36597 | } | |
36598 | } | |
36599 | if (_v) { | |
36600 | { | |
36601 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
36602 | } | |
36603 | if (_v) { | |
36604 | { | |
36605 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
36606 | } | |
36607 | if (_v) { | |
36608 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
36609 | } | |
36610 | } | |
36611 | } | |
36612 | } | |
36613 | ||
36614 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
36615 | return NULL; | |
36616 | } | |
36617 | ||
36618 | ||
36619 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36620 | PyObject *resultobj; | |
36621 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36622 | int *arg2 = 0 ; | |
36623 | int *arg3 = 0 ; | |
36624 | PyObject * obj0 = 0 ; | |
36625 | PyObject * obj1 = 0 ; | |
36626 | PyObject * obj2 = 0 ; | |
36627 | char *kwnames[] = { | |
36628 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36629 | }; | |
36630 | ||
36631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
36632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
36635 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36636 | SWIG_fail; | |
d14a1e28 | 36637 | if (arg2 == NULL) { |
2f4c0a16 RD |
36638 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36639 | SWIG_fail; | |
d14a1e28 | 36640 | } |
2f4c0a16 RD |
36641 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
36642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36643 | SWIG_fail; | |
d14a1e28 | 36644 | if (arg3 == NULL) { |
2f4c0a16 RD |
36645 | PyErr_SetString(PyExc_TypeError,"null reference"); |
36646 | SWIG_fail; | |
d14a1e28 RD |
36647 | } |
36648 | { | |
36649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36650 | (arg1)->GetEndPos(*arg2,*arg3); | |
36651 | ||
36652 | wxPyEndAllowThreads(__tstate); | |
36653 | if (PyErr_Occurred()) SWIG_fail; | |
36654 | } | |
36655 | Py_INCREF(Py_None); resultobj = Py_None; | |
36656 | return resultobj; | |
36657 | fail: | |
36658 | return NULL; | |
36659 | } | |
36660 | ||
36661 | ||
36662 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36663 | PyObject *resultobj; | |
36664 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36665 | wxGridBagSizer *result; | |
36666 | PyObject * obj0 = 0 ; | |
36667 | char *kwnames[] = { | |
36668 | (char *) "self", NULL | |
36669 | }; | |
36670 | ||
36671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36674 | { |
36675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36676 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
36677 | ||
36678 | wxPyEndAllowThreads(__tstate); | |
36679 | if (PyErr_Occurred()) SWIG_fail; | |
36680 | } | |
2f4c0a16 | 36681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
36682 | return resultobj; |
36683 | fail: | |
36684 | return NULL; | |
36685 | } | |
36686 | ||
36687 | ||
36688 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36689 | PyObject *resultobj; | |
36690 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36691 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
36692 | PyObject * obj0 = 0 ; | |
36693 | PyObject * obj1 = 0 ; | |
36694 | char *kwnames[] = { | |
36695 | (char *) "self",(char *) "sizer", NULL | |
36696 | }; | |
36697 | ||
36698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
36702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36703 | { |
36704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36705 | (arg1)->SetGBSizer(arg2); | |
36706 | ||
36707 | wxPyEndAllowThreads(__tstate); | |
36708 | if (PyErr_Occurred()) SWIG_fail; | |
36709 | } | |
36710 | Py_INCREF(Py_None); resultobj = Py_None; | |
36711 | return resultobj; | |
36712 | fail: | |
36713 | return NULL; | |
36714 | } | |
36715 | ||
36716 | ||
36717 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
36718 | PyObject *obj; | |
36719 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36720 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
36721 | Py_INCREF(obj); | |
36722 | return Py_BuildValue((char *)""); | |
36723 | } | |
36724 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36725 | PyObject *resultobj; | |
36726 | int arg1 = (int) 0 ; | |
36727 | int arg2 = (int) 0 ; | |
36728 | wxGridBagSizer *result; | |
8edf1c75 RD |
36729 | PyObject * obj0 = 0 ; |
36730 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36731 | char *kwnames[] = { |
36732 | (char *) "vgap",(char *) "hgap", NULL | |
36733 | }; | |
36734 | ||
8edf1c75 RD |
36735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
36736 | if (obj0) { | |
2f4c0a16 RD |
36737 | arg1 = (int) SWIG_AsInt(obj0); |
36738 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36739 | } |
36740 | if (obj1) { | |
2f4c0a16 RD |
36741 | arg2 = (int) SWIG_AsInt(obj1); |
36742 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36743 | } |
d14a1e28 RD |
36744 | { |
36745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36746 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
36747 | ||
36748 | wxPyEndAllowThreads(__tstate); | |
36749 | if (PyErr_Occurred()) SWIG_fail; | |
36750 | } | |
2f4c0a16 | 36751 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
36752 | return resultobj; |
36753 | fail: | |
36754 | return NULL; | |
36755 | } | |
36756 | ||
36757 | ||
36758 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36759 | PyObject *resultobj; | |
36760 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36761 | PyObject *arg2 = (PyObject *) 0 ; | |
36762 | wxGBPosition *arg3 = 0 ; | |
36763 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
36764 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
36765 | int arg5 = (int) 0 ; | |
36766 | int arg6 = (int) 0 ; | |
36767 | PyObject *arg7 = (PyObject *) NULL ; | |
36768 | bool result; | |
36769 | wxGBPosition temp3 ; | |
36770 | wxGBSpan temp4 ; | |
36771 | PyObject * obj0 = 0 ; | |
36772 | PyObject * obj1 = 0 ; | |
36773 | PyObject * obj2 = 0 ; | |
36774 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36775 | PyObject * obj4 = 0 ; |
36776 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36777 | PyObject * obj6 = 0 ; |
36778 | char *kwnames[] = { | |
36779 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36780 | }; | |
36781 | ||
8edf1c75 | 36782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
36783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36785 | arg2 = obj1; |
36786 | { | |
36787 | arg3 = &temp3; | |
36788 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36789 | } | |
36790 | if (obj3) { | |
36791 | { | |
36792 | arg4 = &temp4; | |
36793 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36794 | } | |
36795 | } | |
8edf1c75 | 36796 | if (obj4) { |
2f4c0a16 RD |
36797 | arg5 = (int) SWIG_AsInt(obj4); |
36798 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36799 | } |
36800 | if (obj5) { | |
2f4c0a16 RD |
36801 | arg6 = (int) SWIG_AsInt(obj5); |
36802 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36803 | } |
d14a1e28 RD |
36804 | if (obj6) { |
36805 | arg7 = obj6; | |
36806 | } | |
36807 | { | |
36808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36809 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36810 | ||
36811 | wxPyEndAllowThreads(__tstate); | |
36812 | if (PyErr_Occurred()) SWIG_fail; | |
36813 | } | |
4e760a36 | 36814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36815 | return resultobj; |
36816 | fail: | |
36817 | return NULL; | |
36818 | } | |
36819 | ||
36820 | ||
36821 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36822 | PyObject *resultobj; | |
36823 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36824 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
36825 | bool result; | |
36826 | PyObject * obj0 = 0 ; | |
36827 | PyObject * obj1 = 0 ; | |
36828 | char *kwnames[] = { | |
36829 | (char *) "self",(char *) "item", NULL | |
36830 | }; | |
36831 | ||
36832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
36836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36837 | { |
36838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36839 | result = (bool)(arg1)->Add(arg2); | |
36840 | ||
36841 | wxPyEndAllowThreads(__tstate); | |
36842 | if (PyErr_Occurred()) SWIG_fail; | |
36843 | } | |
4e760a36 | 36844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
36845 | return resultobj; |
36846 | fail: | |
36847 | return NULL; | |
36848 | } | |
36849 | ||
36850 | ||
36851 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36852 | PyObject *resultobj; | |
36853 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36854 | wxSize result; | |
36855 | PyObject * obj0 = 0 ; | |
36856 | char *kwnames[] = { | |
36857 | (char *) "self", NULL | |
36858 | }; | |
36859 | ||
36860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36863 | { |
36864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36865 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
36866 | ||
36867 | wxPyEndAllowThreads(__tstate); | |
36868 | if (PyErr_Occurred()) SWIG_fail; | |
36869 | } | |
36870 | { | |
36871 | wxSize * resultptr; | |
36872 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 36873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36874 | } |
36875 | return resultobj; | |
36876 | fail: | |
36877 | return NULL; | |
36878 | } | |
36879 | ||
36880 | ||
36881 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36882 | PyObject *resultobj; | |
36883 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36884 | wxSize *arg2 = 0 ; | |
36885 | wxSize temp2 ; | |
36886 | PyObject * obj0 = 0 ; | |
36887 | PyObject * obj1 = 0 ; | |
36888 | char *kwnames[] = { | |
36889 | (char *) "self",(char *) "sz", NULL | |
36890 | }; | |
36891 | ||
36892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36895 | { |
36896 | arg2 = &temp2; | |
36897 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36898 | } | |
36899 | { | |
36900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36901 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
36902 | ||
36903 | wxPyEndAllowThreads(__tstate); | |
36904 | if (PyErr_Occurred()) SWIG_fail; | |
36905 | } | |
36906 | Py_INCREF(Py_None); resultobj = Py_None; | |
36907 | return resultobj; | |
36908 | fail: | |
36909 | return NULL; | |
36910 | } | |
36911 | ||
36912 | ||
36913 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
36914 | PyObject *resultobj; | |
36915 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36916 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36917 | wxGBPosition result; | |
36918 | PyObject * obj0 = 0 ; | |
36919 | PyObject * obj1 = 0 ; | |
36920 | ||
36921 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36924 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36926 | { |
36927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36928 | result = (arg1)->GetItemPosition(arg2); | |
36929 | ||
36930 | wxPyEndAllowThreads(__tstate); | |
36931 | if (PyErr_Occurred()) SWIG_fail; | |
36932 | } | |
36933 | { | |
36934 | wxGBPosition * resultptr; | |
36935 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36937 | } |
36938 | return resultobj; | |
36939 | fail: | |
36940 | return NULL; | |
36941 | } | |
36942 | ||
36943 | ||
36944 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
36945 | PyObject *resultobj; | |
36946 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36947 | wxSizer *arg2 = (wxSizer *) 0 ; | |
36948 | wxGBPosition result; | |
36949 | PyObject * obj0 = 0 ; | |
36950 | PyObject * obj1 = 0 ; | |
36951 | ||
36952 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
36956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36957 | { |
36958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36959 | result = (arg1)->GetItemPosition(arg2); | |
36960 | ||
36961 | wxPyEndAllowThreads(__tstate); | |
36962 | if (PyErr_Occurred()) SWIG_fail; | |
36963 | } | |
36964 | { | |
36965 | wxGBPosition * resultptr; | |
36966 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36968 | } |
36969 | return resultobj; | |
36970 | fail: | |
36971 | return NULL; | |
36972 | } | |
36973 | ||
36974 | ||
36975 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
36976 | PyObject *resultobj; | |
36977 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
36978 | size_t arg2 ; | |
36979 | wxGBPosition result; | |
36980 | PyObject * obj0 = 0 ; | |
36981 | PyObject * obj1 = 0 ; | |
36982 | ||
36983 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
36985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36986 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36988 | { |
36989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36990 | result = (arg1)->GetItemPosition(arg2); | |
36991 | ||
36992 | wxPyEndAllowThreads(__tstate); | |
36993 | if (PyErr_Occurred()) SWIG_fail; | |
36994 | } | |
36995 | { | |
36996 | wxGBPosition * resultptr; | |
36997 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36998 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36999 | } |
37000 | return resultobj; | |
37001 | fail: | |
37002 | return NULL; | |
37003 | } | |
37004 | ||
37005 | ||
37006 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37007 | int argc; | |
37008 | PyObject *argv[3]; | |
37009 | int ii; | |
37010 | ||
37011 | argc = PyObject_Length(args); | |
37012 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37013 | argv[ii] = PyTuple_GetItem(args,ii); | |
37014 | } | |
37015 | if (argc == 2) { | |
37016 | int _v; | |
37017 | { | |
37018 | void *ptr; | |
2f4c0a16 | 37019 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37020 | _v = 0; |
37021 | PyErr_Clear(); | |
37022 | } else { | |
37023 | _v = 1; | |
37024 | } | |
37025 | } | |
37026 | if (_v) { | |
37027 | { | |
37028 | void *ptr; | |
2f4c0a16 | 37029 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37030 | _v = 0; |
37031 | PyErr_Clear(); | |
37032 | } else { | |
37033 | _v = 1; | |
37034 | } | |
37035 | } | |
37036 | if (_v) { | |
37037 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37038 | } | |
37039 | } | |
37040 | } | |
37041 | if (argc == 2) { | |
37042 | int _v; | |
37043 | { | |
37044 | void *ptr; | |
2f4c0a16 | 37045 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37046 | _v = 0; |
37047 | PyErr_Clear(); | |
37048 | } else { | |
37049 | _v = 1; | |
37050 | } | |
37051 | } | |
37052 | if (_v) { | |
37053 | { | |
37054 | void *ptr; | |
2f4c0a16 | 37055 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37056 | _v = 0; |
37057 | PyErr_Clear(); | |
37058 | } else { | |
37059 | _v = 1; | |
37060 | } | |
37061 | } | |
37062 | if (_v) { | |
37063 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
37064 | } | |
37065 | } | |
37066 | } | |
37067 | if (argc == 2) { | |
37068 | int _v; | |
37069 | { | |
37070 | void *ptr; | |
2f4c0a16 | 37071 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37072 | _v = 0; |
37073 | PyErr_Clear(); | |
37074 | } else { | |
37075 | _v = 1; | |
37076 | } | |
37077 | } | |
37078 | if (_v) { | |
2f4c0a16 | 37079 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37080 | if (_v) { |
37081 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
37082 | } | |
37083 | } | |
37084 | } | |
37085 | ||
37086 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
37087 | return NULL; | |
37088 | } | |
37089 | ||
37090 | ||
37091 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37092 | PyObject *resultobj; | |
37093 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37094 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37095 | wxGBPosition *arg3 = 0 ; | |
37096 | bool result; | |
37097 | wxGBPosition temp3 ; | |
37098 | PyObject * obj0 = 0 ; | |
37099 | PyObject * obj1 = 0 ; | |
37100 | PyObject * obj2 = 0 ; | |
37101 | ||
37102 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37107 | { |
37108 | arg3 = &temp3; | |
37109 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37110 | } | |
37111 | { | |
37112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37113 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37114 | ||
37115 | wxPyEndAllowThreads(__tstate); | |
37116 | if (PyErr_Occurred()) SWIG_fail; | |
37117 | } | |
4e760a36 | 37118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37119 | return resultobj; |
37120 | fail: | |
37121 | return NULL; | |
37122 | } | |
37123 | ||
37124 | ||
37125 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37126 | PyObject *resultobj; | |
37127 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37128 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37129 | wxGBPosition *arg3 = 0 ; | |
37130 | bool result; | |
37131 | wxGBPosition temp3 ; | |
37132 | PyObject * obj0 = 0 ; | |
37133 | PyObject * obj1 = 0 ; | |
37134 | PyObject * obj2 = 0 ; | |
37135 | ||
37136 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37141 | { |
37142 | arg3 = &temp3; | |
37143 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37144 | } | |
37145 | { | |
37146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37147 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37148 | ||
37149 | wxPyEndAllowThreads(__tstate); | |
37150 | if (PyErr_Occurred()) SWIG_fail; | |
37151 | } | |
4e760a36 | 37152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37153 | return resultobj; |
37154 | fail: | |
37155 | return NULL; | |
37156 | } | |
37157 | ||
37158 | ||
37159 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37160 | PyObject *resultobj; | |
37161 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37162 | size_t arg2 ; | |
37163 | wxGBPosition *arg3 = 0 ; | |
37164 | bool result; | |
37165 | wxGBPosition temp3 ; | |
37166 | PyObject * obj0 = 0 ; | |
37167 | PyObject * obj1 = 0 ; | |
37168 | PyObject * obj2 = 0 ; | |
37169 | ||
37170 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37173 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37175 | { |
37176 | arg3 = &temp3; | |
37177 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37178 | } | |
37179 | { | |
37180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37181 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37182 | ||
37183 | wxPyEndAllowThreads(__tstate); | |
37184 | if (PyErr_Occurred()) SWIG_fail; | |
37185 | } | |
4e760a36 | 37186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37187 | return resultobj; |
37188 | fail: | |
37189 | return NULL; | |
37190 | } | |
37191 | ||
37192 | ||
37193 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
37194 | int argc; | |
37195 | PyObject *argv[4]; | |
37196 | int ii; | |
37197 | ||
37198 | argc = PyObject_Length(args); | |
37199 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37200 | argv[ii] = PyTuple_GetItem(args,ii); | |
37201 | } | |
37202 | if (argc == 3) { | |
37203 | int _v; | |
37204 | { | |
37205 | void *ptr; | |
2f4c0a16 | 37206 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37207 | _v = 0; |
37208 | PyErr_Clear(); | |
37209 | } else { | |
37210 | _v = 1; | |
37211 | } | |
37212 | } | |
37213 | if (_v) { | |
37214 | { | |
37215 | void *ptr; | |
2f4c0a16 | 37216 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37217 | _v = 0; |
37218 | PyErr_Clear(); | |
37219 | } else { | |
37220 | _v = 1; | |
37221 | } | |
37222 | } | |
37223 | if (_v) { | |
37224 | { | |
37225 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37226 | } | |
37227 | if (_v) { | |
37228 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
37229 | } | |
37230 | } | |
37231 | } | |
37232 | } | |
37233 | if (argc == 3) { | |
37234 | int _v; | |
37235 | { | |
37236 | void *ptr; | |
2f4c0a16 | 37237 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37238 | _v = 0; |
37239 | PyErr_Clear(); | |
37240 | } else { | |
37241 | _v = 1; | |
37242 | } | |
37243 | } | |
37244 | if (_v) { | |
37245 | { | |
37246 | void *ptr; | |
2f4c0a16 | 37247 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37248 | _v = 0; |
37249 | PyErr_Clear(); | |
37250 | } else { | |
37251 | _v = 1; | |
37252 | } | |
37253 | } | |
37254 | if (_v) { | |
37255 | { | |
37256 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37257 | } | |
37258 | if (_v) { | |
37259 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
37260 | } | |
37261 | } | |
37262 | } | |
37263 | } | |
37264 | if (argc == 3) { | |
37265 | int _v; | |
37266 | { | |
37267 | void *ptr; | |
2f4c0a16 | 37268 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37269 | _v = 0; |
37270 | PyErr_Clear(); | |
37271 | } else { | |
37272 | _v = 1; | |
37273 | } | |
37274 | } | |
37275 | if (_v) { | |
2f4c0a16 | 37276 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37277 | if (_v) { |
37278 | { | |
37279 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37280 | } | |
37281 | if (_v) { | |
37282 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
37283 | } | |
37284 | } | |
37285 | } | |
37286 | } | |
37287 | ||
37288 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
37289 | return NULL; | |
37290 | } | |
37291 | ||
37292 | ||
37293 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37294 | PyObject *resultobj; | |
37295 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37296 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37297 | wxGBSpan result; | |
37298 | PyObject * obj0 = 0 ; | |
37299 | PyObject * obj1 = 0 ; | |
37300 | ||
37301 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37304 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37306 | { |
37307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37308 | result = (arg1)->GetItemSpan(arg2); | |
37309 | ||
37310 | wxPyEndAllowThreads(__tstate); | |
37311 | if (PyErr_Occurred()) SWIG_fail; | |
37312 | } | |
37313 | { | |
37314 | wxGBSpan * resultptr; | |
37315 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37316 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37317 | } |
37318 | return resultobj; | |
37319 | fail: | |
37320 | return NULL; | |
37321 | } | |
37322 | ||
37323 | ||
37324 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37325 | PyObject *resultobj; | |
37326 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37327 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37328 | wxGBSpan result; | |
37329 | PyObject * obj0 = 0 ; | |
37330 | PyObject * obj1 = 0 ; | |
37331 | ||
37332 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37337 | { |
37338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37339 | result = (arg1)->GetItemSpan(arg2); | |
37340 | ||
37341 | wxPyEndAllowThreads(__tstate); | |
37342 | if (PyErr_Occurred()) SWIG_fail; | |
37343 | } | |
37344 | { | |
37345 | wxGBSpan * resultptr; | |
37346 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37347 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37348 | } |
37349 | return resultobj; | |
37350 | fail: | |
37351 | return NULL; | |
37352 | } | |
37353 | ||
37354 | ||
37355 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37356 | PyObject *resultobj; | |
37357 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37358 | size_t arg2 ; | |
37359 | wxGBSpan result; | |
37360 | PyObject * obj0 = 0 ; | |
37361 | PyObject * obj1 = 0 ; | |
37362 | ||
37363 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37366 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37367 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37368 | { |
37369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37370 | result = (arg1)->GetItemSpan(arg2); | |
37371 | ||
37372 | wxPyEndAllowThreads(__tstate); | |
37373 | if (PyErr_Occurred()) SWIG_fail; | |
37374 | } | |
37375 | { | |
37376 | wxGBSpan * resultptr; | |
37377 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37379 | } |
37380 | return resultobj; | |
37381 | fail: | |
37382 | return NULL; | |
37383 | } | |
37384 | ||
37385 | ||
37386 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
37387 | int argc; | |
37388 | PyObject *argv[3]; | |
37389 | int ii; | |
37390 | ||
37391 | argc = PyObject_Length(args); | |
37392 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37393 | argv[ii] = PyTuple_GetItem(args,ii); | |
37394 | } | |
37395 | if (argc == 2) { | |
37396 | int _v; | |
37397 | { | |
37398 | void *ptr; | |
2f4c0a16 | 37399 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37400 | _v = 0; |
37401 | PyErr_Clear(); | |
37402 | } else { | |
37403 | _v = 1; | |
37404 | } | |
37405 | } | |
37406 | if (_v) { | |
37407 | { | |
37408 | void *ptr; | |
2f4c0a16 | 37409 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37410 | _v = 0; |
37411 | PyErr_Clear(); | |
37412 | } else { | |
37413 | _v = 1; | |
37414 | } | |
37415 | } | |
37416 | if (_v) { | |
37417 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
37418 | } | |
37419 | } | |
37420 | } | |
37421 | if (argc == 2) { | |
37422 | int _v; | |
37423 | { | |
37424 | void *ptr; | |
2f4c0a16 | 37425 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37426 | _v = 0; |
37427 | PyErr_Clear(); | |
37428 | } else { | |
37429 | _v = 1; | |
37430 | } | |
37431 | } | |
37432 | if (_v) { | |
37433 | { | |
37434 | void *ptr; | |
2f4c0a16 | 37435 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37436 | _v = 0; |
37437 | PyErr_Clear(); | |
37438 | } else { | |
37439 | _v = 1; | |
37440 | } | |
37441 | } | |
37442 | if (_v) { | |
37443 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
37444 | } | |
37445 | } | |
37446 | } | |
37447 | if (argc == 2) { | |
37448 | int _v; | |
37449 | { | |
37450 | void *ptr; | |
2f4c0a16 | 37451 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37452 | _v = 0; |
37453 | PyErr_Clear(); | |
37454 | } else { | |
37455 | _v = 1; | |
37456 | } | |
37457 | } | |
37458 | if (_v) { | |
2f4c0a16 | 37459 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37460 | if (_v) { |
37461 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
37462 | } | |
37463 | } | |
37464 | } | |
37465 | ||
37466 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
37467 | return NULL; | |
37468 | } | |
37469 | ||
37470 | ||
37471 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37472 | PyObject *resultobj; | |
37473 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37474 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37475 | wxGBSpan *arg3 = 0 ; | |
37476 | bool result; | |
37477 | wxGBSpan temp3 ; | |
37478 | PyObject * obj0 = 0 ; | |
37479 | PyObject * obj1 = 0 ; | |
37480 | PyObject * obj2 = 0 ; | |
37481 | ||
37482 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37487 | { |
37488 | arg3 = &temp3; | |
37489 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37490 | } | |
37491 | { | |
37492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37493 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37494 | ||
37495 | wxPyEndAllowThreads(__tstate); | |
37496 | if (PyErr_Occurred()) SWIG_fail; | |
37497 | } | |
4e760a36 | 37498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37499 | return resultobj; |
37500 | fail: | |
37501 | return NULL; | |
37502 | } | |
37503 | ||
37504 | ||
37505 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37506 | PyObject *resultobj; | |
37507 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37508 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37509 | wxGBSpan *arg3 = 0 ; | |
37510 | bool result; | |
37511 | wxGBSpan temp3 ; | |
37512 | PyObject * obj0 = 0 ; | |
37513 | PyObject * obj1 = 0 ; | |
37514 | PyObject * obj2 = 0 ; | |
37515 | ||
37516 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37519 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37521 | { |
37522 | arg3 = &temp3; | |
37523 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37524 | } | |
37525 | { | |
37526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37527 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37528 | ||
37529 | wxPyEndAllowThreads(__tstate); | |
37530 | if (PyErr_Occurred()) SWIG_fail; | |
37531 | } | |
4e760a36 | 37532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37533 | return resultobj; |
37534 | fail: | |
37535 | return NULL; | |
37536 | } | |
37537 | ||
37538 | ||
37539 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37540 | PyObject *resultobj; | |
37541 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37542 | size_t arg2 ; | |
37543 | wxGBSpan *arg3 = 0 ; | |
37544 | bool result; | |
37545 | wxGBSpan temp3 ; | |
37546 | PyObject * obj0 = 0 ; | |
37547 | PyObject * obj1 = 0 ; | |
37548 | PyObject * obj2 = 0 ; | |
37549 | ||
37550 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37553 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37555 | { |
37556 | arg3 = &temp3; | |
37557 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37558 | } | |
37559 | { | |
37560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37561 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
37562 | ||
37563 | wxPyEndAllowThreads(__tstate); | |
37564 | if (PyErr_Occurred()) SWIG_fail; | |
37565 | } | |
4e760a36 | 37566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37567 | return resultobj; |
37568 | fail: | |
37569 | return NULL; | |
37570 | } | |
37571 | ||
37572 | ||
37573 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
37574 | int argc; | |
37575 | PyObject *argv[4]; | |
37576 | int ii; | |
37577 | ||
37578 | argc = PyObject_Length(args); | |
37579 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37580 | argv[ii] = PyTuple_GetItem(args,ii); | |
37581 | } | |
37582 | if (argc == 3) { | |
37583 | int _v; | |
37584 | { | |
37585 | void *ptr; | |
2f4c0a16 | 37586 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37587 | _v = 0; |
37588 | PyErr_Clear(); | |
37589 | } else { | |
37590 | _v = 1; | |
37591 | } | |
37592 | } | |
37593 | if (_v) { | |
37594 | { | |
37595 | void *ptr; | |
2f4c0a16 | 37596 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37597 | _v = 0; |
37598 | PyErr_Clear(); | |
37599 | } else { | |
37600 | _v = 1; | |
37601 | } | |
37602 | } | |
37603 | if (_v) { | |
37604 | { | |
37605 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37606 | } | |
37607 | if (_v) { | |
37608 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
37609 | } | |
37610 | } | |
37611 | } | |
37612 | } | |
37613 | if (argc == 3) { | |
37614 | int _v; | |
37615 | { | |
37616 | void *ptr; | |
2f4c0a16 | 37617 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37618 | _v = 0; |
37619 | PyErr_Clear(); | |
37620 | } else { | |
37621 | _v = 1; | |
37622 | } | |
37623 | } | |
37624 | if (_v) { | |
37625 | { | |
37626 | void *ptr; | |
2f4c0a16 | 37627 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37628 | _v = 0; |
37629 | PyErr_Clear(); | |
37630 | } else { | |
37631 | _v = 1; | |
37632 | } | |
37633 | } | |
37634 | if (_v) { | |
37635 | { | |
37636 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37637 | } | |
37638 | if (_v) { | |
37639 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
37640 | } | |
37641 | } | |
37642 | } | |
37643 | } | |
37644 | if (argc == 3) { | |
37645 | int _v; | |
37646 | { | |
37647 | void *ptr; | |
2f4c0a16 | 37648 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37649 | _v = 0; |
37650 | PyErr_Clear(); | |
37651 | } else { | |
37652 | _v = 1; | |
37653 | } | |
37654 | } | |
37655 | if (_v) { | |
2f4c0a16 | 37656 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37657 | if (_v) { |
37658 | { | |
37659 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37660 | } | |
37661 | if (_v) { | |
37662 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
37663 | } | |
37664 | } | |
37665 | } | |
37666 | } | |
37667 | ||
37668 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
37669 | return NULL; | |
37670 | } | |
37671 | ||
37672 | ||
37673 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
37674 | PyObject *resultobj; | |
37675 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37676 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37677 | wxGBSizerItem *result; | |
37678 | PyObject * obj0 = 0 ; | |
37679 | PyObject * obj1 = 0 ; | |
37680 | ||
37681 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37686 | { |
37687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37688 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37689 | ||
37690 | wxPyEndAllowThreads(__tstate); | |
37691 | if (PyErr_Occurred()) SWIG_fail; | |
37692 | } | |
2f4c0a16 | 37693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37694 | return resultobj; |
37695 | fail: | |
37696 | return NULL; | |
37697 | } | |
37698 | ||
37699 | ||
37700 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
37701 | PyObject *resultobj; | |
37702 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37703 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37704 | wxGBSizerItem *result; | |
37705 | PyObject * obj0 = 0 ; | |
37706 | PyObject * obj1 = 0 ; | |
37707 | ||
37708 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37713 | { |
37714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37715 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
37716 | ||
37717 | wxPyEndAllowThreads(__tstate); | |
37718 | if (PyErr_Occurred()) SWIG_fail; | |
37719 | } | |
2f4c0a16 | 37720 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37721 | return resultobj; |
37722 | fail: | |
37723 | return NULL; | |
37724 | } | |
37725 | ||
37726 | ||
37727 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
37728 | int argc; | |
37729 | PyObject *argv[3]; | |
37730 | int ii; | |
37731 | ||
37732 | argc = PyObject_Length(args); | |
37733 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37734 | argv[ii] = PyTuple_GetItem(args,ii); | |
37735 | } | |
37736 | if (argc == 2) { | |
37737 | int _v; | |
37738 | { | |
37739 | void *ptr; | |
2f4c0a16 | 37740 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37741 | _v = 0; |
37742 | PyErr_Clear(); | |
37743 | } else { | |
37744 | _v = 1; | |
37745 | } | |
37746 | } | |
37747 | if (_v) { | |
37748 | { | |
37749 | void *ptr; | |
2f4c0a16 | 37750 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37751 | _v = 0; |
37752 | PyErr_Clear(); | |
37753 | } else { | |
37754 | _v = 1; | |
37755 | } | |
37756 | } | |
37757 | if (_v) { | |
37758 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
37759 | } | |
37760 | } | |
37761 | } | |
37762 | if (argc == 2) { | |
37763 | int _v; | |
37764 | { | |
37765 | void *ptr; | |
2f4c0a16 | 37766 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37767 | _v = 0; |
37768 | PyErr_Clear(); | |
37769 | } else { | |
37770 | _v = 1; | |
37771 | } | |
37772 | } | |
37773 | if (_v) { | |
37774 | { | |
37775 | void *ptr; | |
2f4c0a16 | 37776 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37777 | _v = 0; |
37778 | PyErr_Clear(); | |
37779 | } else { | |
37780 | _v = 1; | |
37781 | } | |
37782 | } | |
37783 | if (_v) { | |
37784 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
37785 | } | |
37786 | } | |
37787 | } | |
37788 | ||
37789 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
37790 | return NULL; | |
37791 | } | |
37792 | ||
37793 | ||
37794 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37795 | PyObject *resultobj; | |
37796 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37797 | wxGBPosition *arg2 = 0 ; | |
37798 | wxGBSizerItem *result; | |
37799 | wxGBPosition temp2 ; | |
37800 | PyObject * obj0 = 0 ; | |
37801 | PyObject * obj1 = 0 ; | |
37802 | char *kwnames[] = { | |
37803 | (char *) "self",(char *) "pos", NULL | |
37804 | }; | |
37805 | ||
37806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37809 | { |
37810 | arg2 = &temp2; | |
37811 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37812 | } | |
37813 | { | |
37814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37815 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
37816 | ||
37817 | wxPyEndAllowThreads(__tstate); | |
37818 | if (PyErr_Occurred()) SWIG_fail; | |
37819 | } | |
2f4c0a16 | 37820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37821 | return resultobj; |
37822 | fail: | |
37823 | return NULL; | |
37824 | } | |
37825 | ||
37826 | ||
423f194a RD |
37827 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
37828 | PyObject *resultobj; | |
37829 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37830 | wxPoint *arg2 = 0 ; | |
37831 | wxGBSizerItem *result; | |
37832 | wxPoint temp2 ; | |
37833 | PyObject * obj0 = 0 ; | |
37834 | PyObject * obj1 = 0 ; | |
37835 | char *kwnames[] = { | |
37836 | (char *) "self",(char *) "pt", NULL | |
37837 | }; | |
37838 | ||
37839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
37842 | { |
37843 | arg2 = &temp2; | |
37844 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37845 | } | |
37846 | { | |
37847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37848 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
37849 | ||
37850 | wxPyEndAllowThreads(__tstate); | |
37851 | if (PyErr_Occurred()) SWIG_fail; | |
37852 | } | |
2f4c0a16 | 37853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
423f194a RD |
37854 | return resultobj; |
37855 | fail: | |
37856 | return NULL; | |
37857 | } | |
37858 | ||
37859 | ||
d14a1e28 RD |
37860 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
37861 | PyObject *resultobj; | |
37862 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37863 | wxObject *arg2 = (wxObject *) 0 ; | |
37864 | wxGBSizerItem *result; | |
37865 | PyObject * obj0 = 0 ; | |
37866 | PyObject * obj1 = 0 ; | |
37867 | char *kwnames[] = { | |
37868 | (char *) "self",(char *) "userData", NULL | |
37869 | }; | |
37870 | ||
37871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
37875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37876 | { |
37877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37878 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
37879 | ||
37880 | wxPyEndAllowThreads(__tstate); | |
37881 | if (PyErr_Occurred()) SWIG_fail; | |
37882 | } | |
2f4c0a16 | 37883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
37884 | return resultobj; |
37885 | fail: | |
37886 | return NULL; | |
37887 | } | |
37888 | ||
37889 | ||
37890 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37891 | PyObject *resultobj; | |
37892 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37893 | PyObject * obj0 = 0 ; | |
37894 | char *kwnames[] = { | |
37895 | (char *) "self", NULL | |
37896 | }; | |
37897 | ||
37898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37901 | { |
37902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37903 | (arg1)->RecalcSizes(); | |
37904 | ||
37905 | wxPyEndAllowThreads(__tstate); | |
37906 | if (PyErr_Occurred()) SWIG_fail; | |
37907 | } | |
37908 | Py_INCREF(Py_None); resultobj = Py_None; | |
37909 | return resultobj; | |
37910 | fail: | |
37911 | return NULL; | |
37912 | } | |
37913 | ||
37914 | ||
37915 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37916 | PyObject *resultobj; | |
37917 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37918 | wxSize result; | |
37919 | PyObject * obj0 = 0 ; | |
37920 | char *kwnames[] = { | |
37921 | (char *) "self", NULL | |
37922 | }; | |
37923 | ||
37924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37927 | { |
37928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37929 | result = (arg1)->CalcMin(); | |
37930 | ||
37931 | wxPyEndAllowThreads(__tstate); | |
37932 | if (PyErr_Occurred()) SWIG_fail; | |
37933 | } | |
37934 | { | |
37935 | wxSize * resultptr; | |
37936 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 37937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37938 | } |
37939 | return resultobj; | |
37940 | fail: | |
37941 | return NULL; | |
37942 | } | |
37943 | ||
37944 | ||
37945 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
37946 | PyObject *resultobj; | |
37947 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37948 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37949 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
37950 | bool result; | |
37951 | PyObject * obj0 = 0 ; | |
37952 | PyObject * obj1 = 0 ; | |
37953 | PyObject * obj2 = 0 ; | |
37954 | ||
37955 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 37960 | if (obj2) { |
2f4c0a16 RD |
37961 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
37962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37963 | } |
37964 | { | |
37965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37966 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
37967 | ||
37968 | wxPyEndAllowThreads(__tstate); | |
37969 | if (PyErr_Occurred()) SWIG_fail; | |
37970 | } | |
4e760a36 | 37971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
37972 | return resultobj; |
37973 | fail: | |
37974 | return NULL; | |
37975 | } | |
37976 | ||
37977 | ||
37978 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
37979 | PyObject *resultobj; | |
37980 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37981 | wxGBPosition *arg2 = 0 ; | |
37982 | wxGBSpan *arg3 = 0 ; | |
37983 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
37984 | bool result; | |
37985 | wxGBPosition temp2 ; | |
37986 | wxGBSpan temp3 ; | |
37987 | PyObject * obj0 = 0 ; | |
37988 | PyObject * obj1 = 0 ; | |
37989 | PyObject * obj2 = 0 ; | |
37990 | PyObject * obj3 = 0 ; | |
37991 | ||
37992 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
37993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37995 | { |
37996 | arg2 = &temp2; | |
37997 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37998 | } | |
37999 | { | |
38000 | arg3 = &temp3; | |
38001 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38002 | } | |
38003 | if (obj3) { | |
2f4c0a16 RD |
38004 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38006 | } |
38007 | { | |
38008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38009 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38010 | ||
38011 | wxPyEndAllowThreads(__tstate); | |
38012 | if (PyErr_Occurred()) SWIG_fail; | |
38013 | } | |
4e760a36 | 38014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38015 | return resultobj; |
38016 | fail: | |
38017 | return NULL; | |
38018 | } | |
38019 | ||
38020 | ||
38021 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
38022 | int argc; | |
38023 | PyObject *argv[5]; | |
38024 | int ii; | |
38025 | ||
38026 | argc = PyObject_Length(args); | |
38027 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
38028 | argv[ii] = PyTuple_GetItem(args,ii); | |
38029 | } | |
38030 | if ((argc >= 2) && (argc <= 3)) { | |
38031 | int _v; | |
38032 | { | |
38033 | void *ptr; | |
2f4c0a16 | 38034 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38035 | _v = 0; |
38036 | PyErr_Clear(); | |
38037 | } else { | |
38038 | _v = 1; | |
38039 | } | |
38040 | } | |
38041 | if (_v) { | |
38042 | { | |
38043 | void *ptr; | |
2f4c0a16 | 38044 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38045 | _v = 0; |
38046 | PyErr_Clear(); | |
38047 | } else { | |
38048 | _v = 1; | |
38049 | } | |
38050 | } | |
38051 | if (_v) { | |
38052 | if (argc <= 2) { | |
38053 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38054 | } | |
38055 | { | |
38056 | void *ptr; | |
2f4c0a16 | 38057 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38058 | _v = 0; |
38059 | PyErr_Clear(); | |
38060 | } else { | |
38061 | _v = 1; | |
38062 | } | |
38063 | } | |
38064 | if (_v) { | |
38065 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38066 | } | |
38067 | } | |
38068 | } | |
38069 | } | |
38070 | if ((argc >= 3) && (argc <= 4)) { | |
38071 | int _v; | |
38072 | { | |
38073 | void *ptr; | |
2f4c0a16 | 38074 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38075 | _v = 0; |
38076 | PyErr_Clear(); | |
38077 | } else { | |
38078 | _v = 1; | |
38079 | } | |
38080 | } | |
38081 | if (_v) { | |
38082 | { | |
38083 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38084 | } | |
38085 | if (_v) { | |
38086 | { | |
38087 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38088 | } | |
38089 | if (_v) { | |
38090 | if (argc <= 3) { | |
38091 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38092 | } | |
38093 | { | |
38094 | void *ptr; | |
2f4c0a16 | 38095 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38096 | _v = 0; |
38097 | PyErr_Clear(); | |
38098 | } else { | |
38099 | _v = 1; | |
38100 | } | |
38101 | } | |
38102 | if (_v) { | |
38103 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38104 | } | |
38105 | } | |
38106 | } | |
38107 | } | |
38108 | } | |
38109 | ||
38110 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
38111 | return NULL; | |
38112 | } | |
38113 | ||
38114 | ||
38115 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
38116 | PyObject *obj; | |
38117 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38118 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
38119 | Py_INCREF(obj); | |
38120 | return Py_BuildValue((char *)""); | |
38121 | } | |
38122 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38123 | PyObject *resultobj; | |
38124 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38125 | int arg2 ; | |
38126 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38127 | int arg4 ; | |
38128 | int arg5 = (int) 0 ; | |
38129 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
38130 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38131 | PyObject * obj1 = 0 ; |
d14a1e28 | 38132 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
38133 | PyObject * obj3 = 0 ; |
38134 | PyObject * obj4 = 0 ; | |
38135 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38136 | char *kwnames[] = { |
38137 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
38138 | }; | |
38139 | ||
8edf1c75 | 38140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
38141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38143 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38144 | if (PyErr_Occurred()) SWIG_fail; | |
38145 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38147 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
38148 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38149 | if (obj4) { |
2f4c0a16 RD |
38150 | arg5 = (int) SWIG_AsInt(obj4); |
38151 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
38152 | } |
38153 | if (obj5) { | |
2f4c0a16 RD |
38154 | arg6 = (int) SWIG_AsInt(obj5); |
38155 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38156 | } |
d14a1e28 RD |
38157 | { |
38158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38159 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
38160 | ||
38161 | wxPyEndAllowThreads(__tstate); | |
38162 | if (PyErr_Occurred()) SWIG_fail; | |
38163 | } | |
38164 | Py_INCREF(Py_None); resultobj = Py_None; | |
38165 | return resultobj; | |
38166 | fail: | |
38167 | return NULL; | |
38168 | } | |
38169 | ||
38170 | ||
38171 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38172 | PyObject *resultobj; | |
38173 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38174 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38175 | int arg3 = (int) 0 ; | |
38176 | PyObject * obj0 = 0 ; | |
38177 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38178 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38179 | char *kwnames[] = { |
38180 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38181 | }; | |
38182 | ||
8edf1c75 | 38183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38188 | if (obj2) { |
2f4c0a16 RD |
38189 | arg3 = (int) SWIG_AsInt(obj2); |
38190 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38191 | } |
d14a1e28 RD |
38192 | { |
38193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38194 | (arg1)->LeftOf(arg2,arg3); | |
38195 | ||
38196 | wxPyEndAllowThreads(__tstate); | |
38197 | if (PyErr_Occurred()) SWIG_fail; | |
38198 | } | |
38199 | Py_INCREF(Py_None); resultobj = Py_None; | |
38200 | return resultobj; | |
38201 | fail: | |
38202 | return NULL; | |
38203 | } | |
38204 | ||
38205 | ||
38206 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38207 | PyObject *resultobj; | |
38208 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38210 | int arg3 = (int) 0 ; | |
38211 | PyObject * obj0 = 0 ; | |
38212 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38213 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38214 | char *kwnames[] = { |
38215 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38216 | }; | |
38217 | ||
8edf1c75 | 38218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38223 | if (obj2) { |
2f4c0a16 RD |
38224 | arg3 = (int) SWIG_AsInt(obj2); |
38225 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38226 | } |
d14a1e28 RD |
38227 | { |
38228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38229 | (arg1)->RightOf(arg2,arg3); | |
38230 | ||
38231 | wxPyEndAllowThreads(__tstate); | |
38232 | if (PyErr_Occurred()) SWIG_fail; | |
38233 | } | |
38234 | Py_INCREF(Py_None); resultobj = Py_None; | |
38235 | return resultobj; | |
38236 | fail: | |
38237 | return NULL; | |
38238 | } | |
38239 | ||
38240 | ||
38241 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38242 | PyObject *resultobj; | |
38243 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38244 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38245 | int arg3 = (int) 0 ; | |
38246 | PyObject * obj0 = 0 ; | |
38247 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38248 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38249 | char *kwnames[] = { |
38250 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38251 | }; | |
38252 | ||
8edf1c75 | 38253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38258 | if (obj2) { |
2f4c0a16 RD |
38259 | arg3 = (int) SWIG_AsInt(obj2); |
38260 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38261 | } |
d14a1e28 RD |
38262 | { |
38263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38264 | (arg1)->Above(arg2,arg3); | |
38265 | ||
38266 | wxPyEndAllowThreads(__tstate); | |
38267 | if (PyErr_Occurred()) SWIG_fail; | |
38268 | } | |
38269 | Py_INCREF(Py_None); resultobj = Py_None; | |
38270 | return resultobj; | |
38271 | fail: | |
38272 | return NULL; | |
38273 | } | |
38274 | ||
38275 | ||
38276 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38277 | PyObject *resultobj; | |
38278 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38280 | int arg3 = (int) 0 ; | |
38281 | PyObject * obj0 = 0 ; | |
38282 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38283 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38284 | char *kwnames[] = { |
38285 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38286 | }; | |
38287 | ||
8edf1c75 | 38288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38293 | if (obj2) { |
2f4c0a16 RD |
38294 | arg3 = (int) SWIG_AsInt(obj2); |
38295 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38296 | } |
d14a1e28 RD |
38297 | { |
38298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38299 | (arg1)->Below(arg2,arg3); | |
38300 | ||
38301 | wxPyEndAllowThreads(__tstate); | |
38302 | if (PyErr_Occurred()) SWIG_fail; | |
38303 | } | |
38304 | Py_INCREF(Py_None); resultobj = Py_None; | |
38305 | return resultobj; | |
38306 | fail: | |
38307 | return NULL; | |
38308 | } | |
38309 | ||
38310 | ||
38311 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38312 | PyObject *resultobj; | |
38313 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38314 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38315 | int arg3 ; | |
38316 | int arg4 = (int) 0 ; | |
38317 | PyObject * obj0 = 0 ; | |
38318 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38319 | PyObject * obj2 = 0 ; |
38320 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38321 | char *kwnames[] = { |
38322 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38323 | }; | |
38324 | ||
8edf1c75 | 38325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38330 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38331 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38332 | if (obj3) { |
2f4c0a16 RD |
38333 | arg4 = (int) SWIG_AsInt(obj3); |
38334 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38335 | } |
d14a1e28 RD |
38336 | { |
38337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38338 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38339 | ||
38340 | wxPyEndAllowThreads(__tstate); | |
38341 | if (PyErr_Occurred()) SWIG_fail; | |
38342 | } | |
38343 | Py_INCREF(Py_None); resultobj = Py_None; | |
38344 | return resultobj; | |
38345 | fail: | |
38346 | return NULL; | |
38347 | } | |
38348 | ||
38349 | ||
38350 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38351 | PyObject *resultobj; | |
38352 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38353 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38354 | int arg3 ; | |
38355 | int arg4 ; | |
38356 | PyObject * obj0 = 0 ; | |
38357 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38358 | PyObject * obj2 = 0 ; |
38359 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38360 | char *kwnames[] = { |
38361 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38362 | }; | |
38363 | ||
8edf1c75 | 38364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38369 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38370 | if (PyErr_Occurred()) SWIG_fail; | |
38371 | arg4 = (int) SWIG_AsInt(obj3); | |
38372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38373 | { |
38374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38375 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38376 | ||
38377 | wxPyEndAllowThreads(__tstate); | |
38378 | if (PyErr_Occurred()) SWIG_fail; | |
38379 | } | |
38380 | Py_INCREF(Py_None); resultobj = Py_None; | |
38381 | return resultobj; | |
38382 | fail: | |
38383 | return NULL; | |
38384 | } | |
38385 | ||
38386 | ||
38387 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38388 | PyObject *resultobj; | |
38389 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38390 | int arg2 ; | |
38391 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38393 | char *kwnames[] = { |
38394 | (char *) "self",(char *) "val", NULL | |
38395 | }; | |
38396 | ||
8edf1c75 | 38397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38400 | arg2 = (int) SWIG_AsInt(obj1); | |
38401 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38402 | { |
38403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38404 | (arg1)->Absolute(arg2); | |
38405 | ||
38406 | wxPyEndAllowThreads(__tstate); | |
38407 | if (PyErr_Occurred()) SWIG_fail; | |
38408 | } | |
38409 | Py_INCREF(Py_None); resultobj = Py_None; | |
38410 | return resultobj; | |
38411 | fail: | |
38412 | return NULL; | |
38413 | } | |
38414 | ||
38415 | ||
38416 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38417 | PyObject *resultobj; | |
38418 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38419 | PyObject * obj0 = 0 ; | |
38420 | char *kwnames[] = { | |
38421 | (char *) "self", NULL | |
38422 | }; | |
38423 | ||
38424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38427 | { |
38428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38429 | (arg1)->Unconstrained(); | |
38430 | ||
38431 | wxPyEndAllowThreads(__tstate); | |
38432 | if (PyErr_Occurred()) SWIG_fail; | |
38433 | } | |
38434 | Py_INCREF(Py_None); resultobj = Py_None; | |
38435 | return resultobj; | |
38436 | fail: | |
38437 | return NULL; | |
38438 | } | |
38439 | ||
38440 | ||
38441 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38442 | PyObject *resultobj; | |
38443 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38444 | PyObject * obj0 = 0 ; | |
38445 | char *kwnames[] = { | |
38446 | (char *) "self", NULL | |
38447 | }; | |
38448 | ||
38449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38452 | { |
38453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38454 | (arg1)->AsIs(); | |
38455 | ||
38456 | wxPyEndAllowThreads(__tstate); | |
38457 | if (PyErr_Occurred()) SWIG_fail; | |
38458 | } | |
38459 | Py_INCREF(Py_None); resultobj = Py_None; | |
38460 | return resultobj; | |
38461 | fail: | |
38462 | return NULL; | |
38463 | } | |
38464 | ||
38465 | ||
38466 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38467 | PyObject *resultobj; | |
38468 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38469 | wxWindow *result; | |
38470 | PyObject * obj0 = 0 ; | |
38471 | char *kwnames[] = { | |
38472 | (char *) "self", NULL | |
38473 | }; | |
38474 | ||
38475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38478 | { |
38479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38480 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
38481 | ||
38482 | wxPyEndAllowThreads(__tstate); | |
38483 | if (PyErr_Occurred()) SWIG_fail; | |
38484 | } | |
38485 | { | |
38486 | resultobj = wxPyMake_wxObject(result); | |
38487 | } | |
38488 | return resultobj; | |
38489 | fail: | |
38490 | return NULL; | |
38491 | } | |
38492 | ||
38493 | ||
38494 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38495 | PyObject *resultobj; | |
38496 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38497 | int result; | |
38498 | PyObject * obj0 = 0 ; | |
38499 | char *kwnames[] = { | |
38500 | (char *) "self", NULL | |
38501 | }; | |
38502 | ||
38503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38506 | { |
38507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38508 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
38509 | ||
38510 | wxPyEndAllowThreads(__tstate); | |
38511 | if (PyErr_Occurred()) SWIG_fail; | |
38512 | } | |
2f4c0a16 | 38513 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38514 | return resultobj; |
38515 | fail: | |
38516 | return NULL; | |
38517 | } | |
38518 | ||
38519 | ||
38520 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38521 | PyObject *resultobj; | |
38522 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38523 | int arg2 ; | |
38524 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38526 | char *kwnames[] = { |
38527 | (char *) "self",(char *) "which", NULL | |
38528 | }; | |
38529 | ||
8edf1c75 | 38530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38533 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
38534 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38535 | { |
38536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38537 | (arg1)->SetEdge((wxEdge )arg2); | |
38538 | ||
38539 | wxPyEndAllowThreads(__tstate); | |
38540 | if (PyErr_Occurred()) SWIG_fail; | |
38541 | } | |
38542 | Py_INCREF(Py_None); resultobj = Py_None; | |
38543 | return resultobj; | |
38544 | fail: | |
38545 | return NULL; | |
38546 | } | |
38547 | ||
38548 | ||
38549 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38550 | PyObject *resultobj; | |
38551 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38552 | int arg2 ; | |
38553 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38555 | char *kwnames[] = { |
38556 | (char *) "self",(char *) "v", NULL | |
38557 | }; | |
38558 | ||
8edf1c75 | 38559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38562 | arg2 = (int) SWIG_AsInt(obj1); | |
38563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38564 | { |
38565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38566 | (arg1)->SetValue(arg2); | |
38567 | ||
38568 | wxPyEndAllowThreads(__tstate); | |
38569 | if (PyErr_Occurred()) SWIG_fail; | |
38570 | } | |
38571 | Py_INCREF(Py_None); resultobj = Py_None; | |
38572 | return resultobj; | |
38573 | fail: | |
38574 | return NULL; | |
38575 | } | |
38576 | ||
38577 | ||
38578 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38579 | PyObject *resultobj; | |
38580 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38581 | int result; | |
38582 | PyObject * obj0 = 0 ; | |
38583 | char *kwnames[] = { | |
38584 | (char *) "self", NULL | |
38585 | }; | |
38586 | ||
38587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38590 | { |
38591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38592 | result = (int)(arg1)->GetMargin(); | |
38593 | ||
38594 | wxPyEndAllowThreads(__tstate); | |
38595 | if (PyErr_Occurred()) SWIG_fail; | |
38596 | } | |
2f4c0a16 | 38597 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38598 | return resultobj; |
38599 | fail: | |
38600 | return NULL; | |
38601 | } | |
38602 | ||
38603 | ||
38604 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38605 | PyObject *resultobj; | |
38606 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38607 | int arg2 ; | |
38608 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38610 | char *kwnames[] = { |
38611 | (char *) "self",(char *) "m", NULL | |
38612 | }; | |
38613 | ||
8edf1c75 | 38614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38617 | arg2 = (int) SWIG_AsInt(obj1); | |
38618 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38619 | { |
38620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38621 | (arg1)->SetMargin(arg2); | |
38622 | ||
38623 | wxPyEndAllowThreads(__tstate); | |
38624 | if (PyErr_Occurred()) SWIG_fail; | |
38625 | } | |
38626 | Py_INCREF(Py_None); resultobj = Py_None; | |
38627 | return resultobj; | |
38628 | fail: | |
38629 | return NULL; | |
38630 | } | |
38631 | ||
38632 | ||
38633 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38634 | PyObject *resultobj; | |
38635 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38636 | int result; | |
38637 | PyObject * obj0 = 0 ; | |
38638 | char *kwnames[] = { | |
38639 | (char *) "self", NULL | |
38640 | }; | |
38641 | ||
38642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38645 | { |
38646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38647 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
38648 | ||
38649 | wxPyEndAllowThreads(__tstate); | |
38650 | if (PyErr_Occurred()) SWIG_fail; | |
38651 | } | |
2f4c0a16 | 38652 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38653 | return resultobj; |
38654 | fail: | |
38655 | return NULL; | |
38656 | } | |
38657 | ||
38658 | ||
38659 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38660 | PyObject *resultobj; | |
38661 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38662 | int result; | |
38663 | PyObject * obj0 = 0 ; | |
38664 | char *kwnames[] = { | |
38665 | (char *) "self", NULL | |
38666 | }; | |
38667 | ||
38668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38671 | { |
38672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38673 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
38674 | ||
38675 | wxPyEndAllowThreads(__tstate); | |
38676 | if (PyErr_Occurred()) SWIG_fail; | |
38677 | } | |
2f4c0a16 | 38678 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38679 | return resultobj; |
38680 | fail: | |
38681 | return NULL; | |
38682 | } | |
38683 | ||
38684 | ||
38685 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38686 | PyObject *resultobj; | |
38687 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38688 | int result; | |
38689 | PyObject * obj0 = 0 ; | |
38690 | char *kwnames[] = { | |
38691 | (char *) "self", NULL | |
38692 | }; | |
38693 | ||
38694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38697 | { |
38698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38699 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
38700 | ||
38701 | wxPyEndAllowThreads(__tstate); | |
38702 | if (PyErr_Occurred()) SWIG_fail; | |
38703 | } | |
2f4c0a16 | 38704 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38705 | return resultobj; |
38706 | fail: | |
38707 | return NULL; | |
38708 | } | |
38709 | ||
38710 | ||
38711 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38712 | PyObject *resultobj; | |
38713 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38714 | bool result; | |
38715 | PyObject * obj0 = 0 ; | |
38716 | char *kwnames[] = { | |
38717 | (char *) "self", NULL | |
38718 | }; | |
38719 | ||
38720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38723 | { |
38724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38725 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
38726 | ||
38727 | wxPyEndAllowThreads(__tstate); | |
38728 | if (PyErr_Occurred()) SWIG_fail; | |
38729 | } | |
4e760a36 | 38730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38731 | return resultobj; |
38732 | fail: | |
38733 | return NULL; | |
38734 | } | |
38735 | ||
38736 | ||
38737 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38738 | PyObject *resultobj; | |
38739 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38740 | bool arg2 ; | |
38741 | PyObject * obj0 = 0 ; | |
38742 | PyObject * obj1 = 0 ; | |
38743 | char *kwnames[] = { | |
38744 | (char *) "self",(char *) "d", NULL | |
38745 | }; | |
38746 | ||
38747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38750 | arg2 = (bool) SWIG_AsBool(obj1); | |
38751 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38752 | { |
38753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38754 | (arg1)->SetDone(arg2); | |
38755 | ||
38756 | wxPyEndAllowThreads(__tstate); | |
38757 | if (PyErr_Occurred()) SWIG_fail; | |
38758 | } | |
38759 | Py_INCREF(Py_None); resultobj = Py_None; | |
38760 | return resultobj; | |
38761 | fail: | |
38762 | return NULL; | |
38763 | } | |
38764 | ||
38765 | ||
38766 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38767 | PyObject *resultobj; | |
38768 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38769 | int result; | |
38770 | PyObject * obj0 = 0 ; | |
38771 | char *kwnames[] = { | |
38772 | (char *) "self", NULL | |
38773 | }; | |
38774 | ||
38775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38778 | { |
38779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38780 | result = (int)(arg1)->GetRelationship(); | |
38781 | ||
38782 | wxPyEndAllowThreads(__tstate); | |
38783 | if (PyErr_Occurred()) SWIG_fail; | |
38784 | } | |
2f4c0a16 | 38785 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38786 | return resultobj; |
38787 | fail: | |
38788 | return NULL; | |
38789 | } | |
38790 | ||
38791 | ||
38792 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38793 | PyObject *resultobj; | |
38794 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38795 | int arg2 ; | |
38796 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38798 | char *kwnames[] = { |
38799 | (char *) "self",(char *) "r", NULL | |
38800 | }; | |
38801 | ||
8edf1c75 | 38802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38805 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38807 | { |
38808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38809 | (arg1)->SetRelationship((wxRelationship )arg2); | |
38810 | ||
38811 | wxPyEndAllowThreads(__tstate); | |
38812 | if (PyErr_Occurred()) SWIG_fail; | |
38813 | } | |
38814 | Py_INCREF(Py_None); resultobj = Py_None; | |
38815 | return resultobj; | |
38816 | fail: | |
38817 | return NULL; | |
38818 | } | |
38819 | ||
38820 | ||
38821 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38822 | PyObject *resultobj; | |
38823 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38824 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38825 | bool result; | |
38826 | PyObject * obj0 = 0 ; | |
38827 | PyObject * obj1 = 0 ; | |
38828 | char *kwnames[] = { | |
38829 | (char *) "self",(char *) "otherW", NULL | |
38830 | }; | |
38831 | ||
38832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38837 | { |
38838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38839 | result = (bool)(arg1)->ResetIfWin(arg2); | |
38840 | ||
38841 | wxPyEndAllowThreads(__tstate); | |
38842 | if (PyErr_Occurred()) SWIG_fail; | |
38843 | } | |
4e760a36 | 38844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38845 | return resultobj; |
38846 | fail: | |
38847 | return NULL; | |
38848 | } | |
38849 | ||
38850 | ||
38851 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38852 | PyObject *resultobj; | |
38853 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38854 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
38855 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38856 | bool result; | |
38857 | PyObject * obj0 = 0 ; | |
38858 | PyObject * obj1 = 0 ; | |
38859 | PyObject * obj2 = 0 ; | |
38860 | char *kwnames[] = { | |
38861 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
38862 | }; | |
38863 | ||
38864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
38868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38869 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38871 | { |
38872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38873 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
38874 | ||
38875 | wxPyEndAllowThreads(__tstate); | |
38876 | if (PyErr_Occurred()) SWIG_fail; | |
38877 | } | |
4e760a36 | 38878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
38879 | return resultobj; |
38880 | fail: | |
38881 | return NULL; | |
38882 | } | |
38883 | ||
38884 | ||
38885 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38886 | PyObject *resultobj; | |
38887 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38888 | int arg2 ; | |
38889 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38890 | wxWindow *arg4 = (wxWindow *) 0 ; | |
38891 | int result; | |
38892 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38893 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38894 | PyObject * obj2 = 0 ; |
38895 | PyObject * obj3 = 0 ; | |
38896 | char *kwnames[] = { | |
38897 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
38898 | }; | |
38899 | ||
8edf1c75 | 38900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38903 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
38904 | if (PyErr_Occurred()) SWIG_fail; | |
38905 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38907 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
38908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38909 | { |
38910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38911 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
38912 | ||
38913 | wxPyEndAllowThreads(__tstate); | |
38914 | if (PyErr_Occurred()) SWIG_fail; | |
38915 | } | |
2f4c0a16 | 38916 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
38917 | return resultobj; |
38918 | fail: | |
38919 | return NULL; | |
38920 | } | |
38921 | ||
38922 | ||
38923 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
38924 | PyObject *obj; | |
38925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38926 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
38927 | Py_INCREF(obj); | |
38928 | return Py_BuildValue((char *)""); | |
38929 | } | |
38930 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38931 | PyObject *resultobj; | |
38932 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38933 | wxIndividualLayoutConstraint *result; | |
38934 | PyObject * obj0 = 0 ; | |
38935 | char *kwnames[] = { | |
38936 | (char *) "self", NULL | |
38937 | }; | |
38938 | ||
38939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38942 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
38943 | ||
2f4c0a16 | 38944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38945 | return resultobj; |
38946 | fail: | |
38947 | return NULL; | |
38948 | } | |
38949 | ||
38950 | ||
38951 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38952 | PyObject *resultobj; | |
38953 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38954 | wxIndividualLayoutConstraint *result; | |
38955 | PyObject * obj0 = 0 ; | |
38956 | char *kwnames[] = { | |
38957 | (char *) "self", NULL | |
38958 | }; | |
38959 | ||
38960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38963 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
38964 | ||
2f4c0a16 | 38965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38966 | return resultobj; |
38967 | fail: | |
38968 | return NULL; | |
38969 | } | |
38970 | ||
38971 | ||
38972 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38973 | PyObject *resultobj; | |
38974 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38975 | wxIndividualLayoutConstraint *result; | |
38976 | PyObject * obj0 = 0 ; | |
38977 | char *kwnames[] = { | |
38978 | (char *) "self", NULL | |
38979 | }; | |
38980 | ||
38981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
38983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38984 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
38985 | ||
2f4c0a16 | 38986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
38987 | return resultobj; |
38988 | fail: | |
38989 | return NULL; | |
38990 | } | |
38991 | ||
38992 | ||
38993 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38994 | PyObject *resultobj; | |
38995 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
38996 | wxIndividualLayoutConstraint *result; | |
38997 | PyObject * obj0 = 0 ; | |
38998 | char *kwnames[] = { | |
38999 | (char *) "self", NULL | |
39000 | }; | |
39001 | ||
39002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39005 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39006 | ||
2f4c0a16 | 39007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39008 | return resultobj; |
39009 | fail: | |
39010 | return NULL; | |
39011 | } | |
39012 | ||
39013 | ||
39014 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39015 | PyObject *resultobj; | |
39016 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39017 | wxIndividualLayoutConstraint *result; | |
39018 | PyObject * obj0 = 0 ; | |
39019 | char *kwnames[] = { | |
39020 | (char *) "self", NULL | |
39021 | }; | |
39022 | ||
39023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39026 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39027 | ||
2f4c0a16 | 39028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39029 | return resultobj; |
39030 | fail: | |
39031 | return NULL; | |
39032 | } | |
39033 | ||
39034 | ||
39035 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39036 | PyObject *resultobj; | |
39037 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39038 | wxIndividualLayoutConstraint *result; | |
39039 | PyObject * obj0 = 0 ; | |
39040 | char *kwnames[] = { | |
39041 | (char *) "self", NULL | |
39042 | }; | |
39043 | ||
39044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39047 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39048 | ||
2f4c0a16 | 39049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39050 | return resultobj; |
39051 | fail: | |
39052 | return NULL; | |
39053 | } | |
39054 | ||
39055 | ||
39056 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39057 | PyObject *resultobj; | |
39058 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39059 | wxIndividualLayoutConstraint *result; | |
39060 | PyObject * obj0 = 0 ; | |
39061 | char *kwnames[] = { | |
39062 | (char *) "self", NULL | |
39063 | }; | |
39064 | ||
39065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39068 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39069 | ||
2f4c0a16 | 39070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39071 | return resultobj; |
39072 | fail: | |
39073 | return NULL; | |
39074 | } | |
39075 | ||
39076 | ||
39077 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39078 | PyObject *resultobj; | |
39079 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39080 | wxIndividualLayoutConstraint *result; | |
39081 | PyObject * obj0 = 0 ; | |
39082 | char *kwnames[] = { | |
39083 | (char *) "self", NULL | |
39084 | }; | |
39085 | ||
39086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39089 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39090 | ||
2f4c0a16 | 39091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39092 | return resultobj; |
39093 | fail: | |
39094 | return NULL; | |
39095 | } | |
39096 | ||
39097 | ||
39098 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39099 | PyObject *resultobj; | |
39100 | wxLayoutConstraints *result; | |
39101 | char *kwnames[] = { | |
39102 | NULL | |
39103 | }; | |
39104 | ||
39105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39106 | { | |
39107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39108 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
39109 | ||
39110 | wxPyEndAllowThreads(__tstate); | |
39111 | if (PyErr_Occurred()) SWIG_fail; | |
39112 | } | |
2f4c0a16 | 39113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
39114 | return resultobj; |
39115 | fail: | |
39116 | return NULL; | |
39117 | } | |
39118 | ||
39119 | ||
39120 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39121 | PyObject *resultobj; | |
39122 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39123 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39124 | int *arg3 = (int *) 0 ; | |
39125 | bool result; | |
39126 | int temp3 ; | |
39127 | PyObject * obj0 = 0 ; | |
39128 | PyObject * obj1 = 0 ; | |
39129 | char *kwnames[] = { | |
39130 | (char *) "self",(char *) "win", NULL | |
39131 | }; | |
39132 | ||
39133 | arg3 = &temp3; | |
39134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39139 | { |
39140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39141 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
39142 | ||
39143 | wxPyEndAllowThreads(__tstate); | |
39144 | if (PyErr_Occurred()) SWIG_fail; | |
39145 | } | |
4e760a36 | 39146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
39147 | { |
39148 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
39149 | resultobj = t_output_helper(resultobj,o); | |
39150 | } | |
39151 | return resultobj; | |
39152 | fail: | |
39153 | return NULL; | |
39154 | } | |
39155 | ||
39156 | ||
39157 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39158 | PyObject *resultobj; | |
39159 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39160 | bool result; | |
39161 | PyObject * obj0 = 0 ; | |
39162 | char *kwnames[] = { | |
39163 | (char *) "self", NULL | |
39164 | }; | |
39165 | ||
39166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39169 | { |
39170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39171 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
39172 | ||
39173 | wxPyEndAllowThreads(__tstate); | |
39174 | if (PyErr_Occurred()) SWIG_fail; | |
39175 | } | |
4e760a36 | 39176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
39177 | return resultobj; |
39178 | fail: | |
39179 | return NULL; | |
39180 | } | |
39181 | ||
39182 | ||
39183 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
39184 | PyObject *obj; | |
39185 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39186 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
39187 | Py_INCREF(obj); | |
39188 | return Py_BuildValue((char *)""); | |
39189 | } | |
39190 | static PyMethodDef SwigMethods[] = { | |
39191 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 39192 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
39193 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
39194 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39195 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
39196 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39197 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39198 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39199 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39200 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
39201 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
39202 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39203 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39204 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
39205 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39206 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
39207 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
39208 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
39209 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39210 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39211 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39212 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39213 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39214 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
39215 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39216 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39217 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39218 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39219 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
39220 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39221 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
39222 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
39223 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
39224 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39225 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 39226 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39227 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
39228 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39229 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39230 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39231 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39232 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
39233 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
39234 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39235 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39236 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
39237 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39238 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39239 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39240 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39241 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39242 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
39243 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39244 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
39245 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
39246 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39247 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39248 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
39249 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39250 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
39251 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39252 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39253 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39254 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39255 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39256 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39257 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39258 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
39259 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
39260 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
39261 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
39262 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39263 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
39264 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
39265 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39266 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
39267 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
39268 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
39269 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
39270 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39271 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
39272 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
39273 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
39274 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
39275 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
39276 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
39277 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39278 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39279 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39280 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
39281 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
39282 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
39283 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39284 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39285 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39286 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39287 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39288 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39289 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39290 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39291 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39292 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39293 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
39294 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
39295 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
39296 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
39297 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
39298 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
39299 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
39300 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39301 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39302 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39303 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39304 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
39305 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
39306 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
39307 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
39308 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
39309 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39310 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39311 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
39312 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
39313 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39314 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39315 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
39316 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39317 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39318 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39319 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39320 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39321 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39322 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39323 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39324 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39325 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39326 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39327 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39328 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39329 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39330 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39331 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39332 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39333 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39334 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39335 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39336 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39337 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39338 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39339 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39340 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39341 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39342 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39343 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39344 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39345 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39346 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39347 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39348 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39349 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39350 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39351 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39352 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39353 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39354 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39355 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39356 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39357 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39358 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39359 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39360 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39361 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39362 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39363 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39364 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39365 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39366 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39367 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39368 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39369 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39370 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39371 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39372 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39373 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39374 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39375 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39376 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39377 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39378 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39379 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39380 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39381 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39382 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39383 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39384 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39385 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39386 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39387 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39388 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39389 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39390 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39391 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39392 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39393 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39394 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39395 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39396 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39397 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39398 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39399 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39400 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39401 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39402 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39403 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39404 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39405 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39406 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39407 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39408 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39409 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39410 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39411 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39412 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39413 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
39414 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
39415 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39416 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39417 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39418 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39419 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39420 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39421 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39422 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39423 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39424 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39425 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39426 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39427 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39428 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39429 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39430 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39431 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39432 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39433 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39434 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39435 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39436 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39437 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39438 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39439 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39440 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39441 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39442 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39443 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
39444 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39445 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39446 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39447 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39448 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39449 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39450 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39451 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39452 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39453 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39454 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
39455 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
39456 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
39457 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
39458 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
39459 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
39460 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
39461 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
39462 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
39463 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
39464 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
39465 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
39466 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39467 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
39468 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
39469 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
39470 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
39471 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39472 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39473 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
39474 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
39475 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
39476 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39477 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39478 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
39479 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39480 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
39481 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
39482 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
39483 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
39484 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
39485 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
39486 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
39487 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
39488 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39489 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
39490 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39491 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
39492 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
39493 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
39494 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
39495 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
39496 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39497 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
39498 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
39499 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
39500 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
39501 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
39502 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
39503 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39504 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39505 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
39506 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
39507 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39508 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39509 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
39510 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
39511 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39512 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
39513 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
39514 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
39515 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
39516 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
39517 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
39518 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39519 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
39520 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39521 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
39522 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39523 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
39524 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39525 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39526 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39527 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
39528 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
39529 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
39530 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
39531 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
39532 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39533 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
39534 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39535 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
39536 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
39537 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39538 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
39539 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
39540 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39541 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
39542 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
39543 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
39544 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
39545 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
39546 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39547 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
39548 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
39549 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
39550 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
39551 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
39552 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39553 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39554 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
39555 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
39556 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
39557 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
39558 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39559 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39560 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39561 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39562 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
39563 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
39564 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39565 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39566 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
39567 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39568 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
39569 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39570 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
39571 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
39572 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
39573 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
39574 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
39575 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39576 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
39577 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39578 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39579 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39580 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39581 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
39582 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
39583 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
39584 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
39585 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
39586 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
39587 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
39588 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
39589 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
39590 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39591 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39592 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
39593 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
39594 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
39595 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
39596 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
39597 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39598 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39599 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
39600 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39601 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39602 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
39603 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
39604 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
39605 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
39606 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39607 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39608 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39609 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39610 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39611 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39612 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39613 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39614 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39615 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39616 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39617 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39618 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39619 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39620 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39621 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39622 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39623 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39624 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
39625 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
39626 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
39627 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
39628 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
39629 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
39630 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
39631 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
39632 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39633 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39634 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39635 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
39636 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
39637 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
39638 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39639 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
39640 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
39641 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
39642 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
39643 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
39644 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39645 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
39646 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39647 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
39648 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39649 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39650 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39651 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39652 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39653 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39654 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39655 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39656 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39657 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39658 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39659 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39660 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39661 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39662 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39663 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39664 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
39665 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
39666 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39667 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39668 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
39669 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
39670 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
39671 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
39672 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
39673 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39674 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39675 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39676 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39677 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39678 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
39679 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
39680 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39681 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39682 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
39683 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
39684 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39685 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39686 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39687 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39688 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
39689 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
39690 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
39691 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
39692 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
39693 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39694 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
39695 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
39696 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
39697 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39698 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
39699 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
39700 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39701 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39702 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39703 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
39704 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
39705 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39706 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
39707 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39708 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
39709 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
39710 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
39711 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
39712 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39713 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
39714 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
39715 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
39716 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
39717 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
39718 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39719 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
39720 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
39721 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39722 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
39723 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
39724 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
39725 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
39726 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
39727 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
39728 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
39729 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39730 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
39731 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
39732 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
39733 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
39734 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39735 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
39736 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
39737 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
39738 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
39739 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39740 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39741 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
39742 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
39744 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39749 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
39750 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
39751 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39753 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
39755 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39756 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
39757 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39758 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39759 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
39760 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39761 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
39762 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
39763 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39764 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
39765 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
39766 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
39767 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39768 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
39769 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
39770 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39771 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39772 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
39773 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39774 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
39775 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39776 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
39777 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
39778 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
39779 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
39781 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
39783 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
39784 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
39785 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
39788 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
39791 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
39792 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
39793 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
39795 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39796 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39799 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
39800 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39801 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
39802 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
39805 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39806 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39808 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39809 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
39810 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39813 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
39814 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39825 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
39826 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
39828 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39829 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
39830 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39834 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 39835 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39836 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
39837 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
39842 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39843 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39844 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
39849 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
39851 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
39852 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
39855 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
39856 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
39857 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
39858 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
39862 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
39863 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
39864 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
39865 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
39866 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
39870 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39871 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
39872 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39876 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
39878 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
39882 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39884 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
39885 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
39886 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
39887 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
39890 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
39892 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39893 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39898 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39899 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39900 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39901 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
39902 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39903 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
39905 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39910 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
39913 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
39915 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
39916 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
39921 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
39922 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
39923 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
39924 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39927 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
39929 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
39931 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39935 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39937 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
39938 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
39941 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39944 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
39945 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
39947 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39951 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
39955 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
39958 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
39959 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39964 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39965 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
39966 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39967 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
39970 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
39976 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
39993 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40001 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40013 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40014 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 40015 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40016 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40017 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40024 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40025 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40026 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40027 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40028 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40030 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40031 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40032 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40034 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40036 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40038 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40040 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40042 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40044 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40046 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40047 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40048 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40050 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40051 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40052 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
40054 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40056 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40066 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40068 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40070 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40071 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
40073 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40076 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40082 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40084 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
40099 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40104 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40105 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40108 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40109 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40110 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40111 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
40118 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
40119 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40120 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40121 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40122 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40123 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
40124 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40125 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
40126 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
40128 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
40130 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40138 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40139 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
40140 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40151 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
40153 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40156 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40157 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40160 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40161 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40162 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40167 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40173 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
40174 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
40196 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
40203 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40219 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
40220 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
40221 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40223 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
40233 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
40237 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40239 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40243 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40246 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40247 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40248 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40254 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
40256 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40260 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40267 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40270 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40271 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40274 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40276 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40282 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
40285 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
40288 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
40294 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
40299 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40302 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
40311 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40312 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40320 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40322 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40323 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40324 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40325 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40328 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40330 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40331 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40332 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40333 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40334 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40335 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40342 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40343 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40344 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40345 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
40354 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40358 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40364 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40365 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40366 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40367 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40368 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 40369 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40370 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
40371 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
40374 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
40375 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40379 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40385 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40399 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40402 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40407 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40408 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40414 | { NULL, NULL } | |
40415 | }; | |
40416 | ||
40417 | ||
40418 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40419 | ||
40420 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40421 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40422 | } | |
40423 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40424 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40425 | } | |
40426 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40427 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40428 | } | |
40429 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40430 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40431 | } | |
40432 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40433 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40434 | } | |
40435 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40436 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40437 | } | |
40438 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40439 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40440 | } | |
40441 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40442 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40443 | } | |
40444 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40445 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40446 | } | |
40447 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40448 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40449 | } | |
40450 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40451 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
40452 | } | |
40453 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
40454 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
40455 | } | |
40456 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
40457 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
40458 | } | |
40459 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
40460 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
40461 | } | |
40462 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
40463 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
40464 | } | |
40465 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
40466 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
40467 | } | |
40468 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
40469 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
40470 | } | |
40471 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
40472 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40473 | } | |
40474 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
40475 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
40476 | } | |
40477 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
40478 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40479 | } | |
40480 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
40481 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40482 | } | |
40483 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
40484 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
40485 | } | |
40486 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
40487 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
40488 | } | |
40489 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
40490 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
40491 | } | |
40492 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
40493 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
40494 | } | |
40495 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
40496 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
40497 | } | |
40498 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
40499 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
40500 | } | |
40501 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
40502 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
40503 | } | |
40504 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
40505 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40506 | } | |
40507 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
40508 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40509 | } | |
40510 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
40511 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40512 | } | |
40513 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
40514 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40515 | } | |
40516 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
40517 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40518 | } | |
40519 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
40520 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
40521 | } | |
40522 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
40523 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
40524 | } | |
40525 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
40526 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40527 | } | |
40528 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
40529 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
40530 | } | |
40531 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
40532 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
40533 | } | |
40534 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
40535 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40536 | } | |
40537 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
40538 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40539 | } | |
40540 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
40541 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40542 | } | |
40543 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
40544 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
40545 | } | |
40546 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
40547 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
40548 | } | |
40549 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
40550 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40551 | } | |
40552 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
40553 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40554 | } | |
40555 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
40556 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40557 | } | |
40558 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
40559 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
40560 | } | |
40561 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
40562 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
40563 | } | |
40564 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
40565 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
40566 | } | |
40567 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
40568 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
40569 | } | |
40570 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
40571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40572 | } | |
40573 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
40574 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
40575 | } | |
40576 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
40577 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
40578 | } | |
40579 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
40580 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
40581 | } | |
40582 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
40583 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
40584 | } | |
40585 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
40586 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
40587 | } | |
40588 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
40589 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
40590 | } | |
40591 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
40592 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
40593 | } | |
40594 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
40595 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
40596 | } | |
40597 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
40598 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
40599 | } | |
40600 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
40601 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
40602 | } | |
40603 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
40604 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40605 | } | |
40606 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
40607 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
40608 | } | |
40609 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
40610 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
40611 | } | |
40612 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
40613 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40614 | } | |
40615 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
40616 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40617 | } | |
40618 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
40619 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
40620 | } | |
40621 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
40622 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
40623 | } | |
40624 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
40625 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
40626 | } | |
40627 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
40628 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
40629 | } | |
40630 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
40631 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
40632 | } | |
40633 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
40634 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
40635 | } | |
40636 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
40637 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
40638 | } | |
40639 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
40640 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
40641 | } | |
40642 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40643 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
40644 | } | |
40645 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40646 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
40647 | } | |
40648 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
40649 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
40650 | } | |
40651 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40652 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40653 | } | |
40654 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40655 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40656 | } | |
40657 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
40658 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40659 | } | |
40660 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40661 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40662 | } | |
40663 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40664 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40665 | } | |
40666 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40667 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40668 | } | |
40669 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40670 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40671 | } | |
40672 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
40673 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40674 | } | |
40675 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40677 | } | |
40678 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
40679 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40680 | } | |
40681 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40682 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40683 | } | |
40684 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40685 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40686 | } | |
40687 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40688 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40689 | } | |
40690 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40691 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40692 | } | |
40693 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40694 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40695 | } | |
40696 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
40697 | return (void *)((wxObject *) ((wxImage *) x)); | |
40698 | } | |
40699 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
40700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40701 | } | |
40702 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40703 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40704 | } | |
40705 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40706 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40707 | } | |
40708 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40709 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40710 | } | |
40711 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40713 | } | |
41f1cec7 RD |
40714 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40715 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40716 | } | |
d14a1e28 RD |
40717 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
40718 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40719 | } | |
40720 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40721 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40722 | } | |
40723 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40724 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40725 | } | |
40726 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
40727 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40728 | } | |
40729 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40730 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40731 | } | |
40732 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40733 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40734 | } | |
40735 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40736 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40737 | } | |
40738 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40739 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40740 | } | |
40741 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40742 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40743 | } | |
40744 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40745 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40746 | } | |
40747 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40748 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40749 | } | |
40750 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40751 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40752 | } | |
40753 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40755 | } | |
40756 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
40757 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40758 | } | |
40759 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40760 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40761 | } | |
40762 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40763 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40764 | } | |
40765 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40766 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40767 | } | |
40768 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40769 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40770 | } | |
40771 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40772 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40773 | } | |
40774 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40775 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40776 | } | |
40777 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40778 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40779 | } | |
40780 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40781 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40782 | } | |
40783 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40784 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40785 | } | |
40786 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40787 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40788 | } | |
40789 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40790 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40791 | } | |
40792 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40793 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40794 | } | |
40795 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40796 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40797 | } | |
40798 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
40799 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40800 | } | |
40801 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40802 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40803 | } | |
40804 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40805 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40806 | } | |
40807 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40808 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40809 | } | |
40810 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40811 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40812 | } | |
40813 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40814 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40815 | } | |
40816 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40817 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40818 | } | |
40819 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
40820 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40821 | } | |
40822 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40823 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40824 | } | |
40825 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40826 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40827 | } | |
40828 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40829 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40830 | } | |
40831 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
40832 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40833 | } | |
40834 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
40835 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40836 | } | |
40837 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
40838 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40839 | } | |
40840 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40841 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40842 | } | |
40843 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40844 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40845 | } | |
40846 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40847 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40848 | } | |
40849 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40850 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40851 | } | |
40852 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40853 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40854 | } | |
40855 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
40856 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40857 | } | |
40858 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40859 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40860 | } | |
40861 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40862 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40863 | } | |
40864 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40865 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40866 | } | |
40867 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40868 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40869 | } | |
40870 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40871 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40872 | } | |
40873 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40874 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40875 | } | |
40876 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40877 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40878 | } | |
40879 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
40880 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40881 | } | |
40882 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
40883 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
40884 | } | |
40885 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
40886 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40887 | } | |
40888 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
40889 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40890 | } | |
40891 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
40892 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40893 | } | |
40894 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
40895 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40896 | } | |
40897 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
40898 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40899 | } | |
40900 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
40901 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40902 | } | |
40903 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
40904 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
40905 | } | |
2f4c0a16 RD |
40906 | 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}}; |
40907 | 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}}; | |
40908 | 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}}; | |
40909 | 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}}; | |
40910 | 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}}; | |
40911 | 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}}; | |
40912 | 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}}; | |
40913 | 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}}; | |
40914 | 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}}; | |
40915 | 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}}; | |
40916 | 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}}; | |
40917 | 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}}; | |
40918 | 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}}; | |
40919 | 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}}; | |
40920 | 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}}; | |
40921 | 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}}; | |
40922 | 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}}; | |
40923 | 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}}; | |
40924 | 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}}; | |
40925 | 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}}; | |
40926 | 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}}; | |
40927 | 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}}; | |
40928 | 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}}; | |
40929 | 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}}; | |
40930 | 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}}; | |
40931 | 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}}; | |
40932 | 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}}; | |
40933 | 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}}; | |
40934 | 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}}; | |
40935 | 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}}; | |
40936 | 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}}; | |
40937 | 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}}; | |
40938 | 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}}; | |
40939 | 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}}; | |
40940 | 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}}; | |
40941 | 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}}; | |
40942 | 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}}; | |
40943 | 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}}; | |
40944 | 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}}; | |
40945 | 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}}; | |
40946 | 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}}; | |
40947 | 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}}; | |
40948 | 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}}; | |
40949 | 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}}; | |
40950 | 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}}; | |
40951 | 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}}; | |
40952 | 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}}; | |
40953 | 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}}; | |
40954 | 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}}; | |
40955 | 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}}; | |
40956 | 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}}; | |
40957 | 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}}; | |
40958 | 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}}; | |
40959 | 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}}; | |
40960 | 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}}; | |
40961 | 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}}; | |
40962 | 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}}; | |
40963 | 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}}; | |
40964 | 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}}; | |
40965 | 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}}; | |
40966 | 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}}; | |
40967 | 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}}; | |
40968 | 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}}; | |
40969 | 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}}; | |
40970 | 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}}; | |
40971 | 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}}; | |
40972 | 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}}; | |
40973 | 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}}; | |
40974 | 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}}; | |
40975 | 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}}; | |
40976 | 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}}; | |
40977 | 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}}; | |
40978 | 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}}; | |
40979 | 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}}; | |
40980 | 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}}; | |
40981 | 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}}; | |
40982 | 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}}; | |
40983 | 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}}; | |
40984 | 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}}; | |
40985 | 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}}; | |
40986 | 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}}; | |
40987 | 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}}; | |
40988 | 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}}; | |
40989 | 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}}; | |
40990 | 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}}; | |
40991 | 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}}; | |
40992 | 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}}; | |
40993 | 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}}; | |
40994 | 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}}; | |
40995 | 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}}; | |
40996 | 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}}; | |
40997 | 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}}; | |
40998 | 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}}; | |
40999 | 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}}; | |
41000 | 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}}; | |
41001 | 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}}; | |
41002 | 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}}; | |
41003 | 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}}; | |
41004 | 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}}; | |
41005 | 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}}; | |
41006 | 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}}; | |
41007 | 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}}; | |
41008 | 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}}; | |
41009 | 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}}; | |
41010 | 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}}; | |
41011 | 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}}; | |
41012 | 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}}; | |
41013 | 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}}; | |
41014 | 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}}; | |
41015 | 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}}; | |
41016 | 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}}; | |
41017 | 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}}; | |
41018 | 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}}; | |
41019 | 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 |
41020 | |
41021 | static swig_type_info *swig_types_initial[] = { | |
41022 | _swigt__p_wxLayoutConstraints, | |
41023 | _swigt__p_wxRealPoint, | |
41024 | _swigt__p_wxSizerItem, | |
41025 | _swigt__p_wxGBSizerItem, | |
41026 | _swigt__p_wxScrollEvent, | |
41027 | _swigt__p_wxIndividualLayoutConstraint, | |
41028 | _swigt__p_wxSizer, | |
41029 | _swigt__p_wxBoxSizer, | |
41030 | _swigt__p_wxStaticBoxSizer, | |
41031 | _swigt__p_wxGridBagSizer, | |
41032 | _swigt__p_wxAcceleratorEntry, | |
41033 | _swigt__p_wxUpdateUIEvent, | |
41034 | _swigt__p_wxMenu, | |
41035 | _swigt__p_wxEvent, | |
41036 | _swigt__p_wxGridSizer, | |
41037 | _swigt__p_wxFlexGridSizer, | |
41038 | _swigt__p_wxInitDialogEvent, | |
41039 | _swigt__p_wxItemContainer, | |
41040 | _swigt__p_wxNcPaintEvent, | |
41041 | _swigt__p_wxPaintEvent, | |
41042 | _swigt__p_wxSysColourChangedEvent, | |
41043 | _swigt__p_wxMouseCaptureChangedEvent, | |
41044 | _swigt__p_wxDisplayChangedEvent, | |
41045 | _swigt__p_wxPaletteChangedEvent, | |
41046 | _swigt__p_wxControl, | |
41047 | _swigt__p_wxFont, | |
41048 | _swigt__p_wxMenuBarBase, | |
41049 | _swigt__p_wxSetCursorEvent, | |
41050 | _swigt__p_wxFSFile, | |
41051 | _swigt__p_wxCaret, | |
41052 | _swigt__p_wxRegion, | |
41053 | _swigt__p_wxPoint2D, | |
41054 | _swigt__p_int, | |
41055 | _swigt__p_wxSize, | |
41056 | _swigt__p_wxDC, | |
41057 | _swigt__p_wxPySizer, | |
41058 | _swigt__p_wxNotifyEvent, | |
41059 | _swigt__p_wxPyEvent, | |
41060 | _swigt__p_wxPropagationDisabler, | |
41061 | _swigt__p_wxAppTraits, | |
41062 | _swigt__p_wxArrayString, | |
41063 | _swigt__p_wxShowEvent, | |
41064 | _swigt__p_wxToolTip, | |
4e760a36 | 41065 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41066 | _swigt__p_wxIconizeEvent, |
41067 | _swigt__p_wxActivateEvent, | |
41068 | _swigt__p_wxMoveEvent, | |
41069 | _swigt__p_wxSizeEvent, | |
41070 | _swigt__p_wxQueryNewPaletteEvent, | |
41071 | _swigt__p_wxWindowCreateEvent, | |
41072 | _swigt__p_wxIdleEvent, | |
41073 | _swigt__p_wxMenuItem, | |
41074 | _swigt__p_wxStaticBox, | |
41075 | _swigt__p_long, | |
41076 | _swigt__p_wxTIFFHandler, | |
41077 | _swigt__p_wxXPMHandler, | |
41078 | _swigt__p_wxPNMHandler, | |
41079 | _swigt__p_wxJPEGHandler, | |
41080 | _swigt__p_wxPCXHandler, | |
41081 | _swigt__p_wxGIFHandler, | |
41082 | _swigt__p_wxPNGHandler, | |
41083 | _swigt__p_wxANIHandler, | |
41084 | _swigt__p_wxMemoryFSHandler, | |
41085 | _swigt__p_wxEvtHandler, | |
41086 | _swigt__p_wxCURHandler, | |
41087 | _swigt__p_wxICOHandler, | |
41088 | _swigt__p_wxBMPHandler, | |
41089 | _swigt__p_wxImageHandler, | |
41090 | _swigt__p_wxFileSystemHandler, | |
41091 | _swigt__p_wxPyFileSystemHandler, | |
41092 | _swigt__p_wxInternetFSHandler, | |
4e760a36 | 41093 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
41094 | _swigt__p_wxRect, |
41095 | _swigt__p_wxGBSpan, | |
41096 | _swigt__p_wxPropagateOnce, | |
41097 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 41098 | _swigt__p_char, |
d14a1e28 RD |
41099 | _swigt__p_wxGBPosition, |
41100 | _swigt__p_wxImage, | |
41101 | _swigt__p_wxFrame, | |
41102 | _swigt__p_wxScrollWinEvent, | |
41103 | _swigt__p_wxImageHistogram, | |
41104 | _swigt__p_byte, | |
41105 | _swigt__p_wxPoint, | |
41106 | _swigt__p_wxCursor, | |
41107 | _swigt__p_wxObject, | |
41108 | _swigt__p_wxPyInputStream, | |
41109 | _swigt__p_wxOutputStream, | |
41110 | _swigt__p_wxInputStream, | |
41111 | _swigt__p_wxDateTime, | |
41112 | _swigt__p_wxKeyEvent, | |
41113 | _swigt__p_wxNavigationKeyEvent, | |
41114 | _swigt__p_wxWindowDestroyEvent, | |
41115 | _swigt__p_wxWindow, | |
41116 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
41117 | _swigt__p_wxFileSystem, |
41118 | _swigt__p_wxBitmap, | |
41119 | _swigt__p_wxMenuEvent, | |
41120 | _swigt__p_wxContextMenuEvent, | |
41121 | _swigt__p_unsigned_char, | |
41122 | _swigt__p_wxCloseEvent, | |
41123 | _swigt__p_wxEraseEvent, | |
41124 | _swigt__p_wxMouseEvent, | |
41125 | _swigt__p_wxPyApp, | |
41126 | _swigt__p_wxCommandEvent, | |
41127 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 41128 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
41129 | _swigt__p_wxChildFocusEvent, |
41130 | _swigt__p_wxFocusEvent, | |
41131 | _swigt__p_wxDropFilesEvent, | |
41132 | _swigt__p_wxControlWithItems, | |
41133 | _swigt__p_wxColour, | |
41134 | _swigt__p_wxValidator, | |
41135 | _swigt__p_wxPyValidator, | |
41136 | 0 | |
41137 | }; | |
41138 | ||
41139 | ||
41140 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41141 | ||
41142 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
41143 | {0}}; |
41144 | ||
41145 | #ifdef __cplusplus | |
41146 | } | |
41147 | #endif | |
41148 | ||
41149 | #ifdef __cplusplus | |
41150 | extern "C" | |
41151 | #endif | |
41152 | SWIGEXPORT(void) SWIG_init(void) { | |
41153 | static PyObject *SWIG_globals = 0; | |
41154 | static int typeinit = 0; | |
41155 | PyObject *m, *d; | |
41156 | int i; | |
41157 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
41158 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41159 | d = PyModule_GetDict(m); | |
41160 | ||
41161 | if (!typeinit) { | |
41162 | for (i = 0; swig_types_initial[i]; i++) { | |
41163 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
41164 | } | |
41165 | typeinit = 1; | |
41166 | } | |
41167 | SWIG_InstallConstants(d,swig_const_table); | |
41168 | ||
41169 | ||
41170 | #ifndef wxPyUSE_EXPORT | |
41171 | // Make our API structure a CObject so other modules can import it | |
41172 | // from this module. | |
41173 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
41174 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
41175 | Py_XDECREF(cobj); | |
41176 | #endif | |
41177 | ||
2f4c0a16 RD |
41178 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
41179 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
41180 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
41181 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
41182 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
41183 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
41184 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
41185 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
41186 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
41187 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
41188 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
41189 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
41190 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
41191 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
41192 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
41193 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
41194 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
41195 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
41196 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
41197 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
41198 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
41199 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
41200 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
41201 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
41202 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
41203 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
41204 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
41205 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
41206 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
41207 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
41208 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
41209 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
41210 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
41211 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
41212 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
41213 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
41214 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
41215 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
41216 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
41217 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
41218 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
41219 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
41220 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
41221 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
41222 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
41223 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
41224 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
41225 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
41226 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
41227 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
41228 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
41229 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
41230 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
41231 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
41232 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
41233 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
41234 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
41235 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
41236 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
41237 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
41238 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
41239 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
41240 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
41241 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
41242 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
41243 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
41244 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
41245 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
41246 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
41247 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
41248 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
41249 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
41250 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
41251 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
41252 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
41253 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
41254 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
41255 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
41256 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
41257 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
41258 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
41259 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
41260 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
41261 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
41262 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
41263 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
41264 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
41265 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
41266 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
41267 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
41268 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
41269 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
41270 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
41271 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
41272 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
41273 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
41274 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
41275 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
41276 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
41277 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
41278 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
41279 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
41280 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
41281 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
41282 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
41283 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
41284 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
41285 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
41286 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
41287 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
41288 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
41289 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
41290 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
41291 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
41292 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
41293 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
41294 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
41295 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
41296 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
41297 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
41298 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
41299 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
41300 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
41301 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
41302 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
41303 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
41304 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
41305 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
41306 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
41307 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
41308 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
41309 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
41310 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
41311 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
41312 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
41313 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
41314 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
41315 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
41316 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
41317 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
41318 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
41319 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
41320 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
41321 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
41322 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
41323 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
41324 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
41325 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
41326 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
41327 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
41328 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
41329 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
41330 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
41331 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
41332 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
41333 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
41334 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
41335 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
41336 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
41337 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
41338 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
41339 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
41340 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
41341 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
41342 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41343 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41344 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
41345 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
41346 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
41347 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41348 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41349 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
41350 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
41351 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
41352 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
41353 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
41354 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
41355 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
41356 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
41357 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
41358 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
41359 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
41360 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
41361 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
41362 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
41363 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
41364 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
41365 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
41366 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
41367 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
41368 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
41369 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
41370 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
41371 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
41372 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
41373 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
41374 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
41375 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
41376 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
41377 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
41378 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
41379 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
41380 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
41381 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
41382 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
41383 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
41384 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
41385 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
41386 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
41387 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
41388 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
41389 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
41390 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
41391 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
41392 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41393 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
41394 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41395 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41396 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
41397 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
41398 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41399 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41400 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
41401 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
41402 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41403 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41404 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
41405 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41406 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41407 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41408 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
41409 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
41410 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
41411 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
41412 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
41413 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
41414 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
41415 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
41416 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
41417 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
41418 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
41419 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
41420 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
41421 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
41422 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
41423 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
41424 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
41425 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
41426 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
41427 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
41428 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
41429 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
41430 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
41431 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
41432 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
41433 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
41434 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
41435 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41436 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41437 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
41438 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
41439 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
41440 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
41441 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41442 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41443 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
41444 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
41445 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
41446 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
41447 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
41448 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
41449 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
41450 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
41451 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
41452 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
41453 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
41454 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
41455 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
41456 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
41457 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
41458 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
41459 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
41460 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
41461 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
41462 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
41463 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
41464 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
41465 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
41466 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
41467 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
41468 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
41469 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
41470 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
41471 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
41472 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
41473 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
41474 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
41475 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
41476 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
41477 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
41478 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
41479 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
41480 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
41481 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
41482 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
41483 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
41484 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
41485 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
41486 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
41487 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
41488 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
41489 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
41490 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
41491 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
41492 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
41493 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
41494 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
41495 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
41496 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
41497 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
41498 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
41499 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
41500 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
41501 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
41502 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
41503 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
41504 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
41505 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
41506 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
41507 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
41508 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
41509 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
41510 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
41511 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
41512 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
41513 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
41514 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
41515 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
41516 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
41517 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
41518 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
41519 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
41520 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
41521 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
41522 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
41523 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
41524 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
41525 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
41526 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
41527 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
41528 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
41529 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
41530 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
41531 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
41532 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
41533 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
41534 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
41535 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
41536 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
41537 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
41538 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
41539 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
41540 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
41541 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
41542 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
41543 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
41544 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
41545 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
41546 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
41547 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
41548 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
41549 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
41550 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
41551 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
41552 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
41553 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
41554 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
41555 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
41556 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
41557 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
41558 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
41559 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
41560 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
41561 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
41562 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
41563 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
41564 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
41565 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
41566 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
41567 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
41568 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
41569 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
41570 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
41571 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
41572 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
41573 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
41574 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
41575 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
41576 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
41577 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
41578 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
41579 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
41580 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
41581 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
41582 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
41583 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
41584 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
41585 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
41586 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
41587 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
41588 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
41589 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
41590 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
41591 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
41592 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
41593 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
41594 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
41595 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
41596 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
41597 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
41598 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
41599 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
41600 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
41601 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
41602 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
41603 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
41604 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
41605 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
41606 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
41607 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
41608 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
41609 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
41610 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
41611 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
41612 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
41613 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
41614 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
41615 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
41616 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
41617 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
41618 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
41619 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
41620 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
41621 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
41622 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
41623 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
41624 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
41625 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
41626 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
41627 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
41628 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
41629 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
41630 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
41631 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
41632 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
41633 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
41634 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
41635 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
41636 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
41637 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
41638 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
41639 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
41640 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
41641 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
41642 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
41643 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
41644 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
41645 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
41646 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
41647 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
41648 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
41649 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
41650 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
41651 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
41652 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
41653 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
41654 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
41655 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
41656 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
41657 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
41658 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
41659 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
41660 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
41661 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
41662 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
41663 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
41664 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
41665 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
41666 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
41667 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
41668 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
41669 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
41670 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
41671 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
41672 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
41673 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
41674 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
41675 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
41676 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
41677 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
41678 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
41679 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
41680 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
41681 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
41682 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
41683 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
41684 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
41685 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
41686 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
41687 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
41688 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
41689 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
41690 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
41691 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
41692 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
41693 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
41694 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
41695 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
41696 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
41697 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
41698 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
41699 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
41700 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
41701 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
41702 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
41703 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
41704 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
41705 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
41706 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
41707 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
41708 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
41709 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
41710 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
41711 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
41712 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
41713 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
41714 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
41715 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 41716 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
d03fd34d | 41717 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
2f4c0a16 RD |
41718 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
41719 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
41720 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
41721 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
41722 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
41723 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
41724 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
41725 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
41726 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
41727 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
41728 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
41729 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
41730 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
41731 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
41732 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
41733 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
41734 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
41735 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
41736 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
41737 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
41738 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
41739 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
41740 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
41741 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
41742 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
41743 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
41744 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
41745 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
41746 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
41747 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
41748 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
41749 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
41750 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
41751 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
41752 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
41753 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
41754 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
41755 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
41756 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
41757 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
41758 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
41759 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
41760 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
41761 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
41762 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
41763 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
41764 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
41765 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
41766 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
41767 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
41768 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
41769 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
41770 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
2f4c0a16 RD |
41771 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
41772 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
41773 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
41774 | |
41775 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
41776 | ||
41777 | ||
41778 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
41779 | ||
41780 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
41781 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
41782 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
41783 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
41784 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
41785 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
2f4c0a16 RD |
41786 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
41787 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
41788 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
41789 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
41790 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
41791 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
41792 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
41793 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
41794 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
41795 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
41796 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
41797 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
41798 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
41799 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
41800 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
41801 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
41802 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
41803 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
41804 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
41805 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
41806 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
41807 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
41808 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
41809 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
41810 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
41811 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
41812 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
41813 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
41814 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
41815 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
41816 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
41817 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
41818 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
41819 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
41820 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
41821 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
41822 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
41823 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
41824 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
41825 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
41826 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
41827 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
41828 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
41829 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
41830 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
41831 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
41832 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
41833 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
41834 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
41835 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
41836 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
41837 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
41838 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
41839 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
41840 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
41841 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
41842 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
41843 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
41844 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
41845 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
41846 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
41847 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
41848 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
41849 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
41850 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
41851 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
41852 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
41853 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
41854 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
41855 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
41856 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
41857 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
41858 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
41859 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
41860 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
41861 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
41862 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
41863 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
41864 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
41865 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
41866 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
41867 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
41868 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
41869 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
41870 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
41871 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
41872 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
41873 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
41874 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
41875 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
41876 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
41877 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
41878 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
41879 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
41880 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
41881 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
41882 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
41883 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
41884 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
41885 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
41886 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
41887 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
41888 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
41889 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
41890 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
41891 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
41892 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
41893 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
41894 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
41895 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
41896 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
41897 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
41898 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
41899 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
41900 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
41901 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
41902 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
41903 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
41904 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
41905 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
41906 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
41907 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
41908 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
41909 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
41910 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
41911 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
41912 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
2f4c0a16 RD |
41913 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
41914 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
41915 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
41916 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
41917 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
41918 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
41919 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
41920 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
41921 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
41922 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
41923 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
41924 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
41925 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
41926 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
41927 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 41928 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 41929 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
d14a1e28 | 41930 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 41931 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
2f4c0a16 RD |
41932 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
41933 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
41934 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 41935 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
2f4c0a16 RD |
41936 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
41937 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
41938 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
41939 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
41940 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
41941 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
41942 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
41943 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
41944 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
41945 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
41946 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
41947 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
41948 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
41949 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
41950 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
41951 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
41952 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
41953 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
41954 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
41955 | |
41956 | // Initialize threading, some globals and such | |
41957 | __wxPyPreStart(d); | |
41958 | ||
41959 | ||
41960 | // Although these are defined in __version__ they need to be here too so | |
41961 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
41962 | // versions match. | |
41963 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
41964 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
41965 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
41966 | ||
41967 | } | |
41968 |