]>
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){ |
4f89f6a3 | 665 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 669 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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){ |
4f89f6a3 | 707 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 711 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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){ |
4f89f6a3 | 732 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 736 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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){ |
4f89f6a3 | 746 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 752 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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)) { | |
4f89f6a3 | 766 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 767 | wxRect* newRect = new wxRect(dest); |
423f194a | 768 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 769 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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){ |
4f89f6a3 | 808 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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)); | |
4f89f6a3 | 812 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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 | ||
4f89f6a3 | 1141 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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: | |
4f89f6a3 | 1151 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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 | ||
4f89f6a3 | 1189 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
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: | |
4f89f6a3 | 1199 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 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 | ||
d14a1e28 | 1376 | #ifdef __WXMSW__ |
fe763115 RD |
1377 | #include <wx/msw/private.h> // to get wxGetWindowId |
1378 | #endif | |
1379 | ||
1380 | ||
1381 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1382 | #ifdef __WXMSW__ | |
1383 | WXHWND hWnd = (WXHWND)_hWnd; | |
1384 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1385 | wxWindow* win = new wxWindow; |
fe763115 RD |
1386 | parent->AddChild(win); |
1387 | win->SetEventHandler(win); | |
1388 | win->SetHWND(hWnd); | |
1389 | win->SetId(id); | |
1390 | win->SubclassWin(hWnd); | |
1391 | win->AdoptAttributesFromHWND(); | |
1392 | win->SetupColours(); | |
d14a1e28 RD |
1393 | return win; |
1394 | #else | |
cbd72d4f | 1395 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1396 | return NULL; |
1397 | #endif | |
1398 | } | |
1399 | ||
1400 | ||
1401 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1402 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1403 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1404 | ||
1405 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1406 | ||
1407 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1408 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1409 | wxMenuItemList& list = self->GetMenuItems(); | |
1410 | return wxPy_ConvertList(&list); | |
1411 | } | |
d03fd34d | 1412 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1413 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1414 | if (clientData) { | |
1415 | wxPyClientData* data = new wxPyClientData(clientData); | |
1416 | return self->Append(item, data); | |
1417 | } else | |
1418 | return self->Append(item); | |
1419 | } | |
1420 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1421 | if (clientData) { | |
1422 | wxPyClientData* data = new wxPyClientData(clientData); | |
1423 | return self->Insert(item, pos, data); | |
1424 | } else | |
1425 | return self->Insert(item, pos); | |
1426 | } | |
1427 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1428 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1429 | if (data) { | |
1430 | Py_INCREF(data->m_obj); | |
1431 | return data->m_obj; | |
1432 | } else { | |
1433 | Py_INCREF(Py_None); | |
1434 | return Py_None; | |
1435 | } | |
1436 | } | |
1437 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1438 | wxPyClientData* data = new wxPyClientData(clientData); | |
1439 | self->SetClientObject(n, data); | |
1440 | } | |
1441 | ||
1442 | ||
8edf1c75 | 1443 | |
2f4c0a16 RD |
1444 | #include <float.h> |
1445 | ||
8edf1c75 | 1446 | SWIGSTATIC(float) |
2f4c0a16 RD |
1447 | SWIG_FloatCast(double value) |
1448 | { | |
1449 | float f = 0; | |
1450 | if (!PyErr_Occurred()) { | |
1451 | if (value < FLT_MIN) { | |
1452 | PyObject *err = | |
1453 | PyString_FromFormat("value %g is less than float minimum %g", | |
1454 | value, FLT_MIN); | |
1455 | PyErr_SetObject(PyExc_OverflowError, err); | |
1456 | Py_DECREF(err); | |
1457 | } else if (value > FLT_MAX) { | |
1458 | PyObject *err = | |
1459 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1460 | value, FLT_MAX); | |
1461 | PyErr_SetObject(PyExc_OverflowError, err); | |
1462 | Py_DECREF(err); | |
1463 | } else { | |
1464 | f = swig_numeric_cast(float, value); | |
1465 | } | |
1466 | } | |
1467 | return f; | |
1468 | } | |
1469 | ||
1470 | ||
1471 | SWIGSTATICINLINE(float) | |
1472 | SWIG_AsFloat(PyObject *obj) | |
8edf1c75 | 1473 | { |
2f4c0a16 RD |
1474 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1475 | } | |
1476 | ||
1477 | ||
1478 | SWIGSTATICINLINE(int) | |
1479 | SWIG_CheckFloat(PyObject* obj) | |
1480 | { | |
1481 | SWIG_AsFloat(obj); | |
1482 | if (PyErr_Occurred()) { | |
1483 | PyErr_Clear(); | |
1484 | return 0; | |
1485 | } else { | |
1486 | return 1; | |
1487 | } | |
8edf1c75 RD |
1488 | } |
1489 | ||
d14a1e28 RD |
1490 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1491 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1492 | if (data) { | |
1493 | Py_INCREF(data->m_obj); | |
1494 | return data->m_obj; | |
1495 | } else { | |
1496 | Py_INCREF(Py_None); | |
1497 | return Py_None; | |
1498 | } | |
1499 | } | |
1500 | ||
1501 | // Figure out the type of the sizer item | |
1502 | ||
1503 | struct wxPySizerItemInfo { | |
1504 | wxPySizerItemInfo() | |
423f194a RD |
1505 | : window(NULL), sizer(NULL), gotSize(False), |
1506 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1507 | {} |
1508 | ||
1509 | wxWindow* window; | |
1510 | wxSizer* sizer; | |
1511 | bool gotSize; | |
1512 | wxSize size; | |
1513 | bool gotPos; | |
1514 | int pos; | |
1515 | }; | |
1516 | ||
1517 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1518 | ||
1519 | wxPySizerItemInfo info; | |
1520 | wxSize size; | |
1521 | wxSize* sizePtr = &size; | |
1522 | ||
1523 | // Find out what the type of the item is | |
1524 | // try wxWindow | |
1525 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1526 | PyErr_Clear(); | |
1527 | info.window = NULL; | |
1528 | ||
1529 | // try wxSizer | |
1530 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1531 | PyErr_Clear(); | |
1532 | info.sizer = NULL; | |
1533 | ||
1534 | // try wxSize or (w,h) | |
1535 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1536 | info.size = *sizePtr; | |
423f194a | 1537 | info.gotSize = True; |
d14a1e28 RD |
1538 | } |
1539 | ||
1540 | // or a single int | |
1541 | if (checkIdx && PyInt_Check(item)) { | |
1542 | info.pos = PyInt_AsLong(item); | |
423f194a | 1543 | info.gotPos = True; |
d14a1e28 RD |
1544 | } |
1545 | } | |
1546 | } | |
1547 | ||
1548 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1549 | // no expected type, figure out what kind of error message to generate | |
1550 | if ( !checkSize && !checkIdx ) | |
1551 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1552 | else if ( checkSize && !checkIdx ) | |
1553 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1554 | else if ( !checkSize && checkIdx) | |
1555 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1556 | else | |
1557 | // can this one happen? | |
1558 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1559 | } | |
1560 | ||
1561 | return info; | |
1562 | } | |
1563 | ||
1564 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1565 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1566 | } | |
1567 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1568 | ||
1569 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1570 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1571 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1572 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1573 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1574 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1575 | |
1576 | // Now call the real Add method if a valid item type was found | |
1577 | if ( info.window ) | |
1578 | self->Add(info.window, proportion, flag, border, data); | |
1579 | else if ( info.sizer ) | |
1580 | self->Add(info.sizer, proportion, flag, border, data); | |
1581 | else if (info.gotSize) | |
1582 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1583 | proportion, flag, border, data); | |
1584 | } | |
1585 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1586 | ||
1587 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1588 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1589 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1590 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1591 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1592 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1593 | |
1594 | // Now call the real Insert method if a valid item type was found | |
1595 | if ( info.window ) | |
1596 | self->Insert(before, info.window, proportion, flag, border, data); | |
1597 | else if ( info.sizer ) | |
1598 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1599 | else if (info.gotSize) | |
1600 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1601 | proportion, flag, border, data); | |
1602 | } | |
1603 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1604 | ||
1605 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1606 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1607 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1608 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1609 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1610 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1611 | |
1612 | // Now call the real Prepend method if a valid item type was found | |
1613 | if ( info.window ) | |
1614 | self->Prepend(info.window, proportion, flag, border, data); | |
1615 | else if ( info.sizer ) | |
1616 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1617 | else if (info.gotSize) | |
1618 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1619 | proportion, flag, border, data); | |
1620 | } | |
1621 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1622 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1623 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1624 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1625 | if ( info.window ) |
1626 | return self->Remove(info.window); | |
1627 | else if ( info.sizer ) | |
1628 | return self->Remove(info.sizer); | |
1629 | else if ( info.gotPos ) | |
1630 | return self->Remove(info.pos); | |
1631 | else | |
423f194a | 1632 | return False; |
d14a1e28 | 1633 | } |
423f194a | 1634 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1635 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1636 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1637 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1638 | if ( info.window ) |
1639 | self->SetItemMinSize(info.window, size); | |
1640 | else if ( info.sizer ) | |
1641 | self->SetItemMinSize(info.sizer, size); | |
1642 | else if ( info.gotPos ) | |
1643 | self->SetItemMinSize(info.pos, size); | |
1644 | } | |
1645 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1646 | wxSizerItemList& list = self->GetChildren(); | |
1647 | return wxPy_ConvertList(&list); | |
1648 | } | |
1649 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1650 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1651 | if ( info.window ) |
1652 | self->Show(info.window, show); | |
1653 | else if ( info.sizer ) | |
1654 | self->Show(info.sizer, show); | |
1655 | } | |
1656 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1657 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1658 | if ( info.window ) |
1659 | self->Hide(info.window); | |
1660 | else if ( info.sizer ) | |
1661 | self->Hide(info.sizer); | |
1662 | } | |
1663 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1664 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1665 | if ( info.window ) |
1666 | return self->IsShown(info.window); | |
1667 | else if ( info.sizer ) | |
1668 | return self->IsShown(info.sizer); | |
1669 | else | |
423f194a | 1670 | return False; |
d14a1e28 RD |
1671 | } |
1672 | ||
1673 | // See pyclasses.h | |
1674 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1675 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1676 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1677 | ||
1678 | ||
1679 | ||
1680 | ||
1681 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1682 | { | |
4f89f6a3 RD |
1683 | if (source == Py_None) { |
1684 | **obj = wxGBPosition(-1,-1); | |
1685 | return True; | |
1686 | } | |
d14a1e28 RD |
1687 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1688 | } | |
1689 | ||
1690 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1691 | { | |
4f89f6a3 RD |
1692 | if (source == Py_None) { |
1693 | **obj = wxGBSpan(-1,-1); | |
1694 | return True; | |
1695 | } | |
d14a1e28 RD |
1696 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1697 | } | |
1698 | ||
1699 | ||
423f194a RD |
1700 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1701 | self->SetRow(row); | |
1702 | self->SetCol(col); | |
1703 | } | |
1704 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1705 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1706 | PyObject* tup = PyTuple_New(2); |
1707 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1708 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1709 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1710 | return tup; |
1711 | } | |
423f194a RD |
1712 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1713 | self->SetRowspan(rowspan); | |
1714 | self->SetColspan(colspan); | |
1715 | } | |
1716 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1717 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1718 | PyObject* tup = PyTuple_New(2); |
1719 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1720 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1721 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1722 | return tup; |
1723 | } | |
1724 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1725 | ||
1726 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1727 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1728 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1729 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1730 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1731 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1732 | |
1733 | // Now call the real Add method if a valid item type was found | |
1734 | if ( info.window ) | |
1735 | return self->Add(info.window, pos, span, flag, border, data); | |
1736 | else if ( info.sizer ) | |
1737 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1738 | else if (info.gotSize) | |
1739 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1740 | pos, span, flag, border, data); | |
423f194a | 1741 | return False; |
d14a1e28 RD |
1742 | } |
1743 | ||
1744 | ||
1745 | #ifdef __cplusplus | |
1746 | extern "C" { | |
1747 | #endif | |
2f4c0a16 | 1748 | static int _wrap_EmptyString_set(PyObject *_val) { |
d03fd34d RD |
1749 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1750 | return 1; | |
1751 | } | |
1752 | ||
1753 | ||
1754 | static PyObject *_wrap_EmptyString_get() { | |
1755 | PyObject *pyobj; | |
1756 | ||
1757 | { | |
1758 | #if wxUSE_UNICODE | |
1759 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1760 | #else | |
1761 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1762 | #endif | |
1763 | } | |
1764 | return pyobj; | |
1765 | } | |
1766 | ||
1767 | ||
d14a1e28 RD |
1768 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1769 | PyObject *resultobj; | |
1770 | wxObject *arg1 = (wxObject *) 0 ; | |
1771 | wxString result; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | char *kwnames[] = { | |
1774 | (char *) "self", NULL | |
1775 | }; | |
1776 | ||
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1780 | { |
1781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1782 | result = wxObject_GetClassName(arg1); | |
1783 | ||
1784 | wxPyEndAllowThreads(__tstate); | |
1785 | if (PyErr_Occurred()) SWIG_fail; | |
1786 | } | |
1787 | { | |
1788 | #if wxUSE_UNICODE | |
1789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1790 | #else | |
1791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1792 | #endif | |
1793 | } | |
1794 | return resultobj; | |
1795 | fail: | |
1796 | return NULL; | |
1797 | } | |
1798 | ||
1799 | ||
1800 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject *resultobj; | |
1802 | wxObject *arg1 = (wxObject *) 0 ; | |
1803 | PyObject * obj0 = 0 ; | |
1804 | char *kwnames[] = { | |
1805 | (char *) "self", NULL | |
1806 | }; | |
1807 | ||
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1811 | { |
1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1813 | wxObject_Destroy(arg1); | |
1814 | ||
1815 | wxPyEndAllowThreads(__tstate); | |
1816 | if (PyErr_Occurred()) SWIG_fail; | |
1817 | } | |
1818 | Py_INCREF(Py_None); resultobj = Py_None; | |
1819 | return resultobj; | |
1820 | fail: | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
1825 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1826 | PyObject *obj; | |
1827 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1828 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1829 | Py_INCREF(obj); | |
1830 | return Py_BuildValue((char *)""); | |
1831 | } | |
1832 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1833 | PyObject *resultobj; | |
1834 | wxSize *arg1 = (wxSize *) 0 ; | |
1835 | int arg2 ; | |
1836 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1838 | char *kwnames[] = { |
1839 | (char *) "self",(char *) "x", NULL | |
1840 | }; | |
1841 | ||
8edf1c75 | 1842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1845 | arg2 = (int) SWIG_AsInt(obj1); | |
1846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1847 | if (arg1) (arg1)->x = arg2; |
1848 | ||
1849 | Py_INCREF(Py_None); resultobj = Py_None; | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1857 | PyObject *resultobj; | |
1858 | wxSize *arg1 = (wxSize *) 0 ; | |
1859 | int result; | |
1860 | PyObject * obj0 = 0 ; | |
1861 | char *kwnames[] = { | |
1862 | (char *) "self", NULL | |
1863 | }; | |
1864 | ||
1865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1868 | result = (int) ((arg1)->x); |
1869 | ||
2f4c0a16 | 1870 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1871 | return resultobj; |
1872 | fail: | |
1873 | return NULL; | |
1874 | } | |
1875 | ||
1876 | ||
1877 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject *resultobj; | |
1879 | wxSize *arg1 = (wxSize *) 0 ; | |
1880 | int arg2 ; | |
1881 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1883 | char *kwnames[] = { |
1884 | (char *) "self",(char *) "y", NULL | |
1885 | }; | |
1886 | ||
8edf1c75 | 1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1890 | arg2 = (int) SWIG_AsInt(obj1); | |
1891 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1892 | if (arg1) (arg1)->y = arg2; |
1893 | ||
1894 | Py_INCREF(Py_None); resultobj = Py_None; | |
1895 | return resultobj; | |
1896 | fail: | |
1897 | return NULL; | |
1898 | } | |
1899 | ||
1900 | ||
1901 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject *resultobj; | |
1903 | wxSize *arg1 = (wxSize *) 0 ; | |
1904 | int result; | |
1905 | PyObject * obj0 = 0 ; | |
1906 | char *kwnames[] = { | |
1907 | (char *) "self", NULL | |
1908 | }; | |
1909 | ||
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1913 | result = (int) ((arg1)->y); |
1914 | ||
2f4c0a16 | 1915 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1916 | return resultobj; |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | int arg1 = (int) 0 ; | |
1925 | int arg2 = (int) 0 ; | |
1926 | wxSize *result; | |
8edf1c75 RD |
1927 | PyObject * obj0 = 0 ; |
1928 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1929 | char *kwnames[] = { |
1930 | (char *) "w",(char *) "h", NULL | |
1931 | }; | |
1932 | ||
8edf1c75 RD |
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1934 | if (obj0) { | |
2f4c0a16 RD |
1935 | arg1 = (int) SWIG_AsInt(obj0); |
1936 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1937 | } |
1938 | if (obj1) { | |
2f4c0a16 RD |
1939 | arg2 = (int) SWIG_AsInt(obj1); |
1940 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1941 | } |
d14a1e28 RD |
1942 | { |
1943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1944 | result = (wxSize *)new wxSize(arg1,arg2); | |
1945 | ||
1946 | wxPyEndAllowThreads(__tstate); | |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
1948 | } | |
2f4c0a16 | 1949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1950 | return resultobj; |
1951 | fail: | |
1952 | return NULL; | |
1953 | } | |
1954 | ||
1955 | ||
1956 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1957 | PyObject *resultobj; | |
1958 | wxSize *arg1 = (wxSize *) 0 ; | |
1959 | PyObject * obj0 = 0 ; | |
1960 | char *kwnames[] = { | |
1961 | (char *) "self", NULL | |
1962 | }; | |
1963 | ||
1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1967 | { |
1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1969 | delete arg1; | |
1970 | ||
1971 | wxPyEndAllowThreads(__tstate); | |
1972 | if (PyErr_Occurred()) SWIG_fail; | |
1973 | } | |
1974 | Py_INCREF(Py_None); resultobj = Py_None; | |
1975 | return resultobj; | |
1976 | fail: | |
1977 | return NULL; | |
1978 | } | |
1979 | ||
1980 | ||
1981 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1982 | PyObject *resultobj; | |
1983 | wxSize *arg1 = (wxSize *) 0 ; | |
1984 | wxSize *arg2 = 0 ; | |
1985 | bool result; | |
1986 | wxSize temp2 ; | |
1987 | PyObject * obj0 = 0 ; | |
1988 | PyObject * obj1 = 0 ; | |
1989 | char *kwnames[] = { | |
1990 | (char *) "self",(char *) "sz", NULL | |
1991 | }; | |
1992 | ||
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1996 | { |
1997 | arg2 = &temp2; | |
1998 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
1999 | } | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2002 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2003 | |
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
4f89f6a3 RD |
2007 | { |
2008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2009 | } | |
d14a1e28 RD |
2010 | return resultobj; |
2011 | fail: | |
2012 | return NULL; | |
2013 | } | |
2014 | ||
2015 | ||
2016 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2017 | PyObject *resultobj; | |
2018 | wxSize *arg1 = (wxSize *) 0 ; | |
2019 | wxSize *arg2 = 0 ; | |
2020 | bool result; | |
2021 | wxSize temp2 ; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | PyObject * obj1 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self",(char *) "sz", NULL | |
2026 | }; | |
2027 | ||
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2031 | { |
2032 | arg2 = &temp2; | |
2033 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2034 | } | |
2035 | { | |
2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2037 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2038 | |
2039 | wxPyEndAllowThreads(__tstate); | |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
2041 | } | |
4f89f6a3 RD |
2042 | { |
2043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2044 | } | |
d14a1e28 RD |
2045 | return resultobj; |
2046 | fail: | |
2047 | return NULL; | |
2048 | } | |
2049 | ||
2050 | ||
2051 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject *resultobj; | |
2053 | wxSize *arg1 = (wxSize *) 0 ; | |
2054 | wxSize *arg2 = 0 ; | |
2055 | wxSize result; | |
2056 | wxSize temp2 ; | |
2057 | PyObject * obj0 = 0 ; | |
2058 | PyObject * obj1 = 0 ; | |
2059 | char *kwnames[] = { | |
2060 | (char *) "self",(char *) "sz", NULL | |
2061 | }; | |
2062 | ||
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2066 | { |
2067 | arg2 = &temp2; | |
2068 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2069 | } | |
2070 | { | |
2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2072 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2073 | ||
2074 | wxPyEndAllowThreads(__tstate); | |
2075 | if (PyErr_Occurred()) SWIG_fail; | |
2076 | } | |
2077 | { | |
2078 | wxSize * resultptr; | |
2079 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2081 | } |
2082 | return resultobj; | |
2083 | fail: | |
2084 | return NULL; | |
2085 | } | |
2086 | ||
2087 | ||
2088 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2089 | PyObject *resultobj; | |
2090 | wxSize *arg1 = (wxSize *) 0 ; | |
2091 | wxSize *arg2 = 0 ; | |
2092 | wxSize result; | |
2093 | wxSize temp2 ; | |
2094 | PyObject * obj0 = 0 ; | |
2095 | PyObject * obj1 = 0 ; | |
2096 | char *kwnames[] = { | |
2097 | (char *) "self",(char *) "sz", NULL | |
2098 | }; | |
2099 | ||
2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2103 | { |
2104 | arg2 = &temp2; | |
2105 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2106 | } | |
2107 | { | |
2108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2109 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2110 | ||
2111 | wxPyEndAllowThreads(__tstate); | |
2112 | if (PyErr_Occurred()) SWIG_fail; | |
2113 | } | |
2114 | { | |
2115 | wxSize * resultptr; | |
2116 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2117 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2118 | } |
2119 | return resultobj; | |
2120 | fail: | |
2121 | return NULL; | |
2122 | } | |
2123 | ||
2124 | ||
2125 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2126 | PyObject *resultobj; | |
2127 | wxSize *arg1 = (wxSize *) 0 ; | |
2128 | wxSize *arg2 = 0 ; | |
2129 | wxSize temp2 ; | |
2130 | PyObject * obj0 = 0 ; | |
2131 | PyObject * obj1 = 0 ; | |
2132 | char *kwnames[] = { | |
2133 | (char *) "self",(char *) "sz", NULL | |
2134 | }; | |
2135 | ||
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2139 | { |
2140 | arg2 = &temp2; | |
2141 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2142 | } | |
2143 | { | |
2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2145 | (arg1)->IncTo((wxSize const &)*arg2); | |
2146 | ||
2147 | wxPyEndAllowThreads(__tstate); | |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
2149 | } | |
2150 | Py_INCREF(Py_None); resultobj = Py_None; | |
2151 | return resultobj; | |
2152 | fail: | |
2153 | return NULL; | |
2154 | } | |
2155 | ||
2156 | ||
2157 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2158 | PyObject *resultobj; | |
2159 | wxSize *arg1 = (wxSize *) 0 ; | |
2160 | wxSize *arg2 = 0 ; | |
2161 | wxSize temp2 ; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | PyObject * obj1 = 0 ; | |
2164 | char *kwnames[] = { | |
2165 | (char *) "self",(char *) "sz", NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2171 | { |
2172 | arg2 = &temp2; | |
2173 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2174 | } | |
2175 | { | |
2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2177 | (arg1)->DecTo((wxSize const &)*arg2); | |
2178 | ||
2179 | wxPyEndAllowThreads(__tstate); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | Py_INCREF(Py_None); resultobj = Py_None; | |
2183 | return resultobj; | |
2184 | fail: | |
2185 | return NULL; | |
2186 | } | |
2187 | ||
2188 | ||
2189 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2190 | PyObject *resultobj; | |
2191 | wxSize *arg1 = (wxSize *) 0 ; | |
2192 | int arg2 ; | |
2193 | int arg3 ; | |
2194 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2195 | PyObject * obj1 = 0 ; |
2196 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2197 | char *kwnames[] = { |
423f194a | 2198 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2199 | }; |
2200 | ||
8edf1c75 | 2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2204 | arg2 = (int) SWIG_AsInt(obj1); | |
2205 | if (PyErr_Occurred()) SWIG_fail; | |
2206 | arg3 = (int) SWIG_AsInt(obj2); | |
2207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2208 | { |
2209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2210 | (arg1)->Set(arg2,arg3); | |
2211 | ||
2212 | wxPyEndAllowThreads(__tstate); | |
2213 | if (PyErr_Occurred()) SWIG_fail; | |
2214 | } | |
2215 | Py_INCREF(Py_None); resultobj = Py_None; | |
2216 | return resultobj; | |
2217 | fail: | |
2218 | return NULL; | |
2219 | } | |
2220 | ||
2221 | ||
2222 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2223 | PyObject *resultobj; | |
2224 | wxSize *arg1 = (wxSize *) 0 ; | |
2225 | int arg2 ; | |
2226 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2227 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2228 | char *kwnames[] = { |
2229 | (char *) "self",(char *) "w", NULL | |
2230 | }; | |
2231 | ||
8edf1c75 | 2232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2235 | arg2 = (int) SWIG_AsInt(obj1); | |
2236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2237 | { |
2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2239 | (arg1)->SetWidth(arg2); | |
2240 | ||
2241 | wxPyEndAllowThreads(__tstate); | |
2242 | if (PyErr_Occurred()) SWIG_fail; | |
2243 | } | |
2244 | Py_INCREF(Py_None); resultobj = Py_None; | |
2245 | return resultobj; | |
2246 | fail: | |
2247 | return NULL; | |
2248 | } | |
2249 | ||
2250 | ||
2251 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject *resultobj; | |
2253 | wxSize *arg1 = (wxSize *) 0 ; | |
2254 | int arg2 ; | |
2255 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2256 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2257 | char *kwnames[] = { |
2258 | (char *) "self",(char *) "h", NULL | |
2259 | }; | |
2260 | ||
8edf1c75 | 2261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2264 | arg2 = (int) SWIG_AsInt(obj1); | |
2265 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2266 | { |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | (arg1)->SetHeight(arg2); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
2273 | Py_INCREF(Py_None); resultobj = Py_None; | |
2274 | return resultobj; | |
2275 | fail: | |
2276 | return NULL; | |
2277 | } | |
2278 | ||
2279 | ||
2280 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2281 | PyObject *resultobj; | |
2282 | wxSize *arg1 = (wxSize *) 0 ; | |
2283 | int result; | |
2284 | PyObject * obj0 = 0 ; | |
2285 | char *kwnames[] = { | |
2286 | (char *) "self", NULL | |
2287 | }; | |
2288 | ||
2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2292 | { |
2293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2294 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2295 | ||
2296 | wxPyEndAllowThreads(__tstate); | |
2297 | if (PyErr_Occurred()) SWIG_fail; | |
2298 | } | |
2f4c0a16 | 2299 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2300 | return resultobj; |
2301 | fail: | |
2302 | return NULL; | |
2303 | } | |
2304 | ||
2305 | ||
2306 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2307 | PyObject *resultobj; | |
2308 | wxSize *arg1 = (wxSize *) 0 ; | |
2309 | int result; | |
2310 | PyObject * obj0 = 0 ; | |
2311 | char *kwnames[] = { | |
2312 | (char *) "self", NULL | |
2313 | }; | |
2314 | ||
2315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2318 | { |
2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2320 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2321 | ||
2322 | wxPyEndAllowThreads(__tstate); | |
2323 | if (PyErr_Occurred()) SWIG_fail; | |
2324 | } | |
2f4c0a16 | 2325 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2326 | return resultobj; |
2327 | fail: | |
2328 | return NULL; | |
2329 | } | |
2330 | ||
2331 | ||
423f194a | 2332 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2333 | PyObject *resultobj; |
2334 | wxSize *arg1 = (wxSize *) 0 ; | |
2335 | PyObject *result; | |
2336 | PyObject * obj0 = 0 ; | |
2337 | char *kwnames[] = { | |
2338 | (char *) "self", NULL | |
2339 | }; | |
2340 | ||
423f194a | 2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2344 | { |
2345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2346 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2347 | |
2348 | wxPyEndAllowThreads(__tstate); | |
2349 | if (PyErr_Occurred()) SWIG_fail; | |
2350 | } | |
2351 | resultobj = result; | |
2352 | return resultobj; | |
2353 | fail: | |
2354 | return NULL; | |
2355 | } | |
2356 | ||
2357 | ||
2358 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2359 | PyObject *obj; | |
2360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2361 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2362 | Py_INCREF(obj); | |
2363 | return Py_BuildValue((char *)""); | |
2364 | } | |
2365 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2366 | PyObject *resultobj; | |
2367 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2368 | double arg2 ; | |
2369 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2371 | char *kwnames[] = { |
2372 | (char *) "self",(char *) "x", NULL | |
2373 | }; | |
2374 | ||
8edf1c75 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2378 | arg2 = (double) SWIG_AsDouble(obj1); | |
2379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2380 | if (arg1) (arg1)->x = arg2; |
2381 | ||
2382 | Py_INCREF(Py_None); resultobj = Py_None; | |
2383 | return resultobj; | |
2384 | fail: | |
2385 | return NULL; | |
2386 | } | |
2387 | ||
2388 | ||
2389 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2390 | PyObject *resultobj; | |
2391 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2392 | double result; | |
2393 | PyObject * obj0 = 0 ; | |
2394 | char *kwnames[] = { | |
2395 | (char *) "self", NULL | |
2396 | }; | |
2397 | ||
2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2401 | result = (double) ((arg1)->x); |
2402 | ||
2f4c0a16 | 2403 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2404 | return resultobj; |
2405 | fail: | |
2406 | return NULL; | |
2407 | } | |
2408 | ||
2409 | ||
2410 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject *resultobj; | |
2412 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2413 | double arg2 ; | |
2414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2416 | char *kwnames[] = { |
2417 | (char *) "self",(char *) "y", NULL | |
2418 | }; | |
2419 | ||
8edf1c75 | 2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2423 | arg2 = (double) SWIG_AsDouble(obj1); | |
2424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2425 | if (arg1) (arg1)->y = arg2; |
2426 | ||
2427 | Py_INCREF(Py_None); resultobj = Py_None; | |
2428 | return resultobj; | |
2429 | fail: | |
2430 | return NULL; | |
2431 | } | |
2432 | ||
2433 | ||
2434 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2435 | PyObject *resultobj; | |
2436 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2437 | double result; | |
2438 | PyObject * obj0 = 0 ; | |
2439 | char *kwnames[] = { | |
2440 | (char *) "self", NULL | |
2441 | }; | |
2442 | ||
2443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2446 | result = (double) ((arg1)->y); |
2447 | ||
2f4c0a16 | 2448 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2449 | return resultobj; |
2450 | fail: | |
2451 | return NULL; | |
2452 | } | |
2453 | ||
2454 | ||
2455 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2456 | PyObject *resultobj; | |
2457 | double arg1 = (double) 0.0 ; | |
2458 | double arg2 = (double) 0.0 ; | |
2459 | wxRealPoint *result; | |
8edf1c75 RD |
2460 | PyObject * obj0 = 0 ; |
2461 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2462 | char *kwnames[] = { |
2463 | (char *) "x",(char *) "y", NULL | |
2464 | }; | |
2465 | ||
8edf1c75 RD |
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2467 | if (obj0) { | |
2f4c0a16 RD |
2468 | arg1 = (double) SWIG_AsDouble(obj0); |
2469 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2470 | } |
2471 | if (obj1) { | |
2f4c0a16 RD |
2472 | arg2 = (double) SWIG_AsDouble(obj1); |
2473 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2474 | } |
d14a1e28 RD |
2475 | { |
2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2477 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2478 | ||
2479 | wxPyEndAllowThreads(__tstate); | |
2480 | if (PyErr_Occurred()) SWIG_fail; | |
2481 | } | |
2f4c0a16 | 2482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2483 | return resultobj; |
2484 | fail: | |
2485 | return NULL; | |
2486 | } | |
2487 | ||
2488 | ||
2489 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2490 | PyObject *resultobj; | |
2491 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2492 | PyObject * obj0 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "self", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2500 | { |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | delete arg1; | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) SWIG_fail; | |
2506 | } | |
2507 | Py_INCREF(Py_None); resultobj = Py_None; | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
423f194a | 2514 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2515 | PyObject *resultobj; |
2516 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2517 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2518 | bool result; |
d14a1e28 RD |
2519 | wxRealPoint temp2 ; |
2520 | PyObject * obj0 = 0 ; | |
2521 | PyObject * obj1 = 0 ; | |
2522 | char *kwnames[] = { | |
2523 | (char *) "self",(char *) "pt", NULL | |
2524 | }; | |
2525 | ||
423f194a | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2529 | { |
2530 | arg2 = &temp2; | |
2531 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2532 | } | |
2533 | { | |
2534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2535 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2536 | |
2537 | wxPyEndAllowThreads(__tstate); | |
2538 | if (PyErr_Occurred()) SWIG_fail; | |
2539 | } | |
4f89f6a3 RD |
2540 | { |
2541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2542 | } | |
d14a1e28 RD |
2543 | return resultobj; |
2544 | fail: | |
2545 | return NULL; | |
2546 | } | |
2547 | ||
2548 | ||
423f194a | 2549 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2550 | PyObject *resultobj; |
2551 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2552 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2553 | bool result; |
d14a1e28 RD |
2554 | wxRealPoint temp2 ; |
2555 | PyObject * obj0 = 0 ; | |
2556 | PyObject * obj1 = 0 ; | |
2557 | char *kwnames[] = { | |
2558 | (char *) "self",(char *) "pt", NULL | |
2559 | }; | |
2560 | ||
423f194a | 2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2564 | { |
2565 | arg2 = &temp2; | |
2566 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2570 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2571 | |
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
2574 | } | |
4f89f6a3 RD |
2575 | { |
2576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2577 | } | |
d14a1e28 RD |
2578 | return resultobj; |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
423f194a | 2584 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2585 | PyObject *resultobj; |
2586 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2587 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2588 | wxRealPoint result; |
d14a1e28 RD |
2589 | wxRealPoint temp2 ; |
2590 | PyObject * obj0 = 0 ; | |
2591 | PyObject * obj1 = 0 ; | |
2592 | char *kwnames[] = { | |
2593 | (char *) "self",(char *) "pt", NULL | |
2594 | }; | |
2595 | ||
423f194a | 2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2599 | { |
2600 | arg2 = &temp2; | |
2601 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2602 | } | |
2603 | { | |
2604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2605 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2606 | |
2607 | wxPyEndAllowThreads(__tstate); | |
2608 | if (PyErr_Occurred()) SWIG_fail; | |
2609 | } | |
423f194a RD |
2610 | { |
2611 | wxRealPoint * resultptr; | |
2612 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2614 | } |
d14a1e28 RD |
2615 | return resultobj; |
2616 | fail: | |
2617 | return NULL; | |
2618 | } | |
2619 | ||
2620 | ||
423f194a | 2621 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2622 | PyObject *resultobj; |
2623 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2624 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2625 | wxRealPoint result; |
d14a1e28 RD |
2626 | wxRealPoint temp2 ; |
2627 | PyObject * obj0 = 0 ; | |
2628 | PyObject * obj1 = 0 ; | |
2629 | char *kwnames[] = { | |
2630 | (char *) "self",(char *) "pt", NULL | |
2631 | }; | |
2632 | ||
423f194a | 2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2636 | { |
2637 | arg2 = &temp2; | |
2638 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2639 | } | |
2640 | { | |
2641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2642 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2643 | |
2644 | wxPyEndAllowThreads(__tstate); | |
2645 | if (PyErr_Occurred()) SWIG_fail; | |
2646 | } | |
423f194a RD |
2647 | { |
2648 | wxRealPoint * resultptr; | |
2649 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2650 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2651 | } |
d14a1e28 RD |
2652 | return resultobj; |
2653 | fail: | |
2654 | return NULL; | |
2655 | } | |
2656 | ||
2657 | ||
2658 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2659 | PyObject *resultobj; | |
2660 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2661 | double arg2 ; | |
2662 | double arg3 ; | |
2663 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2664 | PyObject * obj1 = 0 ; |
2665 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2666 | char *kwnames[] = { |
2667 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2668 | }; | |
2669 | ||
8edf1c75 | 2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2673 | arg2 = (double) SWIG_AsDouble(obj1); | |
2674 | if (PyErr_Occurred()) SWIG_fail; | |
2675 | arg3 = (double) SWIG_AsDouble(obj2); | |
2676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2677 | { |
2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2679 | wxRealPoint_Set(arg1,arg2,arg3); | |
2680 | ||
2681 | wxPyEndAllowThreads(__tstate); | |
2682 | if (PyErr_Occurred()) SWIG_fail; | |
2683 | } | |
2684 | Py_INCREF(Py_None); resultobj = Py_None; | |
2685 | return resultobj; | |
2686 | fail: | |
2687 | return NULL; | |
2688 | } | |
2689 | ||
2690 | ||
423f194a | 2691 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2692 | PyObject *resultobj; |
2693 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2694 | PyObject *result; | |
2695 | PyObject * obj0 = 0 ; | |
2696 | char *kwnames[] = { | |
2697 | (char *) "self", NULL | |
2698 | }; | |
2699 | ||
423f194a | 2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2703 | { |
2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2705 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2706 | |
2707 | wxPyEndAllowThreads(__tstate); | |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
2709 | } | |
2710 | resultobj = result; | |
2711 | return resultobj; | |
2712 | fail: | |
2713 | return NULL; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2718 | PyObject *obj; | |
2719 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2720 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2721 | Py_INCREF(obj); | |
2722 | return Py_BuildValue((char *)""); | |
2723 | } | |
2724 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject *resultobj; | |
2726 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2727 | int arg2 ; | |
2728 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2730 | char *kwnames[] = { |
2731 | (char *) "self",(char *) "x", NULL | |
2732 | }; | |
2733 | ||
8edf1c75 | 2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2737 | arg2 = (int) SWIG_AsInt(obj1); | |
2738 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2739 | if (arg1) (arg1)->x = arg2; |
2740 | ||
2741 | Py_INCREF(Py_None); resultobj = Py_None; | |
2742 | return resultobj; | |
2743 | fail: | |
2744 | return NULL; | |
2745 | } | |
2746 | ||
2747 | ||
2748 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2749 | PyObject *resultobj; | |
2750 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2751 | int result; | |
2752 | PyObject * obj0 = 0 ; | |
2753 | char *kwnames[] = { | |
2754 | (char *) "self", NULL | |
2755 | }; | |
2756 | ||
2757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2760 | result = (int) ((arg1)->x); |
2761 | ||
2f4c0a16 | 2762 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2763 | return resultobj; |
2764 | fail: | |
2765 | return NULL; | |
2766 | } | |
2767 | ||
2768 | ||
2769 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject *resultobj; | |
2771 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2772 | int arg2 ; | |
2773 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2775 | char *kwnames[] = { |
2776 | (char *) "self",(char *) "y", NULL | |
2777 | }; | |
2778 | ||
8edf1c75 | 2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2782 | arg2 = (int) SWIG_AsInt(obj1); | |
2783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2784 | if (arg1) (arg1)->y = arg2; |
2785 | ||
2786 | Py_INCREF(Py_None); resultobj = Py_None; | |
2787 | return resultobj; | |
2788 | fail: | |
2789 | return NULL; | |
2790 | } | |
2791 | ||
2792 | ||
2793 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2794 | PyObject *resultobj; | |
2795 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2796 | int result; | |
2797 | PyObject * obj0 = 0 ; | |
2798 | char *kwnames[] = { | |
2799 | (char *) "self", NULL | |
2800 | }; | |
2801 | ||
2802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2805 | result = (int) ((arg1)->y); |
2806 | ||
2f4c0a16 | 2807 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2808 | return resultobj; |
2809 | fail: | |
2810 | return NULL; | |
2811 | } | |
2812 | ||
2813 | ||
2814 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2815 | PyObject *resultobj; | |
2816 | int arg1 = (int) 0 ; | |
2817 | int arg2 = (int) 0 ; | |
2818 | wxPoint *result; | |
8edf1c75 RD |
2819 | PyObject * obj0 = 0 ; |
2820 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2821 | char *kwnames[] = { |
2822 | (char *) "x",(char *) "y", NULL | |
2823 | }; | |
2824 | ||
8edf1c75 RD |
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2826 | if (obj0) { | |
2f4c0a16 RD |
2827 | arg1 = (int) SWIG_AsInt(obj0); |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2829 | } |
2830 | if (obj1) { | |
2f4c0a16 RD |
2831 | arg2 = (int) SWIG_AsInt(obj1); |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2833 | } |
d14a1e28 RD |
2834 | { |
2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2836 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2837 | ||
2838 | wxPyEndAllowThreads(__tstate); | |
2839 | if (PyErr_Occurred()) SWIG_fail; | |
2840 | } | |
2f4c0a16 | 2841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2842 | return resultobj; |
2843 | fail: | |
2844 | return NULL; | |
2845 | } | |
2846 | ||
2847 | ||
2848 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2849 | PyObject *resultobj; | |
2850 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2851 | PyObject * obj0 = 0 ; | |
2852 | char *kwnames[] = { | |
2853 | (char *) "self", NULL | |
2854 | }; | |
2855 | ||
2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2859 | { |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | delete arg1; | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
2866 | Py_INCREF(Py_None); resultobj = Py_None; | |
2867 | return resultobj; | |
2868 | fail: | |
2869 | return NULL; | |
2870 | } | |
2871 | ||
2872 | ||
2873 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2876 | wxPoint *arg2 = 0 ; | |
2877 | bool result; | |
2878 | wxPoint temp2 ; | |
2879 | PyObject * obj0 = 0 ; | |
2880 | PyObject * obj1 = 0 ; | |
2881 | char *kwnames[] = { | |
423f194a | 2882 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2883 | }; |
2884 | ||
2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2888 | { |
2889 | arg2 = &temp2; | |
2890 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2891 | } | |
2892 | { | |
2893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2894 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2895 | |
2896 | wxPyEndAllowThreads(__tstate); | |
2897 | if (PyErr_Occurred()) SWIG_fail; | |
2898 | } | |
4f89f6a3 RD |
2899 | { |
2900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2901 | } | |
d14a1e28 RD |
2902 | return resultobj; |
2903 | fail: | |
2904 | return NULL; | |
2905 | } | |
2906 | ||
2907 | ||
2908 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject *resultobj; | |
2910 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2911 | wxPoint *arg2 = 0 ; | |
2912 | bool result; | |
2913 | wxPoint temp2 ; | |
2914 | PyObject * obj0 = 0 ; | |
2915 | PyObject * obj1 = 0 ; | |
2916 | char *kwnames[] = { | |
423f194a | 2917 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2918 | }; |
2919 | ||
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2923 | { |
2924 | arg2 = &temp2; | |
2925 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2926 | } | |
2927 | { | |
2928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2929 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2930 | |
2931 | wxPyEndAllowThreads(__tstate); | |
2932 | if (PyErr_Occurred()) SWIG_fail; | |
2933 | } | |
4f89f6a3 RD |
2934 | { |
2935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2936 | } | |
d14a1e28 RD |
2937 | return resultobj; |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2946 | wxPoint *arg2 = 0 ; | |
2947 | wxPoint result; | |
2948 | wxPoint temp2 ; | |
2949 | PyObject * obj0 = 0 ; | |
2950 | PyObject * obj1 = 0 ; | |
2951 | char *kwnames[] = { | |
423f194a | 2952 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2953 | }; |
2954 | ||
2955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2958 | { |
2959 | arg2 = &temp2; | |
2960 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2961 | } | |
2962 | { | |
2963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2964 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2965 | |
2966 | wxPyEndAllowThreads(__tstate); | |
2967 | if (PyErr_Occurred()) SWIG_fail; | |
2968 | } | |
2969 | { | |
2970 | wxPoint * resultptr; | |
2971 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2973 | } |
2974 | return resultobj; | |
2975 | fail: | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
2980 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2981 | PyObject *resultobj; | |
2982 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2983 | wxPoint *arg2 = 0 ; | |
2984 | wxPoint result; | |
2985 | wxPoint temp2 ; | |
2986 | PyObject * obj0 = 0 ; | |
2987 | PyObject * obj1 = 0 ; | |
2988 | char *kwnames[] = { | |
423f194a | 2989 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2990 | }; |
2991 | ||
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2995 | { |
2996 | arg2 = &temp2; | |
2997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2998 | } | |
2999 | { | |
3000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3001 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3002 | |
3003 | wxPyEndAllowThreads(__tstate); | |
3004 | if (PyErr_Occurred()) SWIG_fail; | |
3005 | } | |
3006 | { | |
3007 | wxPoint * resultptr; | |
3008 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3010 | } |
3011 | return resultobj; | |
3012 | fail: | |
3013 | return NULL; | |
3014 | } | |
3015 | ||
3016 | ||
3017 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3018 | PyObject *resultobj; | |
3019 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3020 | wxPoint *arg2 = 0 ; | |
3021 | wxPoint *result; | |
3022 | wxPoint temp2 ; | |
3023 | PyObject * obj0 = 0 ; | |
3024 | PyObject * obj1 = 0 ; | |
3025 | char *kwnames[] = { | |
423f194a | 3026 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3027 | }; |
3028 | ||
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3032 | { |
3033 | arg2 = &temp2; | |
3034 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3035 | } | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | { | |
3039 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3040 | result = (wxPoint *) &_result_ref; | |
3041 | } | |
3042 | ||
3043 | wxPyEndAllowThreads(__tstate); | |
3044 | if (PyErr_Occurred()) SWIG_fail; | |
3045 | } | |
2f4c0a16 | 3046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3047 | return resultobj; |
3048 | fail: | |
3049 | return NULL; | |
3050 | } | |
3051 | ||
3052 | ||
3053 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3054 | PyObject *resultobj; | |
3055 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3056 | wxPoint *arg2 = 0 ; | |
3057 | wxPoint *result; | |
3058 | wxPoint temp2 ; | |
3059 | PyObject * obj0 = 0 ; | |
3060 | PyObject * obj1 = 0 ; | |
3061 | char *kwnames[] = { | |
423f194a | 3062 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3063 | }; |
3064 | ||
3065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3068 | { |
3069 | arg2 = &temp2; | |
3070 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3071 | } | |
3072 | { | |
3073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3074 | { | |
3075 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3076 | result = (wxPoint *) &_result_ref; | |
3077 | } | |
3078 | ||
3079 | wxPyEndAllowThreads(__tstate); | |
3080 | if (PyErr_Occurred()) SWIG_fail; | |
3081 | } | |
2f4c0a16 | 3082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3083 | return resultobj; |
3084 | fail: | |
3085 | return NULL; | |
3086 | } | |
3087 | ||
3088 | ||
3089 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3090 | PyObject *resultobj; | |
3091 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3092 | long arg2 ; | |
3093 | long arg3 ; | |
3094 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3095 | PyObject * obj1 = 0 ; |
3096 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3097 | char *kwnames[] = { |
3098 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3099 | }; | |
3100 | ||
8edf1c75 | 3101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3104 | arg2 = (long) SWIG_AsLong(obj1); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | arg3 = (long) SWIG_AsLong(obj2); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3108 | { |
3109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3110 | wxPoint_Set(arg1,arg2,arg3); | |
3111 | ||
3112 | wxPyEndAllowThreads(__tstate); | |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
3114 | } | |
3115 | Py_INCREF(Py_None); resultobj = Py_None; | |
3116 | return resultobj; | |
3117 | fail: | |
3118 | return NULL; | |
3119 | } | |
3120 | ||
3121 | ||
423f194a | 3122 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3123 | PyObject *resultobj; |
3124 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3125 | PyObject *result; | |
3126 | PyObject * obj0 = 0 ; | |
3127 | char *kwnames[] = { | |
3128 | (char *) "self", NULL | |
3129 | }; | |
3130 | ||
423f194a | 3131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3134 | { |
3135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3136 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3137 | |
3138 | wxPyEndAllowThreads(__tstate); | |
3139 | if (PyErr_Occurred()) SWIG_fail; | |
3140 | } | |
3141 | resultobj = result; | |
3142 | return resultobj; | |
3143 | fail: | |
3144 | return NULL; | |
3145 | } | |
3146 | ||
3147 | ||
3148 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3149 | PyObject *obj; | |
3150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3151 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3152 | Py_INCREF(obj); | |
3153 | return Py_BuildValue((char *)""); | |
3154 | } | |
3155 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3156 | PyObject *resultobj; | |
3157 | int arg1 = (int) 0 ; | |
3158 | int arg2 = (int) 0 ; | |
3159 | int arg3 = (int) 0 ; | |
3160 | int arg4 = (int) 0 ; | |
3161 | wxRect *result; | |
8edf1c75 RD |
3162 | PyObject * obj0 = 0 ; |
3163 | PyObject * obj1 = 0 ; | |
3164 | PyObject * obj2 = 0 ; | |
3165 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3166 | char *kwnames[] = { |
3167 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3168 | }; | |
3169 | ||
8edf1c75 RD |
3170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3171 | if (obj0) { | |
2f4c0a16 RD |
3172 | arg1 = (int) SWIG_AsInt(obj0); |
3173 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3174 | } |
3175 | if (obj1) { | |
2f4c0a16 RD |
3176 | arg2 = (int) SWIG_AsInt(obj1); |
3177 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3178 | } |
3179 | if (obj2) { | |
2f4c0a16 RD |
3180 | arg3 = (int) SWIG_AsInt(obj2); |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3182 | } |
3183 | if (obj3) { | |
2f4c0a16 RD |
3184 | arg4 = (int) SWIG_AsInt(obj3); |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3186 | } |
d14a1e28 RD |
3187 | { |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
2f4c0a16 | 3194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3195 | return resultobj; |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
3201 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3202 | PyObject *resultobj; | |
3203 | wxPoint *arg1 = 0 ; | |
3204 | wxPoint *arg2 = 0 ; | |
3205 | wxRect *result; | |
3206 | wxPoint temp1 ; | |
3207 | wxPoint temp2 ; | |
3208 | PyObject * obj0 = 0 ; | |
3209 | PyObject * obj1 = 0 ; | |
3210 | char *kwnames[] = { | |
3211 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3212 | }; | |
3213 | ||
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3215 | { | |
3216 | arg1 = &temp1; | |
3217 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3218 | } | |
3219 | { | |
3220 | arg2 = &temp2; | |
3221 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3222 | } | |
3223 | { | |
3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3225 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3226 | ||
3227 | wxPyEndAllowThreads(__tstate); | |
3228 | if (PyErr_Occurred()) SWIG_fail; | |
3229 | } | |
2f4c0a16 | 3230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3231 | return resultobj; |
3232 | fail: | |
3233 | return NULL; | |
3234 | } | |
3235 | ||
3236 | ||
3237 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3238 | PyObject *resultobj; | |
3239 | wxPoint *arg1 = 0 ; | |
3240 | wxSize *arg2 = 0 ; | |
3241 | wxRect *result; | |
3242 | wxPoint temp1 ; | |
3243 | wxSize temp2 ; | |
3244 | PyObject * obj0 = 0 ; | |
3245 | PyObject * obj1 = 0 ; | |
3246 | char *kwnames[] = { | |
3247 | (char *) "pos",(char *) "size", NULL | |
3248 | }; | |
3249 | ||
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3251 | { | |
3252 | arg1 = &temp1; | |
3253 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3254 | } | |
3255 | { | |
3256 | arg2 = &temp2; | |
3257 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3258 | } | |
3259 | { | |
3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3261 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3262 | ||
3263 | wxPyEndAllowThreads(__tstate); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
2f4c0a16 | 3266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3267 | return resultobj; |
3268 | fail: | |
3269 | return NULL; | |
3270 | } | |
3271 | ||
3272 | ||
3273 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3274 | PyObject *resultobj; | |
3275 | wxRect *arg1 = (wxRect *) 0 ; | |
3276 | PyObject * obj0 = 0 ; | |
3277 | char *kwnames[] = { | |
3278 | (char *) "self", NULL | |
3279 | }; | |
3280 | ||
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3284 | { |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | delete arg1; | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | Py_INCREF(Py_None); resultobj = Py_None; | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
3298 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3299 | PyObject *resultobj; | |
3300 | wxRect *arg1 = (wxRect *) 0 ; | |
3301 | int result; | |
3302 | PyObject * obj0 = 0 ; | |
3303 | char *kwnames[] = { | |
3304 | (char *) "self", NULL | |
3305 | }; | |
3306 | ||
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3310 | { |
3311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3312 | result = (int)((wxRect const *)arg1)->GetX(); | |
3313 | ||
3314 | wxPyEndAllowThreads(__tstate); | |
3315 | if (PyErr_Occurred()) SWIG_fail; | |
3316 | } | |
2f4c0a16 | 3317 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3318 | return resultobj; |
3319 | fail: | |
3320 | return NULL; | |
3321 | } | |
3322 | ||
3323 | ||
3324 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3325 | PyObject *resultobj; | |
3326 | wxRect *arg1 = (wxRect *) 0 ; | |
3327 | int arg2 ; | |
3328 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3329 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3330 | char *kwnames[] = { |
3331 | (char *) "self",(char *) "x", NULL | |
3332 | }; | |
3333 | ||
8edf1c75 | 3334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3337 | arg2 = (int) SWIG_AsInt(obj1); | |
3338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3339 | { |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | (arg1)->SetX(arg2); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | Py_INCREF(Py_None); resultobj = Py_None; | |
3347 | return resultobj; | |
3348 | fail: | |
3349 | return NULL; | |
3350 | } | |
3351 | ||
3352 | ||
3353 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject *resultobj; | |
3355 | wxRect *arg1 = (wxRect *) 0 ; | |
3356 | int result; | |
3357 | PyObject * obj0 = 0 ; | |
3358 | char *kwnames[] = { | |
3359 | (char *) "self", NULL | |
3360 | }; | |
3361 | ||
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3365 | { |
3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3367 | result = (int)(arg1)->GetY(); | |
3368 | ||
3369 | wxPyEndAllowThreads(__tstate); | |
3370 | if (PyErr_Occurred()) SWIG_fail; | |
3371 | } | |
2f4c0a16 | 3372 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3373 | return resultobj; |
3374 | fail: | |
3375 | return NULL; | |
3376 | } | |
3377 | ||
3378 | ||
3379 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3380 | PyObject *resultobj; | |
3381 | wxRect *arg1 = (wxRect *) 0 ; | |
3382 | int arg2 ; | |
3383 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3385 | char *kwnames[] = { |
3386 | (char *) "self",(char *) "y", NULL | |
3387 | }; | |
3388 | ||
8edf1c75 | 3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3392 | arg2 = (int) SWIG_AsInt(obj1); | |
3393 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3394 | { |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | (arg1)->SetY(arg2); | |
3397 | ||
3398 | wxPyEndAllowThreads(__tstate); | |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
3400 | } | |
3401 | Py_INCREF(Py_None); resultobj = Py_None; | |
3402 | return resultobj; | |
3403 | fail: | |
3404 | return NULL; | |
3405 | } | |
3406 | ||
3407 | ||
3408 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject *resultobj; | |
3410 | wxRect *arg1 = (wxRect *) 0 ; | |
3411 | int result; | |
3412 | PyObject * obj0 = 0 ; | |
3413 | char *kwnames[] = { | |
3414 | (char *) "self", NULL | |
3415 | }; | |
3416 | ||
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3420 | { |
3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3422 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3423 | ||
3424 | wxPyEndAllowThreads(__tstate); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
2f4c0a16 | 3427 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3428 | return resultobj; |
3429 | fail: | |
3430 | return NULL; | |
3431 | } | |
3432 | ||
3433 | ||
3434 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3435 | PyObject *resultobj; | |
3436 | wxRect *arg1 = (wxRect *) 0 ; | |
3437 | int arg2 ; | |
3438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3440 | char *kwnames[] = { |
3441 | (char *) "self",(char *) "w", NULL | |
3442 | }; | |
3443 | ||
8edf1c75 | 3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3447 | arg2 = (int) SWIG_AsInt(obj1); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3449 | { |
3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3451 | (arg1)->SetWidth(arg2); | |
3452 | ||
3453 | wxPyEndAllowThreads(__tstate); | |
3454 | if (PyErr_Occurred()) SWIG_fail; | |
3455 | } | |
3456 | Py_INCREF(Py_None); resultobj = Py_None; | |
3457 | return resultobj; | |
3458 | fail: | |
3459 | return NULL; | |
3460 | } | |
3461 | ||
3462 | ||
3463 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3464 | PyObject *resultobj; | |
3465 | wxRect *arg1 = (wxRect *) 0 ; | |
3466 | int result; | |
3467 | PyObject * obj0 = 0 ; | |
3468 | char *kwnames[] = { | |
3469 | (char *) "self", NULL | |
3470 | }; | |
3471 | ||
3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3475 | { |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
2f4c0a16 | 3482 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3483 | return resultobj; |
3484 | fail: | |
3485 | return NULL; | |
3486 | } | |
3487 | ||
3488 | ||
3489 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3490 | PyObject *resultobj; | |
3491 | wxRect *arg1 = (wxRect *) 0 ; | |
3492 | int arg2 ; | |
3493 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3495 | char *kwnames[] = { |
3496 | (char *) "self",(char *) "h", NULL | |
3497 | }; | |
3498 | ||
8edf1c75 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3502 | arg2 = (int) SWIG_AsInt(obj1); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3504 | { |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | (arg1)->SetHeight(arg2); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | Py_INCREF(Py_None); resultobj = Py_None; | |
3512 | return resultobj; | |
3513 | fail: | |
3514 | return NULL; | |
3515 | } | |
3516 | ||
3517 | ||
3518 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3519 | PyObject *resultobj; | |
3520 | wxRect *arg1 = (wxRect *) 0 ; | |
3521 | wxPoint result; | |
3522 | PyObject * obj0 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "self", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3530 | { |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | result = ((wxRect const *)arg1)->GetPosition(); | |
3533 | ||
3534 | wxPyEndAllowThreads(__tstate); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | } | |
3537 | { | |
3538 | wxPoint * resultptr; | |
3539 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3540 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3541 | } |
3542 | return resultobj; | |
3543 | fail: | |
3544 | return NULL; | |
3545 | } | |
3546 | ||
3547 | ||
3548 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject *resultobj; | |
3550 | wxRect *arg1 = (wxRect *) 0 ; | |
3551 | wxPoint *arg2 = 0 ; | |
3552 | wxPoint temp2 ; | |
3553 | PyObject * obj0 = 0 ; | |
3554 | PyObject * obj1 = 0 ; | |
3555 | char *kwnames[] = { | |
3556 | (char *) "self",(char *) "p", NULL | |
3557 | }; | |
3558 | ||
3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3562 | { |
3563 | arg2 = &temp2; | |
3564 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3565 | } | |
3566 | { | |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | Py_INCREF(Py_None); resultobj = Py_None; | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
3580 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject *resultobj; | |
3582 | wxRect *arg1 = (wxRect *) 0 ; | |
3583 | wxSize result; | |
3584 | PyObject * obj0 = 0 ; | |
3585 | char *kwnames[] = { | |
3586 | (char *) "self", NULL | |
3587 | }; | |
3588 | ||
3589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3592 | { |
3593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3594 | result = ((wxRect const *)arg1)->GetSize(); | |
3595 | ||
3596 | wxPyEndAllowThreads(__tstate); | |
3597 | if (PyErr_Occurred()) SWIG_fail; | |
3598 | } | |
3599 | { | |
3600 | wxSize * resultptr; | |
3601 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3603 | } |
3604 | return resultobj; | |
3605 | fail: | |
3606 | return NULL; | |
3607 | } | |
3608 | ||
3609 | ||
3610 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3611 | PyObject *resultobj; | |
3612 | wxRect *arg1 = (wxRect *) 0 ; | |
3613 | wxSize *arg2 = 0 ; | |
3614 | wxSize temp2 ; | |
3615 | PyObject * obj0 = 0 ; | |
3616 | PyObject * obj1 = 0 ; | |
3617 | char *kwnames[] = { | |
3618 | (char *) "self",(char *) "s", NULL | |
3619 | }; | |
3620 | ||
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3624 | { |
3625 | arg2 = &temp2; | |
3626 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3630 | (arg1)->SetSize((wxSize const &)*arg2); | |
3631 | ||
3632 | wxPyEndAllowThreads(__tstate); | |
3633 | if (PyErr_Occurred()) SWIG_fail; | |
3634 | } | |
3635 | Py_INCREF(Py_None); resultobj = Py_None; | |
3636 | return resultobj; | |
3637 | fail: | |
3638 | return NULL; | |
3639 | } | |
3640 | ||
3641 | ||
9fd4be55 RD |
3642 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3643 | PyObject *resultobj; | |
3644 | wxRect *arg1 = (wxRect *) 0 ; | |
3645 | wxPoint result; | |
3646 | PyObject * obj0 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3654 | { |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | { | |
3662 | wxPoint * resultptr; | |
3663 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3665 | } |
3666 | return resultobj; | |
3667 | fail: | |
3668 | return NULL; | |
3669 | } | |
3670 | ||
3671 | ||
3672 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject *resultobj; | |
3674 | wxRect *arg1 = (wxRect *) 0 ; | |
3675 | wxPoint *arg2 = 0 ; | |
3676 | wxPoint temp2 ; | |
3677 | PyObject * obj0 = 0 ; | |
3678 | PyObject * obj1 = 0 ; | |
3679 | char *kwnames[] = { | |
3680 | (char *) "self",(char *) "p", NULL | |
3681 | }; | |
3682 | ||
3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3686 | { |
3687 | arg2 = &temp2; | |
3688 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3689 | } | |
3690 | { | |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | Py_INCREF(Py_None); resultobj = Py_None; | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | wxRect *arg1 = (wxRect *) 0 ; | |
3707 | wxPoint result; | |
3708 | PyObject * obj0 = 0 ; | |
3709 | char *kwnames[] = { | |
3710 | (char *) "self", NULL | |
3711 | }; | |
3712 | ||
3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3716 | { |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | { | |
3724 | wxPoint * resultptr; | |
3725 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3727 | } |
3728 | return resultobj; | |
3729 | fail: | |
3730 | return NULL; | |
3731 | } | |
3732 | ||
3733 | ||
3734 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3735 | PyObject *resultobj; | |
3736 | wxRect *arg1 = (wxRect *) 0 ; | |
3737 | wxPoint *arg2 = 0 ; | |
3738 | wxPoint temp2 ; | |
3739 | PyObject * obj0 = 0 ; | |
3740 | PyObject * obj1 = 0 ; | |
3741 | char *kwnames[] = { | |
3742 | (char *) "self",(char *) "p", NULL | |
3743 | }; | |
3744 | ||
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3748 | { |
3749 | arg2 = &temp2; | |
3750 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3751 | } | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | Py_INCREF(Py_None); resultobj = Py_None; | |
3760 | return resultobj; | |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
d14a1e28 RD |
3766 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3767 | PyObject *resultobj; | |
3768 | wxRect *arg1 = (wxRect *) 0 ; | |
3769 | int result; | |
3770 | PyObject * obj0 = 0 ; | |
3771 | char *kwnames[] = { | |
3772 | (char *) "self", NULL | |
3773 | }; | |
3774 | ||
3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3778 | { |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
2f4c0a16 | 3785 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3786 | return resultobj; |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
3792 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject *resultobj; | |
3794 | wxRect *arg1 = (wxRect *) 0 ; | |
3795 | int result; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | char *kwnames[] = { | |
3798 | (char *) "self", NULL | |
3799 | }; | |
3800 | ||
3801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3804 | { |
3805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3806 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3807 | ||
3808 | wxPyEndAllowThreads(__tstate); | |
3809 | if (PyErr_Occurred()) SWIG_fail; | |
3810 | } | |
2f4c0a16 | 3811 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3812 | return resultobj; |
3813 | fail: | |
3814 | return NULL; | |
3815 | } | |
3816 | ||
3817 | ||
3818 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3819 | PyObject *resultobj; | |
3820 | wxRect *arg1 = (wxRect *) 0 ; | |
3821 | int result; | |
3822 | PyObject * obj0 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3830 | { |
3831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3832 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3833 | ||
3834 | wxPyEndAllowThreads(__tstate); | |
3835 | if (PyErr_Occurred()) SWIG_fail; | |
3836 | } | |
2f4c0a16 | 3837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3838 | return resultobj; |
3839 | fail: | |
3840 | return NULL; | |
3841 | } | |
3842 | ||
3843 | ||
3844 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3845 | PyObject *resultobj; | |
3846 | wxRect *arg1 = (wxRect *) 0 ; | |
3847 | int result; | |
3848 | PyObject * obj0 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "self", NULL | |
3851 | }; | |
3852 | ||
3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3856 | { |
3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3858 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3859 | ||
3860 | wxPyEndAllowThreads(__tstate); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
2f4c0a16 | 3863 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3864 | return resultobj; |
3865 | fail: | |
3866 | return NULL; | |
3867 | } | |
3868 | ||
3869 | ||
3870 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject *resultobj; | |
3872 | wxRect *arg1 = (wxRect *) 0 ; | |
3873 | int arg2 ; | |
3874 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3875 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3876 | char *kwnames[] = { |
3877 | (char *) "self",(char *) "left", NULL | |
3878 | }; | |
3879 | ||
8edf1c75 | 3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3883 | arg2 = (int) SWIG_AsInt(obj1); | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3885 | { |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | (arg1)->SetLeft(arg2); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | Py_INCREF(Py_None); resultobj = Py_None; | |
3893 | return resultobj; | |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | wxRect *arg1 = (wxRect *) 0 ; | |
3902 | int arg2 ; | |
3903 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3905 | char *kwnames[] = { |
3906 | (char *) "self",(char *) "right", NULL | |
3907 | }; | |
3908 | ||
8edf1c75 | 3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3912 | arg2 = (int) SWIG_AsInt(obj1); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3914 | { |
3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3916 | (arg1)->SetRight(arg2); | |
3917 | ||
3918 | wxPyEndAllowThreads(__tstate); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
3920 | } | |
3921 | Py_INCREF(Py_None); resultobj = Py_None; | |
3922 | return resultobj; | |
3923 | fail: | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
3928 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxRect *arg1 = (wxRect *) 0 ; | |
3931 | int arg2 ; | |
3932 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3934 | char *kwnames[] = { |
3935 | (char *) "self",(char *) "top", NULL | |
3936 | }; | |
3937 | ||
8edf1c75 | 3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3941 | arg2 = (int) SWIG_AsInt(obj1); | |
3942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3943 | { |
3944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3945 | (arg1)->SetTop(arg2); | |
3946 | ||
3947 | wxPyEndAllowThreads(__tstate); | |
3948 | if (PyErr_Occurred()) SWIG_fail; | |
3949 | } | |
3950 | Py_INCREF(Py_None); resultobj = Py_None; | |
3951 | return resultobj; | |
3952 | fail: | |
3953 | return NULL; | |
3954 | } | |
3955 | ||
3956 | ||
3957 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject *resultobj; | |
3959 | wxRect *arg1 = (wxRect *) 0 ; | |
3960 | int arg2 ; | |
3961 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3962 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3963 | char *kwnames[] = { |
3964 | (char *) "self",(char *) "bottom", NULL | |
3965 | }; | |
3966 | ||
8edf1c75 | 3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3970 | arg2 = (int) SWIG_AsInt(obj1); | |
3971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3972 | { |
3973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3974 | (arg1)->SetBottom(arg2); | |
3975 | ||
3976 | wxPyEndAllowThreads(__tstate); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
3979 | Py_INCREF(Py_None); resultobj = Py_None; | |
3980 | return resultobj; | |
3981 | fail: | |
3982 | return NULL; | |
3983 | } | |
3984 | ||
3985 | ||
3986 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject *resultobj; | |
3988 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3989 | int arg2 ; |
3990 | int arg3 ; | |
d14a1e28 RD |
3991 | wxRect *result; |
3992 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3993 | PyObject * obj1 = 0 ; |
3994 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3995 | char *kwnames[] = { |
3996 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
3997 | }; | |
3998 | ||
8edf1c75 | 3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4002 | arg2 = (int) SWIG_AsInt(obj1); | |
4003 | if (PyErr_Occurred()) SWIG_fail; | |
4004 | arg3 = (int) SWIG_AsInt(obj2); | |
4005 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4006 | { |
4007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4008 | { | |
4009 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4010 | result = (wxRect *) &_result_ref; | |
4011 | } | |
4012 | ||
4013 | wxPyEndAllowThreads(__tstate); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | } | |
2f4c0a16 | 4016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4017 | return resultobj; |
4018 | fail: | |
4019 | return NULL; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4024 | PyObject *resultobj; | |
4025 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4026 | int arg2 ; |
4027 | int arg3 ; | |
d14a1e28 RD |
4028 | wxRect *result; |
4029 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4030 | PyObject * obj1 = 0 ; |
4031 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4032 | char *kwnames[] = { |
4033 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4034 | }; | |
4035 | ||
8edf1c75 | 4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4039 | arg2 = (int) SWIG_AsInt(obj1); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | arg3 = (int) SWIG_AsInt(obj2); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4043 | { |
4044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4045 | { | |
4046 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4047 | result = (wxRect *) &_result_ref; | |
4048 | } | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
2f4c0a16 | 4053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4054 | return resultobj; |
4055 | fail: | |
4056 | return NULL; | |
4057 | } | |
4058 | ||
4059 | ||
4060 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4061 | PyObject *resultobj; | |
4062 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4063 | int arg2 ; |
4064 | int arg3 ; | |
d14a1e28 | 4065 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4066 | PyObject * obj1 = 0 ; |
4067 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4068 | char *kwnames[] = { |
4069 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4070 | }; | |
4071 | ||
8edf1c75 | 4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4075 | arg2 = (int) SWIG_AsInt(obj1); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
4077 | arg3 = (int) SWIG_AsInt(obj2); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4079 | { |
4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4081 | (arg1)->Offset(arg2,arg3); | |
4082 | ||
4083 | wxPyEndAllowThreads(__tstate); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
4085 | } | |
4086 | Py_INCREF(Py_None); resultobj = Py_None; | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxRect *arg1 = (wxRect *) 0 ; | |
4096 | wxPoint *arg2 = 0 ; | |
4097 | wxPoint temp2 ; | |
4098 | PyObject * obj0 = 0 ; | |
4099 | PyObject * obj1 = 0 ; | |
4100 | char *kwnames[] = { | |
4101 | (char *) "self",(char *) "pt", NULL | |
4102 | }; | |
4103 | ||
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4107 | { |
4108 | arg2 = &temp2; | |
4109 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4110 | } | |
4111 | { | |
4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4113 | (arg1)->Offset((wxPoint const &)*arg2); | |
4114 | ||
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | Py_INCREF(Py_None); resultobj = Py_None; | |
4119 | return resultobj; | |
4120 | fail: | |
4121 | return NULL; | |
4122 | } | |
4123 | ||
4124 | ||
4125 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject *resultobj; | |
4127 | wxRect *arg1 = (wxRect *) 0 ; | |
4128 | wxRect *arg2 = 0 ; | |
4129 | wxRect *result; | |
4130 | wxRect temp2 ; | |
4131 | PyObject * obj0 = 0 ; | |
4132 | PyObject * obj1 = 0 ; | |
4133 | char *kwnames[] = { | |
4134 | (char *) "self",(char *) "rect", NULL | |
4135 | }; | |
4136 | ||
4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4140 | { |
4141 | arg2 = &temp2; | |
4142 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4143 | } | |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | { | |
4147 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4148 | result = (wxRect *) &_result_ref; | |
4149 | } | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) SWIG_fail; | |
4153 | } | |
2f4c0a16 | 4154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4155 | return resultobj; |
4156 | fail: | |
4157 | return NULL; | |
4158 | } | |
4159 | ||
4160 | ||
4161 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4162 | PyObject *resultobj; | |
4163 | wxRect *arg1 = (wxRect *) 0 ; | |
4164 | wxRect *arg2 = 0 ; | |
4165 | wxRect result; | |
4166 | wxRect temp2 ; | |
4167 | PyObject * obj0 = 0 ; | |
4168 | PyObject * obj1 = 0 ; | |
4169 | char *kwnames[] = { | |
4170 | (char *) "self",(char *) "rect", NULL | |
4171 | }; | |
4172 | ||
4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4176 | { |
4177 | arg2 = &temp2; | |
4178 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4179 | } | |
4180 | { | |
4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4182 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4183 | ||
4184 | wxPyEndAllowThreads(__tstate); | |
4185 | if (PyErr_Occurred()) SWIG_fail; | |
4186 | } | |
4187 | { | |
4188 | wxRect * resultptr; | |
4189 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 4190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4191 | } |
4192 | return resultobj; | |
4193 | fail: | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
4198 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4199 | PyObject *resultobj; | |
4200 | wxRect *arg1 = (wxRect *) 0 ; | |
4201 | wxRect *arg2 = 0 ; | |
4202 | wxRect *result; | |
4203 | wxRect temp2 ; | |
4204 | PyObject * obj0 = 0 ; | |
4205 | PyObject * obj1 = 0 ; | |
4206 | char *kwnames[] = { | |
4207 | (char *) "self",(char *) "rect", NULL | |
4208 | }; | |
4209 | ||
4210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4213 | { |
4214 | arg2 = &temp2; | |
4215 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4216 | } | |
4217 | { | |
4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4219 | { | |
4220 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4221 | result = (wxRect *) &_result_ref; | |
4222 | } | |
4223 | ||
4224 | wxPyEndAllowThreads(__tstate); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | } | |
2f4c0a16 | 4227 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4228 | return resultobj; |
4229 | fail: | |
4230 | return NULL; | |
4231 | } | |
4232 | ||
4233 | ||
4234 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4235 | PyObject *resultobj; | |
4236 | wxRect *arg1 = (wxRect *) 0 ; | |
4237 | wxRect *arg2 = 0 ; | |
4238 | bool result; | |
4239 | wxRect temp2 ; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | PyObject * obj1 = 0 ; | |
4242 | char *kwnames[] = { | |
4243 | (char *) "self",(char *) "rect", NULL | |
4244 | }; | |
4245 | ||
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4249 | { |
4250 | arg2 = &temp2; | |
4251 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4252 | } | |
4253 | { | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
4f89f6a3 RD |
4260 | { |
4261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4262 | } | |
d14a1e28 RD |
4263 | return resultobj; |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxRect *arg1 = (wxRect *) 0 ; | |
4272 | wxRect *arg2 = 0 ; | |
4273 | bool result; | |
4274 | wxRect temp2 ; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | PyObject * obj1 = 0 ; | |
4277 | char *kwnames[] = { | |
4278 | (char *) "self",(char *) "rect", NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4284 | { |
4285 | arg2 = &temp2; | |
4286 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4287 | } | |
4288 | { | |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4291 | ||
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4f89f6a3 RD |
4295 | { |
4296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4297 | } | |
d14a1e28 RD |
4298 | return resultobj; |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
4304 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4305 | PyObject *resultobj; | |
4306 | wxRect *arg1 = (wxRect *) 0 ; | |
4307 | int arg2 ; | |
4308 | int arg3 ; | |
4309 | bool result; | |
4310 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4311 | PyObject * obj1 = 0 ; |
4312 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4313 | char *kwnames[] = { |
4314 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4315 | }; | |
4316 | ||
8edf1c75 | 4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4320 | arg2 = (int) SWIG_AsInt(obj1); | |
4321 | if (PyErr_Occurred()) SWIG_fail; | |
4322 | arg3 = (int) SWIG_AsInt(obj2); | |
4323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4324 | { |
4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4326 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4327 | ||
4328 | wxPyEndAllowThreads(__tstate); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
4330 | } | |
4f89f6a3 RD |
4331 | { |
4332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4333 | } | |
d14a1e28 RD |
4334 | return resultobj; |
4335 | fail: | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj; | |
4342 | wxRect *arg1 = (wxRect *) 0 ; | |
4343 | wxPoint *arg2 = 0 ; | |
4344 | bool result; | |
4345 | wxPoint temp2 ; | |
4346 | PyObject * obj0 = 0 ; | |
4347 | PyObject * obj1 = 0 ; | |
4348 | char *kwnames[] = { | |
4349 | (char *) "self",(char *) "pt", NULL | |
4350 | }; | |
4351 | ||
4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4355 | { |
4356 | arg2 = &temp2; | |
4357 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4358 | } | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4f89f6a3 RD |
4366 | { |
4367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4368 | } | |
d14a1e28 RD |
4369 | return resultobj; |
4370 | fail: | |
4371 | return NULL; | |
4372 | } | |
4373 | ||
4374 | ||
4375 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4376 | PyObject *resultobj; | |
4377 | wxRect *arg1 = (wxRect *) 0 ; | |
4378 | wxRect *arg2 = 0 ; | |
4379 | bool result; | |
4380 | wxRect temp2 ; | |
4381 | PyObject * obj0 = 0 ; | |
4382 | PyObject * obj1 = 0 ; | |
4383 | char *kwnames[] = { | |
4384 | (char *) "self",(char *) "rect", NULL | |
4385 | }; | |
4386 | ||
4387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4390 | { |
4391 | arg2 = &temp2; | |
4392 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4393 | } | |
4394 | { | |
4395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4396 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4397 | ||
4398 | wxPyEndAllowThreads(__tstate); | |
4399 | if (PyErr_Occurred()) SWIG_fail; | |
4400 | } | |
4f89f6a3 RD |
4401 | { |
4402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4403 | } | |
d14a1e28 RD |
4404 | return resultobj; |
4405 | fail: | |
4406 | return NULL; | |
4407 | } | |
4408 | ||
4409 | ||
4410 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject *resultobj; | |
4412 | wxRect *arg1 = (wxRect *) 0 ; | |
4413 | int arg2 ; | |
4414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4416 | char *kwnames[] = { |
4417 | (char *) "self",(char *) "x", NULL | |
4418 | }; | |
4419 | ||
8edf1c75 | 4420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4423 | arg2 = (int) SWIG_AsInt(obj1); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4425 | if (arg1) (arg1)->x = arg2; |
4426 | ||
4427 | Py_INCREF(Py_None); resultobj = Py_None; | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | return NULL; | |
4431 | } | |
4432 | ||
4433 | ||
4434 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4435 | PyObject *resultobj; | |
4436 | wxRect *arg1 = (wxRect *) 0 ; | |
4437 | int result; | |
4438 | PyObject * obj0 = 0 ; | |
4439 | char *kwnames[] = { | |
4440 | (char *) "self", NULL | |
4441 | }; | |
4442 | ||
4443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4446 | result = (int) ((arg1)->x); |
4447 | ||
2f4c0a16 | 4448 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4449 | return resultobj; |
4450 | fail: | |
4451 | return NULL; | |
4452 | } | |
4453 | ||
4454 | ||
4455 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4456 | PyObject *resultobj; | |
4457 | wxRect *arg1 = (wxRect *) 0 ; | |
4458 | int arg2 ; | |
4459 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4460 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4461 | char *kwnames[] = { |
4462 | (char *) "self",(char *) "y", NULL | |
4463 | }; | |
4464 | ||
8edf1c75 | 4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4468 | arg2 = (int) SWIG_AsInt(obj1); | |
4469 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4470 | if (arg1) (arg1)->y = arg2; |
4471 | ||
4472 | Py_INCREF(Py_None); resultobj = Py_None; | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
4479 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4480 | PyObject *resultobj; | |
4481 | wxRect *arg1 = (wxRect *) 0 ; | |
4482 | int result; | |
4483 | PyObject * obj0 = 0 ; | |
4484 | char *kwnames[] = { | |
4485 | (char *) "self", NULL | |
4486 | }; | |
4487 | ||
4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4491 | result = (int) ((arg1)->y); |
4492 | ||
2f4c0a16 | 4493 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4494 | return resultobj; |
4495 | fail: | |
4496 | return NULL; | |
4497 | } | |
4498 | ||
4499 | ||
4500 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4501 | PyObject *resultobj; | |
4502 | wxRect *arg1 = (wxRect *) 0 ; | |
4503 | int arg2 ; | |
4504 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4505 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4506 | char *kwnames[] = { |
4507 | (char *) "self",(char *) "width", NULL | |
4508 | }; | |
4509 | ||
8edf1c75 | 4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4513 | arg2 = (int) SWIG_AsInt(obj1); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4515 | if (arg1) (arg1)->width = arg2; |
4516 | ||
4517 | Py_INCREF(Py_None); resultobj = Py_None; | |
4518 | return resultobj; | |
4519 | fail: | |
4520 | return NULL; | |
4521 | } | |
4522 | ||
4523 | ||
4524 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4525 | PyObject *resultobj; | |
4526 | wxRect *arg1 = (wxRect *) 0 ; | |
4527 | int result; | |
4528 | PyObject * obj0 = 0 ; | |
4529 | char *kwnames[] = { | |
4530 | (char *) "self", NULL | |
4531 | }; | |
4532 | ||
4533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4536 | result = (int) ((arg1)->width); |
4537 | ||
2f4c0a16 | 4538 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4539 | return resultobj; |
4540 | fail: | |
4541 | return NULL; | |
4542 | } | |
4543 | ||
4544 | ||
4545 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4546 | PyObject *resultobj; | |
4547 | wxRect *arg1 = (wxRect *) 0 ; | |
4548 | int arg2 ; | |
4549 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4551 | char *kwnames[] = { |
4552 | (char *) "self",(char *) "height", NULL | |
4553 | }; | |
4554 | ||
8edf1c75 | 4555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4558 | arg2 = (int) SWIG_AsInt(obj1); | |
4559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4560 | if (arg1) (arg1)->height = arg2; |
4561 | ||
4562 | Py_INCREF(Py_None); resultobj = Py_None; | |
4563 | return resultobj; | |
4564 | fail: | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject *resultobj; | |
4571 | wxRect *arg1 = (wxRect *) 0 ; | |
4572 | int result; | |
4573 | PyObject * obj0 = 0 ; | |
4574 | char *kwnames[] = { | |
4575 | (char *) "self", NULL | |
4576 | }; | |
4577 | ||
4578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4581 | result = (int) ((arg1)->height); |
4582 | ||
2f4c0a16 | 4583 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4584 | return resultobj; |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
4590 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4591 | PyObject *resultobj; | |
4592 | wxRect *arg1 = (wxRect *) 0 ; | |
4593 | int arg2 = (int) 0 ; | |
4594 | int arg3 = (int) 0 ; | |
4595 | int arg4 = (int) 0 ; | |
4596 | int arg5 = (int) 0 ; | |
4597 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4598 | PyObject * obj1 = 0 ; |
4599 | PyObject * obj2 = 0 ; | |
4600 | PyObject * obj3 = 0 ; | |
4601 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4602 | char *kwnames[] = { |
4603 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4604 | }; | |
4605 | ||
8edf1c75 | 4606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4609 | if (obj1) { |
2f4c0a16 RD |
4610 | arg2 = (int) SWIG_AsInt(obj1); |
4611 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4612 | } |
4613 | if (obj2) { | |
2f4c0a16 RD |
4614 | arg3 = (int) SWIG_AsInt(obj2); |
4615 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4616 | } |
4617 | if (obj3) { | |
2f4c0a16 RD |
4618 | arg4 = (int) SWIG_AsInt(obj3); |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4620 | } |
4621 | if (obj4) { | |
2f4c0a16 RD |
4622 | arg5 = (int) SWIG_AsInt(obj4); |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4624 | } |
d14a1e28 RD |
4625 | { |
4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4627 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4628 | ||
4629 | wxPyEndAllowThreads(__tstate); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
4631 | } | |
4632 | Py_INCREF(Py_None); resultobj = Py_None; | |
4633 | return resultobj; | |
4634 | fail: | |
4635 | return NULL; | |
4636 | } | |
4637 | ||
4638 | ||
423f194a | 4639 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4640 | PyObject *resultobj; |
4641 | wxRect *arg1 = (wxRect *) 0 ; | |
4642 | PyObject *result; | |
4643 | PyObject * obj0 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self", NULL | |
4646 | }; | |
4647 | ||
423f194a | 4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4651 | { |
4652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4653 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4654 | |
4655 | wxPyEndAllowThreads(__tstate); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
4658 | resultobj = result; | |
4659 | return resultobj; | |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4666 | PyObject *obj; | |
4667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4668 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4669 | Py_INCREF(obj); | |
4670 | return Py_BuildValue((char *)""); | |
4671 | } | |
4672 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4673 | PyObject *resultobj; | |
4674 | wxRect *arg1 = (wxRect *) 0 ; | |
4675 | wxRect *arg2 = (wxRect *) 0 ; | |
4676 | PyObject *result; | |
4677 | PyObject * obj0 = 0 ; | |
4678 | PyObject * obj1 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "r1",(char *) "r2", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4688 | { |
4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4690 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4691 | ||
4692 | wxPyEndAllowThreads(__tstate); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | resultobj = result; | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
4702 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject *resultobj; | |
4704 | double arg1 = (double) 0.0 ; | |
4705 | double arg2 = (double) 0.0 ; | |
4706 | wxPoint2D *result; | |
8edf1c75 RD |
4707 | PyObject * obj0 = 0 ; |
4708 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4709 | char *kwnames[] = { |
4710 | (char *) "x",(char *) "y", NULL | |
4711 | }; | |
4712 | ||
8edf1c75 RD |
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4714 | if (obj0) { | |
2f4c0a16 RD |
4715 | arg1 = (double) SWIG_AsDouble(obj0); |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4717 | } |
4718 | if (obj1) { | |
2f4c0a16 RD |
4719 | arg2 = (double) SWIG_AsDouble(obj1); |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4721 | } |
d14a1e28 RD |
4722 | { |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
2f4c0a16 | 4729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4730 | return resultobj; |
4731 | fail: | |
4732 | return NULL; | |
4733 | } | |
4734 | ||
4735 | ||
4736 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4737 | PyObject *resultobj; | |
4738 | wxPoint2D *arg1 = 0 ; | |
4739 | wxPoint2D *result; | |
4740 | wxPoint2D temp1 ; | |
4741 | PyObject * obj0 = 0 ; | |
4742 | char *kwnames[] = { | |
4743 | (char *) "pt", NULL | |
4744 | }; | |
4745 | ||
4746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4747 | { | |
4748 | arg1 = &temp1; | |
4749 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
2f4c0a16 | 4758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4759 | return resultobj; |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
4765 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4766 | PyObject *resultobj; | |
4767 | wxPoint *arg1 = 0 ; | |
4768 | wxPoint2D *result; | |
4769 | wxPoint temp1 ; | |
4770 | PyObject * obj0 = 0 ; | |
4771 | char *kwnames[] = { | |
4772 | (char *) "pt", NULL | |
4773 | }; | |
4774 | ||
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4776 | { | |
4777 | arg1 = &temp1; | |
4778 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4779 | } | |
4780 | { | |
4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4782 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4783 | ||
4784 | wxPyEndAllowThreads(__tstate); | |
4785 | if (PyErr_Occurred()) SWIG_fail; | |
4786 | } | |
2f4c0a16 | 4787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4788 | return resultobj; |
4789 | fail: | |
4790 | return NULL; | |
4791 | } | |
4792 | ||
4793 | ||
4794 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4795 | PyObject *resultobj; | |
4796 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4797 | int *arg2 = (int *) 0 ; | |
4798 | int *arg3 = (int *) 0 ; | |
4799 | int temp2 ; | |
4800 | int temp3 ; | |
4801 | PyObject * obj0 = 0 ; | |
4802 | char *kwnames[] = { | |
4803 | (char *) "self", NULL | |
4804 | }; | |
4805 | ||
4806 | arg2 = &temp2; | |
4807 | arg3 = &temp3; | |
4808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4811 | { |
4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4813 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4814 | ||
4815 | wxPyEndAllowThreads(__tstate); | |
4816 | if (PyErr_Occurred()) SWIG_fail; | |
4817 | } | |
4818 | Py_INCREF(Py_None); resultobj = Py_None; | |
4819 | { | |
4820 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4821 | resultobj = t_output_helper(resultobj,o); | |
4822 | } | |
4823 | { | |
4824 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4825 | resultobj = t_output_helper(resultobj,o); | |
4826 | } | |
4827 | return resultobj; | |
4828 | fail: | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
4833 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject *resultobj; | |
4835 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4836 | int *arg2 = (int *) 0 ; | |
4837 | int *arg3 = (int *) 0 ; | |
4838 | int temp2 ; | |
4839 | int temp3 ; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self", NULL | |
4843 | }; | |
4844 | ||
4845 | arg2 = &temp2; | |
4846 | arg3 = &temp3; | |
4847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4850 | { |
4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4852 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4853 | ||
4854 | wxPyEndAllowThreads(__tstate); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
4857 | Py_INCREF(Py_None); resultobj = Py_None; | |
4858 | { | |
4859 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4860 | resultobj = t_output_helper(resultobj,o); | |
4861 | } | |
4862 | { | |
4863 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4864 | resultobj = t_output_helper(resultobj,o); | |
4865 | } | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | return NULL; | |
4869 | } | |
4870 | ||
4871 | ||
4872 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4873 | PyObject *resultobj; | |
4874 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4875 | double result; | |
4876 | PyObject * obj0 = 0 ; | |
4877 | char *kwnames[] = { | |
4878 | (char *) "self", NULL | |
4879 | }; | |
4880 | ||
4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4884 | { |
4885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4886 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4887 | ||
4888 | wxPyEndAllowThreads(__tstate); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | } | |
2f4c0a16 | 4891 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4892 | return resultobj; |
4893 | fail: | |
4894 | return NULL; | |
4895 | } | |
4896 | ||
4897 | ||
4898 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4899 | PyObject *resultobj; | |
4900 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4901 | double result; | |
4902 | PyObject * obj0 = 0 ; | |
4903 | char *kwnames[] = { | |
4904 | (char *) "self", NULL | |
4905 | }; | |
4906 | ||
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4910 | { |
4911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4912 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4913 | ||
4914 | wxPyEndAllowThreads(__tstate); | |
4915 | if (PyErr_Occurred()) SWIG_fail; | |
4916 | } | |
2f4c0a16 | 4917 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4918 | return resultobj; |
4919 | fail: | |
4920 | return NULL; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4925 | PyObject *resultobj; | |
4926 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4927 | double arg2 ; | |
4928 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4930 | char *kwnames[] = { |
4931 | (char *) "self",(char *) "length", NULL | |
4932 | }; | |
4933 | ||
8edf1c75 | 4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4937 | arg2 = (double) SWIG_AsDouble(obj1); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4939 | { |
4940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4941 | (arg1)->SetVectorLength(arg2); | |
4942 | ||
4943 | wxPyEndAllowThreads(__tstate); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
4945 | } | |
4946 | Py_INCREF(Py_None); resultobj = Py_None; | |
4947 | return resultobj; | |
4948 | fail: | |
4949 | return NULL; | |
4950 | } | |
4951 | ||
4952 | ||
4953 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject *resultobj; | |
4955 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4956 | double arg2 ; | |
4957 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4959 | char *kwnames[] = { |
4960 | (char *) "self",(char *) "degrees", NULL | |
4961 | }; | |
4962 | ||
8edf1c75 | 4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4966 | arg2 = (double) SWIG_AsDouble(obj1); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4968 | { |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | (arg1)->SetVectorAngle(arg2); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
4975 | Py_INCREF(Py_None); resultobj = Py_None; | |
4976 | return resultobj; | |
4977 | fail: | |
4978 | return NULL; | |
4979 | } | |
4980 | ||
4981 | ||
4982 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4983 | PyObject *resultobj; | |
4984 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4985 | wxPoint2D *arg2 = 0 ; | |
4986 | double result; | |
4987 | wxPoint2D temp2 ; | |
4988 | PyObject * obj0 = 0 ; | |
4989 | PyObject * obj1 = 0 ; | |
4990 | char *kwnames[] = { | |
4991 | (char *) "self",(char *) "pt", NULL | |
4992 | }; | |
4993 | ||
4994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4997 | { |
4998 | arg2 = &temp2; | |
4999 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5000 | } | |
5001 | { | |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
2f4c0a16 | 5008 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5009 | return resultobj; |
5010 | fail: | |
5011 | return NULL; | |
5012 | } | |
5013 | ||
5014 | ||
5015 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject *resultobj; | |
5017 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5018 | wxPoint2D *arg2 = 0 ; | |
5019 | double result; | |
5020 | wxPoint2D temp2 ; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | PyObject * obj1 = 0 ; | |
5023 | char *kwnames[] = { | |
5024 | (char *) "self",(char *) "pt", NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5030 | { |
5031 | arg2 = &temp2; | |
5032 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5033 | } | |
5034 | { | |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5036 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
5039 | if (PyErr_Occurred()) SWIG_fail; | |
5040 | } | |
2f4c0a16 | 5041 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5042 | return resultobj; |
5043 | fail: | |
5044 | return NULL; | |
5045 | } | |
5046 | ||
5047 | ||
5048 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject *resultobj; | |
5050 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5051 | wxPoint2D *arg2 = 0 ; | |
5052 | double result; | |
5053 | wxPoint2D temp2 ; | |
5054 | PyObject * obj0 = 0 ; | |
5055 | PyObject * obj1 = 0 ; | |
5056 | char *kwnames[] = { | |
5057 | (char *) "self",(char *) "vec", NULL | |
5058 | }; | |
5059 | ||
5060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5063 | { |
5064 | arg2 = &temp2; | |
5065 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5066 | } | |
5067 | { | |
5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5069 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5070 | ||
5071 | wxPyEndAllowThreads(__tstate); | |
5072 | if (PyErr_Occurred()) SWIG_fail; | |
5073 | } | |
2f4c0a16 | 5074 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5075 | return resultobj; |
5076 | fail: | |
5077 | return NULL; | |
5078 | } | |
5079 | ||
5080 | ||
5081 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5082 | PyObject *resultobj; | |
5083 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5084 | wxPoint2D *arg2 = 0 ; | |
5085 | double result; | |
5086 | wxPoint2D temp2 ; | |
5087 | PyObject * obj0 = 0 ; | |
5088 | PyObject * obj1 = 0 ; | |
5089 | char *kwnames[] = { | |
5090 | (char *) "self",(char *) "vec", NULL | |
5091 | }; | |
5092 | ||
5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5096 | { |
5097 | arg2 = &temp2; | |
5098 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5099 | } | |
5100 | { | |
5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5102 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5103 | ||
5104 | wxPyEndAllowThreads(__tstate); | |
5105 | if (PyErr_Occurred()) SWIG_fail; | |
5106 | } | |
2f4c0a16 | 5107 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5108 | return resultobj; |
5109 | fail: | |
5110 | return NULL; | |
5111 | } | |
5112 | ||
5113 | ||
5114 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5115 | PyObject *resultobj; | |
5116 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5117 | wxPoint2D result; | |
5118 | PyObject * obj0 = 0 ; | |
5119 | char *kwnames[] = { | |
5120 | (char *) "self", NULL | |
5121 | }; | |
5122 | ||
5123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5126 | { |
5127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5128 | result = (arg1)->operator -(); | |
5129 | ||
5130 | wxPyEndAllowThreads(__tstate); | |
5131 | if (PyErr_Occurred()) SWIG_fail; | |
5132 | } | |
5133 | { | |
5134 | wxPoint2D * resultptr; | |
5135 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
2f4c0a16 | 5136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5137 | } |
5138 | return resultobj; | |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5147 | wxPoint2D *arg2 = 0 ; | |
5148 | wxPoint2D *result; | |
5149 | wxPoint2D temp2 ; | |
5150 | PyObject * obj0 = 0 ; | |
5151 | PyObject * obj1 = 0 ; | |
5152 | char *kwnames[] = { | |
5153 | (char *) "self",(char *) "pt", NULL | |
5154 | }; | |
5155 | ||
5156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5159 | { |
5160 | arg2 = &temp2; | |
5161 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5162 | } | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | { | |
5166 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5167 | result = (wxPoint2D *) &_result_ref; | |
5168 | } | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
2f4c0a16 | 5173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5174 | return resultobj; |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
5180 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5181 | PyObject *resultobj; | |
5182 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5183 | wxPoint2D *arg2 = 0 ; | |
5184 | wxPoint2D *result; | |
5185 | wxPoint2D temp2 ; | |
5186 | PyObject * obj0 = 0 ; | |
5187 | PyObject * obj1 = 0 ; | |
5188 | char *kwnames[] = { | |
5189 | (char *) "self",(char *) "pt", NULL | |
5190 | }; | |
5191 | ||
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5195 | { |
5196 | arg2 = &temp2; | |
5197 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5198 | } | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | { | |
5202 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5203 | result = (wxPoint2D *) &_result_ref; | |
5204 | } | |
5205 | ||
5206 | wxPyEndAllowThreads(__tstate); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | } | |
2f4c0a16 | 5209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5210 | return resultobj; |
5211 | fail: | |
5212 | return NULL; | |
5213 | } | |
5214 | ||
5215 | ||
5216 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5217 | PyObject *resultobj; | |
5218 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5219 | wxPoint2D *arg2 = 0 ; | |
5220 | wxPoint2D *result; | |
5221 | wxPoint2D temp2 ; | |
5222 | PyObject * obj0 = 0 ; | |
5223 | PyObject * obj1 = 0 ; | |
5224 | char *kwnames[] = { | |
5225 | (char *) "self",(char *) "pt", NULL | |
5226 | }; | |
5227 | ||
5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5231 | { |
5232 | arg2 = &temp2; | |
5233 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5234 | } | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | { | |
5238 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5239 | result = (wxPoint2D *) &_result_ref; | |
5240 | } | |
5241 | ||
5242 | wxPyEndAllowThreads(__tstate); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
2f4c0a16 | 5245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5246 | return resultobj; |
5247 | fail: | |
5248 | return NULL; | |
5249 | } | |
5250 | ||
5251 | ||
5252 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5253 | PyObject *resultobj; | |
5254 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5255 | wxPoint2D *arg2 = 0 ; | |
5256 | wxPoint2D *result; | |
5257 | wxPoint2D temp2 ; | |
5258 | PyObject * obj0 = 0 ; | |
5259 | PyObject * obj1 = 0 ; | |
5260 | char *kwnames[] = { | |
5261 | (char *) "self",(char *) "pt", NULL | |
5262 | }; | |
5263 | ||
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5267 | { |
5268 | arg2 = &temp2; | |
5269 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5270 | } | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | { | |
5274 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5275 | result = (wxPoint2D *) &_result_ref; | |
5276 | } | |
5277 | ||
5278 | wxPyEndAllowThreads(__tstate); | |
5279 | if (PyErr_Occurred()) SWIG_fail; | |
5280 | } | |
2f4c0a16 | 5281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5282 | return resultobj; |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
5288 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj; | |
5290 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5291 | wxPoint2D *arg2 = 0 ; | |
5292 | bool result; | |
5293 | wxPoint2D temp2 ; | |
5294 | PyObject * obj0 = 0 ; | |
5295 | PyObject * obj1 = 0 ; | |
5296 | char *kwnames[] = { | |
5297 | (char *) "self",(char *) "pt", NULL | |
5298 | }; | |
5299 | ||
5300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5303 | { |
5304 | arg2 = &temp2; | |
5305 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5306 | } | |
5307 | { | |
5308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5309 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5310 | ||
5311 | wxPyEndAllowThreads(__tstate); | |
5312 | if (PyErr_Occurred()) SWIG_fail; | |
5313 | } | |
4f89f6a3 RD |
5314 | { |
5315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5316 | } | |
d14a1e28 RD |
5317 | return resultobj; |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5324 | PyObject *resultobj; | |
5325 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5326 | wxPoint2D *arg2 = 0 ; | |
5327 | bool result; | |
5328 | wxPoint2D temp2 ; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | PyObject * obj1 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self",(char *) "pt", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5338 | { |
5339 | arg2 = &temp2; | |
5340 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5341 | } | |
5342 | { | |
5343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5344 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5345 | ||
5346 | wxPyEndAllowThreads(__tstate); | |
5347 | if (PyErr_Occurred()) SWIG_fail; | |
5348 | } | |
4f89f6a3 RD |
5349 | { |
5350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5351 | } | |
d14a1e28 RD |
5352 | return resultobj; |
5353 | fail: | |
5354 | return NULL; | |
5355 | } | |
5356 | ||
5357 | ||
d14a1e28 RD |
5358 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5359 | PyObject *resultobj; | |
5360 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5361 | double arg2 ; | |
5362 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5364 | char *kwnames[] = { |
5365 | (char *) "self",(char *) "m_x", NULL | |
5366 | }; | |
5367 | ||
8edf1c75 | 5368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5371 | arg2 = (double) SWIG_AsDouble(obj1); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5373 | if (arg1) (arg1)->m_x = arg2; |
5374 | ||
5375 | Py_INCREF(Py_None); resultobj = Py_None; | |
5376 | return resultobj; | |
5377 | fail: | |
5378 | return NULL; | |
5379 | } | |
5380 | ||
5381 | ||
5382 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5383 | PyObject *resultobj; | |
5384 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5385 | double result; | |
5386 | PyObject * obj0 = 0 ; | |
5387 | char *kwnames[] = { | |
5388 | (char *) "self", NULL | |
5389 | }; | |
5390 | ||
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5394 | result = (double) ((arg1)->m_x); |
5395 | ||
2f4c0a16 | 5396 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5397 | return resultobj; |
5398 | fail: | |
5399 | return NULL; | |
5400 | } | |
5401 | ||
5402 | ||
5403 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject *resultobj; | |
5405 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5406 | double arg2 ; | |
5407 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5409 | char *kwnames[] = { |
5410 | (char *) "self",(char *) "m_y", NULL | |
5411 | }; | |
5412 | ||
8edf1c75 | 5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5416 | arg2 = (double) SWIG_AsDouble(obj1); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5418 | if (arg1) (arg1)->m_y = arg2; |
5419 | ||
5420 | Py_INCREF(Py_None); resultobj = Py_None; | |
5421 | return resultobj; | |
5422 | fail: | |
5423 | return NULL; | |
5424 | } | |
5425 | ||
5426 | ||
5427 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject *resultobj; | |
5429 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5430 | double result; | |
5431 | PyObject * obj0 = 0 ; | |
5432 | char *kwnames[] = { | |
5433 | (char *) "self", NULL | |
5434 | }; | |
5435 | ||
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5439 | result = (double) ((arg1)->m_y); |
5440 | ||
2f4c0a16 | 5441 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5442 | return resultobj; |
5443 | fail: | |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject *resultobj; | |
5450 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5451 | double arg2 = (double) 0 ; | |
5452 | double arg3 = (double) 0 ; | |
5453 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5454 | PyObject * obj1 = 0 ; |
5455 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5456 | char *kwnames[] = { |
5457 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5458 | }; | |
5459 | ||
8edf1c75 | 5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5463 | if (obj1) { |
2f4c0a16 RD |
5464 | arg2 = (double) SWIG_AsDouble(obj1); |
5465 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5466 | } |
5467 | if (obj2) { | |
2f4c0a16 RD |
5468 | arg3 = (double) SWIG_AsDouble(obj2); |
5469 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5470 | } |
d14a1e28 RD |
5471 | { |
5472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5473 | wxPoint2D_Set(arg1,arg2,arg3); | |
5474 | ||
5475 | wxPyEndAllowThreads(__tstate); | |
5476 | if (PyErr_Occurred()) SWIG_fail; | |
5477 | } | |
5478 | Py_INCREF(Py_None); resultobj = Py_None; | |
5479 | return resultobj; | |
5480 | fail: | |
5481 | return NULL; | |
5482 | } | |
5483 | ||
5484 | ||
423f194a | 5485 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5486 | PyObject *resultobj; |
5487 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5488 | PyObject *result; | |
5489 | PyObject * obj0 = 0 ; | |
5490 | char *kwnames[] = { | |
5491 | (char *) "self", NULL | |
5492 | }; | |
5493 | ||
423f194a | 5494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
5495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5497 | { |
5498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5499 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5500 | |
5501 | wxPyEndAllowThreads(__tstate); | |
5502 | if (PyErr_Occurred()) SWIG_fail; | |
5503 | } | |
5504 | resultobj = result; | |
5505 | return resultobj; | |
5506 | fail: | |
5507 | return NULL; | |
5508 | } | |
5509 | ||
5510 | ||
5511 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5512 | PyObject *obj; | |
5513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5514 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5515 | Py_INCREF(obj); | |
5516 | return Py_BuildValue((char *)""); | |
5517 | } | |
2f4c0a16 | 5518 | static int _wrap_DefaultPosition_set(PyObject *_val) { |
d14a1e28 RD |
5519 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5520 | return 1; | |
5521 | } | |
5522 | ||
5523 | ||
5524 | static PyObject *_wrap_DefaultPosition_get() { | |
5525 | PyObject *pyobj; | |
5526 | ||
2f4c0a16 | 5527 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5528 | return pyobj; |
5529 | } | |
5530 | ||
5531 | ||
2f4c0a16 | 5532 | static int _wrap_DefaultSize_set(PyObject *_val) { |
d14a1e28 RD |
5533 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5534 | return 1; | |
5535 | } | |
5536 | ||
5537 | ||
5538 | static PyObject *_wrap_DefaultSize_get() { | |
5539 | PyObject *pyobj; | |
5540 | ||
2f4c0a16 | 5541 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5542 | return pyobj; |
5543 | } | |
5544 | ||
5545 | ||
5546 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject *resultobj; | |
5548 | PyObject *arg1 = (PyObject *) 0 ; | |
5549 | wxPyInputStream *result; | |
5550 | PyObject * obj0 = 0 ; | |
5551 | char *kwnames[] = { | |
5552 | (char *) "p", NULL | |
5553 | }; | |
5554 | ||
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5556 | arg1 = obj0; | |
5557 | { | |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5559 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5560 | ||
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
2f4c0a16 | 5564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5565 | return resultobj; |
5566 | fail: | |
5567 | return NULL; | |
5568 | } | |
5569 | ||
5570 | ||
5571 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject *resultobj; | |
5573 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5574 | PyObject * obj0 = 0 ; | |
5575 | char *kwnames[] = { | |
5576 | (char *) "self", NULL | |
5577 | }; | |
5578 | ||
5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5582 | { |
5583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5584 | (arg1)->close(); | |
5585 | ||
5586 | wxPyEndAllowThreads(__tstate); | |
5587 | if (PyErr_Occurred()) SWIG_fail; | |
5588 | } | |
5589 | Py_INCREF(Py_None); resultobj = Py_None; | |
5590 | return resultobj; | |
5591 | fail: | |
5592 | return NULL; | |
5593 | } | |
5594 | ||
5595 | ||
5596 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5597 | PyObject *resultobj; | |
5598 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5599 | PyObject * obj0 = 0 ; | |
5600 | char *kwnames[] = { | |
5601 | (char *) "self", NULL | |
5602 | }; | |
5603 | ||
5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5607 | { |
5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5609 | (arg1)->flush(); | |
5610 | ||
5611 | wxPyEndAllowThreads(__tstate); | |
5612 | if (PyErr_Occurred()) SWIG_fail; | |
5613 | } | |
5614 | Py_INCREF(Py_None); resultobj = Py_None; | |
5615 | return resultobj; | |
5616 | fail: | |
5617 | return NULL; | |
5618 | } | |
5619 | ||
5620 | ||
5621 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5622 | PyObject *resultobj; | |
5623 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5624 | bool result; | |
5625 | PyObject * obj0 = 0 ; | |
5626 | char *kwnames[] = { | |
5627 | (char *) "self", NULL | |
5628 | }; | |
5629 | ||
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5633 | { |
5634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5635 | result = (bool)(arg1)->eof(); | |
5636 | ||
5637 | wxPyEndAllowThreads(__tstate); | |
5638 | if (PyErr_Occurred()) SWIG_fail; | |
5639 | } | |
4f89f6a3 RD |
5640 | { |
5641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5642 | } | |
d14a1e28 RD |
5643 | return resultobj; |
5644 | fail: | |
5645 | return NULL; | |
5646 | } | |
5647 | ||
5648 | ||
5649 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5650 | PyObject *resultobj; | |
5651 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5652 | int arg2 = (int) -1 ; | |
5653 | PyObject *result; | |
5654 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5655 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5656 | char *kwnames[] = { |
5657 | (char *) "self",(char *) "size", NULL | |
5658 | }; | |
5659 | ||
8edf1c75 | 5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5663 | if (obj1) { |
2f4c0a16 RD |
5664 | arg2 = (int) SWIG_AsInt(obj1); |
5665 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5666 | } |
d14a1e28 RD |
5667 | { |
5668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5669 | result = (PyObject *)(arg1)->read(arg2); | |
5670 | ||
5671 | wxPyEndAllowThreads(__tstate); | |
5672 | if (PyErr_Occurred()) SWIG_fail; | |
5673 | } | |
5674 | resultobj = result; | |
5675 | return resultobj; | |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
5681 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject *resultobj; | |
5683 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5684 | int arg2 = (int) -1 ; | |
5685 | PyObject *result; | |
5686 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5687 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5688 | char *kwnames[] = { |
5689 | (char *) "self",(char *) "size", NULL | |
5690 | }; | |
5691 | ||
8edf1c75 | 5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5695 | if (obj1) { |
2f4c0a16 RD |
5696 | arg2 = (int) SWIG_AsInt(obj1); |
5697 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5698 | } |
d14a1e28 RD |
5699 | { |
5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5701 | result = (PyObject *)(arg1)->readline(arg2); | |
5702 | ||
5703 | wxPyEndAllowThreads(__tstate); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | } | |
5706 | resultobj = result; | |
5707 | return resultobj; | |
5708 | fail: | |
5709 | return NULL; | |
5710 | } | |
5711 | ||
5712 | ||
5713 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject *resultobj; | |
5715 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5716 | int arg2 = (int) -1 ; | |
5717 | PyObject *result; | |
5718 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5720 | char *kwnames[] = { |
5721 | (char *) "self",(char *) "sizehint", NULL | |
5722 | }; | |
5723 | ||
8edf1c75 | 5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5727 | if (obj1) { |
2f4c0a16 RD |
5728 | arg2 = (int) SWIG_AsInt(obj1); |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5730 | } |
d14a1e28 RD |
5731 | { |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | result = (PyObject *)(arg1)->readlines(arg2); | |
5734 | ||
5735 | wxPyEndAllowThreads(__tstate); | |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
5737 | } | |
5738 | resultobj = result; | |
5739 | return resultobj; | |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
5745 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject *resultobj; | |
5747 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5748 | int arg2 ; | |
5749 | int arg3 = (int) 0 ; | |
5750 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5751 | PyObject * obj1 = 0 ; |
5752 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5753 | char *kwnames[] = { |
5754 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5755 | }; | |
5756 | ||
8edf1c75 | 5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5760 | arg2 = (int) SWIG_AsInt(obj1); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5762 | if (obj2) { |
2f4c0a16 RD |
5763 | arg3 = (int) SWIG_AsInt(obj2); |
5764 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5765 | } |
d14a1e28 RD |
5766 | { |
5767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5768 | (arg1)->seek(arg2,arg3); | |
5769 | ||
5770 | wxPyEndAllowThreads(__tstate); | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | } | |
5773 | Py_INCREF(Py_None); resultobj = Py_None; | |
5774 | return resultobj; | |
5775 | fail: | |
5776 | return NULL; | |
5777 | } | |
5778 | ||
5779 | ||
5780 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5781 | PyObject *resultobj; | |
5782 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5783 | int result; | |
5784 | PyObject * obj0 = 0 ; | |
5785 | char *kwnames[] = { | |
5786 | (char *) "self", NULL | |
5787 | }; | |
5788 | ||
5789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5792 | { |
5793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5794 | result = (int)(arg1)->tell(); | |
5795 | ||
5796 | wxPyEndAllowThreads(__tstate); | |
5797 | if (PyErr_Occurred()) SWIG_fail; | |
5798 | } | |
2f4c0a16 | 5799 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5800 | return resultobj; |
5801 | fail: | |
5802 | return NULL; | |
5803 | } | |
5804 | ||
5805 | ||
5806 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5807 | PyObject *resultobj; | |
5808 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5809 | char result; | |
5810 | PyObject * obj0 = 0 ; | |
5811 | char *kwnames[] = { | |
5812 | (char *) "self", NULL | |
5813 | }; | |
5814 | ||
5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5818 | { |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | result = (char)(arg1)->Peek(); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
2f4c0a16 | 5825 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5826 | return resultobj; |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5835 | char result; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5844 | { |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | result = (char)(arg1)->GetC(); | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
2f4c0a16 | 5851 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5852 | return resultobj; |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
5858 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5859 | PyObject *resultobj; | |
5860 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5861 | size_t result; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self", NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5870 | { |
5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5872 | result = (size_t)(arg1)->LastRead(); | |
5873 | ||
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
2f4c0a16 | 5877 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5878 | return resultobj; |
5879 | fail: | |
5880 | return NULL; | |
5881 | } | |
5882 | ||
5883 | ||
5884 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5885 | PyObject *resultobj; | |
5886 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5887 | bool result; | |
5888 | PyObject * obj0 = 0 ; | |
5889 | char *kwnames[] = { | |
5890 | (char *) "self", NULL | |
5891 | }; | |
5892 | ||
5893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5896 | { |
5897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5898 | result = (bool)(arg1)->CanRead(); | |
5899 | ||
5900 | wxPyEndAllowThreads(__tstate); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
5902 | } | |
4f89f6a3 RD |
5903 | { |
5904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5905 | } | |
d14a1e28 RD |
5906 | return resultobj; |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
5912 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5913 | PyObject *resultobj; | |
5914 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5915 | bool result; | |
5916 | PyObject * obj0 = 0 ; | |
5917 | char *kwnames[] = { | |
5918 | (char *) "self", NULL | |
5919 | }; | |
5920 | ||
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5924 | { |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | result = (bool)(arg1)->Eof(); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
4f89f6a3 RD |
5931 | { |
5932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5933 | } | |
d14a1e28 RD |
5934 | return resultobj; |
5935 | fail: | |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
5940 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5941 | PyObject *resultobj; | |
5942 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5943 | char arg2 ; | |
5944 | bool result; | |
5945 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5947 | char *kwnames[] = { |
5948 | (char *) "self",(char *) "c", NULL | |
5949 | }; | |
5950 | ||
8edf1c75 | 5951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5954 | arg2 = (char) SWIG_AsChar(obj1); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5956 | { |
5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5958 | result = (bool)(arg1)->Ungetch(arg2); | |
5959 | ||
5960 | wxPyEndAllowThreads(__tstate); | |
5961 | if (PyErr_Occurred()) SWIG_fail; | |
5962 | } | |
4f89f6a3 RD |
5963 | { |
5964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5965 | } | |
d14a1e28 RD |
5966 | return resultobj; |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5973 | PyObject *resultobj; | |
5974 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5975 | long arg2 ; | |
5976 | int arg3 = (int) wxFromStart ; | |
5977 | long result; | |
5978 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5979 | PyObject * obj1 = 0 ; |
5980 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5981 | char *kwnames[] = { |
5982 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5983 | }; | |
5984 | ||
8edf1c75 | 5985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5988 | arg2 = (long) SWIG_AsLong(obj1); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5990 | if (obj2) { |
2f4c0a16 RD |
5991 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5993 | } |
d14a1e28 RD |
5994 | { |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
2f4c0a16 | 6001 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6002 | return resultobj; |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
6008 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject *resultobj; | |
6010 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6011 | long result; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | char *kwnames[] = { | |
6014 | (char *) "self", NULL | |
6015 | }; | |
6016 | ||
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6020 | { |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (long)(arg1)->TellI(); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
2f4c0a16 | 6027 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6028 | return resultobj; |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6035 | PyObject *obj; | |
6036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6037 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6038 | Py_INCREF(obj); | |
6039 | return Py_BuildValue((char *)""); | |
6040 | } | |
6041 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6042 | PyObject *resultobj; | |
6043 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6044 | PyObject *arg2 = (PyObject *) 0 ; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | PyObject * obj1 = 0 ; | |
6047 | char *kwnames[] = { | |
6048 | (char *) "self",(char *) "obj", NULL | |
6049 | }; | |
6050 | ||
6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6054 | arg2 = obj1; |
6055 | { | |
6056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6057 | wxOutputStream_write(arg1,arg2); | |
6058 | ||
6059 | wxPyEndAllowThreads(__tstate); | |
6060 | if (PyErr_Occurred()) SWIG_fail; | |
6061 | } | |
6062 | Py_INCREF(Py_None); resultobj = Py_None; | |
6063 | return resultobj; | |
6064 | fail: | |
6065 | return NULL; | |
6066 | } | |
6067 | ||
6068 | ||
6069 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6070 | PyObject *obj; | |
6071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6072 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6073 | Py_INCREF(obj); | |
6074 | return Py_BuildValue((char *)""); | |
6075 | } | |
6076 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6077 | PyObject *resultobj; | |
6078 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6079 | wxString *arg2 = 0 ; | |
6080 | wxString *arg3 = 0 ; | |
6081 | wxString *arg4 = 0 ; | |
6082 | wxDateTime arg5 ; | |
6083 | wxFSFile *result; | |
6084 | wxPyInputStream *temp1 ; | |
6085 | bool created1 ; | |
423f194a RD |
6086 | bool temp2 = False ; |
6087 | bool temp3 = False ; | |
6088 | bool temp4 = False ; | |
d14a1e28 RD |
6089 | wxDateTime *argp5 ; |
6090 | PyObject * obj0 = 0 ; | |
6091 | PyObject * obj1 = 0 ; | |
6092 | PyObject * obj2 = 0 ; | |
6093 | PyObject * obj3 = 0 ; | |
6094 | PyObject * obj4 = 0 ; | |
6095 | char *kwnames[] = { | |
6096 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6097 | }; | |
6098 | ||
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6100 | { | |
6101 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6102 | arg1 = temp1->m_wxis; | |
423f194a | 6103 | created1 = False; |
d14a1e28 RD |
6104 | } else { |
6105 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 6106 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6107 | if (arg1 == NULL) { |
6108 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6109 | SWIG_fail; | |
6110 | } | |
423f194a | 6111 | created1 = True; |
d14a1e28 RD |
6112 | } |
6113 | } | |
6114 | { | |
6115 | arg2 = wxString_in_helper(obj1); | |
6116 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6117 | temp2 = True; |
d14a1e28 RD |
6118 | } |
6119 | { | |
6120 | arg3 = wxString_in_helper(obj2); | |
6121 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6122 | temp3 = True; |
d14a1e28 RD |
6123 | } |
6124 | { | |
6125 | arg4 = wxString_in_helper(obj3); | |
6126 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6127 | temp4 = True; |
d14a1e28 | 6128 | } |
2f4c0a16 RD |
6129 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6130 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6131 | arg5 = *argp5; | |
d14a1e28 RD |
6132 | { |
6133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6134 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6135 | ||
6136 | wxPyEndAllowThreads(__tstate); | |
6137 | if (PyErr_Occurred()) SWIG_fail; | |
6138 | } | |
6139 | { | |
6140 | resultobj = wxPyMake_wxObject(result); | |
6141 | } | |
6142 | { | |
6143 | if (created1) | |
6144 | delete arg1; | |
6145 | } | |
6146 | { | |
6147 | if (temp2) | |
6148 | delete arg2; | |
6149 | } | |
6150 | { | |
6151 | if (temp3) | |
6152 | delete arg3; | |
6153 | } | |
6154 | { | |
6155 | if (temp4) | |
6156 | delete arg4; | |
6157 | } | |
6158 | return resultobj; | |
6159 | fail: | |
6160 | { | |
6161 | if (created1) | |
6162 | delete arg1; | |
6163 | } | |
6164 | { | |
6165 | if (temp2) | |
6166 | delete arg2; | |
6167 | } | |
6168 | { | |
6169 | if (temp3) | |
6170 | delete arg3; | |
6171 | } | |
6172 | { | |
6173 | if (temp4) | |
6174 | delete arg4; | |
6175 | } | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
6180 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6181 | PyObject *resultobj; | |
6182 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6183 | PyObject * obj0 = 0 ; | |
6184 | char *kwnames[] = { | |
6185 | (char *) "self", NULL | |
6186 | }; | |
6187 | ||
6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6191 | { |
6192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6193 | delete arg1; | |
6194 | ||
6195 | wxPyEndAllowThreads(__tstate); | |
6196 | if (PyErr_Occurred()) SWIG_fail; | |
6197 | } | |
6198 | Py_INCREF(Py_None); resultobj = Py_None; | |
6199 | return resultobj; | |
6200 | fail: | |
6201 | return NULL; | |
6202 | } | |
6203 | ||
6204 | ||
6205 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6206 | PyObject *resultobj; | |
6207 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6208 | wxInputStream *result; | |
6209 | PyObject * obj0 = 0 ; | |
6210 | char *kwnames[] = { | |
6211 | (char *) "self", NULL | |
6212 | }; | |
6213 | ||
6214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6217 | { |
6218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6219 | result = (wxInputStream *)(arg1)->GetStream(); | |
6220 | ||
6221 | wxPyEndAllowThreads(__tstate); | |
6222 | if (PyErr_Occurred()) SWIG_fail; | |
6223 | } | |
6224 | { | |
6225 | wxPyInputStream * _ptr = NULL; | |
6226 | ||
6227 | if (result) { | |
6228 | _ptr = new wxPyInputStream(result); | |
6229 | } | |
423f194a | 6230 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6231 | } |
6232 | return resultobj; | |
6233 | fail: | |
6234 | return NULL; | |
6235 | } | |
6236 | ||
6237 | ||
6238 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6239 | PyObject *resultobj; | |
6240 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6241 | wxString *result; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | char *kwnames[] = { | |
6244 | (char *) "self", NULL | |
6245 | }; | |
6246 | ||
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6250 | { |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | { | |
6253 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6254 | result = (wxString *) &_result_ref; | |
6255 | } | |
6256 | ||
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
f0983263 RD |
6260 | { |
6261 | #if wxUSE_UNICODE | |
6262 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6263 | #else | |
6264 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6265 | #endif | |
6266 | } | |
d14a1e28 RD |
6267 | return resultobj; |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
6273 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject *resultobj; | |
6275 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6276 | wxString *result; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | char *kwnames[] = { | |
6279 | (char *) "self", NULL | |
6280 | }; | |
6281 | ||
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6285 | { |
6286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6287 | { | |
6288 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6289 | result = (wxString *) &_result_ref; | |
6290 | } | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
f0983263 RD |
6295 | { |
6296 | #if wxUSE_UNICODE | |
6297 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6298 | #else | |
6299 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6300 | #endif | |
6301 | } | |
d14a1e28 RD |
6302 | return resultobj; |
6303 | fail: | |
6304 | return NULL; | |
6305 | } | |
6306 | ||
6307 | ||
6308 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6309 | PyObject *resultobj; | |
6310 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6311 | wxString *result; | |
6312 | PyObject * obj0 = 0 ; | |
6313 | char *kwnames[] = { | |
6314 | (char *) "self", NULL | |
6315 | }; | |
6316 | ||
6317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6320 | { |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | { | |
6323 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6324 | result = (wxString *) &_result_ref; | |
6325 | } | |
6326 | ||
6327 | wxPyEndAllowThreads(__tstate); | |
6328 | if (PyErr_Occurred()) SWIG_fail; | |
6329 | } | |
f0983263 RD |
6330 | { |
6331 | #if wxUSE_UNICODE | |
6332 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6333 | #else | |
6334 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6335 | #endif | |
6336 | } | |
d14a1e28 RD |
6337 | return resultobj; |
6338 | fail: | |
6339 | return NULL; | |
6340 | } | |
6341 | ||
6342 | ||
6343 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6344 | PyObject *resultobj; | |
6345 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6346 | wxDateTime result; | |
6347 | PyObject * obj0 = 0 ; | |
6348 | char *kwnames[] = { | |
6349 | (char *) "self", NULL | |
6350 | }; | |
6351 | ||
6352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6355 | { |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | result = (arg1)->GetModificationTime(); | |
6358 | ||
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
6362 | { | |
6363 | wxDateTime * resultptr; | |
6364 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 6365 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6366 | } |
6367 | return resultobj; | |
6368 | fail: | |
6369 | return NULL; | |
6370 | } | |
6371 | ||
6372 | ||
6373 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6374 | PyObject *obj; | |
6375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6376 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6377 | Py_INCREF(obj); | |
6378 | return Py_BuildValue((char *)""); | |
6379 | } | |
6380 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6381 | PyObject *obj; | |
6382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6383 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6384 | Py_INCREF(obj); | |
6385 | return Py_BuildValue((char *)""); | |
6386 | } | |
6387 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject *resultobj; | |
6389 | wxPyFileSystemHandler *result; | |
6390 | char *kwnames[] = { | |
6391 | NULL | |
6392 | }; | |
6393 | ||
6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
2f4c0a16 | 6402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6403 | return resultobj; |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6410 | PyObject *resultobj; | |
6411 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6412 | PyObject *arg2 = (PyObject *) 0 ; | |
6413 | PyObject *arg3 = (PyObject *) 0 ; | |
6414 | PyObject * obj0 = 0 ; | |
6415 | PyObject * obj1 = 0 ; | |
6416 | PyObject * obj2 = 0 ; | |
6417 | char *kwnames[] = { | |
6418 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6424 | arg2 = obj1; |
6425 | arg3 = obj2; | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | Py_INCREF(Py_None); resultobj = Py_None; | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6441 | PyObject *resultobj; | |
6442 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6443 | wxString *arg2 = 0 ; | |
6444 | bool result; | |
423f194a | 6445 | bool temp2 = False ; |
d14a1e28 RD |
6446 | PyObject * obj0 = 0 ; |
6447 | PyObject * obj1 = 0 ; | |
6448 | char *kwnames[] = { | |
6449 | (char *) "self",(char *) "location", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6455 | { |
6456 | arg2 = wxString_in_helper(obj1); | |
6457 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6458 | temp2 = True; |
d14a1e28 RD |
6459 | } |
6460 | { | |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
4f89f6a3 RD |
6467 | { |
6468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6469 | } | |
d14a1e28 RD |
6470 | { |
6471 | if (temp2) | |
6472 | delete arg2; | |
6473 | } | |
6474 | return resultobj; | |
6475 | fail: | |
6476 | { | |
6477 | if (temp2) | |
6478 | delete arg2; | |
6479 | } | |
6480 | return NULL; | |
6481 | } | |
6482 | ||
6483 | ||
6484 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6485 | PyObject *resultobj; | |
6486 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6487 | wxFileSystem *arg2 = 0 ; | |
6488 | wxString *arg3 = 0 ; | |
6489 | wxFSFile *result; | |
423f194a | 6490 | bool temp3 = False ; |
d14a1e28 RD |
6491 | PyObject * obj0 = 0 ; |
6492 | PyObject * obj1 = 0 ; | |
6493 | PyObject * obj2 = 0 ; | |
6494 | char *kwnames[] = { | |
6495 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6496 | }; | |
6497 | ||
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6501 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6503 | SWIG_fail; | |
d14a1e28 | 6504 | if (arg2 == NULL) { |
2f4c0a16 RD |
6505 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6506 | SWIG_fail; | |
d14a1e28 RD |
6507 | } |
6508 | { | |
6509 | arg3 = wxString_in_helper(obj2); | |
6510 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6511 | temp3 = True; |
d14a1e28 RD |
6512 | } |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | { | |
6521 | resultobj = wxPyMake_wxObject(result); | |
6522 | } | |
6523 | { | |
6524 | if (temp3) | |
6525 | delete arg3; | |
6526 | } | |
6527 | return resultobj; | |
6528 | fail: | |
6529 | { | |
6530 | if (temp3) | |
6531 | delete arg3; | |
6532 | } | |
6533 | return NULL; | |
6534 | } | |
6535 | ||
6536 | ||
6537 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6538 | PyObject *resultobj; | |
6539 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6540 | wxString *arg2 = 0 ; | |
6541 | int arg3 = (int) 0 ; | |
6542 | wxString result; | |
423f194a | 6543 | bool temp2 = False ; |
d14a1e28 RD |
6544 | PyObject * obj0 = 0 ; |
6545 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6546 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6547 | char *kwnames[] = { |
6548 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6549 | }; | |
6550 | ||
8edf1c75 | 6551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6554 | { |
6555 | arg2 = wxString_in_helper(obj1); | |
6556 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6557 | temp2 = True; |
d14a1e28 | 6558 | } |
8edf1c75 | 6559 | if (obj2) { |
2f4c0a16 RD |
6560 | arg3 = (int) SWIG_AsInt(obj2); |
6561 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6562 | } |
d14a1e28 RD |
6563 | { |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | { | |
6571 | #if wxUSE_UNICODE | |
6572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6573 | #else | |
6574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6575 | #endif | |
6576 | } | |
6577 | { | |
6578 | if (temp2) | |
6579 | delete arg2; | |
6580 | } | |
6581 | return resultobj; | |
6582 | fail: | |
6583 | { | |
6584 | if (temp2) | |
6585 | delete arg2; | |
6586 | } | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
6591 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6592 | PyObject *resultobj; | |
6593 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6594 | wxString result; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6603 | { |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | result = (arg1)->FindNext(); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | { | |
6611 | #if wxUSE_UNICODE | |
6612 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6613 | #else | |
6614 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6615 | #endif | |
6616 | } | |
6617 | return resultobj; | |
6618 | fail: | |
6619 | return NULL; | |
6620 | } | |
6621 | ||
6622 | ||
6623 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6624 | PyObject *resultobj; | |
6625 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6626 | wxString *arg2 = 0 ; | |
6627 | wxString result; | |
423f194a | 6628 | bool temp2 = False ; |
d14a1e28 RD |
6629 | PyObject * obj0 = 0 ; |
6630 | PyObject * obj1 = 0 ; | |
6631 | char *kwnames[] = { | |
6632 | (char *) "self",(char *) "location", NULL | |
6633 | }; | |
6634 | ||
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6638 | { |
6639 | arg2 = wxString_in_helper(obj1); | |
6640 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6641 | temp2 = True; |
d14a1e28 RD |
6642 | } |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
6650 | { | |
6651 | #if wxUSE_UNICODE | |
6652 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6653 | #else | |
6654 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6655 | #endif | |
6656 | } | |
6657 | { | |
6658 | if (temp2) | |
6659 | delete arg2; | |
6660 | } | |
6661 | return resultobj; | |
6662 | fail: | |
6663 | { | |
6664 | if (temp2) | |
6665 | delete arg2; | |
6666 | } | |
6667 | return NULL; | |
6668 | } | |
6669 | ||
6670 | ||
6671 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6672 | PyObject *resultobj; | |
6673 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6674 | wxString *arg2 = 0 ; | |
6675 | wxString result; | |
423f194a | 6676 | bool temp2 = False ; |
d14a1e28 RD |
6677 | PyObject * obj0 = 0 ; |
6678 | PyObject * obj1 = 0 ; | |
6679 | char *kwnames[] = { | |
6680 | (char *) "self",(char *) "location", NULL | |
6681 | }; | |
6682 | ||
6683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6686 | { |
6687 | arg2 = wxString_in_helper(obj1); | |
6688 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6689 | temp2 = True; |
d14a1e28 RD |
6690 | } |
6691 | { | |
6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6693 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6694 | ||
6695 | wxPyEndAllowThreads(__tstate); | |
6696 | if (PyErr_Occurred()) SWIG_fail; | |
6697 | } | |
6698 | { | |
6699 | #if wxUSE_UNICODE | |
6700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6701 | #else | |
6702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6703 | #endif | |
6704 | } | |
6705 | { | |
6706 | if (temp2) | |
6707 | delete arg2; | |
6708 | } | |
6709 | return resultobj; | |
6710 | fail: | |
6711 | { | |
6712 | if (temp2) | |
6713 | delete arg2; | |
6714 | } | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
6719 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject *resultobj; | |
6721 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6722 | wxString *arg2 = 0 ; | |
6723 | wxString result; | |
423f194a | 6724 | bool temp2 = False ; |
d14a1e28 RD |
6725 | PyObject * obj0 = 0 ; |
6726 | PyObject * obj1 = 0 ; | |
6727 | char *kwnames[] = { | |
6728 | (char *) "self",(char *) "location", NULL | |
6729 | }; | |
6730 | ||
6731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6734 | { |
6735 | arg2 = wxString_in_helper(obj1); | |
6736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6737 | temp2 = True; |
d14a1e28 RD |
6738 | } |
6739 | { | |
6740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6741 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6742 | ||
6743 | wxPyEndAllowThreads(__tstate); | |
6744 | if (PyErr_Occurred()) SWIG_fail; | |
6745 | } | |
6746 | { | |
6747 | #if wxUSE_UNICODE | |
6748 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6749 | #else | |
6750 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6751 | #endif | |
6752 | } | |
6753 | { | |
6754 | if (temp2) | |
6755 | delete arg2; | |
6756 | } | |
6757 | return resultobj; | |
6758 | fail: | |
6759 | { | |
6760 | if (temp2) | |
6761 | delete arg2; | |
6762 | } | |
6763 | return NULL; | |
6764 | } | |
6765 | ||
6766 | ||
6767 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject *resultobj; | |
6769 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6770 | wxString *arg2 = 0 ; | |
6771 | wxString result; | |
423f194a | 6772 | bool temp2 = False ; |
d14a1e28 RD |
6773 | PyObject * obj0 = 0 ; |
6774 | PyObject * obj1 = 0 ; | |
6775 | char *kwnames[] = { | |
6776 | (char *) "self",(char *) "location", NULL | |
6777 | }; | |
6778 | ||
6779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6782 | { |
6783 | arg2 = wxString_in_helper(obj1); | |
6784 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6785 | temp2 = True; |
d14a1e28 RD |
6786 | } |
6787 | { | |
6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6789 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) SWIG_fail; | |
6793 | } | |
6794 | { | |
6795 | #if wxUSE_UNICODE | |
6796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6797 | #else | |
6798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6799 | #endif | |
6800 | } | |
6801 | { | |
6802 | if (temp2) | |
6803 | delete arg2; | |
6804 | } | |
6805 | return resultobj; | |
6806 | fail: | |
6807 | { | |
6808 | if (temp2) | |
6809 | delete arg2; | |
6810 | } | |
6811 | return NULL; | |
6812 | } | |
6813 | ||
6814 | ||
6815 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6816 | PyObject *resultobj; | |
6817 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6818 | wxString *arg2 = 0 ; | |
6819 | wxString result; | |
423f194a | 6820 | bool temp2 = False ; |
d14a1e28 RD |
6821 | PyObject * obj0 = 0 ; |
6822 | PyObject * obj1 = 0 ; | |
6823 | char *kwnames[] = { | |
6824 | (char *) "self",(char *) "location", NULL | |
6825 | }; | |
6826 | ||
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6830 | { |
6831 | arg2 = wxString_in_helper(obj1); | |
6832 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6833 | temp2 = True; |
d14a1e28 RD |
6834 | } |
6835 | { | |
6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6837 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6838 | ||
6839 | wxPyEndAllowThreads(__tstate); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | } | |
6842 | { | |
6843 | #if wxUSE_UNICODE | |
6844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6845 | #else | |
6846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6847 | #endif | |
6848 | } | |
6849 | { | |
6850 | if (temp2) | |
6851 | delete arg2; | |
6852 | } | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | { | |
6856 | if (temp2) | |
6857 | delete arg2; | |
6858 | } | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6864 | PyObject *obj; | |
6865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6866 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6867 | Py_INCREF(obj); | |
6868 | return Py_BuildValue((char *)""); | |
6869 | } | |
6870 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject *resultobj; | |
6872 | wxFileSystem *result; | |
6873 | char *kwnames[] = { | |
6874 | NULL | |
6875 | }; | |
6876 | ||
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6878 | { | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | result = (wxFileSystem *)new wxFileSystem(); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | { | |
6886 | resultobj = wxPyMake_wxObject(result); | |
6887 | } | |
6888 | return resultobj; | |
6889 | fail: | |
6890 | return NULL; | |
6891 | } | |
6892 | ||
6893 | ||
6894 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6895 | PyObject *resultobj; | |
6896 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6897 | PyObject * obj0 = 0 ; | |
6898 | char *kwnames[] = { | |
6899 | (char *) "self", NULL | |
6900 | }; | |
6901 | ||
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6905 | { |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | delete arg1; | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
6912 | Py_INCREF(Py_None); resultobj = Py_None; | |
6913 | return resultobj; | |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
6919 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject *resultobj; | |
6921 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6922 | wxString *arg2 = 0 ; | |
423f194a RD |
6923 | bool arg3 = (bool) False ; |
6924 | bool temp2 = False ; | |
d14a1e28 RD |
6925 | PyObject * obj0 = 0 ; |
6926 | PyObject * obj1 = 0 ; | |
6927 | PyObject * obj2 = 0 ; | |
6928 | char *kwnames[] = { | |
6929 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6930 | }; | |
6931 | ||
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6935 | { |
6936 | arg2 = wxString_in_helper(obj1); | |
6937 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6938 | temp2 = True; |
d14a1e28 RD |
6939 | } |
6940 | if (obj2) { | |
2f4c0a16 RD |
6941 | arg3 = (bool) SWIG_AsBool(obj2); |
6942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6943 | } |
6944 | { | |
6945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6946 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6947 | ||
6948 | wxPyEndAllowThreads(__tstate); | |
6949 | if (PyErr_Occurred()) SWIG_fail; | |
6950 | } | |
6951 | Py_INCREF(Py_None); resultobj = Py_None; | |
6952 | { | |
6953 | if (temp2) | |
6954 | delete arg2; | |
6955 | } | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | { | |
6959 | if (temp2) | |
6960 | delete arg2; | |
6961 | } | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6969 | wxString result; | |
6970 | PyObject * obj0 = 0 ; | |
6971 | char *kwnames[] = { | |
6972 | (char *) "self", NULL | |
6973 | }; | |
6974 | ||
6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6978 | { |
6979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6980 | result = (arg1)->GetPath(); | |
6981 | ||
6982 | wxPyEndAllowThreads(__tstate); | |
6983 | if (PyErr_Occurred()) SWIG_fail; | |
6984 | } | |
6985 | { | |
6986 | #if wxUSE_UNICODE | |
6987 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6988 | #else | |
6989 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6990 | #endif | |
6991 | } | |
6992 | return resultobj; | |
6993 | fail: | |
6994 | return NULL; | |
6995 | } | |
6996 | ||
6997 | ||
6998 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6999 | PyObject *resultobj; | |
7000 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7001 | wxString *arg2 = 0 ; | |
7002 | wxFSFile *result; | |
423f194a | 7003 | bool temp2 = False ; |
d14a1e28 RD |
7004 | PyObject * obj0 = 0 ; |
7005 | PyObject * obj1 = 0 ; | |
7006 | char *kwnames[] = { | |
7007 | (char *) "self",(char *) "location", NULL | |
7008 | }; | |
7009 | ||
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7013 | { |
7014 | arg2 = wxString_in_helper(obj1); | |
7015 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7016 | temp2 = True; |
d14a1e28 RD |
7017 | } |
7018 | { | |
7019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7020 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7021 | ||
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | { | |
7026 | resultobj = wxPyMake_wxObject(result); | |
7027 | } | |
7028 | { | |
7029 | if (temp2) | |
7030 | delete arg2; | |
7031 | } | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | { | |
7035 | if (temp2) | |
7036 | delete arg2; | |
7037 | } | |
7038 | return NULL; | |
7039 | } | |
7040 | ||
7041 | ||
7042 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject *resultobj; | |
7044 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7045 | wxString *arg2 = 0 ; | |
7046 | int arg3 = (int) 0 ; | |
7047 | wxString result; | |
423f194a | 7048 | bool temp2 = False ; |
d14a1e28 RD |
7049 | PyObject * obj0 = 0 ; |
7050 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7051 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7052 | char *kwnames[] = { |
7053 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7054 | }; | |
7055 | ||
8edf1c75 | 7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7059 | { |
7060 | arg2 = wxString_in_helper(obj1); | |
7061 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7062 | temp2 = True; |
d14a1e28 | 7063 | } |
8edf1c75 | 7064 | if (obj2) { |
2f4c0a16 RD |
7065 | arg3 = (int) SWIG_AsInt(obj2); |
7066 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7067 | } |
d14a1e28 RD |
7068 | { |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7070 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
7073 | if (PyErr_Occurred()) SWIG_fail; | |
7074 | } | |
7075 | { | |
7076 | #if wxUSE_UNICODE | |
7077 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7078 | #else | |
7079 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7080 | #endif | |
7081 | } | |
7082 | { | |
7083 | if (temp2) | |
7084 | delete arg2; | |
7085 | } | |
7086 | return resultobj; | |
7087 | fail: | |
7088 | { | |
7089 | if (temp2) | |
7090 | delete arg2; | |
7091 | } | |
7092 | return NULL; | |
7093 | } | |
7094 | ||
7095 | ||
7096 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject *resultobj; | |
7098 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7099 | wxString result; | |
7100 | PyObject * obj0 = 0 ; | |
7101 | char *kwnames[] = { | |
7102 | (char *) "self", NULL | |
7103 | }; | |
7104 | ||
7105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7108 | { |
7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7110 | result = (arg1)->FindNext(); | |
7111 | ||
7112 | wxPyEndAllowThreads(__tstate); | |
7113 | if (PyErr_Occurred()) SWIG_fail; | |
7114 | } | |
7115 | { | |
7116 | #if wxUSE_UNICODE | |
7117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7118 | #else | |
7119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7120 | #endif | |
7121 | } | |
7122 | return resultobj; | |
7123 | fail: | |
7124 | return NULL; | |
7125 | } | |
7126 | ||
7127 | ||
7128 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7129 | PyObject *resultobj; | |
7130 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7131 | PyObject * obj0 = 0 ; | |
7132 | char *kwnames[] = { | |
7133 | (char *) "handler", NULL | |
7134 | }; | |
7135 | ||
7136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7139 | { |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | wxFileSystem::AddHandler(arg1); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | Py_INCREF(Py_None); resultobj = Py_None; | |
7147 | return resultobj; | |
7148 | fail: | |
7149 | return NULL; | |
7150 | } | |
7151 | ||
7152 | ||
7153 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7154 | PyObject *resultobj; | |
7155 | char *kwnames[] = { | |
7156 | NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | wxFileSystem::CleanUpHandlers(); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | Py_INCREF(Py_None); resultobj = Py_None; | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxString *arg1 = 0 ; | |
7177 | wxString result; | |
423f194a | 7178 | bool temp1 = False ; |
d14a1e28 RD |
7179 | PyObject * obj0 = 0 ; |
7180 | char *kwnames[] = { | |
7181 | (char *) "filename", NULL | |
7182 | }; | |
7183 | ||
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7185 | { | |
7186 | arg1 = wxString_in_helper(obj0); | |
7187 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7188 | temp1 = True; |
d14a1e28 RD |
7189 | } |
7190 | { | |
7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7192 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7193 | ||
7194 | wxPyEndAllowThreads(__tstate); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | } | |
7197 | { | |
7198 | #if wxUSE_UNICODE | |
7199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7200 | #else | |
7201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7202 | #endif | |
7203 | } | |
7204 | { | |
7205 | if (temp1) | |
7206 | delete arg1; | |
7207 | } | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | { | |
7211 | if (temp1) | |
7212 | delete arg1; | |
7213 | } | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
7218 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7219 | PyObject *obj; | |
7220 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7221 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7222 | Py_INCREF(obj); | |
7223 | return Py_BuildValue((char *)""); | |
7224 | } | |
7225 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject *resultobj; | |
7227 | wxString *arg1 = 0 ; | |
7228 | wxString result; | |
423f194a | 7229 | bool temp1 = False ; |
d14a1e28 RD |
7230 | PyObject * obj0 = 0 ; |
7231 | char *kwnames[] = { | |
7232 | (char *) "url", NULL | |
7233 | }; | |
7234 | ||
7235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7236 | { | |
7237 | arg1 = wxString_in_helper(obj0); | |
7238 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7239 | temp1 = True; |
d14a1e28 RD |
7240 | } |
7241 | { | |
7242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7243 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7244 | ||
7245 | wxPyEndAllowThreads(__tstate); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | { | |
7249 | #if wxUSE_UNICODE | |
7250 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7251 | #else | |
7252 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7253 | #endif | |
7254 | } | |
7255 | { | |
7256 | if (temp1) | |
7257 | delete arg1; | |
7258 | } | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | { | |
7262 | if (temp1) | |
7263 | delete arg1; | |
7264 | } | |
7265 | return NULL; | |
7266 | } | |
7267 | ||
7268 | ||
7269 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7270 | PyObject *resultobj; | |
7271 | wxInternetFSHandler *result; | |
7272 | char *kwnames[] = { | |
7273 | NULL | |
7274 | }; | |
7275 | ||
7276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7277 | { | |
7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7279 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7280 | ||
7281 | wxPyEndAllowThreads(__tstate); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
2f4c0a16 | 7284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7285 | return resultobj; |
7286 | fail: | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
7291 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject *resultobj; | |
7293 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7294 | wxString *arg2 = 0 ; | |
7295 | bool result; | |
423f194a | 7296 | bool temp2 = False ; |
d14a1e28 RD |
7297 | PyObject * obj0 = 0 ; |
7298 | PyObject * obj1 = 0 ; | |
7299 | char *kwnames[] = { | |
7300 | (char *) "self",(char *) "location", NULL | |
7301 | }; | |
7302 | ||
7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7306 | { |
7307 | arg2 = wxString_in_helper(obj1); | |
7308 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7309 | temp2 = True; |
d14a1e28 RD |
7310 | } |
7311 | { | |
7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7313 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7314 | ||
7315 | wxPyEndAllowThreads(__tstate); | |
7316 | if (PyErr_Occurred()) SWIG_fail; | |
7317 | } | |
4f89f6a3 RD |
7318 | { |
7319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7320 | } | |
d14a1e28 RD |
7321 | { |
7322 | if (temp2) | |
7323 | delete arg2; | |
7324 | } | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | { | |
7328 | if (temp2) | |
7329 | delete arg2; | |
7330 | } | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
7337 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7338 | wxFileSystem *arg2 = 0 ; | |
7339 | wxString *arg3 = 0 ; | |
7340 | wxFSFile *result; | |
423f194a | 7341 | bool temp3 = False ; |
d14a1e28 RD |
7342 | PyObject * obj0 = 0 ; |
7343 | PyObject * obj1 = 0 ; | |
7344 | PyObject * obj2 = 0 ; | |
7345 | char *kwnames[] = { | |
7346 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7347 | }; | |
7348 | ||
7349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7354 | SWIG_fail; | |
d14a1e28 | 7355 | if (arg2 == NULL) { |
2f4c0a16 RD |
7356 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7357 | SWIG_fail; | |
d14a1e28 RD |
7358 | } |
7359 | { | |
7360 | arg3 = wxString_in_helper(obj2); | |
7361 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7362 | temp3 = True; |
d14a1e28 RD |
7363 | } |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | { | |
7372 | resultobj = wxPyMake_wxObject(result); | |
7373 | } | |
7374 | { | |
7375 | if (temp3) | |
7376 | delete arg3; | |
7377 | } | |
7378 | return resultobj; | |
7379 | fail: | |
7380 | { | |
7381 | if (temp3) | |
7382 | delete arg3; | |
7383 | } | |
7384 | return NULL; | |
7385 | } | |
7386 | ||
7387 | ||
7388 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7389 | PyObject *obj; | |
7390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7391 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7392 | Py_INCREF(obj); | |
7393 | return Py_BuildValue((char *)""); | |
7394 | } | |
7395 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7396 | PyObject *resultobj; | |
7397 | wxZipFSHandler *result; | |
7398 | char *kwnames[] = { | |
7399 | NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7403 | { | |
7404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7405 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7406 | ||
7407 | wxPyEndAllowThreads(__tstate); | |
7408 | if (PyErr_Occurred()) SWIG_fail; | |
7409 | } | |
2f4c0a16 | 7410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7411 | return resultobj; |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj; | |
7419 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7420 | wxString *arg2 = 0 ; | |
7421 | bool result; | |
423f194a | 7422 | bool temp2 = False ; |
d14a1e28 RD |
7423 | PyObject * obj0 = 0 ; |
7424 | PyObject * obj1 = 0 ; | |
7425 | char *kwnames[] = { | |
7426 | (char *) "self",(char *) "location", NULL | |
7427 | }; | |
7428 | ||
7429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7432 | { |
7433 | arg2 = wxString_in_helper(obj1); | |
7434 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7435 | temp2 = True; |
d14a1e28 RD |
7436 | } |
7437 | { | |
7438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7439 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7440 | ||
7441 | wxPyEndAllowThreads(__tstate); | |
7442 | if (PyErr_Occurred()) SWIG_fail; | |
7443 | } | |
4f89f6a3 RD |
7444 | { |
7445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7446 | } | |
d14a1e28 RD |
7447 | { |
7448 | if (temp2) | |
7449 | delete arg2; | |
7450 | } | |
7451 | return resultobj; | |
7452 | fail: | |
7453 | { | |
7454 | if (temp2) | |
7455 | delete arg2; | |
7456 | } | |
7457 | return NULL; | |
7458 | } | |
7459 | ||
7460 | ||
7461 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7462 | PyObject *resultobj; | |
7463 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7464 | wxFileSystem *arg2 = 0 ; | |
7465 | wxString *arg3 = 0 ; | |
7466 | wxFSFile *result; | |
423f194a | 7467 | bool temp3 = False ; |
d14a1e28 RD |
7468 | PyObject * obj0 = 0 ; |
7469 | PyObject * obj1 = 0 ; | |
7470 | PyObject * obj2 = 0 ; | |
7471 | char *kwnames[] = { | |
7472 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7473 | }; | |
7474 | ||
7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7479 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7480 | SWIG_fail; | |
d14a1e28 | 7481 | if (arg2 == NULL) { |
2f4c0a16 RD |
7482 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7483 | SWIG_fail; | |
d14a1e28 RD |
7484 | } |
7485 | { | |
7486 | arg3 = wxString_in_helper(obj2); | |
7487 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7488 | temp3 = True; |
d14a1e28 RD |
7489 | } |
7490 | { | |
7491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7492 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7493 | ||
7494 | wxPyEndAllowThreads(__tstate); | |
7495 | if (PyErr_Occurred()) SWIG_fail; | |
7496 | } | |
7497 | { | |
7498 | resultobj = wxPyMake_wxObject(result); | |
7499 | } | |
7500 | { | |
7501 | if (temp3) | |
7502 | delete arg3; | |
7503 | } | |
7504 | return resultobj; | |
7505 | fail: | |
7506 | { | |
7507 | if (temp3) | |
7508 | delete arg3; | |
7509 | } | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7515 | PyObject *resultobj; | |
7516 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7517 | wxString *arg2 = 0 ; | |
7518 | int arg3 = (int) 0 ; | |
7519 | wxString result; | |
423f194a | 7520 | bool temp2 = False ; |
d14a1e28 RD |
7521 | PyObject * obj0 = 0 ; |
7522 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7523 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7524 | char *kwnames[] = { |
7525 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7526 | }; | |
7527 | ||
8edf1c75 | 7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7531 | { |
7532 | arg2 = wxString_in_helper(obj1); | |
7533 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7534 | temp2 = True; |
d14a1e28 | 7535 | } |
8edf1c75 | 7536 | if (obj2) { |
2f4c0a16 RD |
7537 | arg3 = (int) SWIG_AsInt(obj2); |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7539 | } |
d14a1e28 RD |
7540 | { |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | { | |
7548 | #if wxUSE_UNICODE | |
7549 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7550 | #else | |
7551 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7552 | #endif | |
7553 | } | |
7554 | { | |
7555 | if (temp2) | |
7556 | delete arg2; | |
7557 | } | |
7558 | return resultobj; | |
7559 | fail: | |
7560 | { | |
7561 | if (temp2) | |
7562 | delete arg2; | |
7563 | } | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj; | |
7570 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7571 | wxString result; | |
7572 | PyObject * obj0 = 0 ; | |
7573 | char *kwnames[] = { | |
7574 | (char *) "self", NULL | |
7575 | }; | |
7576 | ||
7577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7580 | { |
7581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7582 | result = (arg1)->FindNext(); | |
7583 | ||
7584 | wxPyEndAllowThreads(__tstate); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
7587 | { | |
7588 | #if wxUSE_UNICODE | |
7589 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7590 | #else | |
7591 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7592 | #endif | |
7593 | } | |
7594 | return resultobj; | |
7595 | fail: | |
7596 | return NULL; | |
7597 | } | |
7598 | ||
7599 | ||
7600 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7601 | PyObject *obj; | |
7602 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7603 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7604 | Py_INCREF(obj); | |
7605 | return Py_BuildValue((char *)""); | |
7606 | } | |
7607 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7608 | PyObject *resultobj; | |
7609 | wxString *arg1 = 0 ; | |
7610 | wxImage *arg2 = 0 ; | |
7611 | long arg3 ; | |
423f194a | 7612 | bool temp1 = False ; |
d14a1e28 RD |
7613 | PyObject * obj0 = 0 ; |
7614 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7615 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7616 | char *kwnames[] = { |
7617 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7618 | }; | |
7619 | ||
8edf1c75 | 7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7621 | { |
7622 | arg1 = wxString_in_helper(obj0); | |
7623 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7624 | temp1 = True; |
d14a1e28 | 7625 | } |
2f4c0a16 RD |
7626 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7627 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7628 | SWIG_fail; | |
d14a1e28 | 7629 | if (arg2 == NULL) { |
2f4c0a16 RD |
7630 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7631 | SWIG_fail; | |
8edf1c75 | 7632 | } |
2f4c0a16 RD |
7633 | arg3 = (long) SWIG_AsLong(obj2); |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7635 | { |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | Py_INCREF(Py_None); resultobj = Py_None; | |
7643 | { | |
7644 | if (temp1) | |
7645 | delete arg1; | |
7646 | } | |
7647 | return resultobj; | |
7648 | fail: | |
7649 | { | |
7650 | if (temp1) | |
7651 | delete arg1; | |
7652 | } | |
7653 | return NULL; | |
7654 | } | |
7655 | ||
7656 | ||
7657 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7658 | PyObject *resultobj; | |
7659 | wxString *arg1 = 0 ; | |
7660 | wxBitmap *arg2 = 0 ; | |
7661 | long arg3 ; | |
423f194a | 7662 | bool temp1 = False ; |
d14a1e28 RD |
7663 | PyObject * obj0 = 0 ; |
7664 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7665 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7666 | char *kwnames[] = { |
7667 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7668 | }; | |
7669 | ||
8edf1c75 | 7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7671 | { |
7672 | arg1 = wxString_in_helper(obj0); | |
7673 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7674 | temp1 = True; |
d14a1e28 | 7675 | } |
2f4c0a16 RD |
7676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7678 | SWIG_fail; | |
d14a1e28 | 7679 | if (arg2 == NULL) { |
2f4c0a16 RD |
7680 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7681 | SWIG_fail; | |
8edf1c75 | 7682 | } |
2f4c0a16 RD |
7683 | arg3 = (long) SWIG_AsLong(obj2); |
7684 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7685 | { |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
7691 | } | |
7692 | Py_INCREF(Py_None); resultobj = Py_None; | |
7693 | { | |
7694 | if (temp1) | |
7695 | delete arg1; | |
7696 | } | |
7697 | return resultobj; | |
7698 | fail: | |
7699 | { | |
7700 | if (temp1) | |
7701 | delete arg1; | |
7702 | } | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
7707 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7708 | PyObject *resultobj; | |
7709 | wxString *arg1 = 0 ; | |
7710 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7711 | bool temp1 = False ; |
d14a1e28 RD |
7712 | PyObject * obj0 = 0 ; |
7713 | PyObject * obj1 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "filename",(char *) "data", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7719 | { | |
7720 | arg1 = wxString_in_helper(obj0); | |
7721 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7722 | temp1 = True; |
d14a1e28 RD |
7723 | } |
7724 | arg2 = obj1; | |
7725 | { | |
7726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7727 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7728 | ||
7729 | wxPyEndAllowThreads(__tstate); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | } | |
7732 | Py_INCREF(Py_None); resultobj = Py_None; | |
7733 | { | |
7734 | if (temp1) | |
7735 | delete arg1; | |
7736 | } | |
7737 | return resultobj; | |
7738 | fail: | |
7739 | { | |
7740 | if (temp1) | |
7741 | delete arg1; | |
7742 | } | |
7743 | return NULL; | |
7744 | } | |
7745 | ||
7746 | ||
7747 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7748 | PyObject *resultobj; | |
7749 | wxMemoryFSHandler *result; | |
7750 | char *kwnames[] = { | |
7751 | NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
2f4c0a16 | 7762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7763 | return resultobj; |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | wxString *arg1 = 0 ; | |
423f194a | 7772 | bool temp1 = False ; |
d14a1e28 RD |
7773 | PyObject * obj0 = 0 ; |
7774 | char *kwnames[] = { | |
7775 | (char *) "filename", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7779 | { | |
7780 | arg1 = wxString_in_helper(obj0); | |
7781 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7782 | temp1 = True; |
d14a1e28 RD |
7783 | } |
7784 | { | |
7785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7786 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7787 | ||
7788 | wxPyEndAllowThreads(__tstate); | |
7789 | if (PyErr_Occurred()) SWIG_fail; | |
7790 | } | |
7791 | Py_INCREF(Py_None); resultobj = Py_None; | |
7792 | { | |
7793 | if (temp1) | |
7794 | delete arg1; | |
7795 | } | |
7796 | return resultobj; | |
7797 | fail: | |
7798 | { | |
7799 | if (temp1) | |
7800 | delete arg1; | |
7801 | } | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
7806 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7807 | PyObject *resultobj; | |
7808 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7809 | wxString *arg2 = 0 ; | |
7810 | bool result; | |
423f194a | 7811 | bool temp2 = False ; |
d14a1e28 RD |
7812 | PyObject * obj0 = 0 ; |
7813 | PyObject * obj1 = 0 ; | |
7814 | char *kwnames[] = { | |
7815 | (char *) "self",(char *) "location", NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7821 | { |
7822 | arg2 = wxString_in_helper(obj1); | |
7823 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7824 | temp2 = True; |
d14a1e28 RD |
7825 | } |
7826 | { | |
7827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7828 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7829 | ||
7830 | wxPyEndAllowThreads(__tstate); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | } | |
4f89f6a3 RD |
7833 | { |
7834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7835 | } | |
d14a1e28 RD |
7836 | { |
7837 | if (temp2) | |
7838 | delete arg2; | |
7839 | } | |
7840 | return resultobj; | |
7841 | fail: | |
7842 | { | |
7843 | if (temp2) | |
7844 | delete arg2; | |
7845 | } | |
7846 | return NULL; | |
7847 | } | |
7848 | ||
7849 | ||
7850 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7851 | PyObject *resultobj; | |
7852 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7853 | wxFileSystem *arg2 = 0 ; | |
7854 | wxString *arg3 = 0 ; | |
7855 | wxFSFile *result; | |
423f194a | 7856 | bool temp3 = False ; |
d14a1e28 RD |
7857 | PyObject * obj0 = 0 ; |
7858 | PyObject * obj1 = 0 ; | |
7859 | PyObject * obj2 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7869 | SWIG_fail; | |
d14a1e28 | 7870 | if (arg2 == NULL) { |
2f4c0a16 RD |
7871 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7872 | SWIG_fail; | |
d14a1e28 RD |
7873 | } |
7874 | { | |
7875 | arg3 = wxString_in_helper(obj2); | |
7876 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7877 | temp3 = True; |
d14a1e28 RD |
7878 | } |
7879 | { | |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7882 | ||
7883 | wxPyEndAllowThreads(__tstate); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | { | |
7887 | resultobj = wxPyMake_wxObject(result); | |
7888 | } | |
7889 | { | |
7890 | if (temp3) | |
7891 | delete arg3; | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | { | |
7896 | if (temp3) | |
7897 | delete arg3; | |
7898 | } | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7906 | wxString *arg2 = 0 ; | |
7907 | int arg3 = (int) 0 ; | |
7908 | wxString result; | |
423f194a | 7909 | bool temp2 = False ; |
d14a1e28 RD |
7910 | PyObject * obj0 = 0 ; |
7911 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7912 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7913 | char *kwnames[] = { |
7914 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7915 | }; | |
7916 | ||
8edf1c75 | 7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7920 | { |
7921 | arg2 = wxString_in_helper(obj1); | |
7922 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7923 | temp2 = True; |
d14a1e28 | 7924 | } |
8edf1c75 | 7925 | if (obj2) { |
2f4c0a16 RD |
7926 | arg3 = (int) SWIG_AsInt(obj2); |
7927 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7928 | } |
d14a1e28 RD |
7929 | { |
7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7931 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7932 | ||
7933 | wxPyEndAllowThreads(__tstate); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
7936 | { | |
7937 | #if wxUSE_UNICODE | |
7938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7939 | #else | |
7940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7941 | #endif | |
7942 | } | |
7943 | { | |
7944 | if (temp2) | |
7945 | delete arg2; | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | { | |
7950 | if (temp2) | |
7951 | delete arg2; | |
7952 | } | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
7957 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject *resultobj; | |
7959 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7960 | wxString result; | |
7961 | PyObject * obj0 = 0 ; | |
7962 | char *kwnames[] = { | |
7963 | (char *) "self", NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7969 | { |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | result = (arg1)->FindNext(); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | { | |
7977 | #if wxUSE_UNICODE | |
7978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7979 | #else | |
7980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7981 | #endif | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | return NULL; | |
7986 | } | |
7987 | ||
7988 | ||
7989 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7990 | PyObject *obj; | |
7991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7992 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7993 | Py_INCREF(obj); | |
7994 | return Py_BuildValue((char *)""); | |
7995 | } | |
7996 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7997 | PyObject *resultobj; | |
7998 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
7999 | wxString result; | |
8000 | PyObject * obj0 = 0 ; | |
8001 | char *kwnames[] = { | |
8002 | (char *) "self", NULL | |
8003 | }; | |
8004 | ||
8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8008 | { |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | result = (arg1)->GetName(); | |
8011 | ||
8012 | wxPyEndAllowThreads(__tstate); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | { | |
8016 | #if wxUSE_UNICODE | |
8017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8018 | #else | |
8019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8020 | #endif | |
8021 | } | |
8022 | return resultobj; | |
8023 | fail: | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject *_wrap_ImageHandler_GetExtension(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_GetExtension",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)->GetExtension(); | |
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_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8061 | PyObject *resultobj; | |
8062 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8063 | long result; | |
8064 | PyObject * obj0 = 0 ; | |
8065 | char *kwnames[] = { | |
8066 | (char *) "self", NULL | |
8067 | }; | |
8068 | ||
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8072 | { |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8074 | result = (long)(arg1)->GetType(); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | } | |
2f4c0a16 | 8079 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8080 | return resultobj; |
8081 | fail: | |
8082 | return NULL; | |
8083 | } | |
8084 | ||
8085 | ||
8086 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8087 | PyObject *resultobj; | |
8088 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8089 | wxString result; | |
8090 | PyObject * obj0 = 0 ; | |
8091 | char *kwnames[] = { | |
8092 | (char *) "self", NULL | |
8093 | }; | |
8094 | ||
8095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8098 | { |
8099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8100 | result = (arg1)->GetMimeType(); | |
8101 | ||
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
8105 | { | |
8106 | #if wxUSE_UNICODE | |
8107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8108 | #else | |
8109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8110 | #endif | |
8111 | } | |
8112 | return resultobj; | |
8113 | fail: | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
8118 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8119 | PyObject *resultobj; | |
8120 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8121 | wxString *arg2 = 0 ; | |
8122 | bool result; | |
423f194a | 8123 | bool temp2 = False ; |
d14a1e28 RD |
8124 | PyObject * obj0 = 0 ; |
8125 | PyObject * obj1 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "self",(char *) "name", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8133 | { |
8134 | arg2 = wxString_in_helper(obj1); | |
8135 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8136 | temp2 = True; |
d14a1e28 RD |
8137 | } |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
4f89f6a3 RD |
8145 | { |
8146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8147 | } | |
d14a1e28 RD |
8148 | { |
8149 | if (temp2) | |
8150 | delete arg2; | |
8151 | } | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | { | |
8155 | if (temp2) | |
8156 | delete arg2; | |
8157 | } | |
8158 | return NULL; | |
8159 | } | |
8160 | ||
8161 | ||
8162 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8163 | PyObject *resultobj; | |
8164 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8165 | wxString *arg2 = 0 ; | |
423f194a | 8166 | bool temp2 = False ; |
d14a1e28 RD |
8167 | PyObject * obj0 = 0 ; |
8168 | PyObject * obj1 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "self",(char *) "name", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8176 | { |
8177 | arg2 = wxString_in_helper(obj1); | |
8178 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8179 | temp2 = True; |
d14a1e28 RD |
8180 | } |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | (arg1)->SetName((wxString const &)*arg2); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | Py_INCREF(Py_None); resultobj = Py_None; | |
8189 | { | |
8190 | if (temp2) | |
8191 | delete arg2; | |
8192 | } | |
8193 | return resultobj; | |
8194 | fail: | |
8195 | { | |
8196 | if (temp2) | |
8197 | delete arg2; | |
8198 | } | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8206 | wxString *arg2 = 0 ; | |
423f194a | 8207 | bool temp2 = False ; |
d14a1e28 RD |
8208 | PyObject * obj0 = 0 ; |
8209 | PyObject * obj1 = 0 ; | |
8210 | char *kwnames[] = { | |
8211 | (char *) "self",(char *) "extension", NULL | |
8212 | }; | |
8213 | ||
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8217 | { |
8218 | arg2 = wxString_in_helper(obj1); | |
8219 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8220 | temp2 = True; |
d14a1e28 RD |
8221 | } |
8222 | { | |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | (arg1)->SetExtension((wxString const &)*arg2); | |
8225 | ||
8226 | wxPyEndAllowThreads(__tstate); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
8229 | Py_INCREF(Py_None); resultobj = Py_None; | |
8230 | { | |
8231 | if (temp2) | |
8232 | delete arg2; | |
8233 | } | |
8234 | return resultobj; | |
8235 | fail: | |
8236 | { | |
8237 | if (temp2) | |
8238 | delete arg2; | |
8239 | } | |
8240 | return NULL; | |
8241 | } | |
8242 | ||
8243 | ||
8244 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject *resultobj; | |
8246 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8247 | long arg2 ; | |
8248 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8250 | char *kwnames[] = { |
8251 | (char *) "self",(char *) "type", NULL | |
8252 | }; | |
8253 | ||
8edf1c75 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8257 | arg2 = (long) SWIG_AsLong(obj1); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8259 | { |
8260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8261 | (arg1)->SetType(arg2); | |
8262 | ||
8263 | wxPyEndAllowThreads(__tstate); | |
8264 | if (PyErr_Occurred()) SWIG_fail; | |
8265 | } | |
8266 | Py_INCREF(Py_None); resultobj = Py_None; | |
8267 | return resultobj; | |
8268 | fail: | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8276 | wxString *arg2 = 0 ; | |
423f194a | 8277 | bool temp2 = False ; |
d14a1e28 RD |
8278 | PyObject * obj0 = 0 ; |
8279 | PyObject * obj1 = 0 ; | |
8280 | char *kwnames[] = { | |
8281 | (char *) "self",(char *) "mimetype", NULL | |
8282 | }; | |
8283 | ||
8284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8287 | { |
8288 | arg2 = wxString_in_helper(obj1); | |
8289 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8290 | temp2 = True; |
d14a1e28 RD |
8291 | } |
8292 | { | |
8293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8294 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8295 | ||
8296 | wxPyEndAllowThreads(__tstate); | |
8297 | if (PyErr_Occurred()) SWIG_fail; | |
8298 | } | |
8299 | Py_INCREF(Py_None); resultobj = Py_None; | |
8300 | { | |
8301 | if (temp2) | |
8302 | delete arg2; | |
8303 | } | |
8304 | return resultobj; | |
8305 | fail: | |
8306 | { | |
8307 | if (temp2) | |
8308 | delete arg2; | |
8309 | } | |
8310 | return NULL; | |
8311 | } | |
8312 | ||
8313 | ||
8314 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8315 | PyObject *obj; | |
8316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8317 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8318 | Py_INCREF(obj); | |
8319 | return Py_BuildValue((char *)""); | |
8320 | } | |
8321 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8322 | PyObject *resultobj; | |
8323 | wxImageHistogram *result; | |
8324 | char *kwnames[] = { | |
8325 | NULL | |
8326 | }; | |
8327 | ||
8328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8329 | { | |
8330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8331 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8332 | ||
8333 | wxPyEndAllowThreads(__tstate); | |
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | } | |
2f4c0a16 | 8336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8337 | return resultobj; |
8338 | fail: | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8344 | PyObject *resultobj; | |
8345 | unsigned char arg1 ; | |
8346 | unsigned char arg2 ; | |
8347 | unsigned char arg3 ; | |
8348 | unsigned long result; | |
8349 | PyObject * obj0 = 0 ; | |
8350 | PyObject * obj1 = 0 ; | |
8351 | PyObject * obj2 = 0 ; | |
8352 | char *kwnames[] = { | |
8353 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8354 | }; | |
8355 | ||
8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8357 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8360 | if (PyErr_Occurred()) SWIG_fail; | |
8361 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8362 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8363 | { |
8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8365 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8366 | ||
8367 | wxPyEndAllowThreads(__tstate); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
8369 | } | |
2f4c0a16 | 8370 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8371 | return resultobj; |
8372 | fail: | |
8373 | return NULL; | |
8374 | } | |
8375 | ||
8376 | ||
8377 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8378 | PyObject *resultobj; | |
8379 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8380 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8381 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8382 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8383 | unsigned char arg5 = (unsigned char) 1 ; | |
8384 | unsigned char arg6 = (unsigned char) 0 ; | |
8385 | unsigned char arg7 = (unsigned char) 0 ; | |
8386 | bool result; | |
8387 | unsigned char temp2 ; | |
8388 | unsigned char temp3 ; | |
8389 | unsigned char temp4 ; | |
8390 | PyObject * obj0 = 0 ; | |
8391 | PyObject * obj1 = 0 ; | |
8392 | PyObject * obj2 = 0 ; | |
8393 | PyObject * obj3 = 0 ; | |
8394 | char *kwnames[] = { | |
8395 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8396 | }; | |
8397 | ||
8398 | arg2 = &temp2; | |
8399 | arg3 = &temp3; | |
8400 | arg4 = &temp4; | |
8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
8402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8404 | if (obj1) { |
2f4c0a16 RD |
8405 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8407 | } |
8408 | if (obj2) { | |
2f4c0a16 RD |
8409 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8411 | } |
8412 | if (obj3) { | |
2f4c0a16 RD |
8413 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8415 | } |
8416 | { | |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) SWIG_fail; | |
8422 | } | |
4f89f6a3 RD |
8423 | { |
8424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8425 | } | |
d14a1e28 RD |
8426 | { |
8427 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8428 | resultobj = t_output_helper(resultobj,o); | |
8429 | } | |
8430 | { | |
8431 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8432 | resultobj = t_output_helper(resultobj,o); | |
8433 | } | |
8434 | { | |
8435 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8436 | resultobj = t_output_helper(resultobj,o); | |
8437 | } | |
8438 | return resultobj; | |
8439 | fail: | |
8440 | return NULL; | |
8441 | } | |
8442 | ||
8443 | ||
8444 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8445 | PyObject *obj; | |
8446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8447 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8448 | Py_INCREF(obj); | |
8449 | return Py_BuildValue((char *)""); | |
8450 | } | |
8451 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxString *arg1 = 0 ; | |
8454 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8455 | int arg3 = (int) -1 ; | |
8456 | wxImage *result; | |
423f194a | 8457 | bool temp1 = False ; |
d14a1e28 | 8458 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8459 | PyObject * obj1 = 0 ; |
8460 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8461 | char *kwnames[] = { |
8462 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8463 | }; | |
8464 | ||
8edf1c75 | 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8466 | { |
8467 | arg1 = wxString_in_helper(obj0); | |
8468 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8469 | temp1 = True; |
d14a1e28 | 8470 | } |
8edf1c75 | 8471 | if (obj1) { |
2f4c0a16 RD |
8472 | arg2 = (long) SWIG_AsLong(obj1); |
8473 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8474 | } |
8475 | if (obj2) { | |
2f4c0a16 RD |
8476 | arg3 = (int) SWIG_AsInt(obj2); |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8478 | } |
d14a1e28 RD |
8479 | { |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
2f4c0a16 | 8486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8487 | { |
8488 | if (temp1) | |
8489 | delete arg1; | |
8490 | } | |
8491 | return resultobj; | |
8492 | fail: | |
8493 | { | |
8494 | if (temp1) | |
8495 | delete arg1; | |
8496 | } | |
8497 | return NULL; | |
8498 | } | |
8499 | ||
8500 | ||
8501 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8502 | PyObject *resultobj; | |
8503 | wxImage *arg1 = (wxImage *) 0 ; | |
8504 | PyObject * obj0 = 0 ; | |
8505 | char *kwnames[] = { | |
8506 | (char *) "self", NULL | |
8507 | }; | |
8508 | ||
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8512 | { |
8513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8514 | delete arg1; | |
8515 | ||
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | Py_INCREF(Py_None); resultobj = Py_None; | |
8520 | return resultobj; | |
8521 | fail: | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
8526 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject *resultobj; | |
8528 | wxString *arg1 = 0 ; | |
8529 | wxString *arg2 = 0 ; | |
8530 | int arg3 = (int) -1 ; | |
8531 | wxImage *result; | |
423f194a RD |
8532 | bool temp1 = False ; |
8533 | bool temp2 = False ; | |
d14a1e28 RD |
8534 | PyObject * obj0 = 0 ; |
8535 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8536 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8537 | char *kwnames[] = { |
8538 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8539 | }; | |
8540 | ||
8edf1c75 | 8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8542 | { |
8543 | arg1 = wxString_in_helper(obj0); | |
8544 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8545 | temp1 = True; |
d14a1e28 RD |
8546 | } |
8547 | { | |
8548 | arg2 = wxString_in_helper(obj1); | |
8549 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8550 | temp2 = True; |
d14a1e28 | 8551 | } |
8edf1c75 | 8552 | if (obj2) { |
2f4c0a16 RD |
8553 | arg3 = (int) SWIG_AsInt(obj2); |
8554 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8555 | } |
d14a1e28 RD |
8556 | { |
8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8558 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8559 | ||
8560 | wxPyEndAllowThreads(__tstate); | |
8561 | if (PyErr_Occurred()) SWIG_fail; | |
8562 | } | |
2f4c0a16 | 8563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8564 | { |
8565 | if (temp1) | |
8566 | delete arg1; | |
8567 | } | |
8568 | { | |
8569 | if (temp2) | |
8570 | delete arg2; | |
8571 | } | |
8572 | return resultobj; | |
8573 | fail: | |
8574 | { | |
8575 | if (temp1) | |
8576 | delete arg1; | |
8577 | } | |
8578 | { | |
8579 | if (temp2) | |
8580 | delete arg2; | |
8581 | } | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8587 | PyObject *resultobj; | |
8588 | wxInputStream *arg1 = 0 ; | |
8589 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8590 | int arg3 = (int) -1 ; | |
8591 | wxImage *result; | |
8592 | wxPyInputStream *temp1 ; | |
8593 | bool created1 ; | |
8594 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8595 | PyObject * obj1 = 0 ; |
8596 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8597 | char *kwnames[] = { |
8598 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8599 | }; | |
8600 | ||
8edf1c75 | 8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8602 | { |
8603 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8604 | arg1 = temp1->m_wxis; | |
423f194a | 8605 | created1 = False; |
d14a1e28 RD |
8606 | } else { |
8607 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8608 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8609 | if (arg1 == NULL) { |
8610 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8611 | SWIG_fail; | |
8612 | } | |
423f194a | 8613 | created1 = True; |
d14a1e28 RD |
8614 | } |
8615 | } | |
8edf1c75 | 8616 | if (obj1) { |
2f4c0a16 RD |
8617 | arg2 = (long) SWIG_AsLong(obj1); |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8619 | } |
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,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 | return resultobj; | |
8637 | fail: | |
8638 | { | |
8639 | if (created1) | |
8640 | delete arg1; | |
8641 | } | |
8642 | return NULL; | |
8643 | } | |
8644 | ||
8645 | ||
8646 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj; | |
8648 | wxInputStream *arg1 = 0 ; | |
8649 | wxString *arg2 = 0 ; | |
8650 | int arg3 = (int) -1 ; | |
8651 | wxImage *result; | |
8652 | wxPyInputStream *temp1 ; | |
8653 | bool created1 ; | |
423f194a | 8654 | bool temp2 = False ; |
d14a1e28 RD |
8655 | PyObject * obj0 = 0 ; |
8656 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8657 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8658 | char *kwnames[] = { |
8659 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8660 | }; | |
8661 | ||
8edf1c75 | 8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8663 | { |
8664 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8665 | arg1 = temp1->m_wxis; | |
423f194a | 8666 | created1 = False; |
d14a1e28 RD |
8667 | } else { |
8668 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8669 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8670 | if (arg1 == NULL) { |
8671 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8672 | SWIG_fail; | |
8673 | } | |
423f194a | 8674 | created1 = True; |
d14a1e28 RD |
8675 | } |
8676 | } | |
8677 | { | |
8678 | arg2 = wxString_in_helper(obj1); | |
8679 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8680 | temp2 = True; |
d14a1e28 | 8681 | } |
8edf1c75 | 8682 | if (obj2) { |
2f4c0a16 RD |
8683 | arg3 = (int) SWIG_AsInt(obj2); |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8685 | } |
d14a1e28 RD |
8686 | { |
8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8688 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8689 | ||
8690 | wxPyEndAllowThreads(__tstate); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | } | |
2f4c0a16 | 8693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8694 | { |
8695 | if (created1) | |
8696 | delete arg1; | |
8697 | } | |
8698 | { | |
8699 | if (temp2) | |
8700 | delete arg2; | |
8701 | } | |
8702 | return resultobj; | |
8703 | fail: | |
8704 | { | |
8705 | if (created1) | |
8706 | delete arg1; | |
8707 | } | |
8708 | { | |
8709 | if (temp2) | |
8710 | delete arg2; | |
8711 | } | |
8712 | return NULL; | |
8713 | } | |
8714 | ||
8715 | ||
8716 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8717 | PyObject *resultobj; | |
8718 | int arg1 = (int) 0 ; | |
8719 | int arg2 = (int) 0 ; | |
423f194a | 8720 | bool arg3 = (bool) True ; |
d14a1e28 | 8721 | wxImage *result; |
8edf1c75 RD |
8722 | PyObject * obj0 = 0 ; |
8723 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8724 | PyObject * obj2 = 0 ; |
8725 | char *kwnames[] = { | |
8726 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8727 | }; | |
8728 | ||
8edf1c75 RD |
8729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8730 | if (obj0) { | |
2f4c0a16 RD |
8731 | arg1 = (int) SWIG_AsInt(obj0); |
8732 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8733 | } |
8734 | if (obj1) { | |
2f4c0a16 RD |
8735 | arg2 = (int) SWIG_AsInt(obj1); |
8736 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8737 | } |
d14a1e28 | 8738 | if (obj2) { |
2f4c0a16 RD |
8739 | arg3 = (bool) SWIG_AsBool(obj2); |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8741 | } |
8742 | { | |
8743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8744 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8745 | ||
8746 | wxPyEndAllowThreads(__tstate); | |
8747 | if (PyErr_Occurred()) SWIG_fail; | |
8748 | } | |
2f4c0a16 | 8749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8750 | return resultobj; |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj; | |
8758 | wxBitmap *arg1 = 0 ; | |
8759 | wxImage *result; | |
8760 | PyObject * obj0 = 0 ; | |
8761 | char *kwnames[] = { | |
8762 | (char *) "bitmap", NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8767 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8768 | SWIG_fail; | |
d14a1e28 | 8769 | if (arg1 == NULL) { |
2f4c0a16 RD |
8770 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8771 | SWIG_fail; | |
d14a1e28 RD |
8772 | } |
8773 | { | |
8774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8775 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8776 | ||
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) SWIG_fail; | |
8779 | } | |
2f4c0a16 | 8780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8781 | return resultobj; |
8782 | fail: | |
8783 | return NULL; | |
8784 | } | |
8785 | ||
8786 | ||
8787 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8788 | PyObject *resultobj; | |
8789 | int arg1 ; | |
8790 | int arg2 ; | |
8791 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8792 | wxImage *result; | |
8edf1c75 RD |
8793 | PyObject * obj0 = 0 ; |
8794 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8795 | PyObject * obj2 = 0 ; |
8796 | char *kwnames[] = { | |
8797 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8798 | }; | |
8799 | ||
8edf1c75 | 8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8801 | arg1 = (int) SWIG_AsInt(obj0); |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | arg2 = (int) SWIG_AsInt(obj1); | |
8804 | if (PyErr_Occurred()) SWIG_fail; | |
8805 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8807 | { |
8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8809 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8810 | ||
8811 | wxPyEndAllowThreads(__tstate); | |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
8813 | } | |
2f4c0a16 | 8814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8815 | return resultobj; |
8816 | fail: | |
8817 | return NULL; | |
8818 | } | |
8819 | ||
8820 | ||
8821 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject *resultobj; | |
8823 | wxImage *arg1 = (wxImage *) 0 ; | |
8824 | int arg2 ; | |
8825 | int arg3 ; | |
8826 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8827 | PyObject * obj1 = 0 ; |
8828 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8829 | char *kwnames[] = { |
8830 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8831 | }; | |
8832 | ||
8edf1c75 | 8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8836 | arg2 = (int) SWIG_AsInt(obj1); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | arg3 = (int) SWIG_AsInt(obj2); | |
8839 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8840 | { |
8841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8842 | (arg1)->Create(arg2,arg3); | |
8843 | ||
8844 | wxPyEndAllowThreads(__tstate); | |
8845 | if (PyErr_Occurred()) SWIG_fail; | |
8846 | } | |
8847 | Py_INCREF(Py_None); resultobj = Py_None; | |
8848 | return resultobj; | |
8849 | fail: | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
8854 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject *resultobj; | |
8856 | wxImage *arg1 = (wxImage *) 0 ; | |
8857 | PyObject * obj0 = 0 ; | |
8858 | char *kwnames[] = { | |
8859 | (char *) "self", NULL | |
8860 | }; | |
8861 | ||
8862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8865 | { |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | (arg1)->Destroy(); | |
8868 | ||
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | Py_INCREF(Py_None); resultobj = Py_None; | |
8873 | return resultobj; | |
8874 | fail: | |
8875 | return NULL; | |
8876 | } | |
8877 | ||
8878 | ||
8879 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8880 | PyObject *resultobj; | |
8881 | wxImage *arg1 = (wxImage *) 0 ; | |
8882 | int arg2 ; | |
8883 | int arg3 ; | |
8884 | SwigValueWrapper< wxImage > result; | |
8885 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8886 | PyObject * obj1 = 0 ; |
8887 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8888 | char *kwnames[] = { |
8889 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8890 | }; | |
8891 | ||
8edf1c75 | 8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8895 | arg2 = (int) SWIG_AsInt(obj1); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | arg3 = (int) SWIG_AsInt(obj2); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8899 | { |
8900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8901 | result = (arg1)->Scale(arg2,arg3); | |
8902 | ||
8903 | wxPyEndAllowThreads(__tstate); | |
8904 | if (PyErr_Occurred()) SWIG_fail; | |
8905 | } | |
8906 | { | |
8907 | wxImage * resultptr; | |
8908 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8909 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8910 | } |
8911 | return resultobj; | |
8912 | fail: | |
8913 | return NULL; | |
8914 | } | |
8915 | ||
8916 | ||
8917 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8918 | PyObject *resultobj; | |
8919 | wxImage *arg1 = (wxImage *) 0 ; | |
8920 | int arg2 ; | |
8921 | int arg3 ; | |
8922 | SwigValueWrapper< wxImage > result; | |
8923 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8924 | PyObject * obj1 = 0 ; |
8925 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8926 | char *kwnames[] = { |
8927 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8928 | }; | |
8929 | ||
8edf1c75 | 8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8933 | arg2 = (int) SWIG_AsInt(obj1); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | arg3 = (int) SWIG_AsInt(obj2); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8937 | { |
8938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8939 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8940 | ||
8941 | wxPyEndAllowThreads(__tstate); | |
8942 | if (PyErr_Occurred()) SWIG_fail; | |
8943 | } | |
8944 | { | |
8945 | wxImage * resultptr; | |
8946 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8948 | } |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxImage *arg1 = (wxImage *) 0 ; | |
8958 | int arg2 ; | |
8959 | int arg3 ; | |
8960 | wxImage *result; | |
8961 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8962 | PyObject * obj1 = 0 ; |
8963 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8964 | char *kwnames[] = { |
8965 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8966 | }; | |
8967 | ||
8edf1c75 | 8968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8971 | arg2 = (int) SWIG_AsInt(obj1); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | arg3 = (int) SWIG_AsInt(obj2); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8975 | { |
8976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8977 | { | |
8978 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8979 | result = (wxImage *) &_result_ref; | |
8980 | } | |
8981 | ||
8982 | wxPyEndAllowThreads(__tstate); | |
8983 | if (PyErr_Occurred()) SWIG_fail; | |
8984 | } | |
2f4c0a16 | 8985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
8986 | return resultobj; |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
8992 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8993 | PyObject *resultobj; | |
8994 | wxImage *arg1 = (wxImage *) 0 ; | |
8995 | int arg2 ; | |
8996 | int arg3 ; | |
8997 | unsigned char arg4 ; | |
8998 | unsigned char arg5 ; | |
8999 | unsigned char arg6 ; | |
9000 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9001 | PyObject * obj1 = 0 ; |
9002 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9003 | PyObject * obj3 = 0 ; |
9004 | PyObject * obj4 = 0 ; | |
9005 | PyObject * obj5 = 0 ; | |
9006 | char *kwnames[] = { | |
9007 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9008 | }; | |
9009 | ||
8edf1c75 | 9010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9013 | arg2 = (int) SWIG_AsInt(obj1); | |
9014 | if (PyErr_Occurred()) SWIG_fail; | |
9015 | arg3 = (int) SWIG_AsInt(obj2); | |
9016 | if (PyErr_Occurred()) SWIG_fail; | |
9017 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9020 | if (PyErr_Occurred()) SWIG_fail; | |
9021 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9023 | { |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9025 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
9029 | } | |
9030 | Py_INCREF(Py_None); resultobj = Py_None; | |
9031 | return resultobj; | |
9032 | fail: | |
9033 | return NULL; | |
9034 | } | |
9035 | ||
9036 | ||
9037 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9038 | PyObject *resultobj; | |
9039 | wxImage *arg1 = (wxImage *) 0 ; | |
9040 | int arg2 ; | |
9041 | int arg3 ; | |
9042 | unsigned char result; | |
9043 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9044 | PyObject * obj1 = 0 ; |
9045 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9046 | char *kwnames[] = { |
9047 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9048 | }; | |
9049 | ||
8edf1c75 | 9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9053 | arg2 = (int) SWIG_AsInt(obj1); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | arg3 = (int) SWIG_AsInt(obj2); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9057 | { |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
2f4c0a16 | 9064 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9065 | return resultobj; |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
9071 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9072 | PyObject *resultobj; | |
9073 | wxImage *arg1 = (wxImage *) 0 ; | |
9074 | int arg2 ; | |
9075 | int arg3 ; | |
9076 | unsigned char result; | |
9077 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9078 | PyObject * obj1 = 0 ; |
9079 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9080 | char *kwnames[] = { |
9081 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9082 | }; | |
9083 | ||
8edf1c75 | 9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9087 | arg2 = (int) SWIG_AsInt(obj1); | |
9088 | if (PyErr_Occurred()) SWIG_fail; | |
9089 | arg3 = (int) SWIG_AsInt(obj2); | |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9091 | { |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
2f4c0a16 | 9098 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9099 | return resultobj; |
9100 | fail: | |
9101 | return NULL; | |
9102 | } | |
9103 | ||
9104 | ||
9105 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9106 | PyObject *resultobj; | |
9107 | wxImage *arg1 = (wxImage *) 0 ; | |
9108 | int arg2 ; | |
9109 | int arg3 ; | |
9110 | unsigned char result; | |
9111 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9112 | PyObject * obj1 = 0 ; |
9113 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9114 | char *kwnames[] = { |
9115 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9116 | }; | |
9117 | ||
8edf1c75 | 9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9121 | arg2 = (int) SWIG_AsInt(obj1); | |
9122 | if (PyErr_Occurred()) SWIG_fail; | |
9123 | arg3 = (int) SWIG_AsInt(obj2); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9125 | { |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
2f4c0a16 | 9132 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9133 | return resultobj; |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxImage *arg1 = (wxImage *) 0 ; | |
9142 | int arg2 ; | |
9143 | int arg3 ; | |
9144 | unsigned char arg4 ; | |
9145 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9146 | PyObject * obj1 = 0 ; |
9147 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9148 | PyObject * obj3 = 0 ; |
9149 | char *kwnames[] = { | |
9150 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9151 | }; | |
9152 | ||
8edf1c75 | 9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9156 | arg2 = (int) SWIG_AsInt(obj1); | |
9157 | if (PyErr_Occurred()) SWIG_fail; | |
9158 | arg3 = (int) SWIG_AsInt(obj2); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9162 | { |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | Py_INCREF(Py_None); resultobj = Py_None; | |
9170 | return resultobj; | |
9171 | fail: | |
9172 | return NULL; | |
9173 | } | |
9174 | ||
9175 | ||
9176 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9177 | PyObject *resultobj; | |
9178 | wxImage *arg1 = (wxImage *) 0 ; | |
9179 | int arg2 ; | |
9180 | int arg3 ; | |
9181 | unsigned char result; | |
9182 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9183 | PyObject * obj1 = 0 ; |
9184 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9185 | char *kwnames[] = { |
9186 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9187 | }; | |
9188 | ||
8edf1c75 | 9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | arg2 = (int) SWIG_AsInt(obj1); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
9194 | arg3 = (int) SWIG_AsInt(obj2); | |
9195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9196 | { |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
2f4c0a16 | 9203 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9204 | return resultobj; |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
9210 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9211 | PyObject *resultobj; | |
9212 | wxImage *arg1 = (wxImage *) 0 ; | |
9213 | bool result; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9222 | { |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = (bool)(arg1)->HasAlpha(); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
4f89f6a3 RD |
9229 | { |
9230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9231 | } | |
d14a1e28 RD |
9232 | return resultobj; |
9233 | fail: | |
9234 | return NULL; | |
9235 | } | |
9236 | ||
9237 | ||
9238 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9239 | PyObject *resultobj; | |
9240 | wxImage *arg1 = (wxImage *) 0 ; | |
9241 | byte *arg2 = (byte *) 0 ; | |
9242 | byte *arg3 = (byte *) 0 ; | |
9243 | byte *arg4 = (byte *) 0 ; | |
9244 | byte arg5 = (byte) 0 ; | |
9245 | byte arg6 = (byte) 0 ; | |
9246 | byte arg7 = (byte) 0 ; | |
9247 | bool result; | |
9248 | byte temp2 ; | |
9249 | byte temp3 ; | |
9250 | byte temp4 ; | |
9251 | PyObject * obj0 = 0 ; | |
9252 | PyObject * obj1 = 0 ; | |
9253 | PyObject * obj2 = 0 ; | |
9254 | PyObject * obj3 = 0 ; | |
9255 | char *kwnames[] = { | |
9256 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9257 | }; | |
9258 | ||
9259 | arg2 = &temp2; | |
9260 | arg3 = &temp3; | |
9261 | arg4 = &temp4; | |
9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9265 | if (obj1) { |
2f4c0a16 RD |
9266 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9267 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9268 | } |
9269 | if (obj2) { | |
2f4c0a16 RD |
9270 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9272 | } |
9273 | if (obj3) { | |
2f4c0a16 RD |
9274 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9276 | } |
9277 | { | |
9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9279 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
4f89f6a3 RD |
9284 | { |
9285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9286 | } | |
d14a1e28 RD |
9287 | { |
9288 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9289 | resultobj = t_output_helper(resultobj,o); | |
9290 | } | |
9291 | { | |
9292 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9293 | resultobj = t_output_helper(resultobj,o); | |
9294 | } | |
9295 | { | |
9296 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9297 | resultobj = t_output_helper(resultobj,o); | |
9298 | } | |
9299 | return resultobj; | |
9300 | fail: | |
9301 | return NULL; | |
9302 | } | |
9303 | ||
9304 | ||
9305 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9306 | PyObject *resultobj; | |
9307 | wxImage *arg1 = (wxImage *) 0 ; | |
9308 | wxImage *arg2 = 0 ; | |
9309 | byte arg3 ; | |
9310 | byte arg4 ; | |
9311 | byte arg5 ; | |
9312 | bool result; | |
9313 | PyObject * obj0 = 0 ; | |
9314 | PyObject * obj1 = 0 ; | |
9315 | PyObject * obj2 = 0 ; | |
9316 | PyObject * obj3 = 0 ; | |
9317 | PyObject * obj4 = 0 ; | |
9318 | char *kwnames[] = { | |
9319 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9320 | }; | |
9321 | ||
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
9323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9327 | SWIG_fail; | |
d14a1e28 | 9328 | if (arg2 == NULL) { |
2f4c0a16 RD |
9329 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9330 | SWIG_fail; | |
83448d71 | 9331 | } |
2f4c0a16 RD |
9332 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9333 | if (PyErr_Occurred()) SWIG_fail; | |
9334 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9338 | { |
9339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9340 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9341 | ||
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
4f89f6a3 RD |
9345 | { |
9346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9347 | } | |
d14a1e28 RD |
9348 | return resultobj; |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj; | |
9356 | wxString *arg1 = 0 ; | |
9357 | bool result; | |
423f194a | 9358 | bool temp1 = False ; |
d14a1e28 RD |
9359 | PyObject * obj0 = 0 ; |
9360 | char *kwnames[] = { | |
9361 | (char *) "name", NULL | |
9362 | }; | |
9363 | ||
9364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9365 | { | |
9366 | arg1 = wxString_in_helper(obj0); | |
9367 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9368 | temp1 = True; |
d14a1e28 RD |
9369 | } |
9370 | { | |
9371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9372 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9373 | ||
9374 | wxPyEndAllowThreads(__tstate); | |
9375 | if (PyErr_Occurred()) SWIG_fail; | |
9376 | } | |
4f89f6a3 RD |
9377 | { |
9378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9379 | } | |
d14a1e28 RD |
9380 | { |
9381 | if (temp1) | |
9382 | delete arg1; | |
9383 | } | |
9384 | return resultobj; | |
9385 | fail: | |
9386 | { | |
9387 | if (temp1) | |
9388 | delete arg1; | |
9389 | } | |
9390 | return NULL; | |
9391 | } | |
9392 | ||
9393 | ||
9394 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject *resultobj; | |
9396 | wxString *arg1 = 0 ; | |
9397 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9398 | int result; | |
423f194a | 9399 | bool temp1 = False ; |
d14a1e28 | 9400 | PyObject * obj0 = 0 ; |
8edf1c75 | 9401 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9402 | char *kwnames[] = { |
9403 | (char *) "name",(char *) "type", NULL | |
9404 | }; | |
9405 | ||
8edf1c75 | 9406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9407 | { |
9408 | arg1 = wxString_in_helper(obj0); | |
9409 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9410 | temp1 = True; |
d14a1e28 | 9411 | } |
8edf1c75 | 9412 | if (obj1) { |
2f4c0a16 RD |
9413 | arg2 = (long) SWIG_AsLong(obj1); |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9415 | } |
d14a1e28 RD |
9416 | { |
9417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9418 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9419 | ||
9420 | wxPyEndAllowThreads(__tstate); | |
9421 | if (PyErr_Occurred()) SWIG_fail; | |
9422 | } | |
2f4c0a16 | 9423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9424 | { |
9425 | if (temp1) | |
9426 | delete arg1; | |
9427 | } | |
9428 | return resultobj; | |
9429 | fail: | |
9430 | { | |
9431 | if (temp1) | |
9432 | delete arg1; | |
9433 | } | |
9434 | return NULL; | |
9435 | } | |
9436 | ||
9437 | ||
9438 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject *resultobj; | |
9440 | wxImage *arg1 = (wxImage *) 0 ; | |
9441 | wxString *arg2 = 0 ; | |
9442 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9443 | int arg4 = (int) -1 ; | |
9444 | bool result; | |
423f194a | 9445 | bool temp2 = False ; |
d14a1e28 RD |
9446 | PyObject * obj0 = 0 ; |
9447 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9448 | PyObject * obj2 = 0 ; |
9449 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9450 | char *kwnames[] = { |
9451 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9452 | }; | |
9453 | ||
8edf1c75 | 9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9457 | { |
9458 | arg2 = wxString_in_helper(obj1); | |
9459 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9460 | temp2 = True; |
d14a1e28 | 9461 | } |
8edf1c75 | 9462 | if (obj2) { |
2f4c0a16 RD |
9463 | arg3 = (long) SWIG_AsLong(obj2); |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9465 | } |
9466 | if (obj3) { | |
2f4c0a16 RD |
9467 | arg4 = (int) SWIG_AsInt(obj3); |
9468 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9469 | } |
d14a1e28 RD |
9470 | { |
9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9472 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9473 | ||
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) SWIG_fail; | |
9476 | } | |
4f89f6a3 RD |
9477 | { |
9478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9479 | } | |
d14a1e28 RD |
9480 | { |
9481 | if (temp2) | |
9482 | delete arg2; | |
9483 | } | |
9484 | return resultobj; | |
9485 | fail: | |
9486 | { | |
9487 | if (temp2) | |
9488 | delete arg2; | |
9489 | } | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxImage *arg1 = (wxImage *) 0 ; | |
9497 | wxString *arg2 = 0 ; | |
9498 | wxString *arg3 = 0 ; | |
9499 | int arg4 = (int) -1 ; | |
9500 | bool result; | |
423f194a RD |
9501 | bool temp2 = False ; |
9502 | bool temp3 = False ; | |
d14a1e28 RD |
9503 | PyObject * obj0 = 0 ; |
9504 | PyObject * obj1 = 0 ; | |
9505 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9506 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9507 | char *kwnames[] = { |
9508 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9509 | }; | |
9510 | ||
8edf1c75 | 9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9514 | { |
9515 | arg2 = wxString_in_helper(obj1); | |
9516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9517 | temp2 = True; |
d14a1e28 RD |
9518 | } |
9519 | { | |
9520 | arg3 = wxString_in_helper(obj2); | |
9521 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9522 | temp3 = True; |
d14a1e28 | 9523 | } |
8edf1c75 | 9524 | if (obj3) { |
2f4c0a16 RD |
9525 | arg4 = (int) SWIG_AsInt(obj3); |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9527 | } |
d14a1e28 RD |
9528 | { |
9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9530 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9531 | ||
9532 | wxPyEndAllowThreads(__tstate); | |
9533 | if (PyErr_Occurred()) SWIG_fail; | |
9534 | } | |
4f89f6a3 RD |
9535 | { |
9536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9537 | } | |
d14a1e28 RD |
9538 | { |
9539 | if (temp2) | |
9540 | delete arg2; | |
9541 | } | |
9542 | { | |
9543 | if (temp3) | |
9544 | delete arg3; | |
9545 | } | |
9546 | return resultobj; | |
9547 | fail: | |
9548 | { | |
9549 | if (temp2) | |
9550 | delete arg2; | |
9551 | } | |
9552 | { | |
9553 | if (temp3) | |
9554 | delete arg3; | |
9555 | } | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
9560 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject *resultobj; | |
9562 | wxImage *arg1 = (wxImage *) 0 ; | |
9563 | wxString *arg2 = 0 ; | |
9564 | int arg3 ; | |
9565 | bool result; | |
423f194a | 9566 | bool temp2 = False ; |
d14a1e28 RD |
9567 | PyObject * obj0 = 0 ; |
9568 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9569 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9570 | char *kwnames[] = { |
9571 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9572 | }; | |
9573 | ||
8edf1c75 | 9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9577 | { |
9578 | arg2 = wxString_in_helper(obj1); | |
9579 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9580 | temp2 = True; |
d14a1e28 | 9581 | } |
2f4c0a16 RD |
9582 | arg3 = (int) SWIG_AsInt(obj2); |
9583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9584 | { |
9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9586 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9587 | ||
9588 | wxPyEndAllowThreads(__tstate); | |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
4f89f6a3 RD |
9591 | { |
9592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9593 | } | |
d14a1e28 RD |
9594 | { |
9595 | if (temp2) | |
9596 | delete arg2; | |
9597 | } | |
9598 | return resultobj; | |
9599 | fail: | |
9600 | { | |
9601 | if (temp2) | |
9602 | delete arg2; | |
9603 | } | |
9604 | return NULL; | |
9605 | } | |
9606 | ||
9607 | ||
9608 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9609 | PyObject *resultobj; | |
9610 | wxImage *arg1 = (wxImage *) 0 ; | |
9611 | wxString *arg2 = 0 ; | |
9612 | wxString *arg3 = 0 ; | |
9613 | bool result; | |
423f194a RD |
9614 | bool temp2 = False ; |
9615 | bool temp3 = False ; | |
d14a1e28 RD |
9616 | PyObject * obj0 = 0 ; |
9617 | PyObject * obj1 = 0 ; | |
9618 | PyObject * obj2 = 0 ; | |
9619 | char *kwnames[] = { | |
9620 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9621 | }; | |
9622 | ||
9623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9626 | { |
9627 | arg2 = wxString_in_helper(obj1); | |
9628 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9629 | temp2 = True; |
d14a1e28 RD |
9630 | } |
9631 | { | |
9632 | arg3 = wxString_in_helper(obj2); | |
9633 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9634 | temp3 = True; |
d14a1e28 RD |
9635 | } |
9636 | { | |
9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9638 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9639 | ||
9640 | wxPyEndAllowThreads(__tstate); | |
9641 | if (PyErr_Occurred()) SWIG_fail; | |
9642 | } | |
4f89f6a3 RD |
9643 | { |
9644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9645 | } | |
d14a1e28 RD |
9646 | { |
9647 | if (temp2) | |
9648 | delete arg2; | |
9649 | } | |
9650 | { | |
9651 | if (temp3) | |
9652 | delete arg3; | |
9653 | } | |
9654 | return resultobj; | |
9655 | fail: | |
9656 | { | |
9657 | if (temp2) | |
9658 | delete arg2; | |
9659 | } | |
9660 | { | |
9661 | if (temp3) | |
9662 | delete arg3; | |
9663 | } | |
9664 | return NULL; | |
9665 | } | |
9666 | ||
9667 | ||
9668 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9669 | PyObject *resultobj; | |
9670 | wxInputStream *arg1 = 0 ; | |
9671 | bool result; | |
9672 | wxPyInputStream *temp1 ; | |
9673 | bool created1 ; | |
9674 | PyObject * obj0 = 0 ; | |
9675 | char *kwnames[] = { | |
9676 | (char *) "stream", NULL | |
9677 | }; | |
9678 | ||
9679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9680 | { | |
9681 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9682 | arg1 = temp1->m_wxis; | |
423f194a | 9683 | created1 = False; |
d14a1e28 RD |
9684 | } else { |
9685 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9686 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9687 | if (arg1 == NULL) { |
9688 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9689 | SWIG_fail; | |
9690 | } | |
423f194a | 9691 | created1 = True; |
d14a1e28 RD |
9692 | } |
9693 | } | |
9694 | { | |
9695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9696 | result = (bool)wxImage::CanRead(*arg1); | |
9697 | ||
9698 | wxPyEndAllowThreads(__tstate); | |
9699 | if (PyErr_Occurred()) SWIG_fail; | |
9700 | } | |
4f89f6a3 RD |
9701 | { |
9702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9703 | } | |
d14a1e28 RD |
9704 | { |
9705 | if (created1) | |
9706 | delete arg1; | |
9707 | } | |
9708 | return resultobj; | |
9709 | fail: | |
9710 | { | |
9711 | if (created1) | |
9712 | delete arg1; | |
9713 | } | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
9718 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject *resultobj; | |
9720 | wxImage *arg1 = (wxImage *) 0 ; | |
9721 | wxInputStream *arg2 = 0 ; | |
9722 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9723 | int arg4 = (int) -1 ; | |
9724 | bool result; | |
9725 | wxPyInputStream *temp2 ; | |
9726 | bool created2 ; | |
9727 | PyObject * obj0 = 0 ; | |
9728 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9729 | PyObject * obj2 = 0 ; |
9730 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9731 | char *kwnames[] = { |
9732 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9733 | }; | |
9734 | ||
8edf1c75 | 9735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9738 | { |
9739 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9740 | arg2 = temp2->m_wxis; | |
423f194a | 9741 | created2 = False; |
d14a1e28 RD |
9742 | } else { |
9743 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9744 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9745 | if (arg2 == NULL) { |
9746 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9747 | SWIG_fail; | |
9748 | } | |
423f194a | 9749 | created2 = True; |
d14a1e28 RD |
9750 | } |
9751 | } | |
8edf1c75 | 9752 | if (obj2) { |
2f4c0a16 RD |
9753 | arg3 = (long) SWIG_AsLong(obj2); |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9755 | } |
9756 | if (obj3) { | |
2f4c0a16 RD |
9757 | arg4 = (int) SWIG_AsInt(obj3); |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9759 | } |
d14a1e28 RD |
9760 | { |
9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9762 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9763 | ||
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
4f89f6a3 RD |
9767 | { |
9768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9769 | } | |
d14a1e28 RD |
9770 | { |
9771 | if (created2) | |
9772 | delete arg2; | |
9773 | } | |
9774 | return resultobj; | |
9775 | fail: | |
9776 | { | |
9777 | if (created2) | |
9778 | delete arg2; | |
9779 | } | |
9780 | return NULL; | |
9781 | } | |
9782 | ||
9783 | ||
9784 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9785 | PyObject *resultobj; | |
9786 | wxImage *arg1 = (wxImage *) 0 ; | |
9787 | wxInputStream *arg2 = 0 ; | |
9788 | wxString *arg3 = 0 ; | |
9789 | int arg4 = (int) -1 ; | |
9790 | bool result; | |
9791 | wxPyInputStream *temp2 ; | |
9792 | bool created2 ; | |
423f194a | 9793 | bool temp3 = False ; |
d14a1e28 RD |
9794 | PyObject * obj0 = 0 ; |
9795 | PyObject * obj1 = 0 ; | |
9796 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9797 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9798 | char *kwnames[] = { |
9799 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9800 | }; | |
9801 | ||
8edf1c75 | 9802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9805 | { |
9806 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9807 | arg2 = temp2->m_wxis; | |
423f194a | 9808 | created2 = False; |
d14a1e28 RD |
9809 | } else { |
9810 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9811 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9812 | if (arg2 == NULL) { |
9813 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9814 | SWIG_fail; | |
9815 | } | |
423f194a | 9816 | created2 = True; |
d14a1e28 RD |
9817 | } |
9818 | } | |
9819 | { | |
9820 | arg3 = wxString_in_helper(obj2); | |
9821 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9822 | temp3 = True; |
d14a1e28 | 9823 | } |
8edf1c75 | 9824 | if (obj3) { |
2f4c0a16 RD |
9825 | arg4 = (int) SWIG_AsInt(obj3); |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9827 | } |
d14a1e28 RD |
9828 | { |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
4f89f6a3 RD |
9835 | { |
9836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9837 | } | |
d14a1e28 RD |
9838 | { |
9839 | if (created2) | |
9840 | delete arg2; | |
9841 | } | |
9842 | { | |
9843 | if (temp3) | |
9844 | delete arg3; | |
9845 | } | |
9846 | return resultobj; | |
9847 | fail: | |
9848 | { | |
9849 | if (created2) | |
9850 | delete arg2; | |
9851 | } | |
9852 | { | |
9853 | if (temp3) | |
9854 | delete arg3; | |
9855 | } | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
9860 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject *resultobj; | |
9862 | wxImage *arg1 = (wxImage *) 0 ; | |
9863 | bool result; | |
9864 | PyObject * obj0 = 0 ; | |
9865 | char *kwnames[] = { | |
9866 | (char *) "self", NULL | |
9867 | }; | |
9868 | ||
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9872 | { |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | result = (bool)(arg1)->Ok(); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) SWIG_fail; | |
9878 | } | |
4f89f6a3 RD |
9879 | { |
9880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9881 | } | |
d14a1e28 RD |
9882 | return resultobj; |
9883 | fail: | |
9884 | return NULL; | |
9885 | } | |
9886 | ||
9887 | ||
9888 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9889 | PyObject *resultobj; | |
9890 | wxImage *arg1 = (wxImage *) 0 ; | |
9891 | int result; | |
9892 | PyObject * obj0 = 0 ; | |
9893 | char *kwnames[] = { | |
9894 | (char *) "self", NULL | |
9895 | }; | |
9896 | ||
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9900 | { |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | result = (int)(arg1)->GetWidth(); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
2f4c0a16 | 9907 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9908 | return resultobj; |
9909 | fail: | |
9910 | return NULL; | |
9911 | } | |
9912 | ||
9913 | ||
9914 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9915 | PyObject *resultobj; | |
9916 | wxImage *arg1 = (wxImage *) 0 ; | |
9917 | int result; | |
9918 | PyObject * obj0 = 0 ; | |
9919 | char *kwnames[] = { | |
9920 | (char *) "self", NULL | |
9921 | }; | |
9922 | ||
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9926 | { |
9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9928 | result = (int)(arg1)->GetHeight(); | |
9929 | ||
9930 | wxPyEndAllowThreads(__tstate); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
9932 | } | |
2f4c0a16 | 9933 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9934 | return resultobj; |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9941 | PyObject *resultobj; | |
9942 | wxImage *arg1 = (wxImage *) 0 ; | |
9943 | wxRect *arg2 = 0 ; | |
9944 | SwigValueWrapper< wxImage > result; | |
9945 | wxRect temp2 ; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | PyObject * obj1 = 0 ; | |
9948 | char *kwnames[] = { | |
9949 | (char *) "self",(char *) "rect", NULL | |
9950 | }; | |
9951 | ||
9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9955 | { |
9956 | arg2 = &temp2; | |
9957 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9958 | } | |
9959 | { | |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
9966 | { | |
9967 | wxImage * resultptr; | |
9968 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9969 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9970 | } |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
9974 | } | |
9975 | ||
9976 | ||
9977 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9978 | PyObject *resultobj; | |
9979 | wxImage *arg1 = (wxImage *) 0 ; | |
9980 | SwigValueWrapper< wxImage > result; | |
9981 | PyObject * obj0 = 0 ; | |
9982 | char *kwnames[] = { | |
9983 | (char *) "self", NULL | |
9984 | }; | |
9985 | ||
9986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9989 | { |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (arg1)->Copy(); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | { | |
9997 | wxImage * resultptr; | |
9998 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9999 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10000 | } |
10001 | return resultobj; | |
10002 | fail: | |
10003 | return NULL; | |
10004 | } | |
10005 | ||
10006 | ||
10007 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10008 | PyObject *resultobj; | |
10009 | wxImage *arg1 = (wxImage *) 0 ; | |
10010 | wxImage *arg2 = 0 ; | |
10011 | int arg3 ; | |
10012 | int arg4 ; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
10015 | PyObject * obj2 = 0 ; |
10016 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10017 | char *kwnames[] = { |
10018 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10019 | }; | |
10020 | ||
8edf1c75 | 10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10026 | SWIG_fail; | |
d14a1e28 | 10027 | if (arg2 == NULL) { |
2f4c0a16 RD |
10028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10029 | SWIG_fail; | |
8edf1c75 | 10030 | } |
2f4c0a16 RD |
10031 | arg3 = (int) SWIG_AsInt(obj2); |
10032 | if (PyErr_Occurred()) SWIG_fail; | |
10033 | arg4 = (int) SWIG_AsInt(obj3); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10035 | { |
10036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10037 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10038 | ||
10039 | wxPyEndAllowThreads(__tstate); | |
10040 | if (PyErr_Occurred()) SWIG_fail; | |
10041 | } | |
10042 | Py_INCREF(Py_None); resultobj = Py_None; | |
10043 | return resultobj; | |
10044 | fail: | |
10045 | return NULL; | |
10046 | } | |
10047 | ||
10048 | ||
10049 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10050 | PyObject *resultobj; | |
10051 | wxImage *arg1 = (wxImage *) 0 ; | |
10052 | PyObject *result; | |
10053 | PyObject * obj0 = 0 ; | |
10054 | char *kwnames[] = { | |
10055 | (char *) "self", NULL | |
10056 | }; | |
10057 | ||
10058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10061 | { |
10062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10063 | result = (PyObject *)wxImage_GetData(arg1); | |
10064 | ||
10065 | wxPyEndAllowThreads(__tstate); | |
10066 | if (PyErr_Occurred()) SWIG_fail; | |
10067 | } | |
10068 | resultobj = result; | |
10069 | return resultobj; | |
10070 | fail: | |
10071 | return NULL; | |
10072 | } | |
10073 | ||
10074 | ||
10075 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10076 | PyObject *resultobj; | |
10077 | wxImage *arg1 = (wxImage *) 0 ; | |
10078 | PyObject *arg2 = (PyObject *) 0 ; | |
10079 | PyObject * obj0 = 0 ; | |
10080 | PyObject * obj1 = 0 ; | |
10081 | char *kwnames[] = { | |
10082 | (char *) "self",(char *) "data", NULL | |
10083 | }; | |
10084 | ||
10085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10088 | arg2 = obj1; |
10089 | { | |
10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10091 | wxImage_SetData(arg1,arg2); | |
10092 | ||
10093 | wxPyEndAllowThreads(__tstate); | |
10094 | if (PyErr_Occurred()) SWIG_fail; | |
10095 | } | |
10096 | Py_INCREF(Py_None); resultobj = Py_None; | |
10097 | return resultobj; | |
10098 | fail: | |
10099 | return NULL; | |
10100 | } | |
10101 | ||
10102 | ||
10103 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10104 | PyObject *resultobj; | |
10105 | wxImage *arg1 = (wxImage *) 0 ; | |
10106 | PyObject *result; | |
10107 | PyObject * obj0 = 0 ; | |
10108 | char *kwnames[] = { | |
10109 | (char *) "self", NULL | |
10110 | }; | |
10111 | ||
10112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10115 | { |
10116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10117 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10118 | ||
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | resultobj = result; | |
10123 | return resultobj; | |
10124 | fail: | |
10125 | return NULL; | |
10126 | } | |
10127 | ||
10128 | ||
10129 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10130 | PyObject *resultobj; | |
10131 | wxImage *arg1 = (wxImage *) 0 ; | |
10132 | PyObject *arg2 = (PyObject *) 0 ; | |
10133 | PyObject * obj0 = 0 ; | |
10134 | PyObject * obj1 = 0 ; | |
10135 | char *kwnames[] = { | |
10136 | (char *) "self",(char *) "data", NULL | |
10137 | }; | |
10138 | ||
10139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10142 | arg2 = obj1; |
10143 | { | |
10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10145 | wxImage_SetDataBuffer(arg1,arg2); | |
10146 | ||
10147 | wxPyEndAllowThreads(__tstate); | |
10148 | if (PyErr_Occurred()) SWIG_fail; | |
10149 | } | |
10150 | Py_INCREF(Py_None); resultobj = Py_None; | |
10151 | return resultobj; | |
10152 | fail: | |
10153 | return NULL; | |
10154 | } | |
10155 | ||
10156 | ||
10157 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10158 | PyObject *resultobj; | |
10159 | wxImage *arg1 = (wxImage *) 0 ; | |
10160 | PyObject *result; | |
10161 | PyObject * obj0 = 0 ; | |
10162 | char *kwnames[] = { | |
10163 | (char *) "self", NULL | |
10164 | }; | |
10165 | ||
10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10169 | { |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | resultobj = result; | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxImage *arg1 = (wxImage *) 0 ; | |
10186 | PyObject *arg2 = (PyObject *) 0 ; | |
10187 | PyObject * obj0 = 0 ; | |
10188 | PyObject * obj1 = 0 ; | |
10189 | char *kwnames[] = { | |
10190 | (char *) "self",(char *) "data", NULL | |
10191 | }; | |
10192 | ||
10193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10196 | arg2 = obj1; |
10197 | { | |
10198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10199 | wxImage_SetAlphaData(arg1,arg2); | |
10200 | ||
10201 | wxPyEndAllowThreads(__tstate); | |
10202 | if (PyErr_Occurred()) SWIG_fail; | |
10203 | } | |
10204 | Py_INCREF(Py_None); resultobj = Py_None; | |
10205 | return resultobj; | |
10206 | fail: | |
10207 | return NULL; | |
10208 | } | |
10209 | ||
10210 | ||
10211 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10212 | PyObject *resultobj; | |
10213 | wxImage *arg1 = (wxImage *) 0 ; | |
10214 | PyObject *result; | |
10215 | PyObject * obj0 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10223 | { |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | resultobj = result; | |
10231 | return resultobj; | |
10232 | fail: | |
10233 | return NULL; | |
10234 | } | |
10235 | ||
10236 | ||
10237 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10238 | PyObject *resultobj; | |
10239 | wxImage *arg1 = (wxImage *) 0 ; | |
10240 | PyObject *arg2 = (PyObject *) 0 ; | |
10241 | PyObject * obj0 = 0 ; | |
10242 | PyObject * obj1 = 0 ; | |
10243 | char *kwnames[] = { | |
10244 | (char *) "self",(char *) "data", NULL | |
10245 | }; | |
10246 | ||
10247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10250 | arg2 = obj1; |
10251 | { | |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | Py_INCREF(Py_None); resultobj = Py_None; | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxImage *arg1 = (wxImage *) 0 ; | |
10268 | unsigned char arg2 ; | |
10269 | unsigned char arg3 ; | |
10270 | unsigned char arg4 ; | |
10271 | PyObject * obj0 = 0 ; | |
10272 | PyObject * obj1 = 0 ; | |
10273 | PyObject * obj2 = 0 ; | |
10274 | PyObject * obj3 = 0 ; | |
10275 | char *kwnames[] = { | |
10276 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10277 | }; | |
10278 | ||
10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10282 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10288 | { |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | Py_INCREF(Py_None); resultobj = Py_None; | |
10296 | return resultobj; | |
10297 | fail: | |
10298 | return NULL; | |
10299 | } | |
10300 | ||
10301 | ||
10302 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10303 | PyObject *resultobj; | |
10304 | wxImage *arg1 = (wxImage *) 0 ; | |
10305 | unsigned char result; | |
10306 | PyObject * obj0 = 0 ; | |
10307 | char *kwnames[] = { | |
10308 | (char *) "self", NULL | |
10309 | }; | |
10310 | ||
10311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10314 | { |
10315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10316 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10317 | ||
10318 | wxPyEndAllowThreads(__tstate); | |
10319 | if (PyErr_Occurred()) SWIG_fail; | |
10320 | } | |
2f4c0a16 | 10321 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10322 | return resultobj; |
10323 | fail: | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
10328 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10329 | PyObject *resultobj; | |
10330 | wxImage *arg1 = (wxImage *) 0 ; | |
10331 | unsigned char result; | |
10332 | PyObject * obj0 = 0 ; | |
10333 | char *kwnames[] = { | |
10334 | (char *) "self", NULL | |
10335 | }; | |
10336 | ||
10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10340 | { |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
2f4c0a16 | 10347 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10348 | return resultobj; |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10355 | PyObject *resultobj; | |
10356 | wxImage *arg1 = (wxImage *) 0 ; | |
10357 | unsigned char result; | |
10358 | PyObject * obj0 = 0 ; | |
10359 | char *kwnames[] = { | |
10360 | (char *) "self", NULL | |
10361 | }; | |
10362 | ||
10363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10366 | { |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
2f4c0a16 | 10373 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10374 | return resultobj; |
10375 | fail: | |
10376 | return NULL; | |
10377 | } | |
10378 | ||
10379 | ||
10380 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10381 | PyObject *resultobj; | |
10382 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10383 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10384 | PyObject * obj0 = 0 ; |
10385 | PyObject * obj1 = 0 ; | |
10386 | char *kwnames[] = { | |
10387 | (char *) "self",(char *) "mask", NULL | |
10388 | }; | |
10389 | ||
10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10393 | if (obj1) { |
2f4c0a16 RD |
10394 | arg2 = (bool) SWIG_AsBool(obj1); |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10396 | } |
10397 | { | |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10399 | (arg1)->SetMask(arg2); | |
10400 | ||
10401 | wxPyEndAllowThreads(__tstate); | |
10402 | if (PyErr_Occurred()) SWIG_fail; | |
10403 | } | |
10404 | Py_INCREF(Py_None); resultobj = Py_None; | |
10405 | return resultobj; | |
10406 | fail: | |
10407 | return NULL; | |
10408 | } | |
10409 | ||
10410 | ||
10411 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10412 | PyObject *resultobj; | |
10413 | wxImage *arg1 = (wxImage *) 0 ; | |
10414 | bool result; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10423 | { |
10424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10425 | result = (bool)(arg1)->HasMask(); | |
10426 | ||
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
4f89f6a3 RD |
10430 | { |
10431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10432 | } | |
d14a1e28 RD |
10433 | return resultobj; |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxImage *arg1 = (wxImage *) 0 ; | |
10442 | double arg2 ; | |
10443 | wxPoint *arg3 = 0 ; | |
423f194a | 10444 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10445 | wxPoint *arg5 = (wxPoint *) NULL ; |
10446 | SwigValueWrapper< wxImage > result; | |
10447 | wxPoint temp3 ; | |
10448 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10449 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10450 | PyObject * obj2 = 0 ; |
10451 | PyObject * obj3 = 0 ; | |
10452 | PyObject * obj4 = 0 ; | |
10453 | char *kwnames[] = { | |
10454 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10455 | }; | |
10456 | ||
8edf1c75 | 10457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10460 | arg2 = (double) SWIG_AsDouble(obj1); | |
10461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10462 | { |
10463 | arg3 = &temp3; | |
10464 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10465 | } | |
10466 | if (obj3) { | |
2f4c0a16 RD |
10467 | arg4 = (bool) SWIG_AsBool(obj3); |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10469 | } |
10470 | if (obj4) { | |
2f4c0a16 RD |
10471 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10473 | } |
10474 | { | |
10475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10476 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10477 | ||
10478 | wxPyEndAllowThreads(__tstate); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | } | |
10481 | { | |
10482 | wxImage * resultptr; | |
10483 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10484 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10485 | } |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
10492 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10493 | PyObject *resultobj; | |
10494 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10495 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10496 | SwigValueWrapper< wxImage > result; |
10497 | PyObject * obj0 = 0 ; | |
10498 | PyObject * obj1 = 0 ; | |
10499 | char *kwnames[] = { | |
10500 | (char *) "self",(char *) "clockwise", NULL | |
10501 | }; | |
10502 | ||
10503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10506 | if (obj1) { |
2f4c0a16 RD |
10507 | arg2 = (bool) SWIG_AsBool(obj1); |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10509 | } |
10510 | { | |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = (arg1)->Rotate90(arg2); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | { | |
10518 | wxImage * resultptr; | |
10519 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10520 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10521 | } |
10522 | return resultobj; | |
10523 | fail: | |
10524 | return NULL; | |
10525 | } | |
10526 | ||
10527 | ||
10528 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10529 | PyObject *resultobj; | |
10530 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10531 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10532 | SwigValueWrapper< wxImage > result; |
10533 | PyObject * obj0 = 0 ; | |
10534 | PyObject * obj1 = 0 ; | |
10535 | char *kwnames[] = { | |
10536 | (char *) "self",(char *) "horizontally", NULL | |
10537 | }; | |
10538 | ||
10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10542 | if (obj1) { |
2f4c0a16 RD |
10543 | arg2 = (bool) SWIG_AsBool(obj1); |
10544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10545 | } |
10546 | { | |
10547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10548 | result = (arg1)->Mirror(arg2); | |
10549 | ||
10550 | wxPyEndAllowThreads(__tstate); | |
10551 | if (PyErr_Occurred()) SWIG_fail; | |
10552 | } | |
10553 | { | |
10554 | wxImage * resultptr; | |
10555 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10557 | } |
10558 | return resultobj; | |
10559 | fail: | |
10560 | return NULL; | |
10561 | } | |
10562 | ||
10563 | ||
10564 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10565 | PyObject *resultobj; | |
10566 | wxImage *arg1 = (wxImage *) 0 ; | |
10567 | unsigned char arg2 ; | |
10568 | unsigned char arg3 ; | |
10569 | unsigned char arg4 ; | |
10570 | unsigned char arg5 ; | |
10571 | unsigned char arg6 ; | |
10572 | unsigned char arg7 ; | |
10573 | PyObject * obj0 = 0 ; | |
10574 | PyObject * obj1 = 0 ; | |
10575 | PyObject * obj2 = 0 ; | |
10576 | PyObject * obj3 = 0 ; | |
10577 | PyObject * obj4 = 0 ; | |
10578 | PyObject * obj5 = 0 ; | |
10579 | PyObject * obj6 = 0 ; | |
10580 | char *kwnames[] = { | |
10581 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10582 | }; | |
10583 | ||
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2f4c0a16 RD |
10585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10587 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10590 | if (PyErr_Occurred()) SWIG_fail; | |
10591 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10599 | { |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
10606 | Py_INCREF(Py_None); resultobj = Py_None; | |
10607 | return resultobj; | |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
10613 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10614 | PyObject *resultobj; | |
10615 | wxImage *arg1 = (wxImage *) 0 ; | |
10616 | unsigned char arg2 ; | |
10617 | unsigned char arg3 ; | |
10618 | unsigned char arg4 ; | |
10619 | SwigValueWrapper< wxImage > result; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | PyObject * obj1 = 0 ; | |
10622 | PyObject * obj2 = 0 ; | |
10623 | PyObject * obj3 = 0 ; | |
10624 | char *kwnames[] = { | |
10625 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10626 | }; | |
10627 | ||
10628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10631 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10634 | if (PyErr_Occurred()) SWIG_fail; | |
10635 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10637 | { |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10639 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
10643 | } | |
10644 | { | |
10645 | wxImage * resultptr; | |
10646 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10648 | } |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxImage *arg1 = (wxImage *) 0 ; | |
10658 | wxString *arg2 = 0 ; | |
10659 | wxString *arg3 = 0 ; | |
423f194a RD |
10660 | bool temp2 = False ; |
10661 | bool temp3 = False ; | |
d14a1e28 RD |
10662 | PyObject * obj0 = 0 ; |
10663 | PyObject * obj1 = 0 ; | |
10664 | PyObject * obj2 = 0 ; | |
10665 | char *kwnames[] = { | |
10666 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10667 | }; | |
10668 | ||
10669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10672 | { |
10673 | arg2 = wxString_in_helper(obj1); | |
10674 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10675 | temp2 = True; |
d14a1e28 RD |
10676 | } |
10677 | { | |
10678 | arg3 = wxString_in_helper(obj2); | |
10679 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10680 | temp3 = True; |
d14a1e28 RD |
10681 | } |
10682 | { | |
10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10684 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10685 | ||
10686 | wxPyEndAllowThreads(__tstate); | |
10687 | if (PyErr_Occurred()) SWIG_fail; | |
10688 | } | |
10689 | Py_INCREF(Py_None); resultobj = Py_None; | |
10690 | { | |
10691 | if (temp2) | |
10692 | delete arg2; | |
10693 | } | |
10694 | { | |
10695 | if (temp3) | |
10696 | delete arg3; | |
10697 | } | |
10698 | return resultobj; | |
10699 | fail: | |
10700 | { | |
10701 | if (temp2) | |
10702 | delete arg2; | |
10703 | } | |
10704 | { | |
10705 | if (temp3) | |
10706 | delete arg3; | |
10707 | } | |
10708 | return NULL; | |
10709 | } | |
10710 | ||
10711 | ||
10712 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10713 | PyObject *resultobj; | |
10714 | wxImage *arg1 = (wxImage *) 0 ; | |
10715 | wxString *arg2 = 0 ; | |
10716 | int arg3 ; | |
423f194a | 10717 | bool temp2 = False ; |
d14a1e28 RD |
10718 | PyObject * obj0 = 0 ; |
10719 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10720 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10721 | char *kwnames[] = { |
10722 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10723 | }; | |
10724 | ||
8edf1c75 | 10725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10728 | { |
10729 | arg2 = wxString_in_helper(obj1); | |
10730 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10731 | temp2 = True; |
d14a1e28 | 10732 | } |
2f4c0a16 RD |
10733 | arg3 = (int) SWIG_AsInt(obj2); |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10735 | { |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | Py_INCREF(Py_None); resultobj = Py_None; | |
10743 | { | |
10744 | if (temp2) | |
10745 | delete arg2; | |
10746 | } | |
10747 | return resultobj; | |
10748 | fail: | |
10749 | { | |
10750 | if (temp2) | |
10751 | delete arg2; | |
10752 | } | |
10753 | return NULL; | |
10754 | } | |
10755 | ||
10756 | ||
10757 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj; | |
10759 | wxImage *arg1 = (wxImage *) 0 ; | |
10760 | wxString *arg2 = 0 ; | |
10761 | wxString result; | |
423f194a | 10762 | bool temp2 = False ; |
d14a1e28 RD |
10763 | PyObject * obj0 = 0 ; |
10764 | PyObject * obj1 = 0 ; | |
10765 | char *kwnames[] = { | |
10766 | (char *) "self",(char *) "name", NULL | |
10767 | }; | |
10768 | ||
10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10772 | { |
10773 | arg2 = wxString_in_helper(obj1); | |
10774 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10775 | temp2 = True; |
d14a1e28 RD |
10776 | } |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10780 | ||
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | { | |
10785 | #if wxUSE_UNICODE | |
10786 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10787 | #else | |
10788 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10789 | #endif | |
10790 | } | |
10791 | { | |
10792 | if (temp2) | |
10793 | delete arg2; | |
10794 | } | |
10795 | return resultobj; | |
10796 | fail: | |
10797 | { | |
10798 | if (temp2) | |
10799 | delete arg2; | |
10800 | } | |
10801 | return NULL; | |
10802 | } | |
10803 | ||
10804 | ||
10805 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10806 | PyObject *resultobj; | |
10807 | wxImage *arg1 = (wxImage *) 0 ; | |
10808 | wxString *arg2 = 0 ; | |
10809 | int result; | |
423f194a | 10810 | bool temp2 = False ; |
d14a1e28 RD |
10811 | PyObject * obj0 = 0 ; |
10812 | PyObject * obj1 = 0 ; | |
10813 | char *kwnames[] = { | |
10814 | (char *) "self",(char *) "name", NULL | |
10815 | }; | |
10816 | ||
10817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10820 | { |
10821 | arg2 = wxString_in_helper(obj1); | |
10822 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10823 | temp2 = True; |
d14a1e28 RD |
10824 | } |
10825 | { | |
10826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10827 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10828 | ||
10829 | wxPyEndAllowThreads(__tstate); | |
10830 | if (PyErr_Occurred()) SWIG_fail; | |
10831 | } | |
2f4c0a16 | 10832 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10833 | { |
10834 | if (temp2) | |
10835 | delete arg2; | |
10836 | } | |
10837 | return resultobj; | |
10838 | fail: | |
10839 | { | |
10840 | if (temp2) | |
10841 | delete arg2; | |
10842 | } | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10848 | PyObject *resultobj; | |
10849 | wxImage *arg1 = (wxImage *) 0 ; | |
10850 | wxString *arg2 = 0 ; | |
10851 | bool result; | |
423f194a | 10852 | bool temp2 = False ; |
d14a1e28 RD |
10853 | PyObject * obj0 = 0 ; |
10854 | PyObject * obj1 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self",(char *) "name", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10862 | { |
10863 | arg2 = wxString_in_helper(obj1); | |
10864 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10865 | temp2 = True; |
d14a1e28 RD |
10866 | } |
10867 | { | |
10868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10869 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10870 | ||
10871 | wxPyEndAllowThreads(__tstate); | |
10872 | if (PyErr_Occurred()) SWIG_fail; | |
10873 | } | |
4f89f6a3 RD |
10874 | { |
10875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10876 | } | |
d14a1e28 RD |
10877 | { |
10878 | if (temp2) | |
10879 | delete arg2; | |
10880 | } | |
10881 | return resultobj; | |
10882 | fail: | |
10883 | { | |
10884 | if (temp2) | |
10885 | delete arg2; | |
10886 | } | |
10887 | return NULL; | |
10888 | } | |
10889 | ||
10890 | ||
10891 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10892 | PyObject *resultobj; | |
10893 | wxImage *arg1 = (wxImage *) 0 ; | |
10894 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10895 | unsigned long result; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | PyObject * obj1 = 0 ; | |
10898 | char *kwnames[] = { | |
10899 | (char *) "self",(char *) "stopafter", NULL | |
10900 | }; | |
10901 | ||
10902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10905 | if (obj1) { |
2f4c0a16 RD |
10906 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10908 | } |
10909 | { | |
10910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10911 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10912 | ||
10913 | wxPyEndAllowThreads(__tstate); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | } | |
2f4c0a16 | 10916 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10917 | return resultobj; |
10918 | fail: | |
10919 | return NULL; | |
10920 | } | |
10921 | ||
10922 | ||
10923 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10924 | PyObject *resultobj; | |
10925 | wxImage *arg1 = (wxImage *) 0 ; | |
10926 | wxImageHistogram *arg2 = 0 ; | |
10927 | unsigned long result; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | PyObject * obj1 = 0 ; | |
10930 | char *kwnames[] = { | |
10931 | (char *) "self",(char *) "h", NULL | |
10932 | }; | |
10933 | ||
10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10937 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
10938 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10939 | SWIG_fail; | |
d14a1e28 | 10940 | if (arg2 == NULL) { |
2f4c0a16 RD |
10941 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10942 | SWIG_fail; | |
d14a1e28 RD |
10943 | } |
10944 | { | |
10945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10946 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10947 | ||
10948 | wxPyEndAllowThreads(__tstate); | |
10949 | if (PyErr_Occurred()) SWIG_fail; | |
10950 | } | |
2f4c0a16 | 10951 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10952 | return resultobj; |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
10958 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10959 | PyObject *resultobj; | |
10960 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | char *kwnames[] = { | |
10963 | (char *) "handler", NULL | |
10964 | }; | |
10965 | ||
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10969 | { |
10970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10971 | wxImage::AddHandler(arg1); | |
10972 | ||
10973 | wxPyEndAllowThreads(__tstate); | |
10974 | if (PyErr_Occurred()) SWIG_fail; | |
10975 | } | |
10976 | Py_INCREF(Py_None); resultobj = Py_None; | |
10977 | return resultobj; | |
10978 | fail: | |
10979 | return NULL; | |
10980 | } | |
10981 | ||
10982 | ||
10983 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10984 | PyObject *resultobj; | |
10985 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10986 | PyObject * obj0 = 0 ; | |
10987 | char *kwnames[] = { | |
10988 | (char *) "handler", NULL | |
10989 | }; | |
10990 | ||
10991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10994 | { |
10995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10996 | wxImage::InsertHandler(arg1); | |
10997 | ||
10998 | wxPyEndAllowThreads(__tstate); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | Py_INCREF(Py_None); resultobj = Py_None; | |
11002 | return resultobj; | |
11003 | fail: | |
11004 | return NULL; | |
11005 | } | |
11006 | ||
11007 | ||
11008 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11009 | PyObject *resultobj; | |
11010 | wxString *arg1 = 0 ; | |
11011 | bool result; | |
423f194a | 11012 | bool temp1 = False ; |
d14a1e28 RD |
11013 | PyObject * obj0 = 0 ; |
11014 | char *kwnames[] = { | |
11015 | (char *) "name", NULL | |
11016 | }; | |
11017 | ||
11018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11019 | { | |
11020 | arg1 = wxString_in_helper(obj0); | |
11021 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11022 | temp1 = True; |
d14a1e28 RD |
11023 | } |
11024 | { | |
11025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11026 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11027 | ||
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
4f89f6a3 RD |
11031 | { |
11032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11033 | } | |
d14a1e28 RD |
11034 | { |
11035 | if (temp1) | |
11036 | delete arg1; | |
11037 | } | |
11038 | return resultobj; | |
11039 | fail: | |
11040 | { | |
11041 | if (temp1) | |
11042 | delete arg1; | |
11043 | } | |
11044 | return NULL; | |
11045 | } | |
11046 | ||
11047 | ||
11048 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11049 | PyObject *resultobj; | |
11050 | wxString result; | |
11051 | char *kwnames[] = { | |
11052 | NULL | |
11053 | }; | |
11054 | ||
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11056 | { | |
11057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11058 | result = wxImage::GetImageExtWildcard(); | |
11059 | ||
11060 | wxPyEndAllowThreads(__tstate); | |
11061 | if (PyErr_Occurred()) SWIG_fail; | |
11062 | } | |
11063 | { | |
11064 | #if wxUSE_UNICODE | |
11065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11066 | #else | |
11067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11068 | #endif | |
11069 | } | |
11070 | return resultobj; | |
11071 | fail: | |
11072 | return NULL; | |
11073 | } | |
11074 | ||
11075 | ||
11076 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11077 | PyObject *resultobj; | |
11078 | wxImage *arg1 = (wxImage *) 0 ; | |
11079 | wxBitmap result; | |
11080 | PyObject * obj0 = 0 ; | |
11081 | char *kwnames[] = { | |
11082 | (char *) "self", NULL | |
11083 | }; | |
11084 | ||
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11088 | { |
11089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11090 | result = wxImage_ConvertToBitmap(arg1); | |
11091 | ||
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | { | |
11096 | wxBitmap * resultptr; | |
11097 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11099 | } |
11100 | return resultobj; | |
11101 | fail: | |
11102 | return NULL; | |
11103 | } | |
11104 | ||
11105 | ||
11106 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11107 | PyObject *resultobj; | |
11108 | wxImage *arg1 = (wxImage *) 0 ; | |
11109 | unsigned char arg2 ; | |
11110 | unsigned char arg3 ; | |
11111 | unsigned char arg4 ; | |
11112 | wxBitmap result; | |
11113 | PyObject * obj0 = 0 ; | |
11114 | PyObject * obj1 = 0 ; | |
11115 | PyObject * obj2 = 0 ; | |
11116 | PyObject * obj3 = 0 ; | |
11117 | char *kwnames[] = { | |
11118 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11119 | }; | |
11120 | ||
11121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11124 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11130 | { |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
11137 | { | |
11138 | wxBitmap * resultptr; | |
11139 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11141 | } |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11149 | PyObject *obj; | |
11150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11151 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11152 | Py_INCREF(obj); | |
11153 | return Py_BuildValue((char *)""); | |
11154 | } | |
11155 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11156 | PyObject *resultobj; | |
11157 | char *kwnames[] = { | |
11158 | NULL | |
11159 | }; | |
11160 | ||
11161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11162 | { | |
11163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11164 | wxInitAllImageHandlers(); | |
11165 | ||
11166 | wxPyEndAllowThreads(__tstate); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | } | |
11169 | Py_INCREF(Py_None); resultobj = Py_None; | |
11170 | return resultobj; | |
11171 | fail: | |
11172 | return NULL; | |
11173 | } | |
11174 | ||
11175 | ||
2f4c0a16 | 11176 | static int _wrap_NullImage_set(PyObject *_val) { |
d14a1e28 RD |
11177 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11178 | return 1; | |
11179 | } | |
11180 | ||
11181 | ||
11182 | static PyObject *_wrap_NullImage_get() { | |
11183 | PyObject *pyobj; | |
11184 | ||
2f4c0a16 | 11185 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11186 | return pyobj; |
11187 | } | |
11188 | ||
11189 | ||
2f4c0a16 | 11190 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { |
d14a1e28 RD |
11191 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11192 | return 1; | |
11193 | } | |
11194 | ||
11195 | ||
11196 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11197 | PyObject *pyobj; | |
11198 | ||
11199 | { | |
11200 | #if wxUSE_UNICODE | |
11201 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11202 | #else | |
11203 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11204 | #endif | |
11205 | } | |
11206 | return pyobj; | |
11207 | } | |
11208 | ||
11209 | ||
2f4c0a16 | 11210 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { |
d14a1e28 RD |
11211 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11212 | return 1; | |
11213 | } | |
11214 | ||
11215 | ||
11216 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11217 | PyObject *pyobj; | |
11218 | ||
11219 | { | |
11220 | #if wxUSE_UNICODE | |
11221 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11222 | #else | |
11223 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11224 | #endif | |
11225 | } | |
11226 | return pyobj; | |
11227 | } | |
11228 | ||
11229 | ||
2f4c0a16 | 11230 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { |
d14a1e28 RD |
11231 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11232 | return 1; | |
11233 | } | |
11234 | ||
11235 | ||
11236 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11237 | PyObject *pyobj; | |
11238 | ||
11239 | { | |
11240 | #if wxUSE_UNICODE | |
11241 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11242 | #else | |
11243 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11244 | #endif | |
11245 | } | |
11246 | return pyobj; | |
11247 | } | |
11248 | ||
11249 | ||
2f4c0a16 | 11250 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { |
d14a1e28 RD |
11251 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11252 | return 1; | |
11253 | } | |
11254 | ||
11255 | ||
11256 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11257 | PyObject *pyobj; | |
11258 | ||
11259 | { | |
11260 | #if wxUSE_UNICODE | |
11261 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11262 | #else | |
11263 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11264 | #endif | |
11265 | } | |
11266 | return pyobj; | |
11267 | } | |
11268 | ||
11269 | ||
2f4c0a16 | 11270 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { |
d14a1e28 RD |
11271 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11272 | return 1; | |
11273 | } | |
11274 | ||
11275 | ||
11276 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11277 | PyObject *pyobj; | |
11278 | ||
11279 | { | |
11280 | #if wxUSE_UNICODE | |
11281 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11282 | #else | |
11283 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11284 | #endif | |
11285 | } | |
11286 | return pyobj; | |
11287 | } | |
11288 | ||
11289 | ||
11290 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11291 | PyObject *resultobj; | |
11292 | wxBMPHandler *result; | |
11293 | char *kwnames[] = { | |
11294 | NULL | |
11295 | }; | |
11296 | ||
11297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11298 | { | |
11299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11300 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11301 | ||
11302 | wxPyEndAllowThreads(__tstate); | |
11303 | if (PyErr_Occurred()) SWIG_fail; | |
11304 | } | |
2f4c0a16 | 11305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11306 | return resultobj; |
11307 | fail: | |
11308 | return NULL; | |
11309 | } | |
11310 | ||
11311 | ||
11312 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11313 | PyObject *obj; | |
11314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11315 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11316 | Py_INCREF(obj); | |
11317 | return Py_BuildValue((char *)""); | |
11318 | } | |
11319 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11320 | PyObject *resultobj; | |
11321 | wxICOHandler *result; | |
11322 | char *kwnames[] = { | |
11323 | NULL | |
11324 | }; | |
11325 | ||
11326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = (wxICOHandler *)new wxICOHandler(); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
2f4c0a16 | 11334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11335 | return resultobj; |
11336 | fail: | |
11337 | return NULL; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11342 | PyObject *obj; | |
11343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11344 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11345 | Py_INCREF(obj); | |
11346 | return Py_BuildValue((char *)""); | |
11347 | } | |
11348 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11349 | PyObject *resultobj; | |
11350 | wxCURHandler *result; | |
11351 | char *kwnames[] = { | |
11352 | NULL | |
11353 | }; | |
11354 | ||
11355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11356 | { | |
11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11358 | result = (wxCURHandler *)new wxCURHandler(); | |
11359 | ||
11360 | wxPyEndAllowThreads(__tstate); | |
11361 | if (PyErr_Occurred()) SWIG_fail; | |
11362 | } | |
2f4c0a16 | 11363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11364 | return resultobj; |
11365 | fail: | |
11366 | return NULL; | |
11367 | } | |
11368 | ||
11369 | ||
11370 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11371 | PyObject *obj; | |
11372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11373 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11374 | Py_INCREF(obj); | |
11375 | return Py_BuildValue((char *)""); | |
11376 | } | |
11377 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11378 | PyObject *resultobj; | |
11379 | wxANIHandler *result; | |
11380 | char *kwnames[] = { | |
11381 | NULL | |
11382 | }; | |
11383 | ||
11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11385 | { | |
11386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11387 | result = (wxANIHandler *)new wxANIHandler(); | |
11388 | ||
11389 | wxPyEndAllowThreads(__tstate); | |
11390 | if (PyErr_Occurred()) SWIG_fail; | |
11391 | } | |
2f4c0a16 | 11392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11393 | return resultobj; |
11394 | fail: | |
11395 | return NULL; | |
11396 | } | |
11397 | ||
11398 | ||
11399 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11400 | PyObject *obj; | |
11401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11402 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11403 | Py_INCREF(obj); | |
11404 | return Py_BuildValue((char *)""); | |
11405 | } | |
11406 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11407 | PyObject *resultobj; | |
11408 | wxPNGHandler *result; | |
11409 | char *kwnames[] = { | |
11410 | NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11414 | { | |
11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11416 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11417 | ||
11418 | wxPyEndAllowThreads(__tstate); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | } | |
2f4c0a16 | 11421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11422 | return resultobj; |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
11428 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11429 | PyObject *obj; | |
11430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11431 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11432 | Py_INCREF(obj); | |
11433 | return Py_BuildValue((char *)""); | |
11434 | } | |
11435 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11436 | PyObject *resultobj; | |
11437 | wxGIFHandler *result; | |
11438 | char *kwnames[] = { | |
11439 | NULL | |
11440 | }; | |
11441 | ||
11442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11443 | { | |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11445 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11446 | ||
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
2f4c0a16 | 11450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11451 | return resultobj; |
11452 | fail: | |
11453 | return NULL; | |
11454 | } | |
11455 | ||
11456 | ||
11457 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11458 | PyObject *obj; | |
11459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11460 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11461 | Py_INCREF(obj); | |
11462 | return Py_BuildValue((char *)""); | |
11463 | } | |
11464 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxPCXHandler *result; | |
11467 | char *kwnames[] = { | |
11468 | NULL | |
11469 | }; | |
11470 | ||
11471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11472 | { | |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11475 | ||
11476 | wxPyEndAllowThreads(__tstate); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
2f4c0a16 | 11479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11480 | return resultobj; |
11481 | fail: | |
11482 | return NULL; | |
11483 | } | |
11484 | ||
11485 | ||
11486 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11487 | PyObject *obj; | |
11488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11489 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11490 | Py_INCREF(obj); | |
11491 | return Py_BuildValue((char *)""); | |
11492 | } | |
11493 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11494 | PyObject *resultobj; | |
11495 | wxJPEGHandler *result; | |
11496 | char *kwnames[] = { | |
11497 | NULL | |
11498 | }; | |
11499 | ||
11500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11501 | { | |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
2f4c0a16 | 11508 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11509 | return resultobj; |
11510 | fail: | |
11511 | return NULL; | |
11512 | } | |
11513 | ||
11514 | ||
11515 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11516 | PyObject *obj; | |
11517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11518 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11519 | Py_INCREF(obj); | |
11520 | return Py_BuildValue((char *)""); | |
11521 | } | |
11522 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11523 | PyObject *resultobj; | |
11524 | wxPNMHandler *result; | |
11525 | char *kwnames[] = { | |
11526 | NULL | |
11527 | }; | |
11528 | ||
11529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11530 | { | |
11531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11532 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11533 | ||
11534 | wxPyEndAllowThreads(__tstate); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | } | |
2f4c0a16 | 11537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11538 | return resultobj; |
11539 | fail: | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
11544 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11545 | PyObject *obj; | |
11546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11547 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11548 | Py_INCREF(obj); | |
11549 | return Py_BuildValue((char *)""); | |
11550 | } | |
11551 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11552 | PyObject *resultobj; | |
11553 | wxXPMHandler *result; | |
11554 | char *kwnames[] = { | |
11555 | NULL | |
11556 | }; | |
11557 | ||
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11562 | ||
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
2f4c0a16 | 11566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11567 | return resultobj; |
11568 | fail: | |
11569 | return NULL; | |
11570 | } | |
11571 | ||
11572 | ||
11573 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11574 | PyObject *obj; | |
11575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11576 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11577 | Py_INCREF(obj); | |
11578 | return Py_BuildValue((char *)""); | |
11579 | } | |
11580 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11581 | PyObject *resultobj; | |
11582 | wxTIFFHandler *result; | |
11583 | char *kwnames[] = { | |
11584 | NULL | |
11585 | }; | |
11586 | ||
11587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11588 | { | |
11589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11590 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11591 | ||
11592 | wxPyEndAllowThreads(__tstate); | |
11593 | if (PyErr_Occurred()) SWIG_fail; | |
11594 | } | |
2f4c0a16 | 11595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11596 | return resultobj; |
11597 | fail: | |
11598 | return NULL; | |
11599 | } | |
11600 | ||
11601 | ||
11602 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11603 | PyObject *obj; | |
11604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11605 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11606 | Py_INCREF(obj); | |
11607 | return Py_BuildValue((char *)""); | |
11608 | } | |
11609 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11610 | PyObject *resultobj; | |
11611 | wxEvtHandler *result; | |
11612 | char *kwnames[] = { | |
11613 | NULL | |
11614 | }; | |
11615 | ||
11616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11617 | { | |
11618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11619 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11620 | ||
11621 | wxPyEndAllowThreads(__tstate); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
11623 | } | |
11624 | { | |
11625 | resultobj = wxPyMake_wxObject(result); | |
11626 | } | |
11627 | return resultobj; | |
11628 | fail: | |
11629 | return NULL; | |
11630 | } | |
11631 | ||
11632 | ||
11633 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11634 | PyObject *resultobj; | |
11635 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11636 | wxEvtHandler *result; | |
11637 | PyObject * obj0 = 0 ; | |
11638 | char *kwnames[] = { | |
11639 | (char *) "self", NULL | |
11640 | }; | |
11641 | ||
11642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11645 | { |
11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11647 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11648 | ||
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | { | |
11653 | resultobj = wxPyMake_wxObject(result); | |
11654 | } | |
11655 | return resultobj; | |
11656 | fail: | |
11657 | return NULL; | |
11658 | } | |
11659 | ||
11660 | ||
11661 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11662 | PyObject *resultobj; | |
11663 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11664 | wxEvtHandler *result; | |
11665 | PyObject * obj0 = 0 ; | |
11666 | char *kwnames[] = { | |
11667 | (char *) "self", NULL | |
11668 | }; | |
11669 | ||
11670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11673 | { |
11674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11675 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11676 | ||
11677 | wxPyEndAllowThreads(__tstate); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | { | |
11681 | resultobj = wxPyMake_wxObject(result); | |
11682 | } | |
11683 | return resultobj; | |
11684 | fail: | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj; | |
11691 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11692 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11693 | PyObject * obj0 = 0 ; | |
11694 | PyObject * obj1 = 0 ; | |
11695 | char *kwnames[] = { | |
11696 | (char *) "self",(char *) "handler", NULL | |
11697 | }; | |
11698 | ||
11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11704 | { |
11705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11706 | (arg1)->SetNextHandler(arg2); | |
11707 | ||
11708 | wxPyEndAllowThreads(__tstate); | |
11709 | if (PyErr_Occurred()) SWIG_fail; | |
11710 | } | |
11711 | Py_INCREF(Py_None); resultobj = Py_None; | |
11712 | return resultobj; | |
11713 | fail: | |
11714 | return NULL; | |
11715 | } | |
11716 | ||
11717 | ||
11718 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11719 | PyObject *resultobj; | |
11720 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11721 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11722 | PyObject * obj0 = 0 ; | |
11723 | PyObject * obj1 = 0 ; | |
11724 | char *kwnames[] = { | |
11725 | (char *) "self",(char *) "handler", NULL | |
11726 | }; | |
11727 | ||
11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11733 | { |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | (arg1)->SetPreviousHandler(arg2); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | } | |
11740 | Py_INCREF(Py_None); resultobj = Py_None; | |
11741 | return resultobj; | |
11742 | fail: | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
11747 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11748 | PyObject *resultobj; | |
11749 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11750 | bool result; | |
11751 | PyObject * obj0 = 0 ; | |
11752 | char *kwnames[] = { | |
11753 | (char *) "self", NULL | |
11754 | }; | |
11755 | ||
11756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11759 | { |
11760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11761 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11762 | ||
11763 | wxPyEndAllowThreads(__tstate); | |
11764 | if (PyErr_Occurred()) SWIG_fail; | |
11765 | } | |
4f89f6a3 RD |
11766 | { |
11767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11768 | } | |
d14a1e28 RD |
11769 | return resultobj; |
11770 | fail: | |
11771 | return NULL; | |
11772 | } | |
11773 | ||
11774 | ||
11775 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11776 | PyObject *resultobj; | |
11777 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11778 | bool arg2 ; | |
11779 | PyObject * obj0 = 0 ; | |
11780 | PyObject * obj1 = 0 ; | |
11781 | char *kwnames[] = { | |
11782 | (char *) "self",(char *) "enabled", NULL | |
11783 | }; | |
11784 | ||
11785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11788 | arg2 = (bool) SWIG_AsBool(obj1); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11790 | { |
11791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11792 | (arg1)->SetEvtHandlerEnabled(arg2); | |
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_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11805 | PyObject *resultobj; | |
11806 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11807 | wxEvent *arg2 = 0 ; | |
11808 | bool result; | |
11809 | PyObject * obj0 = 0 ; | |
11810 | PyObject * obj1 = 0 ; | |
11811 | char *kwnames[] = { | |
11812 | (char *) "self",(char *) "event", NULL | |
11813 | }; | |
11814 | ||
11815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11820 | SWIG_fail; | |
d14a1e28 | 11821 | if (arg2 == NULL) { |
2f4c0a16 RD |
11822 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11823 | SWIG_fail; | |
d14a1e28 RD |
11824 | } |
11825 | { | |
11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11827 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11828 | ||
11829 | wxPyEndAllowThreads(__tstate); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
11831 | } | |
4f89f6a3 RD |
11832 | { |
11833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11834 | } | |
d14a1e28 RD |
11835 | return resultobj; |
11836 | fail: | |
11837 | return NULL; | |
11838 | } | |
11839 | ||
11840 | ||
11841 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11842 | PyObject *resultobj; | |
11843 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11844 | wxEvent *arg2 = 0 ; | |
11845 | PyObject * obj0 = 0 ; | |
11846 | PyObject * obj1 = 0 ; | |
11847 | char *kwnames[] = { | |
11848 | (char *) "self",(char *) "event", NULL | |
11849 | }; | |
11850 | ||
11851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11855 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11856 | SWIG_fail; | |
d14a1e28 | 11857 | if (arg2 == NULL) { |
2f4c0a16 RD |
11858 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11859 | SWIG_fail; | |
d14a1e28 RD |
11860 | } |
11861 | { | |
11862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11863 | (arg1)->AddPendingEvent(*arg2); | |
11864 | ||
11865 | wxPyEndAllowThreads(__tstate); | |
11866 | if (PyErr_Occurred()) SWIG_fail; | |
11867 | } | |
11868 | Py_INCREF(Py_None); resultobj = Py_None; | |
11869 | return resultobj; | |
11870 | fail: | |
11871 | return NULL; | |
11872 | } | |
11873 | ||
11874 | ||
11875 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11876 | PyObject *resultobj; | |
11877 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11878 | PyObject * obj0 = 0 ; | |
11879 | char *kwnames[] = { | |
11880 | (char *) "self", NULL | |
11881 | }; | |
11882 | ||
11883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11886 | { |
11887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11888 | (arg1)->ProcessPendingEvents(); | |
11889 | ||
11890 | wxPyEndAllowThreads(__tstate); | |
11891 | if (PyErr_Occurred()) SWIG_fail; | |
11892 | } | |
11893 | Py_INCREF(Py_None); resultobj = Py_None; | |
11894 | return resultobj; | |
11895 | fail: | |
11896 | return NULL; | |
11897 | } | |
11898 | ||
11899 | ||
11900 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11901 | PyObject *resultobj; | |
11902 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11903 | int arg2 ; | |
11904 | int arg3 ; | |
11905 | int arg4 ; | |
11906 | PyObject *arg5 = (PyObject *) 0 ; | |
11907 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11908 | PyObject * obj1 = 0 ; |
11909 | PyObject * obj2 = 0 ; | |
11910 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11911 | PyObject * obj4 = 0 ; |
11912 | char *kwnames[] = { | |
11913 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11914 | }; | |
11915 | ||
8edf1c75 | 11916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11919 | arg2 = (int) SWIG_AsInt(obj1); | |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
11921 | arg3 = (int) SWIG_AsInt(obj2); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | arg4 = (int) SWIG_AsInt(obj3); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11925 | arg5 = obj4; |
11926 | { | |
11927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11928 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11929 | ||
11930 | wxPyEndAllowThreads(__tstate); | |
11931 | if (PyErr_Occurred()) SWIG_fail; | |
11932 | } | |
11933 | Py_INCREF(Py_None); resultobj = Py_None; | |
11934 | return resultobj; | |
11935 | fail: | |
11936 | return NULL; | |
11937 | } | |
11938 | ||
11939 | ||
11940 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11941 | PyObject *resultobj; | |
11942 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11943 | int arg2 ; | |
11944 | int arg3 = (int) -1 ; | |
11945 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11946 | bool result; | |
11947 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11948 | PyObject * obj1 = 0 ; |
11949 | PyObject * obj2 = 0 ; | |
11950 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11951 | char *kwnames[] = { |
11952 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11953 | }; | |
11954 | ||
8edf1c75 | 11955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11958 | arg2 = (int) SWIG_AsInt(obj1); | |
11959 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11960 | if (obj2) { |
2f4c0a16 RD |
11961 | arg3 = (int) SWIG_AsInt(obj2); |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11963 | } |
11964 | if (obj3) { | |
2f4c0a16 RD |
11965 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11967 | } |
d14a1e28 RD |
11968 | { |
11969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11970 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11971 | ||
11972 | wxPyEndAllowThreads(__tstate); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
4f89f6a3 RD |
11975 | { |
11976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11977 | } | |
d14a1e28 RD |
11978 | return resultobj; |
11979 | fail: | |
11980 | return NULL; | |
11981 | } | |
11982 | ||
11983 | ||
11984 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11985 | PyObject *resultobj; | |
11986 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11987 | PyObject *arg2 = (PyObject *) 0 ; | |
11988 | PyObject * obj0 = 0 ; | |
11989 | PyObject * obj1 = 0 ; | |
11990 | char *kwnames[] = { | |
11991 | (char *) "self",(char *) "_self", NULL | |
11992 | }; | |
11993 | ||
11994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11997 | arg2 = obj1; |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | Py_INCREF(Py_None); resultobj = Py_None; | |
12006 | return resultobj; | |
12007 | fail: | |
12008 | return NULL; | |
12009 | } | |
12010 | ||
12011 | ||
12012 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12013 | PyObject *obj; | |
12014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12015 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12016 | Py_INCREF(obj); | |
12017 | return Py_BuildValue((char *)""); | |
12018 | } | |
12019 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12020 | PyObject *resultobj; | |
12021 | wxEventType result; | |
12022 | char *kwnames[] = { | |
12023 | NULL | |
12024 | }; | |
12025 | ||
12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12027 | { | |
12028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12029 | result = (wxEventType)wxNewEventType(); | |
12030 | ||
12031 | wxPyEndAllowThreads(__tstate); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | } | |
2f4c0a16 | 12034 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12035 | return resultobj; |
12036 | fail: | |
12037 | return NULL; | |
12038 | } | |
12039 | ||
12040 | ||
12041 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12042 | PyObject *resultobj; | |
12043 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12044 | PyObject * obj0 = 0 ; | |
12045 | char *kwnames[] = { | |
12046 | (char *) "self", NULL | |
12047 | }; | |
12048 | ||
12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12052 | { |
12053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12054 | delete arg1; | |
12055 | ||
12056 | wxPyEndAllowThreads(__tstate); | |
12057 | if (PyErr_Occurred()) SWIG_fail; | |
12058 | } | |
12059 | Py_INCREF(Py_None); resultobj = Py_None; | |
12060 | return resultobj; | |
12061 | fail: | |
12062 | return NULL; | |
12063 | } | |
12064 | ||
12065 | ||
12066 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12067 | PyObject *resultobj; | |
12068 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12069 | wxEventType arg2 ; | |
12070 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12071 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12072 | char *kwnames[] = { |
12073 | (char *) "self",(char *) "typ", NULL | |
12074 | }; | |
12075 | ||
8edf1c75 | 12076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12079 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12080 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12081 | { |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | (arg1)->SetEventType(arg2); | |
12084 | ||
12085 | wxPyEndAllowThreads(__tstate); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | Py_INCREF(Py_None); resultobj = Py_None; | |
12089 | return resultobj; | |
12090 | fail: | |
12091 | return NULL; | |
12092 | } | |
12093 | ||
12094 | ||
12095 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12096 | PyObject *resultobj; | |
12097 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12098 | wxEventType result; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | char *kwnames[] = { | |
12101 | (char *) "self", NULL | |
12102 | }; | |
12103 | ||
12104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12107 | { |
12108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12109 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12110 | ||
12111 | wxPyEndAllowThreads(__tstate); | |
12112 | if (PyErr_Occurred()) SWIG_fail; | |
12113 | } | |
2f4c0a16 | 12114 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12115 | return resultobj; |
12116 | fail: | |
12117 | return NULL; | |
12118 | } | |
12119 | ||
12120 | ||
12121 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12122 | PyObject *resultobj; | |
12123 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12124 | wxObject *result; | |
12125 | PyObject * obj0 = 0 ; | |
12126 | char *kwnames[] = { | |
12127 | (char *) "self", NULL | |
12128 | }; | |
12129 | ||
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12133 | { |
12134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12135 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
12140 | { | |
12141 | resultobj = wxPyMake_wxObject(result); | |
12142 | } | |
12143 | return resultobj; | |
12144 | fail: | |
12145 | return NULL; | |
12146 | } | |
12147 | ||
12148 | ||
12149 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12150 | PyObject *resultobj; | |
12151 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12152 | wxObject *arg2 = (wxObject *) 0 ; | |
12153 | PyObject * obj0 = 0 ; | |
12154 | PyObject * obj1 = 0 ; | |
12155 | char *kwnames[] = { | |
12156 | (char *) "self",(char *) "obj", NULL | |
12157 | }; | |
12158 | ||
12159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12162 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12164 | { |
12165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12166 | (arg1)->SetEventObject(arg2); | |
12167 | ||
12168 | wxPyEndAllowThreads(__tstate); | |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
12170 | } | |
12171 | Py_INCREF(Py_None); resultobj = Py_None; | |
12172 | return resultobj; | |
12173 | fail: | |
12174 | return NULL; | |
12175 | } | |
12176 | ||
12177 | ||
12178 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12179 | PyObject *resultobj; | |
12180 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12181 | long result; | |
12182 | PyObject * obj0 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12190 | { |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12192 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
2f4c0a16 | 12197 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12198 | return resultobj; |
12199 | fail: | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12207 | long arg2 = (long) 0 ; | |
12208 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12210 | char *kwnames[] = { |
12211 | (char *) "self",(char *) "ts", NULL | |
12212 | }; | |
12213 | ||
8edf1c75 | 12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 12217 | if (obj1) { |
2f4c0a16 RD |
12218 | arg2 = (long) SWIG_AsLong(obj1); |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12220 | } |
d14a1e28 RD |
12221 | { |
12222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12223 | (arg1)->SetTimestamp(arg2); | |
12224 | ||
12225 | wxPyEndAllowThreads(__tstate); | |
12226 | if (PyErr_Occurred()) SWIG_fail; | |
12227 | } | |
12228 | Py_INCREF(Py_None); resultobj = Py_None; | |
12229 | return resultobj; | |
12230 | fail: | |
12231 | return NULL; | |
12232 | } | |
12233 | ||
12234 | ||
12235 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12236 | PyObject *resultobj; | |
12237 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12238 | int result; | |
12239 | PyObject * obj0 = 0 ; | |
12240 | char *kwnames[] = { | |
12241 | (char *) "self", NULL | |
12242 | }; | |
12243 | ||
12244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12247 | { |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12250 | ||
12251 | wxPyEndAllowThreads(__tstate); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
12253 | } | |
2f4c0a16 | 12254 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12255 | return resultobj; |
12256 | fail: | |
12257 | return NULL; | |
12258 | } | |
12259 | ||
12260 | ||
12261 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12262 | PyObject *resultobj; | |
12263 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12264 | int arg2 ; | |
12265 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12267 | char *kwnames[] = { |
12268 | (char *) "self",(char *) "Id", NULL | |
12269 | }; | |
12270 | ||
8edf1c75 | 12271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12274 | arg2 = (int) SWIG_AsInt(obj1); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12276 | { |
12277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12278 | (arg1)->SetId(arg2); | |
12279 | ||
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | Py_INCREF(Py_None); resultobj = Py_None; | |
12284 | return resultobj; | |
12285 | fail: | |
12286 | return NULL; | |
12287 | } | |
12288 | ||
12289 | ||
12290 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12291 | PyObject *resultobj; | |
12292 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12293 | bool result; | |
12294 | PyObject * obj0 = 0 ; | |
12295 | char *kwnames[] = { | |
12296 | (char *) "self", NULL | |
12297 | }; | |
12298 | ||
12299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12302 | { |
12303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12304 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12305 | ||
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
4f89f6a3 RD |
12309 | { |
12310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12311 | } | |
d14a1e28 RD |
12312 | return resultobj; |
12313 | fail: | |
12314 | return NULL; | |
12315 | } | |
12316 | ||
12317 | ||
12318 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12319 | PyObject *resultobj; | |
12320 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 12321 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12322 | PyObject * obj0 = 0 ; |
12323 | PyObject * obj1 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self",(char *) "skip", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12331 | if (obj1) { |
2f4c0a16 RD |
12332 | arg2 = (bool) SWIG_AsBool(obj1); |
12333 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12334 | } |
12335 | { | |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | (arg1)->Skip(arg2); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | Py_INCREF(Py_None); resultobj = Py_None; | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12352 | bool result; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12361 | { |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12364 | ||
12365 | wxPyEndAllowThreads(__tstate); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
4f89f6a3 RD |
12368 | { |
12369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12370 | } | |
d14a1e28 RD |
12371 | return resultobj; |
12372 | fail: | |
12373 | return NULL; | |
12374 | } | |
12375 | ||
12376 | ||
12377 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12378 | PyObject *resultobj; | |
12379 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12380 | bool result; | |
12381 | PyObject * obj0 = 0 ; | |
12382 | char *kwnames[] = { | |
12383 | (char *) "self", NULL | |
12384 | }; | |
12385 | ||
12386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12389 | { |
12390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12391 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12392 | ||
12393 | wxPyEndAllowThreads(__tstate); | |
12394 | if (PyErr_Occurred()) SWIG_fail; | |
12395 | } | |
4f89f6a3 RD |
12396 | { |
12397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12398 | } | |
d14a1e28 RD |
12399 | return resultobj; |
12400 | fail: | |
12401 | return NULL; | |
12402 | } | |
12403 | ||
12404 | ||
12405 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12406 | PyObject *resultobj; | |
12407 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12408 | int result; | |
12409 | PyObject * obj0 = 0 ; | |
12410 | char *kwnames[] = { | |
12411 | (char *) "self", NULL | |
12412 | }; | |
12413 | ||
12414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12417 | { |
12418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12419 | result = (int)(arg1)->StopPropagation(); | |
12420 | ||
12421 | wxPyEndAllowThreads(__tstate); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | } | |
2f4c0a16 | 12424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12425 | return resultobj; |
12426 | fail: | |
12427 | return NULL; | |
12428 | } | |
12429 | ||
12430 | ||
12431 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12432 | PyObject *resultobj; | |
12433 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12434 | int arg2 ; | |
12435 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12436 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12437 | char *kwnames[] = { |
12438 | (char *) "self",(char *) "propagationLevel", NULL | |
12439 | }; | |
12440 | ||
8edf1c75 | 12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12444 | arg2 = (int) SWIG_AsInt(obj1); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12446 | { |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | (arg1)->ResumePropagation(arg2); | |
12449 | ||
12450 | wxPyEndAllowThreads(__tstate); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | Py_INCREF(Py_None); resultobj = Py_None; | |
12454 | return resultobj; | |
12455 | fail: | |
12456 | return NULL; | |
12457 | } | |
12458 | ||
12459 | ||
12460 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12461 | PyObject *resultobj; | |
12462 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12463 | wxEvent *result; | |
12464 | PyObject * obj0 = 0 ; | |
12465 | char *kwnames[] = { | |
12466 | (char *) "self", NULL | |
12467 | }; | |
12468 | ||
12469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12472 | { |
12473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12474 | result = (wxEvent *)(arg1)->Clone(); | |
12475 | ||
12476 | wxPyEndAllowThreads(__tstate); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
2f4c0a16 | 12479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12480 | return resultobj; |
12481 | fail: | |
12482 | return NULL; | |
12483 | } | |
12484 | ||
12485 | ||
12486 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12487 | PyObject *obj; | |
12488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12489 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12490 | Py_INCREF(obj); | |
12491 | return Py_BuildValue((char *)""); | |
12492 | } | |
12493 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12494 | PyObject *resultobj; | |
12495 | wxEvent *arg1 = 0 ; | |
12496 | wxPropagationDisabler *result; | |
12497 | PyObject * obj0 = 0 ; | |
12498 | char *kwnames[] = { | |
12499 | (char *) "event", NULL | |
12500 | }; | |
12501 | ||
12502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12505 | SWIG_fail; | |
d14a1e28 | 12506 | if (arg1 == NULL) { |
2f4c0a16 RD |
12507 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12508 | SWIG_fail; | |
d14a1e28 RD |
12509 | } |
12510 | { | |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12512 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12513 | ||
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
2f4c0a16 | 12517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12518 | return resultobj; |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
12524 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12525 | PyObject *resultobj; | |
12526 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12527 | PyObject * obj0 = 0 ; | |
12528 | char *kwnames[] = { | |
12529 | (char *) "self", NULL | |
12530 | }; | |
12531 | ||
12532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12535 | { |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12537 | delete arg1; | |
12538 | ||
12539 | wxPyEndAllowThreads(__tstate); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
12542 | Py_INCREF(Py_None); resultobj = Py_None; | |
12543 | return resultobj; | |
12544 | fail: | |
12545 | return NULL; | |
12546 | } | |
12547 | ||
12548 | ||
12549 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12550 | PyObject *obj; | |
12551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12552 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12553 | Py_INCREF(obj); | |
12554 | return Py_BuildValue((char *)""); | |
12555 | } | |
12556 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12557 | PyObject *resultobj; | |
12558 | wxEvent *arg1 = 0 ; | |
12559 | wxPropagateOnce *result; | |
12560 | PyObject * obj0 = 0 ; | |
12561 | char *kwnames[] = { | |
12562 | (char *) "event", NULL | |
12563 | }; | |
12564 | ||
12565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12568 | SWIG_fail; | |
d14a1e28 | 12569 | if (arg1 == NULL) { |
2f4c0a16 RD |
12570 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12571 | SWIG_fail; | |
d14a1e28 RD |
12572 | } |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
2f4c0a16 | 12580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12581 | return resultobj; |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
12587 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12588 | PyObject *resultobj; | |
12589 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12590 | PyObject * obj0 = 0 ; | |
12591 | char *kwnames[] = { | |
12592 | (char *) "self", NULL | |
12593 | }; | |
12594 | ||
12595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12598 | { |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | delete arg1; | |
12601 | ||
12602 | wxPyEndAllowThreads(__tstate); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | Py_INCREF(Py_None); resultobj = Py_None; | |
12606 | return resultobj; | |
12607 | fail: | |
12608 | return NULL; | |
12609 | } | |
12610 | ||
12611 | ||
12612 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12613 | PyObject *obj; | |
12614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12615 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12616 | Py_INCREF(obj); | |
12617 | return Py_BuildValue((char *)""); | |
12618 | } | |
12619 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12620 | PyObject *resultobj; | |
12621 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12622 | int arg2 = (int) 0 ; | |
12623 | wxCommandEvent *result; | |
8edf1c75 RD |
12624 | PyObject * obj0 = 0 ; |
12625 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12626 | char *kwnames[] = { |
12627 | (char *) "commandType",(char *) "winid", NULL | |
12628 | }; | |
12629 | ||
8edf1c75 RD |
12630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12631 | if (obj0) { | |
2f4c0a16 RD |
12632 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12634 | } |
12635 | if (obj1) { | |
2f4c0a16 RD |
12636 | arg2 = (int) SWIG_AsInt(obj1); |
12637 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12638 | } |
d14a1e28 RD |
12639 | { |
12640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12641 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12642 | ||
12643 | wxPyEndAllowThreads(__tstate); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
2f4c0a16 | 12646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12647 | return resultobj; |
12648 | fail: | |
12649 | return NULL; | |
12650 | } | |
12651 | ||
12652 | ||
12653 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12654 | PyObject *resultobj; | |
12655 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12656 | int result; | |
12657 | PyObject * obj0 = 0 ; | |
12658 | char *kwnames[] = { | |
12659 | (char *) "self", NULL | |
12660 | }; | |
12661 | ||
12662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12665 | { |
12666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12667 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12668 | ||
12669 | wxPyEndAllowThreads(__tstate); | |
12670 | if (PyErr_Occurred()) SWIG_fail; | |
12671 | } | |
2f4c0a16 | 12672 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12673 | return resultobj; |
12674 | fail: | |
12675 | return NULL; | |
12676 | } | |
12677 | ||
12678 | ||
12679 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12680 | PyObject *resultobj; | |
12681 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12682 | wxString *arg2 = 0 ; | |
423f194a | 12683 | bool temp2 = False ; |
d14a1e28 RD |
12684 | PyObject * obj0 = 0 ; |
12685 | PyObject * obj1 = 0 ; | |
12686 | char *kwnames[] = { | |
12687 | (char *) "self",(char *) "s", NULL | |
12688 | }; | |
12689 | ||
12690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12693 | { |
12694 | arg2 = wxString_in_helper(obj1); | |
12695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12696 | temp2 = True; |
d14a1e28 RD |
12697 | } |
12698 | { | |
12699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12700 | (arg1)->SetString((wxString const &)*arg2); | |
12701 | ||
12702 | wxPyEndAllowThreads(__tstate); | |
12703 | if (PyErr_Occurred()) SWIG_fail; | |
12704 | } | |
12705 | Py_INCREF(Py_None); resultobj = Py_None; | |
12706 | { | |
12707 | if (temp2) | |
12708 | delete arg2; | |
12709 | } | |
12710 | return resultobj; | |
12711 | fail: | |
12712 | { | |
12713 | if (temp2) | |
12714 | delete arg2; | |
12715 | } | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12721 | PyObject *resultobj; | |
12722 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12723 | wxString result; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | char *kwnames[] = { | |
12726 | (char *) "self", NULL | |
12727 | }; | |
12728 | ||
12729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12732 | { |
12733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12734 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12735 | ||
12736 | wxPyEndAllowThreads(__tstate); | |
12737 | if (PyErr_Occurred()) SWIG_fail; | |
12738 | } | |
12739 | { | |
12740 | #if wxUSE_UNICODE | |
12741 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12742 | #else | |
12743 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12744 | #endif | |
12745 | } | |
12746 | return resultobj; | |
12747 | fail: | |
12748 | return NULL; | |
12749 | } | |
12750 | ||
12751 | ||
12752 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12753 | PyObject *resultobj; | |
12754 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12755 | bool result; | |
12756 | PyObject * obj0 = 0 ; | |
12757 | char *kwnames[] = { | |
12758 | (char *) "self", NULL | |
12759 | }; | |
12760 | ||
12761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12764 | { |
12765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12766 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12767 | ||
12768 | wxPyEndAllowThreads(__tstate); | |
12769 | if (PyErr_Occurred()) SWIG_fail; | |
12770 | } | |
4f89f6a3 RD |
12771 | { |
12772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12773 | } | |
d14a1e28 RD |
12774 | return resultobj; |
12775 | fail: | |
12776 | return NULL; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12781 | PyObject *resultobj; | |
12782 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12783 | bool result; | |
12784 | PyObject * obj0 = 0 ; | |
12785 | char *kwnames[] = { | |
12786 | (char *) "self", NULL | |
12787 | }; | |
12788 | ||
12789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12792 | { |
12793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12794 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12795 | ||
12796 | wxPyEndAllowThreads(__tstate); | |
12797 | if (PyErr_Occurred()) SWIG_fail; | |
12798 | } | |
4f89f6a3 RD |
12799 | { |
12800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12801 | } | |
d14a1e28 RD |
12802 | return resultobj; |
12803 | fail: | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj; | |
12810 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12811 | long arg2 ; | |
12812 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12814 | char *kwnames[] = { |
12815 | (char *) "self",(char *) "extraLong", NULL | |
12816 | }; | |
12817 | ||
8edf1c75 | 12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12821 | arg2 = (long) SWIG_AsLong(obj1); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12823 | { |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | (arg1)->SetExtraLong(arg2); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
12830 | Py_INCREF(Py_None); resultobj = Py_None; | |
12831 | return resultobj; | |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
12837 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12838 | PyObject *resultobj; | |
12839 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12840 | long result; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | char *kwnames[] = { | |
12843 | (char *) "self", NULL | |
12844 | }; | |
12845 | ||
12846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12849 | { |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
2f4c0a16 | 12856 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12857 | return resultobj; |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj; | |
12865 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12866 | int arg2 ; | |
12867 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12869 | char *kwnames[] = { |
12870 | (char *) "self",(char *) "i", NULL | |
12871 | }; | |
12872 | ||
8edf1c75 | 12873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12876 | arg2 = (int) SWIG_AsInt(obj1); | |
12877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12878 | { |
12879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12880 | (arg1)->SetInt(arg2); | |
12881 | ||
12882 | wxPyEndAllowThreads(__tstate); | |
12883 | if (PyErr_Occurred()) SWIG_fail; | |
12884 | } | |
12885 | Py_INCREF(Py_None); resultobj = Py_None; | |
12886 | return resultobj; | |
12887 | fail: | |
12888 | return NULL; | |
12889 | } | |
12890 | ||
12891 | ||
12892 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12893 | PyObject *resultobj; | |
12894 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12895 | long result; | |
12896 | PyObject * obj0 = 0 ; | |
12897 | char *kwnames[] = { | |
12898 | (char *) "self", NULL | |
12899 | }; | |
12900 | ||
12901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12904 | { |
12905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12906 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12907 | ||
12908 | wxPyEndAllowThreads(__tstate); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
2f4c0a16 | 12911 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12912 | return resultobj; |
12913 | fail: | |
12914 | return NULL; | |
12915 | } | |
12916 | ||
12917 | ||
12918 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12919 | PyObject *resultobj; | |
12920 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12921 | wxEvent *result; | |
12922 | PyObject * obj0 = 0 ; | |
12923 | char *kwnames[] = { | |
12924 | (char *) "self", NULL | |
12925 | }; | |
12926 | ||
12927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12930 | { |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12932 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
2f4c0a16 | 12937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12938 | return resultobj; |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
12944 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12945 | PyObject *obj; | |
12946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12947 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12948 | Py_INCREF(obj); | |
12949 | return Py_BuildValue((char *)""); | |
12950 | } | |
12951 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12952 | PyObject *resultobj; | |
12953 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12954 | int arg2 = (int) 0 ; | |
12955 | wxNotifyEvent *result; | |
8edf1c75 RD |
12956 | PyObject * obj0 = 0 ; |
12957 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12958 | char *kwnames[] = { |
12959 | (char *) "commandType",(char *) "winid", NULL | |
12960 | }; | |
12961 | ||
8edf1c75 RD |
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12963 | if (obj0) { | |
2f4c0a16 RD |
12964 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12965 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12966 | } |
12967 | if (obj1) { | |
2f4c0a16 RD |
12968 | arg2 = (int) SWIG_AsInt(obj1); |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12970 | } |
d14a1e28 RD |
12971 | { |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
2f4c0a16 | 12978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
12979 | return resultobj; |
12980 | fail: | |
12981 | return NULL; | |
12982 | } | |
12983 | ||
12984 | ||
12985 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12986 | PyObject *resultobj; | |
12987 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
12995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12996 | { |
12997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12998 | (arg1)->Veto(); | |
12999 | ||
13000 | wxPyEndAllowThreads(__tstate); | |
13001 | if (PyErr_Occurred()) SWIG_fail; | |
13002 | } | |
13003 | Py_INCREF(Py_None); resultobj = Py_None; | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | return NULL; | |
13007 | } | |
13008 | ||
13009 | ||
13010 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13011 | PyObject *resultobj; | |
13012 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13013 | PyObject * obj0 = 0 ; | |
13014 | char *kwnames[] = { | |
13015 | (char *) "self", NULL | |
13016 | }; | |
13017 | ||
13018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13021 | { |
13022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13023 | (arg1)->Allow(); | |
13024 | ||
13025 | wxPyEndAllowThreads(__tstate); | |
13026 | if (PyErr_Occurred()) SWIG_fail; | |
13027 | } | |
13028 | Py_INCREF(Py_None); resultobj = Py_None; | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | return NULL; | |
13032 | } | |
13033 | ||
13034 | ||
13035 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13036 | PyObject *resultobj; | |
13037 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13038 | bool result; | |
13039 | PyObject * obj0 = 0 ; | |
13040 | char *kwnames[] = { | |
13041 | (char *) "self", NULL | |
13042 | }; | |
13043 | ||
13044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13047 | { |
13048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13049 | result = (bool)(arg1)->IsAllowed(); | |
13050 | ||
13051 | wxPyEndAllowThreads(__tstate); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | } | |
4f89f6a3 RD |
13054 | { |
13055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13056 | } | |
d14a1e28 RD |
13057 | return resultobj; |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
13063 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13064 | PyObject *obj; | |
13065 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13066 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13067 | Py_INCREF(obj); | |
13068 | return Py_BuildValue((char *)""); | |
13069 | } | |
13070 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13071 | PyObject *resultobj; | |
13072 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13073 | int arg2 = (int) 0 ; | |
13074 | int arg3 = (int) 0 ; | |
13075 | int arg4 = (int) 0 ; | |
13076 | wxScrollEvent *result; | |
8edf1c75 RD |
13077 | PyObject * obj0 = 0 ; |
13078 | PyObject * obj1 = 0 ; | |
13079 | PyObject * obj2 = 0 ; | |
13080 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13081 | char *kwnames[] = { |
13082 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13083 | }; | |
13084 | ||
8edf1c75 RD |
13085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13086 | if (obj0) { | |
2f4c0a16 RD |
13087 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13089 | } |
13090 | if (obj1) { | |
2f4c0a16 RD |
13091 | arg2 = (int) SWIG_AsInt(obj1); |
13092 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13093 | } |
13094 | if (obj2) { | |
2f4c0a16 RD |
13095 | arg3 = (int) SWIG_AsInt(obj2); |
13096 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13097 | } |
13098 | if (obj3) { | |
2f4c0a16 RD |
13099 | arg4 = (int) SWIG_AsInt(obj3); |
13100 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13101 | } |
d14a1e28 RD |
13102 | { |
13103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13104 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13105 | ||
13106 | wxPyEndAllowThreads(__tstate); | |
13107 | if (PyErr_Occurred()) SWIG_fail; | |
13108 | } | |
2f4c0a16 | 13109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13110 | return resultobj; |
13111 | fail: | |
13112 | return NULL; | |
13113 | } | |
13114 | ||
13115 | ||
13116 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13117 | PyObject *resultobj; | |
13118 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13119 | int result; | |
13120 | PyObject * obj0 = 0 ; | |
13121 | char *kwnames[] = { | |
13122 | (char *) "self", NULL | |
13123 | }; | |
13124 | ||
13125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13128 | { |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13131 | ||
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
2f4c0a16 | 13135 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13136 | return resultobj; |
13137 | fail: | |
13138 | return NULL; | |
13139 | } | |
13140 | ||
13141 | ||
13142 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13143 | PyObject *resultobj; | |
13144 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13145 | int result; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | char *kwnames[] = { | |
13148 | (char *) "self", NULL | |
13149 | }; | |
13150 | ||
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13154 | { |
13155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13156 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13157 | ||
13158 | wxPyEndAllowThreads(__tstate); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | } | |
2f4c0a16 | 13161 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13162 | return resultobj; |
13163 | fail: | |
13164 | return NULL; | |
13165 | } | |
13166 | ||
13167 | ||
13168 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13169 | PyObject *resultobj; | |
13170 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13171 | int arg2 ; | |
13172 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13173 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13174 | char *kwnames[] = { |
13175 | (char *) "self",(char *) "orient", NULL | |
13176 | }; | |
13177 | ||
8edf1c75 | 13178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13181 | arg2 = (int) SWIG_AsInt(obj1); | |
13182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13183 | { |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | (arg1)->SetOrientation(arg2); | |
13186 | ||
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
13190 | Py_INCREF(Py_None); resultobj = Py_None; | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | return NULL; | |
13194 | } | |
13195 | ||
13196 | ||
13197 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13198 | PyObject *resultobj; | |
13199 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13200 | int arg2 ; | |
13201 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13203 | char *kwnames[] = { |
13204 | (char *) "self",(char *) "pos", NULL | |
13205 | }; | |
13206 | ||
8edf1c75 | 13207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13210 | arg2 = (int) SWIG_AsInt(obj1); | |
13211 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13212 | { |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | (arg1)->SetPosition(arg2); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | Py_INCREF(Py_None); resultobj = Py_None; | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13227 | PyObject *obj; | |
13228 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13229 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13230 | Py_INCREF(obj); | |
13231 | return Py_BuildValue((char *)""); | |
13232 | } | |
13233 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13234 | PyObject *resultobj; | |
13235 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13236 | int arg2 = (int) 0 ; | |
13237 | int arg3 = (int) 0 ; | |
13238 | wxScrollWinEvent *result; | |
8edf1c75 RD |
13239 | PyObject * obj0 = 0 ; |
13240 | PyObject * obj1 = 0 ; | |
13241 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13242 | char *kwnames[] = { |
13243 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13244 | }; | |
13245 | ||
8edf1c75 RD |
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13247 | if (obj0) { | |
2f4c0a16 RD |
13248 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13249 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13250 | } |
13251 | if (obj1) { | |
2f4c0a16 RD |
13252 | arg2 = (int) SWIG_AsInt(obj1); |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13254 | } |
13255 | if (obj2) { | |
2f4c0a16 RD |
13256 | arg3 = (int) SWIG_AsInt(obj2); |
13257 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13258 | } |
d14a1e28 RD |
13259 | { |
13260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13261 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13262 | ||
13263 | wxPyEndAllowThreads(__tstate); | |
13264 | if (PyErr_Occurred()) SWIG_fail; | |
13265 | } | |
2f4c0a16 | 13266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13267 | return resultobj; |
13268 | fail: | |
13269 | return NULL; | |
13270 | } | |
13271 | ||
13272 | ||
13273 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13274 | PyObject *resultobj; | |
13275 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13276 | int result; | |
13277 | PyObject * obj0 = 0 ; | |
13278 | char *kwnames[] = { | |
13279 | (char *) "self", NULL | |
13280 | }; | |
13281 | ||
13282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13285 | { |
13286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13287 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13288 | ||
13289 | wxPyEndAllowThreads(__tstate); | |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
13291 | } | |
2f4c0a16 | 13292 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13293 | return resultobj; |
13294 | fail: | |
13295 | return NULL; | |
13296 | } | |
13297 | ||
13298 | ||
13299 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13300 | PyObject *resultobj; | |
13301 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13302 | int result; | |
13303 | PyObject * obj0 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self", NULL | |
13306 | }; | |
13307 | ||
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13311 | { |
13312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13313 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13314 | ||
13315 | wxPyEndAllowThreads(__tstate); | |
13316 | if (PyErr_Occurred()) SWIG_fail; | |
13317 | } | |
2f4c0a16 | 13318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13319 | return resultobj; |
13320 | fail: | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj; | |
13327 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13328 | int arg2 ; | |
13329 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13331 | char *kwnames[] = { |
13332 | (char *) "self",(char *) "orient", NULL | |
13333 | }; | |
13334 | ||
8edf1c75 | 13335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13338 | arg2 = (int) SWIG_AsInt(obj1); | |
13339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13340 | { |
13341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13342 | (arg1)->SetOrientation(arg2); | |
13343 | ||
13344 | wxPyEndAllowThreads(__tstate); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
13346 | } | |
13347 | Py_INCREF(Py_None); resultobj = Py_None; | |
13348 | return resultobj; | |
13349 | fail: | |
13350 | return NULL; | |
13351 | } | |
13352 | ||
13353 | ||
13354 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13357 | int arg2 ; | |
13358 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13360 | char *kwnames[] = { |
13361 | (char *) "self",(char *) "pos", NULL | |
13362 | }; | |
13363 | ||
8edf1c75 | 13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13367 | arg2 = (int) SWIG_AsInt(obj1); | |
13368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13369 | { |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | (arg1)->SetPosition(arg2); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | Py_INCREF(Py_None); resultobj = Py_None; | |
13377 | return resultobj; | |
13378 | fail: | |
13379 | return NULL; | |
13380 | } | |
13381 | ||
13382 | ||
13383 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13384 | PyObject *obj; | |
13385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13386 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13387 | Py_INCREF(obj); | |
13388 | return Py_BuildValue((char *)""); | |
13389 | } | |
13390 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13391 | PyObject *resultobj; | |
13392 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13393 | wxMouseEvent *result; | |
8edf1c75 | 13394 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13395 | char *kwnames[] = { |
13396 | (char *) "mouseType", NULL | |
13397 | }; | |
13398 | ||
8edf1c75 RD |
13399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13400 | if (obj0) { | |
2f4c0a16 RD |
13401 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13403 | } |
d14a1e28 RD |
13404 | { |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13406 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13407 | ||
13408 | wxPyEndAllowThreads(__tstate); | |
13409 | if (PyErr_Occurred()) SWIG_fail; | |
13410 | } | |
13411 | { | |
13412 | resultobj = wxPyMake_wxObject(result); | |
13413 | } | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13421 | PyObject *resultobj; | |
13422 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13423 | bool result; | |
13424 | PyObject * obj0 = 0 ; | |
13425 | char *kwnames[] = { | |
13426 | (char *) "self", NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13432 | { |
13433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13434 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13435 | ||
13436 | wxPyEndAllowThreads(__tstate); | |
13437 | if (PyErr_Occurred()) SWIG_fail; | |
13438 | } | |
4f89f6a3 RD |
13439 | { |
13440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13441 | } | |
d14a1e28 RD |
13442 | return resultobj; |
13443 | fail: | |
13444 | return NULL; | |
13445 | } | |
13446 | ||
13447 | ||
13448 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13449 | PyObject *resultobj; | |
13450 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13451 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13452 | bool result; | |
13453 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13454 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13455 | char *kwnames[] = { |
13456 | (char *) "self",(char *) "but", NULL | |
13457 | }; | |
13458 | ||
8edf1c75 | 13459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13462 | if (obj1) { |
2f4c0a16 RD |
13463 | arg2 = (int) SWIG_AsInt(obj1); |
13464 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13465 | } |
d14a1e28 RD |
13466 | { |
13467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13468 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13469 | ||
13470 | wxPyEndAllowThreads(__tstate); | |
13471 | if (PyErr_Occurred()) SWIG_fail; | |
13472 | } | |
4f89f6a3 RD |
13473 | { |
13474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13475 | } | |
d14a1e28 RD |
13476 | return resultobj; |
13477 | fail: | |
13478 | return NULL; | |
13479 | } | |
13480 | ||
13481 | ||
13482 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13483 | PyObject *resultobj; | |
13484 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13485 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13486 | bool result; | |
13487 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13488 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13489 | char *kwnames[] = { |
13490 | (char *) "self",(char *) "but", NULL | |
13491 | }; | |
13492 | ||
8edf1c75 | 13493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13496 | if (obj1) { |
2f4c0a16 RD |
13497 | arg2 = (int) SWIG_AsInt(obj1); |
13498 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13499 | } |
d14a1e28 RD |
13500 | { |
13501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13502 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13503 | ||
13504 | wxPyEndAllowThreads(__tstate); | |
13505 | if (PyErr_Occurred()) SWIG_fail; | |
13506 | } | |
4f89f6a3 RD |
13507 | { |
13508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13509 | } | |
d14a1e28 RD |
13510 | return resultobj; |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
13516 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13517 | PyObject *resultobj; | |
13518 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13519 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13520 | bool result; | |
13521 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13523 | char *kwnames[] = { |
13524 | (char *) "self",(char *) "but", NULL | |
13525 | }; | |
13526 | ||
8edf1c75 | 13527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13530 | if (obj1) { |
2f4c0a16 RD |
13531 | arg2 = (int) SWIG_AsInt(obj1); |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13533 | } |
d14a1e28 RD |
13534 | { |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13537 | ||
13538 | wxPyEndAllowThreads(__tstate); | |
13539 | if (PyErr_Occurred()) SWIG_fail; | |
13540 | } | |
4f89f6a3 RD |
13541 | { |
13542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13543 | } | |
d14a1e28 RD |
13544 | return resultobj; |
13545 | fail: | |
13546 | return NULL; | |
13547 | } | |
13548 | ||
13549 | ||
13550 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13551 | PyObject *resultobj; | |
13552 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13553 | int arg2 ; | |
13554 | bool result; | |
13555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13557 | char *kwnames[] = { |
13558 | (char *) "self",(char *) "but", NULL | |
13559 | }; | |
13560 | ||
8edf1c75 | 13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13564 | arg2 = (int) SWIG_AsInt(obj1); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13566 | { |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13569 | ||
13570 | wxPyEndAllowThreads(__tstate); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
4f89f6a3 RD |
13573 | { |
13574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13575 | } | |
d14a1e28 RD |
13576 | return resultobj; |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13585 | int arg2 ; | |
13586 | bool result; | |
13587 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13589 | char *kwnames[] = { |
13590 | (char *) "self",(char *) "but", NULL | |
13591 | }; | |
13592 | ||
8edf1c75 | 13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13596 | arg2 = (int) SWIG_AsInt(obj1); | |
13597 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13598 | { |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
4f89f6a3 RD |
13605 | { |
13606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13607 | } | |
d14a1e28 RD |
13608 | return resultobj; |
13609 | fail: | |
13610 | return NULL; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13615 | PyObject *resultobj; | |
13616 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13617 | int result; | |
13618 | PyObject * obj0 = 0 ; | |
13619 | char *kwnames[] = { | |
13620 | (char *) "self", NULL | |
13621 | }; | |
13622 | ||
13623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13626 | { |
13627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13628 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13629 | ||
13630 | wxPyEndAllowThreads(__tstate); | |
13631 | if (PyErr_Occurred()) SWIG_fail; | |
13632 | } | |
2f4c0a16 | 13633 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13634 | return resultobj; |
13635 | fail: | |
13636 | return NULL; | |
13637 | } | |
13638 | ||
13639 | ||
13640 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13641 | PyObject *resultobj; | |
13642 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13643 | bool result; | |
13644 | PyObject * obj0 = 0 ; | |
13645 | char *kwnames[] = { | |
13646 | (char *) "self", NULL | |
13647 | }; | |
13648 | ||
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13652 | { |
13653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13654 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13655 | ||
13656 | wxPyEndAllowThreads(__tstate); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | } | |
4f89f6a3 RD |
13659 | { |
13660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13661 | } | |
d14a1e28 RD |
13662 | return resultobj; |
13663 | fail: | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
13668 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13669 | PyObject *resultobj; | |
13670 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13671 | bool result; | |
13672 | PyObject * obj0 = 0 ; | |
13673 | char *kwnames[] = { | |
13674 | (char *) "self", NULL | |
13675 | }; | |
13676 | ||
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13680 | { |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13683 | ||
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
4f89f6a3 RD |
13687 | { |
13688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13689 | } | |
d14a1e28 RD |
13690 | return resultobj; |
13691 | fail: | |
13692 | return NULL; | |
13693 | } | |
13694 | ||
13695 | ||
13696 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13697 | PyObject *resultobj; | |
13698 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13699 | bool result; | |
13700 | PyObject * obj0 = 0 ; | |
13701 | char *kwnames[] = { | |
13702 | (char *) "self", NULL | |
13703 | }; | |
13704 | ||
13705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13708 | { |
13709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13710 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13711 | ||
13712 | wxPyEndAllowThreads(__tstate); | |
13713 | if (PyErr_Occurred()) SWIG_fail; | |
13714 | } | |
4f89f6a3 RD |
13715 | { |
13716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13717 | } | |
d14a1e28 RD |
13718 | return resultobj; |
13719 | fail: | |
13720 | return NULL; | |
13721 | } | |
13722 | ||
13723 | ||
13724 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13725 | PyObject *resultobj; | |
13726 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13727 | bool result; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | char *kwnames[] = { | |
13730 | (char *) "self", NULL | |
13731 | }; | |
13732 | ||
13733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13736 | { |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
4f89f6a3 RD |
13743 | { |
13744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13745 | } | |
d14a1e28 RD |
13746 | return resultobj; |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static PyObject *_wrap_MouseEvent_LeftDown(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_LeftDown",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)->LeftDown(); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
4f89f6a3 RD |
13771 | { |
13772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13773 | } | |
d14a1e28 RD |
13774 | return resultobj; |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13783 | bool result; | |
13784 | PyObject * obj0 = 0 ; | |
13785 | char *kwnames[] = { | |
13786 | (char *) "self", NULL | |
13787 | }; | |
13788 | ||
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13792 | { |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
4f89f6a3 RD |
13799 | { |
13800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13801 | } | |
d14a1e28 RD |
13802 | return resultobj; |
13803 | fail: | |
13804 | return NULL; | |
13805 | } | |
13806 | ||
13807 | ||
13808 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13809 | PyObject *resultobj; | |
13810 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13811 | bool result; | |
13812 | PyObject * obj0 = 0 ; | |
13813 | char *kwnames[] = { | |
13814 | (char *) "self", NULL | |
13815 | }; | |
13816 | ||
13817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13820 | { |
13821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13822 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13823 | ||
13824 | wxPyEndAllowThreads(__tstate); | |
13825 | if (PyErr_Occurred()) SWIG_fail; | |
13826 | } | |
4f89f6a3 RD |
13827 | { |
13828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13829 | } | |
d14a1e28 RD |
13830 | return resultobj; |
13831 | fail: | |
13832 | return NULL; | |
13833 | } | |
13834 | ||
13835 | ||
13836 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13837 | PyObject *resultobj; | |
13838 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13839 | bool result; | |
13840 | PyObject * obj0 = 0 ; | |
13841 | char *kwnames[] = { | |
13842 | (char *) "self", NULL | |
13843 | }; | |
13844 | ||
13845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13848 | { |
13849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13850 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13851 | ||
13852 | wxPyEndAllowThreads(__tstate); | |
13853 | if (PyErr_Occurred()) SWIG_fail; | |
13854 | } | |
4f89f6a3 RD |
13855 | { |
13856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13857 | } | |
d14a1e28 RD |
13858 | return resultobj; |
13859 | fail: | |
13860 | return NULL; | |
13861 | } | |
13862 | ||
13863 | ||
13864 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13865 | PyObject *resultobj; | |
13866 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13867 | bool result; | |
13868 | PyObject * obj0 = 0 ; | |
13869 | char *kwnames[] = { | |
13870 | (char *) "self", NULL | |
13871 | }; | |
13872 | ||
13873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13876 | { |
13877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13878 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13879 | ||
13880 | wxPyEndAllowThreads(__tstate); | |
13881 | if (PyErr_Occurred()) SWIG_fail; | |
13882 | } | |
4f89f6a3 RD |
13883 | { |
13884 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13885 | } | |
d14a1e28 RD |
13886 | return resultobj; |
13887 | fail: | |
13888 | return NULL; | |
13889 | } | |
13890 | ||
13891 | ||
13892 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13893 | PyObject *resultobj; | |
13894 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13895 | bool result; | |
13896 | PyObject * obj0 = 0 ; | |
13897 | char *kwnames[] = { | |
13898 | (char *) "self", NULL | |
13899 | }; | |
13900 | ||
13901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13904 | { |
13905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13906 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13907 | ||
13908 | wxPyEndAllowThreads(__tstate); | |
13909 | if (PyErr_Occurred()) SWIG_fail; | |
13910 | } | |
4f89f6a3 RD |
13911 | { |
13912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13913 | } | |
d14a1e28 RD |
13914 | return resultobj; |
13915 | fail: | |
13916 | return NULL; | |
13917 | } | |
13918 | ||
13919 | ||
13920 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13921 | PyObject *resultobj; | |
13922 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13923 | bool result; | |
13924 | PyObject * obj0 = 0 ; | |
13925 | char *kwnames[] = { | |
13926 | (char *) "self", NULL | |
13927 | }; | |
13928 | ||
13929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13932 | { |
13933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13934 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13935 | ||
13936 | wxPyEndAllowThreads(__tstate); | |
13937 | if (PyErr_Occurred()) SWIG_fail; | |
13938 | } | |
4f89f6a3 RD |
13939 | { |
13940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13941 | } | |
d14a1e28 RD |
13942 | return resultobj; |
13943 | fail: | |
13944 | return NULL; | |
13945 | } | |
13946 | ||
13947 | ||
13948 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13949 | PyObject *resultobj; | |
13950 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13951 | bool result; | |
13952 | PyObject * obj0 = 0 ; | |
13953 | char *kwnames[] = { | |
13954 | (char *) "self", NULL | |
13955 | }; | |
13956 | ||
13957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13960 | { |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13963 | ||
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
4f89f6a3 RD |
13967 | { |
13968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13969 | } | |
d14a1e28 RD |
13970 | return resultobj; |
13971 | fail: | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
13976 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13977 | PyObject *resultobj; | |
13978 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13979 | bool result; | |
13980 | PyObject * obj0 = 0 ; | |
13981 | char *kwnames[] = { | |
13982 | (char *) "self", NULL | |
13983 | }; | |
13984 | ||
13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13988 | { |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13991 | ||
13992 | wxPyEndAllowThreads(__tstate); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
4f89f6a3 RD |
13995 | { |
13996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13997 | } | |
d14a1e28 RD |
13998 | return resultobj; |
13999 | fail: | |
14000 | return NULL; | |
14001 | } | |
14002 | ||
14003 | ||
14004 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14005 | PyObject *resultobj; | |
14006 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14007 | bool result; | |
14008 | PyObject * obj0 = 0 ; | |
14009 | char *kwnames[] = { | |
14010 | (char *) "self", NULL | |
14011 | }; | |
14012 | ||
14013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14016 | { |
14017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14018 | result = (bool)(arg1)->LeftIsDown(); | |
14019 | ||
14020 | wxPyEndAllowThreads(__tstate); | |
14021 | if (PyErr_Occurred()) SWIG_fail; | |
14022 | } | |
4f89f6a3 RD |
14023 | { |
14024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14025 | } | |
d14a1e28 RD |
14026 | return resultobj; |
14027 | fail: | |
14028 | return NULL; | |
14029 | } | |
14030 | ||
14031 | ||
14032 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14033 | PyObject *resultobj; | |
14034 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14035 | bool result; | |
14036 | PyObject * obj0 = 0 ; | |
14037 | char *kwnames[] = { | |
14038 | (char *) "self", NULL | |
14039 | }; | |
14040 | ||
14041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14044 | { |
14045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14046 | result = (bool)(arg1)->MiddleIsDown(); | |
14047 | ||
14048 | wxPyEndAllowThreads(__tstate); | |
14049 | if (PyErr_Occurred()) SWIG_fail; | |
14050 | } | |
4f89f6a3 RD |
14051 | { |
14052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14053 | } | |
d14a1e28 RD |
14054 | return resultobj; |
14055 | fail: | |
14056 | return NULL; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14061 | PyObject *resultobj; | |
14062 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14063 | bool result; | |
14064 | PyObject * obj0 = 0 ; | |
14065 | char *kwnames[] = { | |
14066 | (char *) "self", NULL | |
14067 | }; | |
14068 | ||
14069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14072 | { |
14073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14074 | result = (bool)(arg1)->RightIsDown(); | |
14075 | ||
14076 | wxPyEndAllowThreads(__tstate); | |
14077 | if (PyErr_Occurred()) SWIG_fail; | |
14078 | } | |
4f89f6a3 RD |
14079 | { |
14080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14081 | } | |
d14a1e28 RD |
14082 | return resultobj; |
14083 | fail: | |
14084 | return NULL; | |
14085 | } | |
14086 | ||
14087 | ||
14088 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14089 | PyObject *resultobj; | |
14090 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14091 | bool result; | |
14092 | PyObject * obj0 = 0 ; | |
14093 | char *kwnames[] = { | |
14094 | (char *) "self", NULL | |
14095 | }; | |
14096 | ||
14097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14100 | { |
14101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14102 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14103 | ||
14104 | wxPyEndAllowThreads(__tstate); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
4f89f6a3 RD |
14107 | { |
14108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14109 | } | |
d14a1e28 RD |
14110 | return resultobj; |
14111 | fail: | |
14112 | return NULL; | |
14113 | } | |
14114 | ||
14115 | ||
14116 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14117 | PyObject *resultobj; | |
14118 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14119 | bool result; | |
14120 | PyObject * obj0 = 0 ; | |
14121 | char *kwnames[] = { | |
14122 | (char *) "self", NULL | |
14123 | }; | |
14124 | ||
14125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14128 | { |
14129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14130 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14131 | ||
14132 | wxPyEndAllowThreads(__tstate); | |
14133 | if (PyErr_Occurred()) SWIG_fail; | |
14134 | } | |
4f89f6a3 RD |
14135 | { |
14136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14137 | } | |
d14a1e28 RD |
14138 | return resultobj; |
14139 | fail: | |
14140 | return NULL; | |
14141 | } | |
14142 | ||
14143 | ||
14144 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14145 | PyObject *resultobj; | |
14146 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14147 | bool result; | |
14148 | PyObject * obj0 = 0 ; | |
14149 | char *kwnames[] = { | |
14150 | (char *) "self", NULL | |
14151 | }; | |
14152 | ||
14153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14156 | { |
14157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14158 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14159 | ||
14160 | wxPyEndAllowThreads(__tstate); | |
14161 | if (PyErr_Occurred()) SWIG_fail; | |
14162 | } | |
4f89f6a3 RD |
14163 | { |
14164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14165 | } | |
d14a1e28 RD |
14166 | return resultobj; |
14167 | fail: | |
14168 | return NULL; | |
14169 | } | |
14170 | ||
14171 | ||
14172 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14173 | PyObject *resultobj; | |
14174 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14175 | bool result; | |
14176 | PyObject * obj0 = 0 ; | |
14177 | char *kwnames[] = { | |
14178 | (char *) "self", NULL | |
14179 | }; | |
14180 | ||
14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",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(); | |
14186 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14187 | ||
14188 | wxPyEndAllowThreads(__tstate); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | } | |
4f89f6a3 RD |
14191 | { |
14192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14193 | } | |
d14a1e28 RD |
14194 | return resultobj; |
14195 | fail: | |
14196 | return NULL; | |
14197 | } | |
14198 | ||
14199 | ||
14200 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14201 | PyObject *resultobj; | |
14202 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14203 | wxPoint result; | |
14204 | PyObject * obj0 = 0 ; | |
14205 | char *kwnames[] = { | |
14206 | (char *) "self", NULL | |
14207 | }; | |
14208 | ||
14209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14212 | { |
14213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14214 | result = (arg1)->GetPosition(); | |
14215 | ||
14216 | wxPyEndAllowThreads(__tstate); | |
14217 | if (PyErr_Occurred()) SWIG_fail; | |
14218 | } | |
14219 | { | |
14220 | wxPoint * resultptr; | |
14221 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14223 | } |
14224 | return resultobj; | |
14225 | fail: | |
14226 | return NULL; | |
14227 | } | |
14228 | ||
14229 | ||
14230 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14231 | PyObject *resultobj; | |
14232 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14233 | long *arg2 = (long *) 0 ; | |
14234 | long *arg3 = (long *) 0 ; | |
14235 | long temp2 ; | |
14236 | long temp3 ; | |
14237 | PyObject * obj0 = 0 ; | |
14238 | char *kwnames[] = { | |
14239 | (char *) "self", NULL | |
14240 | }; | |
14241 | ||
14242 | arg2 = &temp2; | |
14243 | arg3 = &temp3; | |
14244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14247 | { |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | (arg1)->GetPosition(arg2,arg3); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | Py_INCREF(Py_None); resultobj = Py_None; | |
14255 | { | |
14256 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14257 | resultobj = t_output_helper(resultobj,o); | |
14258 | } | |
14259 | { | |
14260 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14261 | resultobj = t_output_helper(resultobj,o); | |
14262 | } | |
14263 | return resultobj; | |
14264 | fail: | |
14265 | return NULL; | |
14266 | } | |
14267 | ||
14268 | ||
14269 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14270 | PyObject *resultobj; | |
14271 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14272 | wxDC *arg2 = 0 ; | |
14273 | wxPoint result; | |
14274 | PyObject * obj0 = 0 ; | |
14275 | PyObject * obj1 = 0 ; | |
14276 | char *kwnames[] = { | |
14277 | (char *) "self",(char *) "dc", NULL | |
14278 | }; | |
14279 | ||
14280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14283 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14285 | SWIG_fail; | |
d14a1e28 | 14286 | if (arg2 == NULL) { |
2f4c0a16 RD |
14287 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14288 | SWIG_fail; | |
d14a1e28 RD |
14289 | } |
14290 | { | |
14291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14292 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14293 | ||
14294 | wxPyEndAllowThreads(__tstate); | |
14295 | if (PyErr_Occurred()) SWIG_fail; | |
14296 | } | |
14297 | { | |
14298 | wxPoint * resultptr; | |
14299 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14300 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14301 | } |
14302 | return resultobj; | |
14303 | fail: | |
14304 | return NULL; | |
14305 | } | |
14306 | ||
14307 | ||
14308 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14309 | PyObject *resultobj; | |
14310 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14311 | int result; |
d14a1e28 RD |
14312 | PyObject * obj0 = 0 ; |
14313 | char *kwnames[] = { | |
14314 | (char *) "self", NULL | |
14315 | }; | |
14316 | ||
14317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14320 | { |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14322 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14323 | |
14324 | wxPyEndAllowThreads(__tstate); | |
14325 | if (PyErr_Occurred()) SWIG_fail; | |
14326 | } | |
2f4c0a16 | 14327 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14328 | return resultobj; |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14337 | int result; |
d14a1e28 RD |
14338 | PyObject * obj0 = 0 ; |
14339 | char *kwnames[] = { | |
14340 | (char *) "self", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14346 | { |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14348 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14349 | |
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
2f4c0a16 | 14353 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14354 | return resultobj; |
14355 | fail: | |
14356 | return NULL; | |
14357 | } | |
14358 | ||
14359 | ||
14360 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14361 | PyObject *resultobj; | |
14362 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14363 | int result; | |
14364 | PyObject * obj0 = 0 ; | |
14365 | char *kwnames[] = { | |
14366 | (char *) "self", NULL | |
14367 | }; | |
14368 | ||
14369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14372 | { |
14373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14374 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14375 | ||
14376 | wxPyEndAllowThreads(__tstate); | |
14377 | if (PyErr_Occurred()) SWIG_fail; | |
14378 | } | |
2f4c0a16 | 14379 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14380 | return resultobj; |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
14386 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14387 | PyObject *resultobj; | |
14388 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14389 | int result; | |
14390 | PyObject * obj0 = 0 ; | |
14391 | char *kwnames[] = { | |
14392 | (char *) "self", NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14398 | { |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
2f4c0a16 | 14405 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14415 | int result; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "self", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14424 | { |
14425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14426 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14427 | ||
14428 | wxPyEndAllowThreads(__tstate); | |
14429 | if (PyErr_Occurred()) SWIG_fail; | |
14430 | } | |
2f4c0a16 | 14431 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14432 | return resultobj; |
14433 | fail: | |
14434 | return NULL; | |
14435 | } | |
14436 | ||
14437 | ||
14438 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14439 | PyObject *resultobj; | |
14440 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14441 | bool result; | |
14442 | PyObject * obj0 = 0 ; | |
14443 | char *kwnames[] = { | |
14444 | (char *) "self", NULL | |
14445 | }; | |
14446 | ||
14447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14450 | { |
14451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14452 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14453 | ||
14454 | wxPyEndAllowThreads(__tstate); | |
14455 | if (PyErr_Occurred()) SWIG_fail; | |
14456 | } | |
4f89f6a3 RD |
14457 | { |
14458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14459 | } | |
d14a1e28 RD |
14460 | return resultobj; |
14461 | fail: | |
14462 | return NULL; | |
14463 | } | |
14464 | ||
14465 | ||
14466 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14467 | PyObject *resultobj; | |
14468 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14469 | int arg2 ; |
d14a1e28 | 14470 | PyObject * obj0 = 0 ; |
8edf1c75 | 14471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14472 | char *kwnames[] = { |
14473 | (char *) "self",(char *) "m_x", NULL | |
14474 | }; | |
14475 | ||
8edf1c75 | 14476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14479 | arg2 = (int) SWIG_AsInt(obj1); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14481 | if (arg1) (arg1)->m_x = arg2; |
14482 | ||
14483 | Py_INCREF(Py_None); resultobj = Py_None; | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | return NULL; | |
14487 | } | |
14488 | ||
14489 | ||
14490 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14491 | PyObject *resultobj; | |
14492 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14493 | int result; |
d14a1e28 RD |
14494 | PyObject * obj0 = 0 ; |
14495 | char *kwnames[] = { | |
14496 | (char *) "self", NULL | |
14497 | }; | |
14498 | ||
14499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14502 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14503 | |
2f4c0a16 | 14504 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14505 | return resultobj; |
14506 | fail: | |
14507 | return NULL; | |
14508 | } | |
14509 | ||
14510 | ||
14511 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14512 | PyObject *resultobj; | |
14513 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14514 | int arg2 ; |
d14a1e28 | 14515 | PyObject * obj0 = 0 ; |
8edf1c75 | 14516 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14517 | char *kwnames[] = { |
14518 | (char *) "self",(char *) "m_y", NULL | |
14519 | }; | |
14520 | ||
8edf1c75 | 14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14524 | arg2 = (int) SWIG_AsInt(obj1); | |
14525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14526 | if (arg1) (arg1)->m_y = arg2; |
14527 | ||
14528 | Py_INCREF(Py_None); resultobj = Py_None; | |
14529 | return resultobj; | |
14530 | fail: | |
14531 | return NULL; | |
14532 | } | |
14533 | ||
14534 | ||
14535 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14536 | PyObject *resultobj; | |
14537 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14538 | int result; |
d14a1e28 RD |
14539 | PyObject * obj0 = 0 ; |
14540 | char *kwnames[] = { | |
14541 | (char *) "self", NULL | |
14542 | }; | |
14543 | ||
14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14547 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14548 | |
2f4c0a16 | 14549 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14550 | return resultobj; |
14551 | fail: | |
14552 | return NULL; | |
14553 | } | |
14554 | ||
14555 | ||
14556 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14557 | PyObject *resultobj; | |
14558 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14559 | bool arg2 ; | |
14560 | PyObject * obj0 = 0 ; | |
14561 | PyObject * obj1 = 0 ; | |
14562 | char *kwnames[] = { | |
14563 | (char *) "self",(char *) "m_leftDown", NULL | |
14564 | }; | |
14565 | ||
14566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14569 | arg2 = (bool) SWIG_AsBool(obj1); | |
14570 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14571 | if (arg1) (arg1)->m_leftDown = arg2; |
14572 | ||
14573 | Py_INCREF(Py_None); resultobj = Py_None; | |
14574 | return resultobj; | |
14575 | fail: | |
14576 | return NULL; | |
14577 | } | |
14578 | ||
14579 | ||
14580 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14581 | PyObject *resultobj; | |
14582 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14583 | bool result; | |
14584 | PyObject * obj0 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14592 | result = (bool) ((arg1)->m_leftDown); |
14593 | ||
4f89f6a3 RD |
14594 | { |
14595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14596 | } | |
d14a1e28 RD |
14597 | return resultobj; |
14598 | fail: | |
14599 | return NULL; | |
14600 | } | |
14601 | ||
14602 | ||
14603 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj; | |
14605 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14606 | bool arg2 ; | |
14607 | PyObject * obj0 = 0 ; | |
14608 | PyObject * obj1 = 0 ; | |
14609 | char *kwnames[] = { | |
14610 | (char *) "self",(char *) "m_middleDown", NULL | |
14611 | }; | |
14612 | ||
14613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14616 | arg2 = (bool) SWIG_AsBool(obj1); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14618 | if (arg1) (arg1)->m_middleDown = arg2; |
14619 | ||
14620 | Py_INCREF(Py_None); resultobj = Py_None; | |
14621 | return resultobj; | |
14622 | fail: | |
14623 | return NULL; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14628 | PyObject *resultobj; | |
14629 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14630 | bool result; | |
14631 | PyObject * obj0 = 0 ; | |
14632 | char *kwnames[] = { | |
14633 | (char *) "self", NULL | |
14634 | }; | |
14635 | ||
14636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14639 | result = (bool) ((arg1)->m_middleDown); |
14640 | ||
4f89f6a3 RD |
14641 | { |
14642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14643 | } | |
d14a1e28 RD |
14644 | return resultobj; |
14645 | fail: | |
14646 | return NULL; | |
14647 | } | |
14648 | ||
14649 | ||
14650 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14651 | PyObject *resultobj; | |
14652 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14653 | bool arg2 ; | |
14654 | PyObject * obj0 = 0 ; | |
14655 | PyObject * obj1 = 0 ; | |
14656 | char *kwnames[] = { | |
14657 | (char *) "self",(char *) "m_rightDown", NULL | |
14658 | }; | |
14659 | ||
14660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14663 | arg2 = (bool) SWIG_AsBool(obj1); | |
14664 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14665 | if (arg1) (arg1)->m_rightDown = arg2; |
14666 | ||
14667 | Py_INCREF(Py_None); resultobj = Py_None; | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | return NULL; | |
14671 | } | |
14672 | ||
14673 | ||
14674 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14675 | PyObject *resultobj; | |
14676 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14677 | bool result; | |
14678 | PyObject * obj0 = 0 ; | |
14679 | char *kwnames[] = { | |
14680 | (char *) "self", NULL | |
14681 | }; | |
14682 | ||
14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14686 | result = (bool) ((arg1)->m_rightDown); |
14687 | ||
4f89f6a3 RD |
14688 | { |
14689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14690 | } | |
d14a1e28 RD |
14691 | return resultobj; |
14692 | fail: | |
14693 | return NULL; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14698 | PyObject *resultobj; | |
14699 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14700 | bool arg2 ; | |
14701 | PyObject * obj0 = 0 ; | |
14702 | PyObject * obj1 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self",(char *) "m_controlDown", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14710 | arg2 = (bool) SWIG_AsBool(obj1); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14712 | if (arg1) (arg1)->m_controlDown = arg2; |
14713 | ||
14714 | Py_INCREF(Py_None); resultobj = Py_None; | |
14715 | return resultobj; | |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14724 | bool result; | |
14725 | PyObject * obj0 = 0 ; | |
14726 | char *kwnames[] = { | |
14727 | (char *) "self", NULL | |
14728 | }; | |
14729 | ||
14730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14733 | result = (bool) ((arg1)->m_controlDown); |
14734 | ||
4f89f6a3 RD |
14735 | { |
14736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14737 | } | |
d14a1e28 RD |
14738 | return resultobj; |
14739 | fail: | |
14740 | return NULL; | |
14741 | } | |
14742 | ||
14743 | ||
14744 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14745 | PyObject *resultobj; | |
14746 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14747 | bool arg2 ; | |
14748 | PyObject * obj0 = 0 ; | |
14749 | PyObject * obj1 = 0 ; | |
14750 | char *kwnames[] = { | |
14751 | (char *) "self",(char *) "m_shiftDown", NULL | |
14752 | }; | |
14753 | ||
14754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14757 | arg2 = (bool) SWIG_AsBool(obj1); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14759 | if (arg1) (arg1)->m_shiftDown = arg2; |
14760 | ||
14761 | Py_INCREF(Py_None); resultobj = Py_None; | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14771 | bool result; | |
14772 | PyObject * obj0 = 0 ; | |
14773 | char *kwnames[] = { | |
14774 | (char *) "self", NULL | |
14775 | }; | |
14776 | ||
14777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14780 | result = (bool) ((arg1)->m_shiftDown); |
14781 | ||
4f89f6a3 RD |
14782 | { |
14783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14784 | } | |
d14a1e28 RD |
14785 | return resultobj; |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14794 | bool arg2 ; | |
14795 | PyObject * obj0 = 0 ; | |
14796 | PyObject * obj1 = 0 ; | |
14797 | char *kwnames[] = { | |
14798 | (char *) "self",(char *) "m_altDown", NULL | |
14799 | }; | |
14800 | ||
14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14804 | arg2 = (bool) SWIG_AsBool(obj1); | |
14805 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14806 | if (arg1) (arg1)->m_altDown = arg2; |
14807 | ||
14808 | Py_INCREF(Py_None); resultobj = Py_None; | |
14809 | return resultobj; | |
14810 | fail: | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
14815 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14816 | PyObject *resultobj; | |
14817 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14818 | bool result; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | char *kwnames[] = { | |
14821 | (char *) "self", NULL | |
14822 | }; | |
14823 | ||
14824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14827 | result = (bool) ((arg1)->m_altDown); |
14828 | ||
4f89f6a3 RD |
14829 | { |
14830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14831 | } | |
d14a1e28 RD |
14832 | return resultobj; |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
14838 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14839 | PyObject *resultobj; | |
14840 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14841 | bool arg2 ; | |
14842 | PyObject * obj0 = 0 ; | |
14843 | PyObject * obj1 = 0 ; | |
14844 | char *kwnames[] = { | |
14845 | (char *) "self",(char *) "m_metaDown", NULL | |
14846 | }; | |
14847 | ||
14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14851 | arg2 = (bool) SWIG_AsBool(obj1); | |
14852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14853 | if (arg1) (arg1)->m_metaDown = arg2; |
14854 | ||
14855 | Py_INCREF(Py_None); resultobj = Py_None; | |
14856 | return resultobj; | |
14857 | fail: | |
14858 | return NULL; | |
14859 | } | |
14860 | ||
14861 | ||
14862 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14863 | PyObject *resultobj; | |
14864 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14865 | bool result; | |
14866 | PyObject * obj0 = 0 ; | |
14867 | char *kwnames[] = { | |
14868 | (char *) "self", NULL | |
14869 | }; | |
14870 | ||
14871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14874 | result = (bool) ((arg1)->m_metaDown); |
14875 | ||
4f89f6a3 RD |
14876 | { |
14877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14878 | } | |
d14a1e28 RD |
14879 | return resultobj; |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
14885 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14886 | PyObject *resultobj; | |
14887 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14888 | int arg2 ; | |
14889 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14891 | char *kwnames[] = { |
14892 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14893 | }; | |
14894 | ||
8edf1c75 | 14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14898 | arg2 = (int) SWIG_AsInt(obj1); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14900 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14901 | ||
14902 | Py_INCREF(Py_None); resultobj = Py_None; | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
14909 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14910 | PyObject *resultobj; | |
14911 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14912 | int result; | |
14913 | PyObject * obj0 = 0 ; | |
14914 | char *kwnames[] = { | |
14915 | (char *) "self", NULL | |
14916 | }; | |
14917 | ||
14918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14921 | result = (int) ((arg1)->m_wheelRotation); |
14922 | ||
2f4c0a16 | 14923 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14924 | return resultobj; |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
14930 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14931 | PyObject *resultobj; | |
14932 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14933 | int arg2 ; | |
14934 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14936 | char *kwnames[] = { |
14937 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14938 | }; | |
14939 | ||
8edf1c75 | 14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14943 | arg2 = (int) SWIG_AsInt(obj1); | |
14944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14945 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14946 | ||
14947 | Py_INCREF(Py_None); resultobj = Py_None; | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14957 | int result; | |
14958 | PyObject * obj0 = 0 ; | |
14959 | char *kwnames[] = { | |
14960 | (char *) "self", NULL | |
14961 | }; | |
14962 | ||
14963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14966 | result = (int) ((arg1)->m_wheelDelta); |
14967 | ||
2f4c0a16 | 14968 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14969 | return resultobj; |
14970 | fail: | |
14971 | return NULL; | |
14972 | } | |
14973 | ||
14974 | ||
14975 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14976 | PyObject *resultobj; | |
14977 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14978 | int arg2 ; | |
14979 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14980 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14981 | char *kwnames[] = { |
14982 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14983 | }; | |
14984 | ||
8edf1c75 | 14985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14988 | arg2 = (int) SWIG_AsInt(obj1); | |
14989 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14990 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14991 | ||
14992 | Py_INCREF(Py_None); resultobj = Py_None; | |
14993 | return resultobj; | |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15000 | PyObject *resultobj; | |
15001 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15002 | int result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15011 | result = (int) ((arg1)->m_linesPerAction); |
15012 | ||
2f4c0a16 | 15013 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15014 | return resultobj; |
15015 | fail: | |
15016 | return NULL; | |
15017 | } | |
15018 | ||
15019 | ||
15020 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15021 | PyObject *obj; | |
15022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15023 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15024 | Py_INCREF(obj); | |
15025 | return Py_BuildValue((char *)""); | |
15026 | } | |
15027 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15028 | PyObject *resultobj; | |
423f194a RD |
15029 | int arg1 = (int) 0 ; |
15030 | int arg2 = (int) 0 ; | |
d14a1e28 | 15031 | wxSetCursorEvent *result; |
8edf1c75 RD |
15032 | PyObject * obj0 = 0 ; |
15033 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15034 | char *kwnames[] = { |
15035 | (char *) "x",(char *) "y", NULL | |
15036 | }; | |
15037 | ||
8edf1c75 RD |
15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15039 | if (obj0) { | |
2f4c0a16 RD |
15040 | arg1 = (int) SWIG_AsInt(obj0); |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
15042 | } |
15043 | if (obj1) { | |
2f4c0a16 RD |
15044 | arg2 = (int) SWIG_AsInt(obj1); |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15046 | } |
d14a1e28 RD |
15047 | { |
15048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15049 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15050 | ||
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
2f4c0a16 | 15054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15055 | return resultobj; |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15062 | PyObject *resultobj; | |
15063 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 15064 | int result; |
d14a1e28 RD |
15065 | PyObject * obj0 = 0 ; |
15066 | char *kwnames[] = { | |
15067 | (char *) "self", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15073 | { |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15075 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15076 | |
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
2f4c0a16 | 15080 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15081 | return resultobj; |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
15087 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15088 | PyObject *resultobj; | |
15089 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 15090 | int result; |
d14a1e28 RD |
15091 | PyObject * obj0 = 0 ; |
15092 | char *kwnames[] = { | |
15093 | (char *) "self", NULL | |
15094 | }; | |
15095 | ||
15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15099 | { |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15101 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15102 | |
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
2f4c0a16 | 15106 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15107 | return resultobj; |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15114 | PyObject *resultobj; | |
15115 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15116 | wxCursor *arg2 = 0 ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | PyObject * obj1 = 0 ; | |
15119 | char *kwnames[] = { | |
15120 | (char *) "self",(char *) "cursor", NULL | |
15121 | }; | |
15122 | ||
15123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15128 | SWIG_fail; | |
d14a1e28 | 15129 | if (arg2 == NULL) { |
2f4c0a16 RD |
15130 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15131 | SWIG_fail; | |
d14a1e28 RD |
15132 | } |
15133 | { | |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15136 | ||
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | Py_INCREF(Py_None); resultobj = Py_None; | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
15147 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15148 | PyObject *resultobj; | |
15149 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15150 | wxCursor *result; | |
15151 | PyObject * obj0 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15159 | { |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | { | |
15162 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15163 | result = (wxCursor *) &_result_ref; | |
15164 | } | |
15165 | ||
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
fe763115 RD |
15169 | { |
15170 | wxCursor* resultptr = new wxCursor(*result); | |
15171 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15172 | } | |
d14a1e28 RD |
15173 | return resultobj; |
15174 | fail: | |
15175 | return NULL; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15180 | PyObject *resultobj; | |
15181 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15182 | bool result; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | char *kwnames[] = { | |
15185 | (char *) "self", NULL | |
15186 | }; | |
15187 | ||
15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15191 | { |
15192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15193 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15194 | ||
15195 | wxPyEndAllowThreads(__tstate); | |
15196 | if (PyErr_Occurred()) SWIG_fail; | |
15197 | } | |
4f89f6a3 RD |
15198 | { |
15199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15200 | } | |
d14a1e28 RD |
15201 | return resultobj; |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
15207 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15208 | PyObject *obj; | |
15209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15210 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15211 | Py_INCREF(obj); | |
15212 | return Py_BuildValue((char *)""); | |
15213 | } | |
15214 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15215 | PyObject *resultobj; | |
15216 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15217 | wxKeyEvent *result; | |
8edf1c75 | 15218 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15219 | char *kwnames[] = { |
15220 | (char *) "keyType", NULL | |
15221 | }; | |
15222 | ||
8edf1c75 RD |
15223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15224 | if (obj0) { | |
2f4c0a16 RD |
15225 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15226 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15227 | } |
d14a1e28 RD |
15228 | { |
15229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15230 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15231 | ||
15232 | wxPyEndAllowThreads(__tstate); | |
15233 | if (PyErr_Occurred()) SWIG_fail; | |
15234 | } | |
2f4c0a16 | 15235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15236 | return resultobj; |
15237 | fail: | |
15238 | return NULL; | |
15239 | } | |
15240 | ||
15241 | ||
15242 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15243 | PyObject *resultobj; | |
15244 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15245 | bool result; | |
15246 | PyObject * obj0 = 0 ; | |
15247 | char *kwnames[] = { | |
15248 | (char *) "self", NULL | |
15249 | }; | |
15250 | ||
15251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15254 | { |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15257 | ||
15258 | wxPyEndAllowThreads(__tstate); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
4f89f6a3 RD |
15261 | { |
15262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15263 | } | |
d14a1e28 RD |
15264 | return resultobj; |
15265 | fail: | |
15266 | return NULL; | |
15267 | } | |
15268 | ||
15269 | ||
15270 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15271 | PyObject *resultobj; | |
15272 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15273 | bool result; | |
15274 | PyObject * obj0 = 0 ; | |
15275 | char *kwnames[] = { | |
15276 | (char *) "self", NULL | |
15277 | }; | |
15278 | ||
15279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15282 | { |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15285 | ||
15286 | wxPyEndAllowThreads(__tstate); | |
15287 | if (PyErr_Occurred()) SWIG_fail; | |
15288 | } | |
4f89f6a3 RD |
15289 | { |
15290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15291 | } | |
d14a1e28 RD |
15292 | return resultobj; |
15293 | fail: | |
15294 | return NULL; | |
15295 | } | |
15296 | ||
15297 | ||
15298 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15299 | PyObject *resultobj; | |
15300 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15301 | bool result; | |
15302 | PyObject * obj0 = 0 ; | |
15303 | char *kwnames[] = { | |
15304 | (char *) "self", NULL | |
15305 | }; | |
15306 | ||
15307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15310 | { |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15313 | ||
15314 | wxPyEndAllowThreads(__tstate); | |
15315 | if (PyErr_Occurred()) SWIG_fail; | |
15316 | } | |
4f89f6a3 RD |
15317 | { |
15318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15319 | } | |
d14a1e28 RD |
15320 | return resultobj; |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
15326 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15327 | PyObject *resultobj; | |
15328 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15329 | bool result; | |
15330 | PyObject * obj0 = 0 ; | |
15331 | char *kwnames[] = { | |
15332 | (char *) "self", NULL | |
15333 | }; | |
15334 | ||
15335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15338 | { |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
4f89f6a3 RD |
15345 | { |
15346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15347 | } | |
d14a1e28 RD |
15348 | return resultobj; |
15349 | fail: | |
15350 | return NULL; | |
15351 | } | |
15352 | ||
15353 | ||
15354 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15355 | PyObject *resultobj; | |
15356 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15357 | bool result; | |
15358 | PyObject * obj0 = 0 ; | |
15359 | char *kwnames[] = { | |
15360 | (char *) "self", NULL | |
15361 | }; | |
15362 | ||
15363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15366 | { |
15367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15368 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15369 | ||
15370 | wxPyEndAllowThreads(__tstate); | |
15371 | if (PyErr_Occurred()) SWIG_fail; | |
15372 | } | |
4f89f6a3 RD |
15373 | { |
15374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15375 | } | |
d14a1e28 RD |
15376 | return resultobj; |
15377 | fail: | |
15378 | return NULL; | |
15379 | } | |
15380 | ||
15381 | ||
15382 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15383 | PyObject *resultobj; | |
15384 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15385 | int result; | |
15386 | PyObject * obj0 = 0 ; | |
15387 | char *kwnames[] = { | |
15388 | (char *) "self", NULL | |
15389 | }; | |
15390 | ||
15391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15394 | { |
15395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15396 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15397 | ||
15398 | wxPyEndAllowThreads(__tstate); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
2f4c0a16 | 15401 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15402 | return resultobj; |
15403 | fail: | |
15404 | return NULL; | |
15405 | } | |
15406 | ||
15407 | ||
15408 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15409 | PyObject *resultobj; | |
15410 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15411 | int result; | |
15412 | PyObject * obj0 = 0 ; | |
15413 | char *kwnames[] = { | |
15414 | (char *) "self", NULL | |
15415 | }; | |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15420 | { |
15421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15422 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15423 | ||
15424 | wxPyEndAllowThreads(__tstate); | |
15425 | if (PyErr_Occurred()) SWIG_fail; | |
15426 | } | |
2f4c0a16 | 15427 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15428 | return resultobj; |
15429 | fail: | |
15430 | return NULL; | |
15431 | } | |
15432 | ||
15433 | ||
15434 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15437 | unsigned int result; |
d14a1e28 RD |
15438 | PyObject * obj0 = 0 ; |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15446 | { |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15448 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15449 | |
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
2f4c0a16 | 15453 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15454 | return resultobj; |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15463 | unsigned int result; |
d14a1e28 RD |
15464 | PyObject * obj0 = 0 ; |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15472 | { |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15474 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15475 | |
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
2f4c0a16 | 15479 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15480 | return resultobj; |
15481 | fail: | |
15482 | return NULL; | |
15483 | } | |
15484 | ||
15485 | ||
15486 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15487 | PyObject *resultobj; | |
15488 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15489 | wxPoint result; | |
15490 | PyObject * obj0 = 0 ; | |
15491 | char *kwnames[] = { | |
15492 | (char *) "self", NULL | |
15493 | }; | |
15494 | ||
15495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15498 | { |
15499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15500 | result = (arg1)->GetPosition(); | |
15501 | ||
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
15505 | { | |
15506 | wxPoint * resultptr; | |
15507 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15509 | } |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15519 | long *arg2 = (long *) 0 ; | |
15520 | long *arg3 = (long *) 0 ; | |
15521 | long temp2 ; | |
15522 | long temp3 ; | |
15523 | PyObject * obj0 = 0 ; | |
15524 | char *kwnames[] = { | |
15525 | (char *) "self", NULL | |
15526 | }; | |
15527 | ||
15528 | arg2 = &temp2; | |
15529 | arg3 = &temp3; | |
15530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15533 | { |
15534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15535 | (arg1)->GetPosition(arg2,arg3); | |
15536 | ||
15537 | wxPyEndAllowThreads(__tstate); | |
15538 | if (PyErr_Occurred()) SWIG_fail; | |
15539 | } | |
15540 | Py_INCREF(Py_None); resultobj = Py_None; | |
15541 | { | |
15542 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15543 | resultobj = t_output_helper(resultobj,o); | |
15544 | } | |
15545 | { | |
15546 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15547 | resultobj = t_output_helper(resultobj,o); | |
15548 | } | |
15549 | return resultobj; | |
15550 | fail: | |
15551 | return NULL; | |
15552 | } | |
15553 | ||
15554 | ||
15555 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15556 | PyObject *resultobj; | |
15557 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15558 | int result; |
d14a1e28 RD |
15559 | PyObject * obj0 = 0 ; |
15560 | char *kwnames[] = { | |
15561 | (char *) "self", NULL | |
15562 | }; | |
15563 | ||
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15567 | { |
15568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15569 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15570 | |
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
2f4c0a16 | 15574 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15575 | return resultobj; |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15582 | PyObject *resultobj; | |
15583 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15584 | int result; |
d14a1e28 RD |
15585 | PyObject * obj0 = 0 ; |
15586 | char *kwnames[] = { | |
15587 | (char *) "self", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15593 | { |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15595 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15596 | |
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
2f4c0a16 | 15600 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15601 | return resultobj; |
15602 | fail: | |
15603 | return NULL; | |
15604 | } | |
15605 | ||
15606 | ||
15607 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15608 | PyObject *resultobj; | |
15609 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15610 | int arg2 ; |
d14a1e28 | 15611 | PyObject * obj0 = 0 ; |
8edf1c75 | 15612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15613 | char *kwnames[] = { |
15614 | (char *) "self",(char *) "m_x", NULL | |
15615 | }; | |
15616 | ||
8edf1c75 | 15617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15620 | arg2 = (int) SWIG_AsInt(obj1); | |
15621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15622 | if (arg1) (arg1)->m_x = arg2; |
15623 | ||
15624 | Py_INCREF(Py_None); resultobj = Py_None; | |
15625 | return resultobj; | |
15626 | fail: | |
15627 | return NULL; | |
15628 | } | |
15629 | ||
15630 | ||
15631 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15632 | PyObject *resultobj; | |
15633 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15634 | int result; |
d14a1e28 RD |
15635 | PyObject * obj0 = 0 ; |
15636 | char *kwnames[] = { | |
15637 | (char *) "self", NULL | |
15638 | }; | |
15639 | ||
15640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15643 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15644 | |
2f4c0a16 | 15645 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15646 | return resultobj; |
15647 | fail: | |
15648 | return NULL; | |
15649 | } | |
15650 | ||
15651 | ||
15652 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15653 | PyObject *resultobj; | |
15654 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15655 | int arg2 ; |
d14a1e28 | 15656 | PyObject * obj0 = 0 ; |
8edf1c75 | 15657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15658 | char *kwnames[] = { |
15659 | (char *) "self",(char *) "m_y", NULL | |
15660 | }; | |
15661 | ||
8edf1c75 | 15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15665 | arg2 = (int) SWIG_AsInt(obj1); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15667 | if (arg1) (arg1)->m_y = arg2; |
15668 | ||
15669 | Py_INCREF(Py_None); resultobj = Py_None; | |
15670 | return resultobj; | |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15679 | int result; |
d14a1e28 RD |
15680 | PyObject * obj0 = 0 ; |
15681 | char *kwnames[] = { | |
15682 | (char *) "self", NULL | |
15683 | }; | |
15684 | ||
15685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15688 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15689 | |
2f4c0a16 | 15690 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15691 | return resultobj; |
15692 | fail: | |
15693 | return NULL; | |
15694 | } | |
15695 | ||
15696 | ||
15697 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15698 | PyObject *resultobj; | |
15699 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15700 | long arg2 ; | |
15701 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15702 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15703 | char *kwnames[] = { |
15704 | (char *) "self",(char *) "m_keyCode", NULL | |
15705 | }; | |
15706 | ||
8edf1c75 | 15707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15710 | arg2 = (long) SWIG_AsLong(obj1); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15712 | if (arg1) (arg1)->m_keyCode = arg2; |
15713 | ||
15714 | Py_INCREF(Py_None); resultobj = Py_None; | |
15715 | return resultobj; | |
15716 | fail: | |
15717 | return NULL; | |
15718 | } | |
15719 | ||
15720 | ||
15721 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15722 | PyObject *resultobj; | |
15723 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15724 | long result; | |
15725 | PyObject * obj0 = 0 ; | |
15726 | char *kwnames[] = { | |
15727 | (char *) "self", NULL | |
15728 | }; | |
15729 | ||
15730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15733 | result = (long) ((arg1)->m_keyCode); |
15734 | ||
2f4c0a16 | 15735 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15736 | return resultobj; |
15737 | fail: | |
15738 | return NULL; | |
15739 | } | |
15740 | ||
15741 | ||
15742 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15743 | PyObject *resultobj; | |
15744 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15745 | bool arg2 ; | |
15746 | PyObject * obj0 = 0 ; | |
15747 | PyObject * obj1 = 0 ; | |
15748 | char *kwnames[] = { | |
15749 | (char *) "self",(char *) "m_controlDown", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15755 | arg2 = (bool) SWIG_AsBool(obj1); | |
15756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15757 | if (arg1) (arg1)->m_controlDown = arg2; |
15758 | ||
15759 | Py_INCREF(Py_None); resultobj = Py_None; | |
15760 | return resultobj; | |
15761 | fail: | |
15762 | return NULL; | |
15763 | } | |
15764 | ||
15765 | ||
15766 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15767 | PyObject *resultobj; | |
15768 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15769 | bool result; | |
15770 | PyObject * obj0 = 0 ; | |
15771 | char *kwnames[] = { | |
15772 | (char *) "self", NULL | |
15773 | }; | |
15774 | ||
15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15778 | result = (bool) ((arg1)->m_controlDown); |
15779 | ||
4f89f6a3 RD |
15780 | { |
15781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15782 | } | |
d14a1e28 RD |
15783 | return resultobj; |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj; | |
15791 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15792 | bool arg2 ; | |
15793 | PyObject * obj0 = 0 ; | |
15794 | PyObject * obj1 = 0 ; | |
15795 | char *kwnames[] = { | |
15796 | (char *) "self",(char *) "m_shiftDown", NULL | |
15797 | }; | |
15798 | ||
15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15802 | arg2 = (bool) SWIG_AsBool(obj1); | |
15803 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15804 | if (arg1) (arg1)->m_shiftDown = arg2; |
15805 | ||
15806 | Py_INCREF(Py_None); resultobj = Py_None; | |
15807 | return resultobj; | |
15808 | fail: | |
15809 | return NULL; | |
15810 | } | |
15811 | ||
15812 | ||
15813 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15814 | PyObject *resultobj; | |
15815 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15816 | bool result; | |
15817 | PyObject * obj0 = 0 ; | |
15818 | char *kwnames[] = { | |
15819 | (char *) "self", NULL | |
15820 | }; | |
15821 | ||
15822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15825 | result = (bool) ((arg1)->m_shiftDown); |
15826 | ||
4f89f6a3 RD |
15827 | { |
15828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15829 | } | |
d14a1e28 RD |
15830 | return resultobj; |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15839 | bool arg2 ; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | PyObject * obj1 = 0 ; | |
15842 | char *kwnames[] = { | |
15843 | (char *) "self",(char *) "m_altDown", NULL | |
15844 | }; | |
15845 | ||
15846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15849 | arg2 = (bool) SWIG_AsBool(obj1); | |
15850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15851 | if (arg1) (arg1)->m_altDown = arg2; |
15852 | ||
15853 | Py_INCREF(Py_None); resultobj = Py_None; | |
15854 | return resultobj; | |
15855 | fail: | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15861 | PyObject *resultobj; | |
15862 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15863 | bool result; | |
15864 | PyObject * obj0 = 0 ; | |
15865 | char *kwnames[] = { | |
15866 | (char *) "self", NULL | |
15867 | }; | |
15868 | ||
15869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15872 | result = (bool) ((arg1)->m_altDown); |
15873 | ||
4f89f6a3 RD |
15874 | { |
15875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15876 | } | |
d14a1e28 RD |
15877 | return resultobj; |
15878 | fail: | |
15879 | return NULL; | |
15880 | } | |
15881 | ||
15882 | ||
15883 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15884 | PyObject *resultobj; | |
15885 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15886 | bool arg2 ; | |
15887 | PyObject * obj0 = 0 ; | |
15888 | PyObject * obj1 = 0 ; | |
15889 | char *kwnames[] = { | |
15890 | (char *) "self",(char *) "m_metaDown", NULL | |
15891 | }; | |
15892 | ||
15893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15896 | arg2 = (bool) SWIG_AsBool(obj1); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15898 | if (arg1) (arg1)->m_metaDown = arg2; |
15899 | ||
15900 | Py_INCREF(Py_None); resultobj = Py_None; | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15910 | bool result; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | char *kwnames[] = { | |
15913 | (char *) "self", NULL | |
15914 | }; | |
15915 | ||
15916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15919 | result = (bool) ((arg1)->m_metaDown); |
15920 | ||
4f89f6a3 RD |
15921 | { |
15922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15923 | } | |
d14a1e28 RD |
15924 | return resultobj; |
15925 | fail: | |
15926 | return NULL; | |
15927 | } | |
15928 | ||
15929 | ||
15930 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15931 | PyObject *resultobj; | |
15932 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15933 | bool arg2 ; | |
15934 | PyObject * obj0 = 0 ; | |
15935 | PyObject * obj1 = 0 ; | |
15936 | char *kwnames[] = { | |
15937 | (char *) "self",(char *) "m_scanCode", NULL | |
15938 | }; | |
15939 | ||
15940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15943 | arg2 = (bool) SWIG_AsBool(obj1); | |
15944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15945 | if (arg1) (arg1)->m_scanCode = arg2; |
15946 | ||
15947 | Py_INCREF(Py_None); resultobj = Py_None; | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15957 | bool result; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | char *kwnames[] = { | |
15960 | (char *) "self", NULL | |
15961 | }; | |
15962 | ||
15963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15966 | result = (bool) ((arg1)->m_scanCode); |
15967 | ||
4f89f6a3 RD |
15968 | { |
15969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15970 | } | |
d14a1e28 RD |
15971 | return resultobj; |
15972 | fail: | |
15973 | return NULL; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15978 | PyObject *resultobj; | |
15979 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15980 | unsigned int arg2 ; |
d14a1e28 RD |
15981 | PyObject * obj0 = 0 ; |
15982 | PyObject * obj1 = 0 ; | |
15983 | char *kwnames[] = { | |
15984 | (char *) "self",(char *) "m_rawCode", NULL | |
15985 | }; | |
15986 | ||
15987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15990 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15992 | if (arg1) (arg1)->m_rawCode = arg2; |
15993 | ||
15994 | Py_INCREF(Py_None); resultobj = Py_None; | |
15995 | return resultobj; | |
15996 | fail: | |
15997 | return NULL; | |
15998 | } | |
15999 | ||
16000 | ||
16001 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16002 | PyObject *resultobj; | |
16003 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16004 | unsigned int result; |
d14a1e28 RD |
16005 | PyObject * obj0 = 0 ; |
16006 | char *kwnames[] = { | |
16007 | (char *) "self", NULL | |
16008 | }; | |
16009 | ||
16010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 16013 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16014 | |
2f4c0a16 | 16015 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16016 | return resultobj; |
16017 | fail: | |
16018 | return NULL; | |
16019 | } | |
16020 | ||
16021 | ||
16022 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16023 | PyObject *resultobj; | |
16024 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16025 | unsigned int arg2 ; |
d14a1e28 RD |
16026 | PyObject * obj0 = 0 ; |
16027 | PyObject * obj1 = 0 ; | |
16028 | char *kwnames[] = { | |
16029 | (char *) "self",(char *) "m_rawFlags", NULL | |
16030 | }; | |
16031 | ||
16032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16035 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16036 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16037 | if (arg1) (arg1)->m_rawFlags = arg2; |
16038 | ||
16039 | Py_INCREF(Py_None); resultobj = Py_None; | |
16040 | return resultobj; | |
16041 | fail: | |
16042 | return NULL; | |
16043 | } | |
16044 | ||
16045 | ||
16046 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16047 | PyObject *resultobj; | |
16048 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16049 | unsigned int result; |
d14a1e28 RD |
16050 | PyObject * obj0 = 0 ; |
16051 | char *kwnames[] = { | |
16052 | (char *) "self", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 16058 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16059 | |
2f4c0a16 | 16060 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16061 | return resultobj; |
16062 | fail: | |
16063 | return NULL; | |
16064 | } | |
16065 | ||
16066 | ||
16067 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16068 | PyObject *obj; | |
16069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16070 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16071 | Py_INCREF(obj); | |
16072 | return Py_BuildValue((char *)""); | |
16073 | } | |
16074 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16075 | PyObject *resultobj; | |
16076 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16077 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16078 | int arg2 = (int) 0 ; | |
16079 | wxSizeEvent *result; | |
16080 | wxSize temp1 ; | |
16081 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16083 | char *kwnames[] = { |
16084 | (char *) "sz",(char *) "winid", NULL | |
16085 | }; | |
16086 | ||
8edf1c75 | 16087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16088 | if (obj0) { |
16089 | { | |
16090 | arg1 = &temp1; | |
16091 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16092 | } | |
16093 | } | |
8edf1c75 | 16094 | if (obj1) { |
2f4c0a16 RD |
16095 | arg2 = (int) SWIG_AsInt(obj1); |
16096 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16097 | } |
d14a1e28 RD |
16098 | { |
16099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16100 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16101 | ||
16102 | wxPyEndAllowThreads(__tstate); | |
16103 | if (PyErr_Occurred()) SWIG_fail; | |
16104 | } | |
2f4c0a16 | 16105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16106 | return resultobj; |
16107 | fail: | |
16108 | return NULL; | |
16109 | } | |
16110 | ||
16111 | ||
16112 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16113 | PyObject *resultobj; | |
16114 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16115 | wxSize result; | |
16116 | PyObject * obj0 = 0 ; | |
16117 | char *kwnames[] = { | |
16118 | (char *) "self", NULL | |
16119 | }; | |
16120 | ||
16121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16124 | { |
16125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16126 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16127 | ||
16128 | wxPyEndAllowThreads(__tstate); | |
16129 | if (PyErr_Occurred()) SWIG_fail; | |
16130 | } | |
16131 | { | |
16132 | wxSize * resultptr; | |
16133 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 16134 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16135 | } |
16136 | return resultobj; | |
16137 | fail: | |
16138 | return NULL; | |
16139 | } | |
16140 | ||
16141 | ||
16142 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16143 | PyObject *resultobj; | |
16144 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16145 | wxRect result; | |
16146 | PyObject * obj0 = 0 ; | |
16147 | char *kwnames[] = { | |
16148 | (char *) "self", NULL | |
16149 | }; | |
16150 | ||
16151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16154 | { |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | { | |
16162 | wxRect * resultptr; | |
16163 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16165 | } |
16166 | return resultobj; | |
16167 | fail: | |
16168 | return NULL; | |
16169 | } | |
16170 | ||
16171 | ||
16172 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16173 | PyObject *resultobj; | |
16174 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16175 | wxRect arg2 ; | |
16176 | wxRect *argp2 ; | |
16177 | PyObject * obj0 = 0 ; | |
16178 | PyObject * obj1 = 0 ; | |
16179 | char *kwnames[] = { | |
16180 | (char *) "self",(char *) "rect", NULL | |
16181 | }; | |
16182 | ||
16183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16186 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16187 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16188 | arg2 = *argp2; | |
d14a1e28 RD |
16189 | { |
16190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16191 | (arg1)->SetRect(arg2); | |
16192 | ||
16193 | wxPyEndAllowThreads(__tstate); | |
16194 | if (PyErr_Occurred()) SWIG_fail; | |
16195 | } | |
16196 | Py_INCREF(Py_None); resultobj = Py_None; | |
16197 | return resultobj; | |
16198 | fail: | |
16199 | return NULL; | |
16200 | } | |
16201 | ||
16202 | ||
16203 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16204 | PyObject *resultobj; | |
16205 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16206 | wxSize arg2 ; | |
16207 | wxSize *argp2 ; | |
16208 | PyObject * obj0 = 0 ; | |
16209 | PyObject * obj1 = 0 ; | |
16210 | char *kwnames[] = { | |
16211 | (char *) "self",(char *) "size", NULL | |
16212 | }; | |
16213 | ||
16214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16217 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16218 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16219 | arg2 = *argp2; | |
d14a1e28 RD |
16220 | { |
16221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16222 | wxSizeEvent_SetSize(arg1,arg2); | |
16223 | ||
16224 | wxPyEndAllowThreads(__tstate); | |
16225 | if (PyErr_Occurred()) SWIG_fail; | |
16226 | } | |
16227 | Py_INCREF(Py_None); resultobj = Py_None; | |
16228 | return resultobj; | |
16229 | fail: | |
16230 | return NULL; | |
16231 | } | |
16232 | ||
16233 | ||
16234 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16235 | PyObject *resultobj; | |
16236 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16237 | wxSize *arg2 = (wxSize *) 0 ; | |
16238 | PyObject * obj0 = 0 ; | |
16239 | PyObject * obj1 = 0 ; | |
16240 | char *kwnames[] = { | |
16241 | (char *) "self",(char *) "m_size", NULL | |
16242 | }; | |
16243 | ||
16244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16249 | if (arg1) (arg1)->m_size = *arg2; |
16250 | ||
16251 | Py_INCREF(Py_None); resultobj = Py_None; | |
16252 | return resultobj; | |
16253 | fail: | |
16254 | return NULL; | |
16255 | } | |
16256 | ||
16257 | ||
16258 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16259 | PyObject *resultobj; | |
16260 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16261 | wxSize *result; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | char *kwnames[] = { | |
16264 | (char *) "self", NULL | |
16265 | }; | |
16266 | ||
16267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16270 | result = (wxSize *)& ((arg1)->m_size); |
16271 | ||
2f4c0a16 | 16272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16273 | return resultobj; |
16274 | fail: | |
16275 | return NULL; | |
16276 | } | |
16277 | ||
16278 | ||
16279 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16280 | PyObject *resultobj; | |
16281 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16282 | wxRect *arg2 = (wxRect *) 0 ; | |
16283 | PyObject * obj0 = 0 ; | |
16284 | PyObject * obj1 = 0 ; | |
16285 | char *kwnames[] = { | |
16286 | (char *) "self",(char *) "m_rect", NULL | |
16287 | }; | |
16288 | ||
16289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16294 | if (arg1) (arg1)->m_rect = *arg2; |
16295 | ||
16296 | Py_INCREF(Py_None); resultobj = Py_None; | |
16297 | return resultobj; | |
16298 | fail: | |
16299 | return NULL; | |
16300 | } | |
16301 | ||
16302 | ||
16303 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16304 | PyObject *resultobj; | |
16305 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16306 | wxRect *result; | |
16307 | PyObject * obj0 = 0 ; | |
16308 | char *kwnames[] = { | |
16309 | (char *) "self", NULL | |
16310 | }; | |
16311 | ||
16312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16315 | result = (wxRect *)& ((arg1)->m_rect); |
16316 | ||
2f4c0a16 | 16317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16318 | return resultobj; |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16325 | PyObject *obj; | |
16326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16327 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16328 | Py_INCREF(obj); | |
16329 | return Py_BuildValue((char *)""); | |
16330 | } | |
16331 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16332 | PyObject *resultobj; | |
16333 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16334 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16335 | int arg2 = (int) 0 ; | |
16336 | wxMoveEvent *result; | |
16337 | wxPoint temp1 ; | |
16338 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16339 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16340 | char *kwnames[] = { |
16341 | (char *) "pos",(char *) "winid", NULL | |
16342 | }; | |
16343 | ||
8edf1c75 | 16344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16345 | if (obj0) { |
16346 | { | |
16347 | arg1 = &temp1; | |
16348 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16349 | } | |
16350 | } | |
8edf1c75 | 16351 | if (obj1) { |
2f4c0a16 RD |
16352 | arg2 = (int) SWIG_AsInt(obj1); |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16354 | } |
d14a1e28 RD |
16355 | { |
16356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16357 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16358 | ||
16359 | wxPyEndAllowThreads(__tstate); | |
16360 | if (PyErr_Occurred()) SWIG_fail; | |
16361 | } | |
2f4c0a16 | 16362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16363 | return resultobj; |
16364 | fail: | |
16365 | return NULL; | |
16366 | } | |
16367 | ||
16368 | ||
16369 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16370 | PyObject *resultobj; | |
16371 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16372 | wxPoint result; | |
16373 | PyObject * obj0 = 0 ; | |
16374 | char *kwnames[] = { | |
16375 | (char *) "self", NULL | |
16376 | }; | |
16377 | ||
16378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16381 | { |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16384 | ||
16385 | wxPyEndAllowThreads(__tstate); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
16388 | { | |
16389 | wxPoint * resultptr; | |
16390 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 16391 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16392 | } |
16393 | return resultobj; | |
16394 | fail: | |
16395 | return NULL; | |
16396 | } | |
16397 | ||
16398 | ||
16399 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16400 | PyObject *resultobj; | |
16401 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16402 | wxRect result; | |
16403 | PyObject * obj0 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "self", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16411 | { |
16412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16413 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16414 | ||
16415 | wxPyEndAllowThreads(__tstate); | |
16416 | if (PyErr_Occurred()) SWIG_fail; | |
16417 | } | |
16418 | { | |
16419 | wxRect * resultptr; | |
16420 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16422 | } |
16423 | return resultobj; | |
16424 | fail: | |
16425 | return NULL; | |
16426 | } | |
16427 | ||
16428 | ||
16429 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16430 | PyObject *resultobj; | |
16431 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16432 | wxRect arg2 ; | |
16433 | wxRect *argp2 ; | |
16434 | PyObject * obj0 = 0 ; | |
16435 | PyObject * obj1 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "self",(char *) "rect", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16443 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16444 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16445 | arg2 = *argp2; | |
d14a1e28 RD |
16446 | { |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | (arg1)->SetRect(arg2); | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
16453 | Py_INCREF(Py_None); resultobj = Py_None; | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16461 | PyObject *resultobj; | |
16462 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16463 | wxPoint arg2 ; | |
16464 | wxPoint *argp2 ; | |
16465 | PyObject * obj0 = 0 ; | |
16466 | PyObject * obj1 = 0 ; | |
16467 | char *kwnames[] = { | |
16468 | (char *) "self",(char *) "pos", NULL | |
16469 | }; | |
16470 | ||
16471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16474 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16475 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16476 | arg2 = *argp2; | |
d14a1e28 RD |
16477 | { |
16478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16479 | wxMoveEvent_SetPosition(arg1,arg2); | |
16480 | ||
16481 | wxPyEndAllowThreads(__tstate); | |
16482 | if (PyErr_Occurred()) SWIG_fail; | |
16483 | } | |
16484 | Py_INCREF(Py_None); resultobj = Py_None; | |
16485 | return resultobj; | |
16486 | fail: | |
16487 | return NULL; | |
16488 | } | |
16489 | ||
16490 | ||
16491 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16492 | PyObject *resultobj; | |
16493 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16494 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16495 | PyObject * obj0 = 0 ; | |
16496 | PyObject * obj1 = 0 ; | |
16497 | char *kwnames[] = { | |
16498 | (char *) "self",(char *) "m_pos", NULL | |
16499 | }; | |
16500 | ||
16501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16506 | if (arg1) (arg1)->m_pos = *arg2; |
16507 | ||
16508 | Py_INCREF(Py_None); resultobj = Py_None; | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16516 | PyObject *resultobj; | |
16517 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16518 | wxPoint *result; | |
16519 | PyObject * obj0 = 0 ; | |
16520 | char *kwnames[] = { | |
16521 | (char *) "self", NULL | |
16522 | }; | |
16523 | ||
16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16527 | result = (wxPoint *)& ((arg1)->m_pos); |
16528 | ||
2f4c0a16 | 16529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16530 | return resultobj; |
16531 | fail: | |
16532 | return NULL; | |
16533 | } | |
16534 | ||
16535 | ||
16536 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16537 | PyObject *resultobj; | |
16538 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16539 | wxRect *arg2 = (wxRect *) 0 ; | |
16540 | PyObject * obj0 = 0 ; | |
16541 | PyObject * obj1 = 0 ; | |
16542 | char *kwnames[] = { | |
16543 | (char *) "self",(char *) "m_rect", NULL | |
16544 | }; | |
16545 | ||
16546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16551 | if (arg1) (arg1)->m_rect = *arg2; |
16552 | ||
16553 | Py_INCREF(Py_None); resultobj = Py_None; | |
16554 | return resultobj; | |
16555 | fail: | |
16556 | return NULL; | |
16557 | } | |
16558 | ||
16559 | ||
16560 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16561 | PyObject *resultobj; | |
16562 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16563 | wxRect *result; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | char *kwnames[] = { | |
16566 | (char *) "self", NULL | |
16567 | }; | |
16568 | ||
16569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16572 | result = (wxRect *)& ((arg1)->m_rect); |
16573 | ||
2f4c0a16 | 16574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16575 | return resultobj; |
16576 | fail: | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16582 | PyObject *obj; | |
16583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16584 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16585 | Py_INCREF(obj); | |
16586 | return Py_BuildValue((char *)""); | |
16587 | } | |
16588 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16589 | PyObject *resultobj; | |
16590 | int arg1 = (int) 0 ; | |
16591 | wxPaintEvent *result; | |
8edf1c75 | 16592 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16593 | char *kwnames[] = { |
16594 | (char *) "Id", NULL | |
16595 | }; | |
16596 | ||
8edf1c75 RD |
16597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16598 | if (obj0) { | |
2f4c0a16 RD |
16599 | arg1 = (int) SWIG_AsInt(obj0); |
16600 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16601 | } |
d14a1e28 RD |
16602 | { |
16603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16604 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16605 | ||
16606 | wxPyEndAllowThreads(__tstate); | |
16607 | if (PyErr_Occurred()) SWIG_fail; | |
16608 | } | |
2f4c0a16 | 16609 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16610 | return resultobj; |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
16616 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16617 | PyObject *obj; | |
16618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16619 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16620 | Py_INCREF(obj); | |
16621 | return Py_BuildValue((char *)""); | |
16622 | } | |
16623 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16624 | PyObject *resultobj; | |
16625 | int arg1 = (int) 0 ; | |
16626 | wxNcPaintEvent *result; | |
8edf1c75 | 16627 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16628 | char *kwnames[] = { |
16629 | (char *) "winid", NULL | |
16630 | }; | |
16631 | ||
8edf1c75 RD |
16632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16633 | if (obj0) { | |
2f4c0a16 RD |
16634 | arg1 = (int) SWIG_AsInt(obj0); |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16636 | } |
d14a1e28 RD |
16637 | { |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
2f4c0a16 | 16644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16645 | return resultobj; |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
16651 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16652 | PyObject *obj; | |
16653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16654 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16655 | Py_INCREF(obj); | |
16656 | return Py_BuildValue((char *)""); | |
16657 | } | |
16658 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16659 | PyObject *resultobj; | |
16660 | int arg1 = (int) 0 ; | |
16661 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16662 | wxEraseEvent *result; | |
8edf1c75 | 16663 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16664 | PyObject * obj1 = 0 ; |
16665 | char *kwnames[] = { | |
16666 | (char *) "Id",(char *) "dc", NULL | |
16667 | }; | |
16668 | ||
8edf1c75 RD |
16669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16670 | if (obj0) { | |
2f4c0a16 RD |
16671 | arg1 = (int) SWIG_AsInt(obj0); |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16673 | } |
d14a1e28 | 16674 | if (obj1) { |
2f4c0a16 RD |
16675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16677 | } |
16678 | { | |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16681 | ||
16682 | wxPyEndAllowThreads(__tstate); | |
16683 | if (PyErr_Occurred()) SWIG_fail; | |
16684 | } | |
2f4c0a16 | 16685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16686 | return resultobj; |
16687 | fail: | |
16688 | return NULL; | |
16689 | } | |
16690 | ||
16691 | ||
16692 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16693 | PyObject *resultobj; | |
16694 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16695 | wxDC *result; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | char *kwnames[] = { | |
16698 | (char *) "self", NULL | |
16699 | }; | |
16700 | ||
16701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16704 | { |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | { | |
16712 | resultobj = wxPyMake_wxObject(result); | |
16713 | } | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16721 | PyObject *obj; | |
16722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16723 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16724 | Py_INCREF(obj); | |
16725 | return Py_BuildValue((char *)""); | |
16726 | } | |
16727 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16728 | PyObject *resultobj; | |
16729 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16730 | int arg2 = (int) 0 ; | |
16731 | wxFocusEvent *result; | |
8edf1c75 RD |
16732 | PyObject * obj0 = 0 ; |
16733 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16734 | char *kwnames[] = { |
16735 | (char *) "type",(char *) "winid", NULL | |
16736 | }; | |
16737 | ||
8edf1c75 RD |
16738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16739 | if (obj0) { | |
2f4c0a16 RD |
16740 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16741 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16742 | } |
16743 | if (obj1) { | |
2f4c0a16 RD |
16744 | arg2 = (int) SWIG_AsInt(obj1); |
16745 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16746 | } |
d14a1e28 RD |
16747 | { |
16748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16749 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16750 | ||
16751 | wxPyEndAllowThreads(__tstate); | |
16752 | if (PyErr_Occurred()) SWIG_fail; | |
16753 | } | |
2f4c0a16 | 16754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16755 | return resultobj; |
16756 | fail: | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16762 | PyObject *resultobj; | |
16763 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16764 | wxWindow *result; | |
16765 | PyObject * obj0 = 0 ; | |
16766 | char *kwnames[] = { | |
16767 | (char *) "self", NULL | |
16768 | }; | |
16769 | ||
16770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16773 | { |
16774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16775 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16776 | ||
16777 | wxPyEndAllowThreads(__tstate); | |
16778 | if (PyErr_Occurred()) SWIG_fail; | |
16779 | } | |
16780 | { | |
16781 | resultobj = wxPyMake_wxObject(result); | |
16782 | } | |
16783 | return resultobj; | |
16784 | fail: | |
16785 | return NULL; | |
16786 | } | |
16787 | ||
16788 | ||
16789 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16790 | PyObject *resultobj; | |
16791 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16792 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16793 | PyObject * obj0 = 0 ; | |
16794 | PyObject * obj1 = 0 ; | |
16795 | char *kwnames[] = { | |
16796 | (char *) "self",(char *) "win", NULL | |
16797 | }; | |
16798 | ||
16799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16804 | { |
16805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16806 | (arg1)->SetWindow(arg2); | |
16807 | ||
16808 | wxPyEndAllowThreads(__tstate); | |
16809 | if (PyErr_Occurred()) SWIG_fail; | |
16810 | } | |
16811 | Py_INCREF(Py_None); resultobj = Py_None; | |
16812 | return resultobj; | |
16813 | fail: | |
16814 | return NULL; | |
16815 | } | |
16816 | ||
16817 | ||
16818 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16819 | PyObject *obj; | |
16820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16821 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16822 | Py_INCREF(obj); | |
16823 | return Py_BuildValue((char *)""); | |
16824 | } | |
16825 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16826 | PyObject *resultobj; | |
16827 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16828 | wxChildFocusEvent *result; | |
16829 | PyObject * obj0 = 0 ; | |
16830 | char *kwnames[] = { | |
16831 | (char *) "win", NULL | |
16832 | }; | |
16833 | ||
16834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16835 | if (obj0) { | |
2f4c0a16 RD |
16836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16838 | } |
16839 | { | |
16840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16841 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16842 | ||
16843 | wxPyEndAllowThreads(__tstate); | |
16844 | if (PyErr_Occurred()) SWIG_fail; | |
16845 | } | |
2f4c0a16 | 16846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
16847 | return resultobj; |
16848 | fail: | |
16849 | return NULL; | |
16850 | } | |
16851 | ||
16852 | ||
16853 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16854 | PyObject *resultobj; | |
16855 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16856 | wxWindow *result; | |
16857 | PyObject * obj0 = 0 ; | |
16858 | char *kwnames[] = { | |
16859 | (char *) "self", NULL | |
16860 | }; | |
16861 | ||
16862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
16864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16865 | { |
16866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16867 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16868 | ||
16869 | wxPyEndAllowThreads(__tstate); | |
16870 | if (PyErr_Occurred()) SWIG_fail; | |
16871 | } | |
16872 | { | |
16873 | resultobj = wxPyMake_wxObject(result); | |
16874 | } | |
16875 | return resultobj; | |
16876 | fail: | |
16877 | return NULL; | |
16878 | } | |
16879 | ||
16880 | ||
16881 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16882 | PyObject *obj; | |
16883 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16884 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16885 | Py_INCREF(obj); | |
16886 | return Py_BuildValue((char *)""); | |
16887 | } | |
16888 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16889 | PyObject *resultobj; | |
16890 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16891 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16892 | int arg3 = (int) 0 ; |
16893 | wxActivateEvent *result; | |
8edf1c75 | 16894 | PyObject * obj0 = 0 ; |
d14a1e28 | 16895 | PyObject * obj1 = 0 ; |
8edf1c75 | 16896 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16897 | char *kwnames[] = { |
16898 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16899 | }; | |
16900 | ||
8edf1c75 RD |
16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16902 | if (obj0) { | |
2f4c0a16 RD |
16903 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16905 | } |
d14a1e28 | 16906 | if (obj1) { |
2f4c0a16 RD |
16907 | arg2 = (bool) SWIG_AsBool(obj1); |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16909 | } |
16910 | if (obj2) { | |
2f4c0a16 RD |
16911 | arg3 = (int) SWIG_AsInt(obj2); |
16912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16913 | } |
16914 | { | |
16915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16916 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16917 | ||
16918 | wxPyEndAllowThreads(__tstate); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | } | |
2f4c0a16 | 16921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
16922 | return resultobj; |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
16928 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16929 | PyObject *resultobj; | |
16930 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16931 | bool result; | |
16932 | PyObject * obj0 = 0 ; | |
16933 | char *kwnames[] = { | |
16934 | (char *) "self", NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
16939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16940 | { |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
4f89f6a3 RD |
16947 | { |
16948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16949 | } | |
d14a1e28 RD |
16950 | return resultobj; |
16951 | fail: | |
16952 | return NULL; | |
16953 | } | |
16954 | ||
16955 | ||
16956 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16957 | PyObject *obj; | |
16958 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16959 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16960 | Py_INCREF(obj); | |
16961 | return Py_BuildValue((char *)""); | |
16962 | } | |
16963 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | int arg1 = (int) 0 ; | |
16966 | wxInitDialogEvent *result; | |
8edf1c75 | 16967 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16968 | char *kwnames[] = { |
16969 | (char *) "Id", NULL | |
16970 | }; | |
16971 | ||
8edf1c75 RD |
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16973 | if (obj0) { | |
2f4c0a16 RD |
16974 | arg1 = (int) SWIG_AsInt(obj0); |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16976 | } |
d14a1e28 RD |
16977 | { |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
2f4c0a16 | 16984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
16985 | return resultobj; |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16992 | PyObject *obj; | |
16993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16994 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
16995 | Py_INCREF(obj); | |
16996 | return Py_BuildValue((char *)""); | |
16997 | } | |
16998 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16999 | PyObject *resultobj; | |
17000 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17001 | int arg2 = (int) 0 ; | |
17002 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17003 | wxMenuEvent *result; | |
8edf1c75 RD |
17004 | PyObject * obj0 = 0 ; |
17005 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17006 | PyObject * obj2 = 0 ; |
17007 | char *kwnames[] = { | |
17008 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17009 | }; | |
17010 | ||
8edf1c75 RD |
17011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17012 | if (obj0) { | |
2f4c0a16 RD |
17013 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17015 | } |
17016 | if (obj1) { | |
2f4c0a16 RD |
17017 | arg2 = (int) SWIG_AsInt(obj1); |
17018 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17019 | } |
d14a1e28 | 17020 | if (obj2) { |
2f4c0a16 RD |
17021 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17023 | } |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
2f4c0a16 | 17031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17032 | return resultobj; |
17033 | fail: | |
17034 | return NULL; | |
17035 | } | |
17036 | ||
17037 | ||
17038 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17039 | PyObject *resultobj; | |
17040 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17041 | int result; | |
17042 | PyObject * obj0 = 0 ; | |
17043 | char *kwnames[] = { | |
17044 | (char *) "self", NULL | |
17045 | }; | |
17046 | ||
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17050 | { |
17051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17052 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17053 | ||
17054 | wxPyEndAllowThreads(__tstate); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | } | |
2f4c0a16 | 17057 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17058 | return resultobj; |
17059 | fail: | |
17060 | return NULL; | |
17061 | } | |
17062 | ||
17063 | ||
17064 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17065 | PyObject *resultobj; | |
17066 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17067 | bool result; | |
17068 | PyObject * obj0 = 0 ; | |
17069 | char *kwnames[] = { | |
17070 | (char *) "self", NULL | |
17071 | }; | |
17072 | ||
17073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17076 | { |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17079 | ||
17080 | wxPyEndAllowThreads(__tstate); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
4f89f6a3 RD |
17083 | { |
17084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17085 | } | |
d14a1e28 RD |
17086 | return resultobj; |
17087 | fail: | |
17088 | return NULL; | |
17089 | } | |
17090 | ||
17091 | ||
17092 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17093 | PyObject *resultobj; | |
17094 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17095 | wxMenu *result; | |
17096 | PyObject * obj0 = 0 ; | |
17097 | char *kwnames[] = { | |
17098 | (char *) "self", NULL | |
17099 | }; | |
17100 | ||
17101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17104 | { |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17107 | ||
17108 | wxPyEndAllowThreads(__tstate); | |
17109 | if (PyErr_Occurred()) SWIG_fail; | |
17110 | } | |
17111 | { | |
17112 | resultobj = wxPyMake_wxObject(result); | |
17113 | } | |
17114 | return resultobj; | |
17115 | fail: | |
17116 | return NULL; | |
17117 | } | |
17118 | ||
17119 | ||
17120 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17121 | PyObject *obj; | |
17122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17123 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17124 | Py_INCREF(obj); | |
17125 | return Py_BuildValue((char *)""); | |
17126 | } | |
17127 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17128 | PyObject *resultobj; | |
17129 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17130 | int arg2 = (int) 0 ; | |
17131 | wxCloseEvent *result; | |
8edf1c75 RD |
17132 | PyObject * obj0 = 0 ; |
17133 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17134 | char *kwnames[] = { |
17135 | (char *) "type",(char *) "winid", NULL | |
17136 | }; | |
17137 | ||
8edf1c75 RD |
17138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17139 | if (obj0) { | |
2f4c0a16 RD |
17140 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17142 | } |
17143 | if (obj1) { | |
2f4c0a16 RD |
17144 | arg2 = (int) SWIG_AsInt(obj1); |
17145 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17146 | } |
d14a1e28 RD |
17147 | { |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
2f4c0a16 | 17154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17155 | return resultobj; |
17156 | fail: | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj; | |
17163 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17164 | bool arg2 ; | |
17165 | PyObject * obj0 = 0 ; | |
17166 | PyObject * obj1 = 0 ; | |
17167 | char *kwnames[] = { | |
17168 | (char *) "self",(char *) "logOff", NULL | |
17169 | }; | |
17170 | ||
17171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17174 | arg2 = (bool) SWIG_AsBool(obj1); | |
17175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17176 | { |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17178 | (arg1)->SetLoggingOff(arg2); | |
17179 | ||
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | Py_INCREF(Py_None); resultobj = Py_None; | |
17184 | return resultobj; | |
17185 | fail: | |
17186 | return NULL; | |
17187 | } | |
17188 | ||
17189 | ||
17190 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17191 | PyObject *resultobj; | |
17192 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17193 | bool result; | |
17194 | PyObject * obj0 = 0 ; | |
17195 | char *kwnames[] = { | |
17196 | (char *) "self", NULL | |
17197 | }; | |
17198 | ||
17199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17202 | { |
17203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17204 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17205 | ||
17206 | wxPyEndAllowThreads(__tstate); | |
17207 | if (PyErr_Occurred()) SWIG_fail; | |
17208 | } | |
4f89f6a3 RD |
17209 | { |
17210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17211 | } | |
d14a1e28 RD |
17212 | return resultobj; |
17213 | fail: | |
17214 | return NULL; | |
17215 | } | |
17216 | ||
17217 | ||
17218 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17219 | PyObject *resultobj; | |
17220 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 17221 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17222 | PyObject * obj0 = 0 ; |
17223 | PyObject * obj1 = 0 ; | |
17224 | char *kwnames[] = { | |
17225 | (char *) "self",(char *) "veto", NULL | |
17226 | }; | |
17227 | ||
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17231 | if (obj1) { |
2f4c0a16 RD |
17232 | arg2 = (bool) SWIG_AsBool(obj1); |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17234 | } |
17235 | { | |
17236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17237 | (arg1)->Veto(arg2); | |
17238 | ||
17239 | wxPyEndAllowThreads(__tstate); | |
17240 | if (PyErr_Occurred()) SWIG_fail; | |
17241 | } | |
17242 | Py_INCREF(Py_None); resultobj = Py_None; | |
17243 | return resultobj; | |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17252 | bool arg2 ; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | PyObject * obj1 = 0 ; | |
17255 | char *kwnames[] = { | |
17256 | (char *) "self",(char *) "canVeto", NULL | |
17257 | }; | |
17258 | ||
17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17262 | arg2 = (bool) SWIG_AsBool(obj1); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17264 | { |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | (arg1)->SetCanVeto(arg2); | |
17267 | ||
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
17271 | Py_INCREF(Py_None); resultobj = Py_None; | |
17272 | return resultobj; | |
17273 | fail: | |
17274 | return NULL; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17281 | bool result; | |
17282 | PyObject * obj0 = 0 ; | |
17283 | char *kwnames[] = { | |
17284 | (char *) "self", NULL | |
17285 | }; | |
17286 | ||
17287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17290 | { |
17291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17292 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17293 | ||
17294 | wxPyEndAllowThreads(__tstate); | |
17295 | if (PyErr_Occurred()) SWIG_fail; | |
17296 | } | |
4f89f6a3 RD |
17297 | { |
17298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17299 | } | |
d14a1e28 RD |
17300 | return resultobj; |
17301 | fail: | |
17302 | return NULL; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17307 | PyObject *resultobj; | |
17308 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17309 | bool result; | |
17310 | PyObject * obj0 = 0 ; | |
17311 | char *kwnames[] = { | |
17312 | (char *) "self", NULL | |
17313 | }; | |
17314 | ||
17315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17318 | { |
17319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17320 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17321 | ||
17322 | wxPyEndAllowThreads(__tstate); | |
17323 | if (PyErr_Occurred()) SWIG_fail; | |
17324 | } | |
4f89f6a3 RD |
17325 | { |
17326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17327 | } | |
d14a1e28 RD |
17328 | return resultobj; |
17329 | fail: | |
17330 | return NULL; | |
17331 | } | |
17332 | ||
17333 | ||
17334 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17335 | PyObject *obj; | |
17336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17337 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17338 | Py_INCREF(obj); | |
17339 | return Py_BuildValue((char *)""); | |
17340 | } | |
17341 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17342 | PyObject *resultobj; | |
17343 | int arg1 = (int) 0 ; | |
423f194a | 17344 | bool arg2 = (bool) False ; |
d14a1e28 | 17345 | wxShowEvent *result; |
8edf1c75 | 17346 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17347 | PyObject * obj1 = 0 ; |
17348 | char *kwnames[] = { | |
17349 | (char *) "winid",(char *) "show", NULL | |
17350 | }; | |
17351 | ||
8edf1c75 RD |
17352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17353 | if (obj0) { | |
2f4c0a16 RD |
17354 | arg1 = (int) SWIG_AsInt(obj0); |
17355 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17356 | } |
d14a1e28 | 17357 | if (obj1) { |
2f4c0a16 RD |
17358 | arg2 = (bool) SWIG_AsBool(obj1); |
17359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17360 | } |
17361 | { | |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17364 | ||
17365 | wxPyEndAllowThreads(__tstate); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
2f4c0a16 | 17368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17369 | return resultobj; |
17370 | fail: | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
17375 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17376 | PyObject *resultobj; | |
17377 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17378 | bool arg2 ; | |
17379 | PyObject * obj0 = 0 ; | |
17380 | PyObject * obj1 = 0 ; | |
17381 | char *kwnames[] = { | |
17382 | (char *) "self",(char *) "show", NULL | |
17383 | }; | |
17384 | ||
17385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17388 | arg2 = (bool) SWIG_AsBool(obj1); | |
17389 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17390 | { |
17391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17392 | (arg1)->SetShow(arg2); | |
17393 | ||
17394 | wxPyEndAllowThreads(__tstate); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | Py_INCREF(Py_None); resultobj = Py_None; | |
17398 | return resultobj; | |
17399 | fail: | |
17400 | return NULL; | |
17401 | } | |
17402 | ||
17403 | ||
17404 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17405 | PyObject *resultobj; | |
17406 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17407 | bool result; | |
17408 | PyObject * obj0 = 0 ; | |
17409 | char *kwnames[] = { | |
17410 | (char *) "self", NULL | |
17411 | }; | |
17412 | ||
17413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17416 | { |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
4f89f6a3 RD |
17423 | { |
17424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17425 | } | |
d14a1e28 RD |
17426 | return resultobj; |
17427 | fail: | |
17428 | return NULL; | |
17429 | } | |
17430 | ||
17431 | ||
17432 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17433 | PyObject *obj; | |
17434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17435 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17436 | Py_INCREF(obj); | |
17437 | return Py_BuildValue((char *)""); | |
17438 | } | |
17439 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17440 | PyObject *resultobj; | |
17441 | int arg1 = (int) 0 ; | |
423f194a | 17442 | bool arg2 = (bool) True ; |
d14a1e28 | 17443 | wxIconizeEvent *result; |
8edf1c75 | 17444 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17445 | PyObject * obj1 = 0 ; |
17446 | char *kwnames[] = { | |
17447 | (char *) "id",(char *) "iconized", NULL | |
17448 | }; | |
17449 | ||
8edf1c75 RD |
17450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17451 | if (obj0) { | |
2f4c0a16 RD |
17452 | arg1 = (int) SWIG_AsInt(obj0); |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17454 | } |
d14a1e28 | 17455 | if (obj1) { |
2f4c0a16 RD |
17456 | arg2 = (bool) SWIG_AsBool(obj1); |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17458 | } |
17459 | { | |
17460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17461 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17462 | ||
17463 | wxPyEndAllowThreads(__tstate); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | } | |
2f4c0a16 | 17466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17467 | return resultobj; |
17468 | fail: | |
17469 | return NULL; | |
17470 | } | |
17471 | ||
17472 | ||
17473 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17474 | PyObject *resultobj; | |
17475 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17476 | bool result; | |
17477 | PyObject * obj0 = 0 ; | |
17478 | char *kwnames[] = { | |
17479 | (char *) "self", NULL | |
17480 | }; | |
17481 | ||
17482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17485 | { |
17486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17487 | result = (bool)(arg1)->Iconized(); | |
17488 | ||
17489 | wxPyEndAllowThreads(__tstate); | |
17490 | if (PyErr_Occurred()) SWIG_fail; | |
17491 | } | |
4f89f6a3 RD |
17492 | { |
17493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17494 | } | |
d14a1e28 RD |
17495 | return resultobj; |
17496 | fail: | |
17497 | return NULL; | |
17498 | } | |
17499 | ||
17500 | ||
17501 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17502 | PyObject *obj; | |
17503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17504 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17505 | Py_INCREF(obj); | |
17506 | return Py_BuildValue((char *)""); | |
17507 | } | |
17508 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17509 | PyObject *resultobj; | |
17510 | int arg1 = (int) 0 ; | |
17511 | wxMaximizeEvent *result; | |
8edf1c75 | 17512 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17513 | char *kwnames[] = { |
17514 | (char *) "id", NULL | |
17515 | }; | |
17516 | ||
8edf1c75 RD |
17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17518 | if (obj0) { | |
2f4c0a16 RD |
17519 | arg1 = (int) SWIG_AsInt(obj0); |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17521 | } |
d14a1e28 RD |
17522 | { |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17525 | ||
17526 | wxPyEndAllowThreads(__tstate); | |
17527 | if (PyErr_Occurred()) SWIG_fail; | |
17528 | } | |
2f4c0a16 | 17529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17530 | return resultobj; |
17531 | fail: | |
17532 | return NULL; | |
17533 | } | |
17534 | ||
17535 | ||
17536 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17537 | PyObject *obj; | |
17538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17539 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17540 | Py_INCREF(obj); | |
17541 | return Py_BuildValue((char *)""); | |
17542 | } | |
17543 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17544 | PyObject *resultobj; | |
17545 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17546 | wxPoint result; | |
17547 | PyObject * obj0 = 0 ; | |
17548 | char *kwnames[] = { | |
17549 | (char *) "self", NULL | |
17550 | }; | |
17551 | ||
17552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17555 | { |
17556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17557 | result = (arg1)->GetPosition(); | |
17558 | ||
17559 | wxPyEndAllowThreads(__tstate); | |
17560 | if (PyErr_Occurred()) SWIG_fail; | |
17561 | } | |
17562 | { | |
17563 | wxPoint * resultptr; | |
17564 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 17565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17566 | } |
17567 | return resultobj; | |
17568 | fail: | |
17569 | return NULL; | |
17570 | } | |
17571 | ||
17572 | ||
17573 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17574 | PyObject *resultobj; | |
17575 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17576 | int result; | |
17577 | PyObject * obj0 = 0 ; | |
17578 | char *kwnames[] = { | |
17579 | (char *) "self", NULL | |
17580 | }; | |
17581 | ||
17582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17585 | { |
17586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17587 | result = (int)(arg1)->GetNumberOfFiles(); | |
17588 | ||
17589 | wxPyEndAllowThreads(__tstate); | |
17590 | if (PyErr_Occurred()) SWIG_fail; | |
17591 | } | |
2f4c0a16 | 17592 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17593 | return resultobj; |
17594 | fail: | |
17595 | return NULL; | |
17596 | } | |
17597 | ||
17598 | ||
17599 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17600 | PyObject *resultobj; | |
17601 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17602 | PyObject *result; | |
17603 | PyObject * obj0 = 0 ; | |
17604 | char *kwnames[] = { | |
17605 | (char *) "self", NULL | |
17606 | }; | |
17607 | ||
17608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17611 | { |
17612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17613 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17614 | ||
17615 | wxPyEndAllowThreads(__tstate); | |
17616 | if (PyErr_Occurred()) SWIG_fail; | |
17617 | } | |
17618 | resultobj = result; | |
17619 | return resultobj; | |
17620 | fail: | |
17621 | return NULL; | |
17622 | } | |
17623 | ||
17624 | ||
17625 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17626 | PyObject *obj; | |
17627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17628 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17629 | Py_INCREF(obj); | |
17630 | return Py_BuildValue((char *)""); | |
17631 | } | |
17632 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17633 | PyObject *resultobj; | |
423f194a | 17634 | int arg1 = (int) 0 ; |
d14a1e28 | 17635 | wxUpdateUIEvent *result; |
8edf1c75 | 17636 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17637 | char *kwnames[] = { |
17638 | (char *) "commandId", NULL | |
17639 | }; | |
17640 | ||
8edf1c75 RD |
17641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17642 | if (obj0) { | |
2f4c0a16 RD |
17643 | arg1 = (int) SWIG_AsInt(obj0); |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17645 | } |
d14a1e28 RD |
17646 | { |
17647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17648 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17649 | ||
17650 | wxPyEndAllowThreads(__tstate); | |
17651 | if (PyErr_Occurred()) SWIG_fail; | |
17652 | } | |
2f4c0a16 | 17653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17654 | return resultobj; |
17655 | fail: | |
17656 | return NULL; | |
17657 | } | |
17658 | ||
17659 | ||
17660 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17661 | PyObject *resultobj; | |
17662 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17663 | bool result; | |
17664 | PyObject * obj0 = 0 ; | |
17665 | char *kwnames[] = { | |
17666 | (char *) "self", NULL | |
17667 | }; | |
17668 | ||
17669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17672 | { |
17673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17674 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17675 | ||
17676 | wxPyEndAllowThreads(__tstate); | |
17677 | if (PyErr_Occurred()) SWIG_fail; | |
17678 | } | |
4f89f6a3 RD |
17679 | { |
17680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17681 | } | |
d14a1e28 RD |
17682 | return resultobj; |
17683 | fail: | |
17684 | return NULL; | |
17685 | } | |
17686 | ||
17687 | ||
17688 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17689 | PyObject *resultobj; | |
17690 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17691 | bool result; | |
17692 | PyObject * obj0 = 0 ; | |
17693 | char *kwnames[] = { | |
17694 | (char *) "self", NULL | |
17695 | }; | |
17696 | ||
17697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17700 | { |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
4f89f6a3 RD |
17707 | { |
17708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17709 | } | |
d14a1e28 RD |
17710 | return resultobj; |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
17716 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17717 | PyObject *resultobj; | |
17718 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17719 | wxString result; | |
17720 | PyObject * obj0 = 0 ; | |
17721 | char *kwnames[] = { | |
17722 | (char *) "self", NULL | |
17723 | }; | |
17724 | ||
17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17728 | { |
17729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17730 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17731 | ||
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | { | |
17736 | #if wxUSE_UNICODE | |
17737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17738 | #else | |
17739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17740 | #endif | |
17741 | } | |
17742 | return resultobj; | |
17743 | fail: | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17749 | PyObject *resultobj; | |
17750 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17751 | bool result; | |
17752 | PyObject * obj0 = 0 ; | |
17753 | char *kwnames[] = { | |
17754 | (char *) "self", NULL | |
17755 | }; | |
17756 | ||
17757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17760 | { |
17761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17762 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17763 | ||
17764 | wxPyEndAllowThreads(__tstate); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
4f89f6a3 RD |
17767 | { |
17768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17769 | } | |
d14a1e28 RD |
17770 | return resultobj; |
17771 | fail: | |
17772 | return NULL; | |
17773 | } | |
17774 | ||
17775 | ||
17776 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17777 | PyObject *resultobj; | |
17778 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17779 | bool result; | |
17780 | PyObject * obj0 = 0 ; | |
17781 | char *kwnames[] = { | |
17782 | (char *) "self", NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17788 | { |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17791 | ||
17792 | wxPyEndAllowThreads(__tstate); | |
17793 | if (PyErr_Occurred()) SWIG_fail; | |
17794 | } | |
4f89f6a3 RD |
17795 | { |
17796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17797 | } | |
d14a1e28 RD |
17798 | return resultobj; |
17799 | fail: | |
17800 | return NULL; | |
17801 | } | |
17802 | ||
17803 | ||
17804 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17805 | PyObject *resultobj; | |
17806 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17807 | bool result; | |
17808 | PyObject * obj0 = 0 ; | |
17809 | char *kwnames[] = { | |
17810 | (char *) "self", NULL | |
17811 | }; | |
17812 | ||
17813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17816 | { |
17817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17818 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
4f89f6a3 RD |
17823 | { |
17824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17825 | } | |
d14a1e28 RD |
17826 | return resultobj; |
17827 | fail: | |
17828 | return NULL; | |
17829 | } | |
17830 | ||
17831 | ||
17832 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17833 | PyObject *resultobj; | |
17834 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17835 | bool arg2 ; | |
17836 | PyObject * obj0 = 0 ; | |
17837 | PyObject * obj1 = 0 ; | |
17838 | char *kwnames[] = { | |
17839 | (char *) "self",(char *) "check", NULL | |
17840 | }; | |
17841 | ||
17842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17845 | arg2 = (bool) SWIG_AsBool(obj1); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17847 | { |
17848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17849 | (arg1)->Check(arg2); | |
17850 | ||
17851 | wxPyEndAllowThreads(__tstate); | |
17852 | if (PyErr_Occurred()) SWIG_fail; | |
17853 | } | |
17854 | Py_INCREF(Py_None); resultobj = Py_None; | |
17855 | return resultobj; | |
17856 | fail: | |
17857 | return NULL; | |
17858 | } | |
17859 | ||
17860 | ||
17861 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17862 | PyObject *resultobj; | |
17863 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17864 | bool arg2 ; | |
17865 | PyObject * obj0 = 0 ; | |
17866 | PyObject * obj1 = 0 ; | |
17867 | char *kwnames[] = { | |
17868 | (char *) "self",(char *) "enable", NULL | |
17869 | }; | |
17870 | ||
17871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17874 | arg2 = (bool) SWIG_AsBool(obj1); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17876 | { |
17877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17878 | (arg1)->Enable(arg2); | |
17879 | ||
17880 | wxPyEndAllowThreads(__tstate); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
17882 | } | |
17883 | Py_INCREF(Py_None); resultobj = Py_None; | |
17884 | return resultobj; | |
17885 | fail: | |
17886 | return NULL; | |
17887 | } | |
17888 | ||
17889 | ||
17890 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17891 | PyObject *resultobj; | |
17892 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17893 | wxString *arg2 = 0 ; | |
423f194a | 17894 | bool temp2 = False ; |
d14a1e28 RD |
17895 | PyObject * obj0 = 0 ; |
17896 | PyObject * obj1 = 0 ; | |
17897 | char *kwnames[] = { | |
17898 | (char *) "self",(char *) "text", NULL | |
17899 | }; | |
17900 | ||
17901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17904 | { |
17905 | arg2 = wxString_in_helper(obj1); | |
17906 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17907 | temp2 = True; |
d14a1e28 RD |
17908 | } |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | (arg1)->SetText((wxString const &)*arg2); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | Py_INCREF(Py_None); resultobj = Py_None; | |
17917 | { | |
17918 | if (temp2) | |
17919 | delete arg2; | |
17920 | } | |
17921 | return resultobj; | |
17922 | fail: | |
17923 | { | |
17924 | if (temp2) | |
17925 | delete arg2; | |
17926 | } | |
17927 | return NULL; | |
17928 | } | |
17929 | ||
17930 | ||
17931 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17932 | PyObject *resultobj; | |
17933 | long arg1 ; | |
8edf1c75 | 17934 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17935 | char *kwnames[] = { |
17936 | (char *) "updateInterval", NULL | |
17937 | }; | |
17938 | ||
8edf1c75 | 17939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17940 | arg1 = (long) SWIG_AsLong(obj0); |
17941 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17942 | { |
17943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17944 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17945 | ||
17946 | wxPyEndAllowThreads(__tstate); | |
17947 | if (PyErr_Occurred()) SWIG_fail; | |
17948 | } | |
17949 | Py_INCREF(Py_None); resultobj = Py_None; | |
17950 | return resultobj; | |
17951 | fail: | |
17952 | return NULL; | |
17953 | } | |
17954 | ||
17955 | ||
17956 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17957 | PyObject *resultobj; | |
17958 | long result; | |
17959 | char *kwnames[] = { | |
17960 | NULL | |
17961 | }; | |
17962 | ||
17963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17964 | { | |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
2f4c0a16 | 17971 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
17972 | return resultobj; |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
17978 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17979 | PyObject *resultobj; | |
17980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17981 | bool result; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "win", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17990 | { |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
4f89f6a3 RD |
17997 | { |
17998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17999 | } | |
d14a1e28 RD |
18000 | return resultobj; |
18001 | fail: | |
18002 | return NULL; | |
18003 | } | |
18004 | ||
18005 | ||
18006 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18007 | PyObject *resultobj; | |
18008 | char *kwnames[] = { | |
18009 | NULL | |
18010 | }; | |
18011 | ||
18012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18013 | { | |
18014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18015 | wxUpdateUIEvent::ResetUpdateTime(); | |
18016 | ||
18017 | wxPyEndAllowThreads(__tstate); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | } | |
18020 | Py_INCREF(Py_None); resultobj = Py_None; | |
18021 | return resultobj; | |
18022 | fail: | |
18023 | return NULL; | |
18024 | } | |
18025 | ||
18026 | ||
18027 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18028 | PyObject *resultobj; | |
18029 | int arg1 ; | |
8edf1c75 | 18030 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18031 | char *kwnames[] = { |
18032 | (char *) "mode", NULL | |
18033 | }; | |
18034 | ||
8edf1c75 | 18035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18036 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18038 | { |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | Py_INCREF(Py_None); resultobj = Py_None; | |
18046 | return resultobj; | |
18047 | fail: | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
18052 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18053 | PyObject *resultobj; | |
18054 | int result; | |
18055 | char *kwnames[] = { | |
18056 | NULL | |
18057 | }; | |
18058 | ||
18059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18060 | { | |
18061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18062 | result = (int)wxUpdateUIEvent::GetMode(); | |
18063 | ||
18064 | wxPyEndAllowThreads(__tstate); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
18066 | } | |
2f4c0a16 | 18067 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18068 | return resultobj; |
18069 | fail: | |
18070 | return NULL; | |
18071 | } | |
18072 | ||
18073 | ||
18074 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18075 | PyObject *obj; | |
18076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18077 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18078 | Py_INCREF(obj); | |
18079 | return Py_BuildValue((char *)""); | |
18080 | } | |
18081 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18082 | PyObject *resultobj; | |
18083 | wxSysColourChangedEvent *result; | |
18084 | char *kwnames[] = { | |
18085 | NULL | |
18086 | }; | |
18087 | ||
18088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18089 | { | |
18090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18091 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18092 | ||
18093 | wxPyEndAllowThreads(__tstate); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | } | |
2f4c0a16 | 18096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18097 | return resultobj; |
18098 | fail: | |
18099 | return NULL; | |
18100 | } | |
18101 | ||
18102 | ||
18103 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18104 | PyObject *obj; | |
18105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18106 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18107 | Py_INCREF(obj); | |
18108 | return Py_BuildValue((char *)""); | |
18109 | } | |
18110 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj; | |
423f194a | 18112 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18113 | wxWindow *arg2 = (wxWindow *) NULL ; |
18114 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 18115 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18116 | PyObject * obj1 = 0 ; |
18117 | char *kwnames[] = { | |
18118 | (char *) "winid",(char *) "gainedCapture", NULL | |
18119 | }; | |
18120 | ||
8edf1c75 RD |
18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18122 | if (obj0) { | |
2f4c0a16 RD |
18123 | arg1 = (int) SWIG_AsInt(obj0); |
18124 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18125 | } |
d14a1e28 | 18126 | if (obj1) { |
2f4c0a16 RD |
18127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18129 | } |
18130 | { | |
18131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18132 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18133 | ||
18134 | wxPyEndAllowThreads(__tstate); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | } | |
2f4c0a16 | 18137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18138 | return resultobj; |
18139 | fail: | |
18140 | return NULL; | |
18141 | } | |
18142 | ||
18143 | ||
18144 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18145 | PyObject *resultobj; | |
18146 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18147 | wxWindow *result; | |
18148 | PyObject * obj0 = 0 ; | |
18149 | char *kwnames[] = { | |
18150 | (char *) "self", NULL | |
18151 | }; | |
18152 | ||
18153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18156 | { |
18157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18158 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18159 | ||
18160 | wxPyEndAllowThreads(__tstate); | |
18161 | if (PyErr_Occurred()) SWIG_fail; | |
18162 | } | |
18163 | { | |
18164 | resultobj = wxPyMake_wxObject(result); | |
18165 | } | |
18166 | return resultobj; | |
18167 | fail: | |
18168 | return NULL; | |
18169 | } | |
18170 | ||
18171 | ||
18172 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18173 | PyObject *obj; | |
18174 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18175 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18176 | Py_INCREF(obj); | |
18177 | return Py_BuildValue((char *)""); | |
18178 | } | |
18179 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18180 | PyObject *resultobj; | |
18181 | wxDisplayChangedEvent *result; | |
18182 | char *kwnames[] = { | |
18183 | NULL | |
18184 | }; | |
18185 | ||
18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18187 | { | |
18188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18189 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18190 | ||
18191 | wxPyEndAllowThreads(__tstate); | |
18192 | if (PyErr_Occurred()) SWIG_fail; | |
18193 | } | |
2f4c0a16 | 18194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18195 | return resultobj; |
18196 | fail: | |
18197 | return NULL; | |
18198 | } | |
18199 | ||
18200 | ||
18201 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18202 | PyObject *obj; | |
18203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18204 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18205 | Py_INCREF(obj); | |
18206 | return Py_BuildValue((char *)""); | |
18207 | } | |
18208 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18209 | PyObject *resultobj; | |
423f194a | 18210 | int arg1 = (int) 0 ; |
d14a1e28 | 18211 | wxPaletteChangedEvent *result; |
8edf1c75 | 18212 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18213 | char *kwnames[] = { |
18214 | (char *) "id", NULL | |
18215 | }; | |
18216 | ||
8edf1c75 RD |
18217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18218 | if (obj0) { | |
2f4c0a16 RD |
18219 | arg1 = (int) SWIG_AsInt(obj0); |
18220 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18221 | } |
d14a1e28 RD |
18222 | { |
18223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18224 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18225 | ||
18226 | wxPyEndAllowThreads(__tstate); | |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
18228 | } | |
2f4c0a16 | 18229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18230 | return resultobj; |
18231 | fail: | |
18232 | return NULL; | |
18233 | } | |
18234 | ||
18235 | ||
18236 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18237 | PyObject *resultobj; | |
18238 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18239 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | PyObject * obj1 = 0 ; | |
18242 | char *kwnames[] = { | |
18243 | (char *) "self",(char *) "win", NULL | |
18244 | }; | |
18245 | ||
18246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18249 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18251 | { |
18252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18253 | (arg1)->SetChangedWindow(arg2); | |
18254 | ||
18255 | wxPyEndAllowThreads(__tstate); | |
18256 | if (PyErr_Occurred()) SWIG_fail; | |
18257 | } | |
18258 | Py_INCREF(Py_None); resultobj = Py_None; | |
18259 | return resultobj; | |
18260 | fail: | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18266 | PyObject *resultobj; | |
18267 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18268 | wxWindow *result; | |
18269 | PyObject * obj0 = 0 ; | |
18270 | char *kwnames[] = { | |
18271 | (char *) "self", NULL | |
18272 | }; | |
18273 | ||
18274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18277 | { |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | { | |
18285 | resultobj = wxPyMake_wxObject(result); | |
18286 | } | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18294 | PyObject *obj; | |
18295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18296 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18297 | Py_INCREF(obj); | |
18298 | return Py_BuildValue((char *)""); | |
18299 | } | |
18300 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18301 | PyObject *resultobj; | |
423f194a | 18302 | int arg1 = (int) 0 ; |
d14a1e28 | 18303 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 18304 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18305 | char *kwnames[] = { |
18306 | (char *) "winid", NULL | |
18307 | }; | |
18308 | ||
8edf1c75 RD |
18309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18310 | if (obj0) { | |
2f4c0a16 RD |
18311 | arg1 = (int) SWIG_AsInt(obj0); |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18313 | } |
d14a1e28 RD |
18314 | { |
18315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18316 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18317 | ||
18318 | wxPyEndAllowThreads(__tstate); | |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
18320 | } | |
2f4c0a16 | 18321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18322 | return resultobj; |
18323 | fail: | |
18324 | return NULL; | |
18325 | } | |
18326 | ||
18327 | ||
18328 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18329 | PyObject *resultobj; | |
18330 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18331 | bool arg2 ; | |
18332 | PyObject * obj0 = 0 ; | |
18333 | PyObject * obj1 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self",(char *) "realized", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18341 | arg2 = (bool) SWIG_AsBool(obj1); | |
18342 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18343 | { |
18344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18345 | (arg1)->SetPaletteRealized(arg2); | |
18346 | ||
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | Py_INCREF(Py_None); resultobj = Py_None; | |
18351 | return resultobj; | |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
18357 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18358 | PyObject *resultobj; | |
18359 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18360 | bool result; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "self", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18369 | { |
18370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18371 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18372 | ||
18373 | wxPyEndAllowThreads(__tstate); | |
18374 | if (PyErr_Occurred()) SWIG_fail; | |
18375 | } | |
4f89f6a3 RD |
18376 | { |
18377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18378 | } | |
d14a1e28 RD |
18379 | return resultobj; |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
18385 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18386 | PyObject *obj; | |
18387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18388 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18389 | Py_INCREF(obj); | |
18390 | return Py_BuildValue((char *)""); | |
18391 | } | |
18392 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18393 | PyObject *resultobj; | |
18394 | wxNavigationKeyEvent *result; | |
18395 | char *kwnames[] = { | |
18396 | NULL | |
18397 | }; | |
18398 | ||
18399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18400 | { | |
18401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18402 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18403 | ||
18404 | wxPyEndAllowThreads(__tstate); | |
18405 | if (PyErr_Occurred()) SWIG_fail; | |
18406 | } | |
2f4c0a16 | 18407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18408 | return resultobj; |
18409 | fail: | |
18410 | return NULL; | |
18411 | } | |
18412 | ||
18413 | ||
18414 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18415 | PyObject *resultobj; | |
18416 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18417 | bool result; | |
18418 | PyObject * obj0 = 0 ; | |
18419 | char *kwnames[] = { | |
18420 | (char *) "self", NULL | |
18421 | }; | |
18422 | ||
18423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18426 | { |
18427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18428 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18429 | ||
18430 | wxPyEndAllowThreads(__tstate); | |
18431 | if (PyErr_Occurred()) SWIG_fail; | |
18432 | } | |
4f89f6a3 RD |
18433 | { |
18434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18435 | } | |
d14a1e28 RD |
18436 | return resultobj; |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj; | |
18444 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18445 | bool arg2 ; | |
18446 | PyObject * obj0 = 0 ; | |
18447 | PyObject * obj1 = 0 ; | |
18448 | char *kwnames[] = { | |
18449 | (char *) "self",(char *) "bForward", NULL | |
18450 | }; | |
18451 | ||
18452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18455 | arg2 = (bool) SWIG_AsBool(obj1); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18457 | { |
18458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18459 | (arg1)->SetDirection(arg2); | |
18460 | ||
18461 | wxPyEndAllowThreads(__tstate); | |
18462 | if (PyErr_Occurred()) SWIG_fail; | |
18463 | } | |
18464 | Py_INCREF(Py_None); resultobj = Py_None; | |
18465 | return resultobj; | |
18466 | fail: | |
18467 | return NULL; | |
18468 | } | |
18469 | ||
18470 | ||
18471 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18472 | PyObject *resultobj; | |
18473 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18474 | bool result; | |
18475 | PyObject * obj0 = 0 ; | |
18476 | char *kwnames[] = { | |
18477 | (char *) "self", NULL | |
18478 | }; | |
18479 | ||
18480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18483 | { |
18484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18485 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18486 | ||
18487 | wxPyEndAllowThreads(__tstate); | |
18488 | if (PyErr_Occurred()) SWIG_fail; | |
18489 | } | |
4f89f6a3 RD |
18490 | { |
18491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18492 | } | |
d14a1e28 RD |
18493 | return resultobj; |
18494 | fail: | |
18495 | return NULL; | |
18496 | } | |
18497 | ||
18498 | ||
18499 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18500 | PyObject *resultobj; | |
18501 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18502 | bool arg2 ; | |
18503 | PyObject * obj0 = 0 ; | |
18504 | PyObject * obj1 = 0 ; | |
18505 | char *kwnames[] = { | |
18506 | (char *) "self",(char *) "bIs", NULL | |
18507 | }; | |
18508 | ||
18509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18512 | arg2 = (bool) SWIG_AsBool(obj1); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18514 | { |
18515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18516 | (arg1)->SetWindowChange(arg2); | |
18517 | ||
18518 | wxPyEndAllowThreads(__tstate); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
18520 | } | |
18521 | Py_INCREF(Py_None); resultobj = Py_None; | |
18522 | return resultobj; | |
18523 | fail: | |
18524 | return NULL; | |
18525 | } | |
18526 | ||
18527 | ||
18528 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18529 | PyObject *resultobj; | |
18530 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18531 | wxWindow *result; | |
18532 | PyObject * obj0 = 0 ; | |
18533 | char *kwnames[] = { | |
18534 | (char *) "self", NULL | |
18535 | }; | |
18536 | ||
18537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18540 | { |
18541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18542 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18543 | ||
18544 | wxPyEndAllowThreads(__tstate); | |
18545 | if (PyErr_Occurred()) SWIG_fail; | |
18546 | } | |
18547 | { | |
18548 | resultobj = wxPyMake_wxObject(result); | |
18549 | } | |
18550 | return resultobj; | |
18551 | fail: | |
18552 | return NULL; | |
18553 | } | |
18554 | ||
18555 | ||
18556 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18557 | PyObject *resultobj; | |
18558 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18559 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18560 | PyObject * obj0 = 0 ; | |
18561 | PyObject * obj1 = 0 ; | |
18562 | char *kwnames[] = { | |
18563 | (char *) "self",(char *) "win", NULL | |
18564 | }; | |
18565 | ||
18566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18571 | { |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | (arg1)->SetCurrentFocus(arg2); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | Py_INCREF(Py_None); resultobj = Py_None; | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
18585 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18586 | PyObject *obj; | |
18587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18588 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18589 | Py_INCREF(obj); | |
18590 | return Py_BuildValue((char *)""); | |
18591 | } | |
18592 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18593 | PyObject *resultobj; | |
18594 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18595 | wxWindowCreateEvent *result; | |
18596 | PyObject * obj0 = 0 ; | |
18597 | char *kwnames[] = { | |
18598 | (char *) "win", NULL | |
18599 | }; | |
18600 | ||
18601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18602 | if (obj0) { | |
2f4c0a16 RD |
18603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18605 | } |
18606 | { | |
18607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18608 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18609 | ||
18610 | wxPyEndAllowThreads(__tstate); | |
18611 | if (PyErr_Occurred()) SWIG_fail; | |
18612 | } | |
2f4c0a16 | 18613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18614 | return resultobj; |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18621 | PyObject *resultobj; | |
18622 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18623 | wxWindow *result; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | char *kwnames[] = { | |
18626 | (char *) "self", NULL | |
18627 | }; | |
18628 | ||
18629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18632 | { |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18635 | ||
18636 | wxPyEndAllowThreads(__tstate); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | { | |
18640 | resultobj = wxPyMake_wxObject(result); | |
18641 | } | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18649 | PyObject *obj; | |
18650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18651 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18652 | Py_INCREF(obj); | |
18653 | return Py_BuildValue((char *)""); | |
18654 | } | |
18655 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18656 | PyObject *resultobj; | |
18657 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18658 | wxWindowDestroyEvent *result; | |
18659 | PyObject * obj0 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "win", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18665 | if (obj0) { | |
2f4c0a16 RD |
18666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18668 | } |
18669 | { | |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
2f4c0a16 | 18676 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18677 | return resultobj; |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
18683 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18684 | PyObject *resultobj; | |
18685 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18686 | wxWindow *result; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | char *kwnames[] = { | |
18689 | (char *) "self", NULL | |
18690 | }; | |
18691 | ||
18692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18695 | { |
18696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18697 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18698 | ||
18699 | wxPyEndAllowThreads(__tstate); | |
18700 | if (PyErr_Occurred()) SWIG_fail; | |
18701 | } | |
18702 | { | |
18703 | resultobj = wxPyMake_wxObject(result); | |
18704 | } | |
18705 | return resultobj; | |
18706 | fail: | |
18707 | return NULL; | |
18708 | } | |
18709 | ||
18710 | ||
18711 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18712 | PyObject *obj; | |
18713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18714 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18715 | Py_INCREF(obj); | |
18716 | return Py_BuildValue((char *)""); | |
18717 | } | |
18718 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj; | |
18720 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18721 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18722 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18723 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18724 | wxContextMenuEvent *result; | |
18725 | wxPoint temp3 ; | |
8edf1c75 RD |
18726 | PyObject * obj0 = 0 ; |
18727 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18728 | PyObject * obj2 = 0 ; |
18729 | char *kwnames[] = { | |
18730 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18731 | }; | |
18732 | ||
8edf1c75 RD |
18733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18734 | if (obj0) { | |
2f4c0a16 RD |
18735 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18736 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18737 | } |
18738 | if (obj1) { | |
2f4c0a16 RD |
18739 | arg2 = (int) SWIG_AsInt(obj1); |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18741 | } |
d14a1e28 RD |
18742 | if (obj2) { |
18743 | { | |
18744 | arg3 = &temp3; | |
18745 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18746 | } | |
18747 | } | |
18748 | { | |
18749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18750 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18751 | ||
18752 | wxPyEndAllowThreads(__tstate); | |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
18754 | } | |
2f4c0a16 | 18755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18756 | return resultobj; |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
18762 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18763 | PyObject *resultobj; | |
18764 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18765 | wxPoint *result; | |
18766 | PyObject * obj0 = 0 ; | |
18767 | char *kwnames[] = { | |
18768 | (char *) "self", NULL | |
18769 | }; | |
18770 | ||
18771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18774 | { |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | { | |
18777 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18778 | result = (wxPoint *) &_result_ref; | |
18779 | } | |
18780 | ||
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
2f4c0a16 | 18784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18785 | return resultobj; |
18786 | fail: | |
18787 | return NULL; | |
18788 | } | |
18789 | ||
18790 | ||
18791 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18792 | PyObject *resultobj; | |
18793 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18794 | wxPoint *arg2 = 0 ; | |
18795 | wxPoint temp2 ; | |
18796 | PyObject * obj0 = 0 ; | |
18797 | PyObject * obj1 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self",(char *) "pos", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18805 | { |
18806 | arg2 = &temp2; | |
18807 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18808 | } | |
18809 | { | |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18812 | ||
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
18816 | Py_INCREF(Py_None); resultobj = Py_None; | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18824 | PyObject *obj; | |
18825 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18826 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18827 | Py_INCREF(obj); | |
18828 | return Py_BuildValue((char *)""); | |
18829 | } | |
18830 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18831 | PyObject *resultobj; | |
18832 | wxIdleEvent *result; | |
18833 | char *kwnames[] = { | |
18834 | NULL | |
18835 | }; | |
18836 | ||
18837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18838 | { | |
18839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18840 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18841 | ||
18842 | wxPyEndAllowThreads(__tstate); | |
18843 | if (PyErr_Occurred()) SWIG_fail; | |
18844 | } | |
2f4c0a16 | 18845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
18846 | return resultobj; |
18847 | fail: | |
18848 | return NULL; | |
18849 | } | |
18850 | ||
18851 | ||
18852 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18853 | PyObject *resultobj; | |
18854 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18855 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18856 | PyObject * obj0 = 0 ; |
18857 | PyObject * obj1 = 0 ; | |
18858 | char *kwnames[] = { | |
18859 | (char *) "self",(char *) "needMore", NULL | |
18860 | }; | |
18861 | ||
18862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18865 | if (obj1) { |
2f4c0a16 RD |
18866 | arg2 = (bool) SWIG_AsBool(obj1); |
18867 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18868 | } |
18869 | { | |
18870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18871 | (arg1)->RequestMore(arg2); | |
18872 | ||
18873 | wxPyEndAllowThreads(__tstate); | |
18874 | if (PyErr_Occurred()) SWIG_fail; | |
18875 | } | |
18876 | Py_INCREF(Py_None); resultobj = Py_None; | |
18877 | return resultobj; | |
18878 | fail: | |
18879 | return NULL; | |
18880 | } | |
18881 | ||
18882 | ||
18883 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18884 | PyObject *resultobj; | |
18885 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18886 | bool result; | |
18887 | PyObject * obj0 = 0 ; | |
18888 | char *kwnames[] = { | |
18889 | (char *) "self", NULL | |
18890 | }; | |
18891 | ||
18892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18895 | { |
18896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18897 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18898 | ||
18899 | wxPyEndAllowThreads(__tstate); | |
18900 | if (PyErr_Occurred()) SWIG_fail; | |
18901 | } | |
4f89f6a3 RD |
18902 | { |
18903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18904 | } | |
d14a1e28 RD |
18905 | return resultobj; |
18906 | fail: | |
18907 | return NULL; | |
18908 | } | |
18909 | ||
18910 | ||
18911 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18912 | PyObject *resultobj; | |
18913 | int arg1 ; | |
8edf1c75 | 18914 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18915 | char *kwnames[] = { |
18916 | (char *) "mode", NULL | |
18917 | }; | |
18918 | ||
8edf1c75 | 18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18920 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
18921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18922 | { |
18923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18924 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18925 | ||
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
18929 | Py_INCREF(Py_None); resultobj = Py_None; | |
18930 | return resultobj; | |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
18936 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18937 | PyObject *resultobj; | |
18938 | int result; | |
18939 | char *kwnames[] = { | |
18940 | NULL | |
18941 | }; | |
18942 | ||
18943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18944 | { | |
18945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18946 | result = (int)wxIdleEvent::GetMode(); | |
18947 | ||
18948 | wxPyEndAllowThreads(__tstate); | |
18949 | if (PyErr_Occurred()) SWIG_fail; | |
18950 | } | |
2f4c0a16 | 18951 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18952 | return resultobj; |
18953 | fail: | |
18954 | return NULL; | |
18955 | } | |
18956 | ||
18957 | ||
18958 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18959 | PyObject *resultobj; | |
18960 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18961 | bool result; | |
18962 | PyObject * obj0 = 0 ; | |
18963 | char *kwnames[] = { | |
18964 | (char *) "win", NULL | |
18965 | }; | |
18966 | ||
18967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18970 | { |
18971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18972 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18973 | ||
18974 | wxPyEndAllowThreads(__tstate); | |
18975 | if (PyErr_Occurred()) SWIG_fail; | |
18976 | } | |
4f89f6a3 RD |
18977 | { |
18978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18979 | } | |
d14a1e28 RD |
18980 | return resultobj; |
18981 | fail: | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18987 | PyObject *obj; | |
18988 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18989 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18990 | Py_INCREF(obj); | |
18991 | return Py_BuildValue((char *)""); | |
18992 | } | |
18993 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18994 | PyObject *resultobj; | |
18995 | int arg1 = (int) 0 ; | |
18996 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
18997 | wxPyEvent *result; | |
8edf1c75 RD |
18998 | PyObject * obj0 = 0 ; |
18999 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19000 | char *kwnames[] = { |
19001 | (char *) "winid",(char *) "commandType", NULL | |
19002 | }; | |
19003 | ||
8edf1c75 RD |
19004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19005 | if (obj0) { | |
2f4c0a16 RD |
19006 | arg1 = (int) SWIG_AsInt(obj0); |
19007 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19008 | } |
19009 | if (obj1) { | |
2f4c0a16 RD |
19010 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19011 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19012 | } |
d14a1e28 RD |
19013 | { |
19014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19015 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19016 | ||
19017 | wxPyEndAllowThreads(__tstate); | |
19018 | if (PyErr_Occurred()) SWIG_fail; | |
19019 | } | |
2f4c0a16 | 19020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19021 | return resultobj; |
19022 | fail: | |
19023 | return NULL; | |
19024 | } | |
19025 | ||
19026 | ||
19027 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19028 | PyObject *resultobj; | |
19029 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19030 | PyObject * obj0 = 0 ; | |
19031 | char *kwnames[] = { | |
19032 | (char *) "self", NULL | |
19033 | }; | |
19034 | ||
19035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19038 | { |
19039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19040 | delete arg1; | |
19041 | ||
19042 | wxPyEndAllowThreads(__tstate); | |
19043 | if (PyErr_Occurred()) SWIG_fail; | |
19044 | } | |
19045 | Py_INCREF(Py_None); resultobj = Py_None; | |
19046 | return resultobj; | |
19047 | fail: | |
19048 | return NULL; | |
19049 | } | |
19050 | ||
19051 | ||
19052 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19053 | PyObject *resultobj; | |
19054 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19055 | PyObject *arg2 = (PyObject *) 0 ; | |
19056 | PyObject * obj0 = 0 ; | |
19057 | PyObject * obj1 = 0 ; | |
19058 | char *kwnames[] = { | |
19059 | (char *) "self",(char *) "self", NULL | |
19060 | }; | |
19061 | ||
19062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19065 | arg2 = obj1; |
19066 | { | |
19067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19068 | (arg1)->SetSelf(arg2); | |
19069 | ||
19070 | wxPyEndAllowThreads(__tstate); | |
19071 | if (PyErr_Occurred()) SWIG_fail; | |
19072 | } | |
19073 | Py_INCREF(Py_None); resultobj = Py_None; | |
19074 | return resultobj; | |
19075 | fail: | |
19076 | return NULL; | |
19077 | } | |
19078 | ||
19079 | ||
19080 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19081 | PyObject *resultobj; | |
19082 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19083 | PyObject *result; | |
19084 | PyObject * obj0 = 0 ; | |
19085 | char *kwnames[] = { | |
19086 | (char *) "self", NULL | |
19087 | }; | |
19088 | ||
19089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19092 | { |
19093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19094 | result = (PyObject *)(arg1)->GetSelf(); | |
19095 | ||
19096 | wxPyEndAllowThreads(__tstate); | |
19097 | if (PyErr_Occurred()) SWIG_fail; | |
19098 | } | |
19099 | resultobj = result; | |
19100 | return resultobj; | |
19101 | fail: | |
19102 | return NULL; | |
19103 | } | |
19104 | ||
19105 | ||
19106 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19107 | PyObject *obj; | |
19108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19109 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19110 | Py_INCREF(obj); | |
19111 | return Py_BuildValue((char *)""); | |
19112 | } | |
19113 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19114 | PyObject *resultobj; | |
19115 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19116 | int arg2 = (int) 0 ; | |
19117 | wxPyCommandEvent *result; | |
8edf1c75 RD |
19118 | PyObject * obj0 = 0 ; |
19119 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19120 | char *kwnames[] = { |
19121 | (char *) "commandType",(char *) "id", NULL | |
19122 | }; | |
19123 | ||
8edf1c75 RD |
19124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19125 | if (obj0) { | |
2f4c0a16 RD |
19126 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19127 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19128 | } |
19129 | if (obj1) { | |
2f4c0a16 RD |
19130 | arg2 = (int) SWIG_AsInt(obj1); |
19131 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19132 | } |
d14a1e28 RD |
19133 | { |
19134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19135 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19136 | ||
19137 | wxPyEndAllowThreads(__tstate); | |
19138 | if (PyErr_Occurred()) SWIG_fail; | |
19139 | } | |
2f4c0a16 | 19140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19141 | return resultobj; |
19142 | fail: | |
19143 | return NULL; | |
19144 | } | |
19145 | ||
19146 | ||
19147 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19148 | PyObject *resultobj; | |
19149 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19150 | PyObject * obj0 = 0 ; | |
19151 | char *kwnames[] = { | |
19152 | (char *) "self", NULL | |
19153 | }; | |
19154 | ||
19155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19158 | { |
19159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19160 | delete arg1; | |
19161 | ||
19162 | wxPyEndAllowThreads(__tstate); | |
19163 | if (PyErr_Occurred()) SWIG_fail; | |
19164 | } | |
19165 | Py_INCREF(Py_None); resultobj = Py_None; | |
19166 | return resultobj; | |
19167 | fail: | |
19168 | return NULL; | |
19169 | } | |
19170 | ||
19171 | ||
19172 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19173 | PyObject *resultobj; | |
19174 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19175 | PyObject *arg2 = (PyObject *) 0 ; | |
19176 | PyObject * obj0 = 0 ; | |
19177 | PyObject * obj1 = 0 ; | |
19178 | char *kwnames[] = { | |
19179 | (char *) "self",(char *) "self", NULL | |
19180 | }; | |
19181 | ||
19182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19185 | arg2 = obj1; |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | (arg1)->SetSelf(arg2); | |
19189 | ||
19190 | wxPyEndAllowThreads(__tstate); | |
19191 | if (PyErr_Occurred()) SWIG_fail; | |
19192 | } | |
19193 | Py_INCREF(Py_None); resultobj = Py_None; | |
19194 | return resultobj; | |
19195 | fail: | |
19196 | return NULL; | |
19197 | } | |
19198 | ||
19199 | ||
19200 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19201 | PyObject *resultobj; | |
19202 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19203 | PyObject *result; | |
19204 | PyObject * obj0 = 0 ; | |
19205 | char *kwnames[] = { | |
19206 | (char *) "self", NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19212 | { |
19213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19214 | result = (PyObject *)(arg1)->GetSelf(); | |
19215 | ||
19216 | wxPyEndAllowThreads(__tstate); | |
19217 | if (PyErr_Occurred()) SWIG_fail; | |
19218 | } | |
19219 | resultobj = result; | |
19220 | return resultobj; | |
19221 | fail: | |
19222 | return NULL; | |
19223 | } | |
19224 | ||
19225 | ||
19226 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19227 | PyObject *obj; | |
19228 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19229 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19230 | Py_INCREF(obj); | |
19231 | return Py_BuildValue((char *)""); | |
19232 | } | |
19233 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19234 | PyObject *resultobj; | |
19235 | wxPyApp *result; | |
19236 | char *kwnames[] = { | |
19237 | NULL | |
19238 | }; | |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = (wxPyApp *)new_wxPyApp(); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
19248 | { | |
19249 | resultobj = wxPyMake_wxObject(result); | |
19250 | } | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19260 | PyObject * obj0 = 0 ; | |
19261 | char *kwnames[] = { | |
19262 | (char *) "self", NULL | |
19263 | }; | |
19264 | ||
19265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19268 | { |
19269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19270 | delete arg1; | |
19271 | ||
19272 | wxPyEndAllowThreads(__tstate); | |
19273 | if (PyErr_Occurred()) SWIG_fail; | |
19274 | } | |
19275 | Py_INCREF(Py_None); resultobj = Py_None; | |
19276 | return resultobj; | |
19277 | fail: | |
19278 | return NULL; | |
19279 | } | |
19280 | ||
19281 | ||
19282 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19283 | PyObject *resultobj; | |
19284 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19285 | PyObject *arg2 = (PyObject *) 0 ; | |
19286 | PyObject *arg3 = (PyObject *) 0 ; | |
19287 | PyObject * obj0 = 0 ; | |
19288 | PyObject * obj1 = 0 ; | |
19289 | PyObject * obj2 = 0 ; | |
19290 | char *kwnames[] = { | |
19291 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19292 | }; | |
19293 | ||
19294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19297 | arg2 = obj1; |
19298 | arg3 = obj2; | |
19299 | { | |
19300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19301 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19302 | ||
19303 | wxPyEndAllowThreads(__tstate); | |
19304 | if (PyErr_Occurred()) SWIG_fail; | |
19305 | } | |
19306 | Py_INCREF(Py_None); resultobj = Py_None; | |
19307 | return resultobj; | |
19308 | fail: | |
19309 | return NULL; | |
19310 | } | |
19311 | ||
19312 | ||
19313 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19314 | PyObject *resultobj; | |
19315 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19316 | wxString result; | |
19317 | PyObject * obj0 = 0 ; | |
19318 | char *kwnames[] = { | |
19319 | (char *) "self", NULL | |
19320 | }; | |
19321 | ||
19322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19325 | { |
19326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19327 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19328 | ||
19329 | wxPyEndAllowThreads(__tstate); | |
19330 | if (PyErr_Occurred()) SWIG_fail; | |
19331 | } | |
19332 | { | |
19333 | #if wxUSE_UNICODE | |
19334 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19335 | #else | |
19336 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19337 | #endif | |
19338 | } | |
19339 | return resultobj; | |
19340 | fail: | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
19345 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19346 | PyObject *resultobj; | |
19347 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19348 | wxString *arg2 = 0 ; | |
423f194a | 19349 | bool temp2 = False ; |
d14a1e28 RD |
19350 | PyObject * obj0 = 0 ; |
19351 | PyObject * obj1 = 0 ; | |
19352 | char *kwnames[] = { | |
19353 | (char *) "self",(char *) "name", NULL | |
19354 | }; | |
19355 | ||
19356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19359 | { |
19360 | arg2 = wxString_in_helper(obj1); | |
19361 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19362 | temp2 = True; |
d14a1e28 RD |
19363 | } |
19364 | { | |
19365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19366 | (arg1)->SetAppName((wxString const &)*arg2); | |
19367 | ||
19368 | wxPyEndAllowThreads(__tstate); | |
19369 | if (PyErr_Occurred()) SWIG_fail; | |
19370 | } | |
19371 | Py_INCREF(Py_None); resultobj = Py_None; | |
19372 | { | |
19373 | if (temp2) | |
19374 | delete arg2; | |
19375 | } | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | { | |
19379 | if (temp2) | |
19380 | delete arg2; | |
19381 | } | |
19382 | return NULL; | |
19383 | } | |
19384 | ||
19385 | ||
19386 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19387 | PyObject *resultobj; | |
19388 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19389 | wxString result; | |
19390 | PyObject * obj0 = 0 ; | |
19391 | char *kwnames[] = { | |
19392 | (char *) "self", NULL | |
19393 | }; | |
19394 | ||
19395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19398 | { |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19401 | ||
19402 | wxPyEndAllowThreads(__tstate); | |
19403 | if (PyErr_Occurred()) SWIG_fail; | |
19404 | } | |
19405 | { | |
19406 | #if wxUSE_UNICODE | |
19407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19408 | #else | |
19409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19410 | #endif | |
19411 | } | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj; | |
19420 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19421 | wxString *arg2 = 0 ; | |
423f194a | 19422 | bool temp2 = False ; |
d14a1e28 RD |
19423 | PyObject * obj0 = 0 ; |
19424 | PyObject * obj1 = 0 ; | |
19425 | char *kwnames[] = { | |
19426 | (char *) "self",(char *) "name", NULL | |
19427 | }; | |
19428 | ||
19429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19432 | { |
19433 | arg2 = wxString_in_helper(obj1); | |
19434 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19435 | temp2 = True; |
d14a1e28 RD |
19436 | } |
19437 | { | |
19438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19439 | (arg1)->SetClassName((wxString const &)*arg2); | |
19440 | ||
19441 | wxPyEndAllowThreads(__tstate); | |
19442 | if (PyErr_Occurred()) SWIG_fail; | |
19443 | } | |
19444 | Py_INCREF(Py_None); resultobj = Py_None; | |
19445 | { | |
19446 | if (temp2) | |
19447 | delete arg2; | |
19448 | } | |
19449 | return resultobj; | |
19450 | fail: | |
19451 | { | |
19452 | if (temp2) | |
19453 | delete arg2; | |
19454 | } | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
19459 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19460 | PyObject *resultobj; | |
19461 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19462 | wxString *result; | |
19463 | PyObject * obj0 = 0 ; | |
19464 | char *kwnames[] = { | |
19465 | (char *) "self", NULL | |
19466 | }; | |
19467 | ||
19468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19471 | { |
19472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19473 | { | |
19474 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19475 | result = (wxString *) &_result_ref; | |
19476 | } | |
19477 | ||
19478 | wxPyEndAllowThreads(__tstate); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
f0983263 RD |
19481 | { |
19482 | #if wxUSE_UNICODE | |
19483 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19484 | #else | |
19485 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19486 | #endif | |
19487 | } | |
d14a1e28 RD |
19488 | return resultobj; |
19489 | fail: | |
19490 | return NULL; | |
19491 | } | |
19492 | ||
19493 | ||
19494 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19495 | PyObject *resultobj; | |
19496 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19497 | wxString *arg2 = 0 ; | |
423f194a | 19498 | bool temp2 = False ; |
d14a1e28 RD |
19499 | PyObject * obj0 = 0 ; |
19500 | PyObject * obj1 = 0 ; | |
19501 | char *kwnames[] = { | |
19502 | (char *) "self",(char *) "name", NULL | |
19503 | }; | |
19504 | ||
19505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19508 | { |
19509 | arg2 = wxString_in_helper(obj1); | |
19510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19511 | temp2 = True; |
d14a1e28 RD |
19512 | } |
19513 | { | |
19514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19515 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19516 | ||
19517 | wxPyEndAllowThreads(__tstate); | |
19518 | if (PyErr_Occurred()) SWIG_fail; | |
19519 | } | |
19520 | Py_INCREF(Py_None); resultobj = Py_None; | |
19521 | { | |
19522 | if (temp2) | |
19523 | delete arg2; | |
19524 | } | |
19525 | return resultobj; | |
19526 | fail: | |
19527 | { | |
19528 | if (temp2) | |
19529 | delete arg2; | |
19530 | } | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19538 | wxAppTraits *result; | |
19539 | PyObject * obj0 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self", NULL | |
19542 | }; | |
19543 | ||
19544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19547 | { |
19548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19549 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19550 | ||
19551 | wxPyEndAllowThreads(__tstate); | |
19552 | if (PyErr_Occurred()) SWIG_fail; | |
19553 | } | |
2f4c0a16 | 19554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19555 | return resultobj; |
19556 | fail: | |
19557 | return NULL; | |
19558 | } | |
19559 | ||
19560 | ||
19561 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19562 | PyObject *resultobj; | |
19563 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19564 | PyObject * obj0 = 0 ; | |
19565 | char *kwnames[] = { | |
19566 | (char *) "self", NULL | |
19567 | }; | |
19568 | ||
19569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19572 | { |
19573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19574 | (arg1)->ProcessPendingEvents(); | |
19575 | ||
19576 | wxPyEndAllowThreads(__tstate); | |
19577 | if (PyErr_Occurred()) SWIG_fail; | |
19578 | } | |
19579 | Py_INCREF(Py_None); resultobj = Py_None; | |
19580 | return resultobj; | |
19581 | fail: | |
19582 | return NULL; | |
19583 | } | |
19584 | ||
19585 | ||
19586 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19587 | PyObject *resultobj; | |
19588 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19589 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19590 | bool result; |
19591 | PyObject * obj0 = 0 ; | |
19592 | PyObject * obj1 = 0 ; | |
19593 | char *kwnames[] = { | |
19594 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19595 | }; | |
19596 | ||
19597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19600 | if (obj1) { |
2f4c0a16 RD |
19601 | arg2 = (bool) SWIG_AsBool(obj1); |
19602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19603 | } |
19604 | { | |
19605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19606 | result = (bool)(arg1)->Yield(arg2); | |
19607 | ||
19608 | wxPyEndAllowThreads(__tstate); | |
19609 | if (PyErr_Occurred()) SWIG_fail; | |
19610 | } | |
4f89f6a3 RD |
19611 | { |
19612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19613 | } | |
d14a1e28 RD |
19614 | return resultobj; |
19615 | fail: | |
19616 | return NULL; | |
19617 | } | |
19618 | ||
19619 | ||
19620 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19621 | PyObject *resultobj; | |
19622 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19623 | PyObject * obj0 = 0 ; | |
19624 | char *kwnames[] = { | |
19625 | (char *) "self", NULL | |
19626 | }; | |
19627 | ||
19628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19631 | { |
19632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19633 | (arg1)->WakeUpIdle(); | |
19634 | ||
19635 | wxPyEndAllowThreads(__tstate); | |
19636 | if (PyErr_Occurred()) SWIG_fail; | |
19637 | } | |
19638 | Py_INCREF(Py_None); resultobj = Py_None; | |
19639 | return resultobj; | |
19640 | fail: | |
19641 | return NULL; | |
19642 | } | |
19643 | ||
19644 | ||
19645 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19646 | PyObject *resultobj; | |
19647 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19648 | int result; | |
19649 | PyObject * obj0 = 0 ; | |
19650 | char *kwnames[] = { | |
19651 | (char *) "self", NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19657 | { |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | result = (int)(arg1)->MainLoop(); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
2f4c0a16 | 19664 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19665 | return resultobj; |
19666 | fail: | |
19667 | return NULL; | |
19668 | } | |
19669 | ||
19670 | ||
19671 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19672 | PyObject *resultobj; | |
19673 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19674 | PyObject * obj0 = 0 ; | |
19675 | char *kwnames[] = { | |
19676 | (char *) "self", NULL | |
19677 | }; | |
19678 | ||
19679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19682 | { |
19683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19684 | (arg1)->Exit(); | |
19685 | ||
19686 | wxPyEndAllowThreads(__tstate); | |
19687 | if (PyErr_Occurred()) SWIG_fail; | |
19688 | } | |
19689 | Py_INCREF(Py_None); resultobj = Py_None; | |
19690 | return resultobj; | |
19691 | fail: | |
19692 | return NULL; | |
19693 | } | |
19694 | ||
19695 | ||
19696 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19697 | PyObject *resultobj; | |
19698 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19699 | PyObject * obj0 = 0 ; | |
19700 | char *kwnames[] = { | |
19701 | (char *) "self", NULL | |
19702 | }; | |
19703 | ||
19704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19707 | { |
19708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19709 | (arg1)->ExitMainLoop(); | |
19710 | ||
19711 | wxPyEndAllowThreads(__tstate); | |
19712 | if (PyErr_Occurred()) SWIG_fail; | |
19713 | } | |
19714 | Py_INCREF(Py_None); resultobj = Py_None; | |
19715 | return resultobj; | |
19716 | fail: | |
19717 | return NULL; | |
19718 | } | |
19719 | ||
19720 | ||
19721 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19722 | PyObject *resultobj; | |
19723 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19724 | bool result; | |
19725 | PyObject * obj0 = 0 ; | |
19726 | char *kwnames[] = { | |
19727 | (char *) "self", NULL | |
19728 | }; | |
19729 | ||
19730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19733 | { |
19734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19735 | result = (bool)(arg1)->Pending(); | |
19736 | ||
19737 | wxPyEndAllowThreads(__tstate); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
4f89f6a3 RD |
19740 | { |
19741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19742 | } | |
d14a1e28 RD |
19743 | return resultobj; |
19744 | fail: | |
19745 | return NULL; | |
19746 | } | |
19747 | ||
19748 | ||
19749 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19750 | PyObject *resultobj; | |
19751 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19752 | bool result; | |
19753 | PyObject * obj0 = 0 ; | |
19754 | char *kwnames[] = { | |
19755 | (char *) "self", NULL | |
19756 | }; | |
19757 | ||
19758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19761 | { |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | result = (bool)(arg1)->Dispatch(); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
4f89f6a3 RD |
19768 | { |
19769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19770 | } | |
d14a1e28 RD |
19771 | return resultobj; |
19772 | fail: | |
19773 | return NULL; | |
19774 | } | |
19775 | ||
19776 | ||
19777 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19778 | PyObject *resultobj; | |
19779 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19780 | bool result; | |
19781 | PyObject * obj0 = 0 ; | |
19782 | char *kwnames[] = { | |
19783 | (char *) "self", NULL | |
19784 | }; | |
19785 | ||
19786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19789 | { |
19790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19791 | result = (bool)(arg1)->ProcessIdle(); | |
19792 | ||
19793 | wxPyEndAllowThreads(__tstate); | |
19794 | if (PyErr_Occurred()) SWIG_fail; | |
19795 | } | |
4f89f6a3 RD |
19796 | { |
19797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19798 | } | |
d14a1e28 RD |
19799 | return resultobj; |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
19805 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19806 | PyObject *resultobj; | |
19807 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19808 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19809 | wxIdleEvent *arg3 = 0 ; | |
19810 | bool result; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | PyObject * obj1 = 0 ; | |
19813 | PyObject * obj2 = 0 ; | |
19814 | char *kwnames[] = { | |
19815 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19816 | }; | |
19817 | ||
19818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19823 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19824 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19825 | SWIG_fail; | |
d14a1e28 | 19826 | if (arg3 == NULL) { |
2f4c0a16 RD |
19827 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19828 | SWIG_fail; | |
d14a1e28 RD |
19829 | } |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
4f89f6a3 RD |
19837 | { |
19838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19839 | } | |
d14a1e28 RD |
19840 | return resultobj; |
19841 | fail: | |
19842 | return NULL; | |
19843 | } | |
19844 | ||
19845 | ||
d14a1e28 RD |
19846 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19847 | PyObject *resultobj; | |
19848 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19849 | bool result; | |
19850 | PyObject * obj0 = 0 ; | |
19851 | char *kwnames[] = { | |
19852 | (char *) "self", NULL | |
19853 | }; | |
19854 | ||
19855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19858 | { |
19859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19860 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19861 | ||
19862 | wxPyEndAllowThreads(__tstate); | |
19863 | if (PyErr_Occurred()) SWIG_fail; | |
19864 | } | |
4f89f6a3 RD |
19865 | { |
19866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19867 | } | |
d14a1e28 RD |
19868 | return resultobj; |
19869 | fail: | |
19870 | return NULL; | |
19871 | } | |
19872 | ||
19873 | ||
19874 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19875 | PyObject *resultobj; | |
19876 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19877 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19878 | PyObject * obj0 = 0 ; | |
19879 | PyObject * obj1 = 0 ; | |
19880 | char *kwnames[] = { | |
19881 | (char *) "self",(char *) "win", NULL | |
19882 | }; | |
19883 | ||
19884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19887 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19889 | { |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | (arg1)->SetTopWindow(arg2); | |
19892 | ||
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | Py_INCREF(Py_None); resultobj = Py_None; | |
19897 | return resultobj; | |
19898 | fail: | |
19899 | return NULL; | |
19900 | } | |
19901 | ||
19902 | ||
19903 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19904 | PyObject *resultobj; | |
19905 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19906 | wxWindow *result; | |
19907 | PyObject * obj0 = 0 ; | |
19908 | char *kwnames[] = { | |
19909 | (char *) "self", NULL | |
19910 | }; | |
19911 | ||
19912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19915 | { |
19916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19917 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19918 | ||
19919 | wxPyEndAllowThreads(__tstate); | |
19920 | if (PyErr_Occurred()) SWIG_fail; | |
19921 | } | |
19922 | { | |
19923 | resultobj = wxPyMake_wxObject(result); | |
19924 | } | |
19925 | return resultobj; | |
19926 | fail: | |
19927 | return NULL; | |
19928 | } | |
19929 | ||
19930 | ||
19931 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19932 | PyObject *resultobj; | |
19933 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19934 | bool arg2 ; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | PyObject * obj1 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "self",(char *) "flag", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19944 | arg2 = (bool) SWIG_AsBool(obj1); | |
19945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19946 | { |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | (arg1)->SetExitOnFrameDelete(arg2); | |
19949 | ||
19950 | wxPyEndAllowThreads(__tstate); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
19952 | } | |
19953 | Py_INCREF(Py_None); resultobj = Py_None; | |
19954 | return resultobj; | |
19955 | fail: | |
19956 | return NULL; | |
19957 | } | |
19958 | ||
19959 | ||
19960 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19961 | PyObject *resultobj; | |
19962 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19963 | bool result; | |
19964 | PyObject * obj0 = 0 ; | |
19965 | char *kwnames[] = { | |
19966 | (char *) "self", NULL | |
19967 | }; | |
19968 | ||
19969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19972 | { |
19973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19974 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19975 | ||
19976 | wxPyEndAllowThreads(__tstate); | |
19977 | if (PyErr_Occurred()) SWIG_fail; | |
19978 | } | |
4f89f6a3 RD |
19979 | { |
19980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19981 | } | |
d14a1e28 RD |
19982 | return resultobj; |
19983 | fail: | |
19984 | return NULL; | |
19985 | } | |
19986 | ||
19987 | ||
19988 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19989 | PyObject *resultobj; | |
19990 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19991 | bool arg2 ; | |
19992 | PyObject * obj0 = 0 ; | |
19993 | PyObject * obj1 = 0 ; | |
19994 | char *kwnames[] = { | |
19995 | (char *) "self",(char *) "flag", NULL | |
19996 | }; | |
19997 | ||
19998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20001 | arg2 = (bool) SWIG_AsBool(obj1); | |
20002 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20003 | { |
20004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20005 | (arg1)->SetUseBestVisual(arg2); | |
20006 | ||
20007 | wxPyEndAllowThreads(__tstate); | |
20008 | if (PyErr_Occurred()) SWIG_fail; | |
20009 | } | |
20010 | Py_INCREF(Py_None); resultobj = Py_None; | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
20017 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20018 | PyObject *resultobj; | |
20019 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20020 | bool result; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "self", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20029 | { |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
4f89f6a3 RD |
20036 | { |
20037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20038 | } | |
d14a1e28 RD |
20039 | return resultobj; |
20040 | fail: | |
20041 | return NULL; | |
20042 | } | |
20043 | ||
20044 | ||
20045 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20046 | PyObject *resultobj; | |
20047 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20048 | int arg2 ; | |
20049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20051 | char *kwnames[] = { |
20052 | (char *) "self",(char *) "mode", NULL | |
20053 | }; | |
20054 | ||
8edf1c75 | 20055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20058 | arg2 = (int) SWIG_AsInt(obj1); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20060 | { |
20061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20062 | (arg1)->SetPrintMode(arg2); | |
20063 | ||
20064 | wxPyEndAllowThreads(__tstate); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
20066 | } | |
20067 | Py_INCREF(Py_None); resultobj = Py_None; | |
20068 | return resultobj; | |
20069 | fail: | |
20070 | return NULL; | |
20071 | } | |
20072 | ||
20073 | ||
20074 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20075 | PyObject *resultobj; | |
20076 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20077 | int result; | |
20078 | PyObject * obj0 = 0 ; | |
20079 | char *kwnames[] = { | |
20080 | (char *) "self", NULL | |
20081 | }; | |
20082 | ||
20083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20086 | { |
20087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20088 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20089 | ||
20090 | wxPyEndAllowThreads(__tstate); | |
20091 | if (PyErr_Occurred()) SWIG_fail; | |
20092 | } | |
2f4c0a16 | 20093 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20094 | return resultobj; |
20095 | fail: | |
20096 | return NULL; | |
20097 | } | |
20098 | ||
20099 | ||
44127b65 | 20100 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20101 | PyObject *resultobj; |
20102 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 20103 | int arg2 ; |
d14a1e28 | 20104 | PyObject * obj0 = 0 ; |
8edf1c75 | 20105 | PyObject * obj1 = 0 ; |
d14a1e28 | 20106 | char *kwnames[] = { |
44127b65 | 20107 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20108 | }; |
20109 | ||
8edf1c75 | 20110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20113 | arg2 = (int) SWIG_AsInt(obj1); | |
20114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20115 | { |
20116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20117 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20118 | |
20119 | wxPyEndAllowThreads(__tstate); | |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
20121 | } | |
44127b65 | 20122 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20123 | return resultobj; |
20124 | fail: | |
20125 | return NULL; | |
20126 | } | |
20127 | ||
20128 | ||
44127b65 | 20129 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20130 | PyObject *resultobj; |
20131 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 20132 | int result; |
d14a1e28 RD |
20133 | PyObject * obj0 = 0 ; |
20134 | char *kwnames[] = { | |
44127b65 | 20135 | (char *) "self", NULL |
d14a1e28 RD |
20136 | }; |
20137 | ||
44127b65 | 20138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20141 | { |
20142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20143 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20144 | |
20145 | wxPyEndAllowThreads(__tstate); | |
20146 | if (PyErr_Occurred()) SWIG_fail; | |
20147 | } | |
2f4c0a16 | 20148 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20149 | return resultobj; |
20150 | fail: | |
20151 | return NULL; | |
20152 | } | |
20153 | ||
20154 | ||
20155 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20156 | PyObject *resultobj; | |
20157 | bool result; | |
20158 | char *kwnames[] = { | |
20159 | NULL | |
20160 | }; | |
20161 | ||
20162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20163 | { | |
20164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20165 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20166 | ||
20167 | wxPyEndAllowThreads(__tstate); | |
20168 | if (PyErr_Occurred()) SWIG_fail; | |
20169 | } | |
4f89f6a3 RD |
20170 | { |
20171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20172 | } | |
d14a1e28 RD |
20173 | return resultobj; |
20174 | fail: | |
20175 | return NULL; | |
20176 | } | |
20177 | ||
20178 | ||
20179 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20180 | PyObject *resultobj; | |
20181 | long result; | |
20182 | char *kwnames[] = { | |
20183 | NULL | |
20184 | }; | |
20185 | ||
20186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20187 | { | |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20190 | ||
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
2f4c0a16 | 20194 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20195 | return resultobj; |
20196 | fail: | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
20201 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20202 | PyObject *resultobj; | |
20203 | long result; | |
20204 | char *kwnames[] = { | |
20205 | NULL | |
20206 | }; | |
20207 | ||
20208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20209 | { | |
20210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20211 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20212 | ||
20213 | wxPyEndAllowThreads(__tstate); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
2f4c0a16 | 20216 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20217 | return resultobj; |
20218 | fail: | |
20219 | return NULL; | |
20220 | } | |
20221 | ||
20222 | ||
20223 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20224 | PyObject *resultobj; | |
20225 | long result; | |
20226 | char *kwnames[] = { | |
20227 | NULL | |
20228 | }; | |
20229 | ||
20230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20231 | { | |
20232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20233 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20234 | ||
20235 | wxPyEndAllowThreads(__tstate); | |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
20237 | } | |
2f4c0a16 | 20238 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20239 | return resultobj; |
20240 | fail: | |
20241 | return NULL; | |
20242 | } | |
20243 | ||
20244 | ||
20245 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20246 | PyObject *resultobj; | |
20247 | wxString result; | |
20248 | char *kwnames[] = { | |
20249 | NULL | |
20250 | }; | |
20251 | ||
20252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20253 | { | |
20254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20255 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20256 | ||
20257 | wxPyEndAllowThreads(__tstate); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
20260 | { | |
20261 | #if wxUSE_UNICODE | |
20262 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20263 | #else | |
20264 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20265 | #endif | |
20266 | } | |
20267 | return resultobj; | |
20268 | fail: | |
20269 | return NULL; | |
20270 | } | |
20271 | ||
20272 | ||
20273 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20274 | PyObject *resultobj; | |
20275 | bool arg1 ; | |
20276 | PyObject * obj0 = 0 ; | |
20277 | char *kwnames[] = { | |
20278 | (char *) "val", NULL | |
20279 | }; | |
20280 | ||
20281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20282 | arg1 = (bool) SWIG_AsBool(obj0); |
20283 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20284 | { |
20285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20286 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20287 | ||
20288 | wxPyEndAllowThreads(__tstate); | |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
20290 | } | |
20291 | Py_INCREF(Py_None); resultobj = Py_None; | |
20292 | return resultobj; | |
20293 | fail: | |
20294 | return NULL; | |
20295 | } | |
20296 | ||
20297 | ||
20298 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20299 | PyObject *resultobj; | |
20300 | long arg1 ; | |
8edf1c75 | 20301 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20302 | char *kwnames[] = { |
20303 | (char *) "val", NULL | |
20304 | }; | |
20305 | ||
8edf1c75 | 20306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20307 | arg1 = (long) SWIG_AsLong(obj0); |
20308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20309 | { |
20310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20311 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20312 | ||
20313 | wxPyEndAllowThreads(__tstate); | |
20314 | if (PyErr_Occurred()) SWIG_fail; | |
20315 | } | |
20316 | Py_INCREF(Py_None); resultobj = Py_None; | |
20317 | return resultobj; | |
20318 | fail: | |
20319 | return NULL; | |
20320 | } | |
20321 | ||
20322 | ||
20323 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20324 | PyObject *resultobj; | |
20325 | long arg1 ; | |
8edf1c75 | 20326 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20327 | char *kwnames[] = { |
20328 | (char *) "val", NULL | |
20329 | }; | |
20330 | ||
8edf1c75 | 20331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20332 | arg1 = (long) SWIG_AsLong(obj0); |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20334 | { |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20336 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20337 | ||
20338 | wxPyEndAllowThreads(__tstate); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
20340 | } | |
20341 | Py_INCREF(Py_None); resultobj = Py_None; | |
20342 | return resultobj; | |
20343 | fail: | |
20344 | return NULL; | |
20345 | } | |
20346 | ||
20347 | ||
20348 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20349 | PyObject *resultobj; | |
20350 | long arg1 ; | |
8edf1c75 | 20351 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20352 | char *kwnames[] = { |
20353 | (char *) "val", NULL | |
20354 | }; | |
20355 | ||
8edf1c75 | 20356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20357 | arg1 = (long) SWIG_AsLong(obj0); |
20358 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20359 | { |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20361 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20362 | ||
20363 | wxPyEndAllowThreads(__tstate); | |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
20365 | } | |
20366 | Py_INCREF(Py_None); resultobj = Py_None; | |
20367 | return resultobj; | |
20368 | fail: | |
20369 | return NULL; | |
20370 | } | |
20371 | ||
20372 | ||
20373 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20374 | PyObject *resultobj; | |
20375 | wxString *arg1 = 0 ; | |
423f194a | 20376 | bool temp1 = False ; |
d14a1e28 RD |
20377 | PyObject * obj0 = 0 ; |
20378 | char *kwnames[] = { | |
20379 | (char *) "val", NULL | |
20380 | }; | |
20381 | ||
20382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20383 | { | |
20384 | arg1 = wxString_in_helper(obj0); | |
20385 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 20386 | temp1 = True; |
d14a1e28 RD |
20387 | } |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | Py_INCREF(Py_None); resultobj = Py_None; | |
20396 | { | |
20397 | if (temp1) | |
20398 | delete arg1; | |
20399 | } | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | { | |
20403 | if (temp1) | |
20404 | delete arg1; | |
20405 | } | |
20406 | return NULL; | |
20407 | } | |
20408 | ||
20409 | ||
20410 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20411 | PyObject *resultobj; | |
20412 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20413 | PyObject * obj0 = 0 ; | |
20414 | char *kwnames[] = { | |
20415 | (char *) "self", NULL | |
20416 | }; | |
20417 | ||
20418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20421 | { |
20422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20423 | (arg1)->_BootstrapApp(); | |
20424 | ||
20425 | wxPyEndAllowThreads(__tstate); | |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
20427 | } | |
20428 | Py_INCREF(Py_None); resultobj = Py_None; | |
20429 | return resultobj; | |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | int result; | |
20438 | char *kwnames[] = { | |
20439 | NULL | |
20440 | }; | |
20441 | ||
20442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20443 | { | |
20444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20445 | result = (int)wxPyApp::GetComCtl32Version(); | |
20446 | ||
20447 | wxPyEndAllowThreads(__tstate); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
2f4c0a16 | 20450 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20451 | return resultobj; |
20452 | fail: | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
20457 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20458 | PyObject *obj; | |
20459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20460 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20461 | Py_INCREF(obj); | |
20462 | return Py_BuildValue((char *)""); | |
20463 | } | |
20464 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20465 | PyObject *resultobj; | |
20466 | char *kwnames[] = { | |
20467 | NULL | |
20468 | }; | |
20469 | ||
20470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20471 | { | |
20472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20473 | wxExit(); | |
20474 | ||
20475 | wxPyEndAllowThreads(__tstate); | |
20476 | if (PyErr_Occurred()) SWIG_fail; | |
20477 | } | |
20478 | Py_INCREF(Py_None); resultobj = Py_None; | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20486 | PyObject *resultobj; | |
20487 | bool result; | |
20488 | char *kwnames[] = { | |
20489 | NULL | |
20490 | }; | |
20491 | ||
20492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20493 | { | |
20494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20495 | result = (bool)wxYield(); | |
20496 | ||
20497 | wxPyEndAllowThreads(__tstate); | |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
20499 | } | |
4f89f6a3 RD |
20500 | { |
20501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20502 | } | |
d14a1e28 RD |
20503 | return resultobj; |
20504 | fail: | |
20505 | return NULL; | |
20506 | } | |
20507 | ||
20508 | ||
20509 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20510 | PyObject *resultobj; | |
20511 | bool result; | |
20512 | char *kwnames[] = { | |
20513 | NULL | |
20514 | }; | |
20515 | ||
20516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20517 | { | |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | result = (bool)wxYieldIfNeeded(); | |
20520 | ||
20521 | wxPyEndAllowThreads(__tstate); | |
20522 | if (PyErr_Occurred()) SWIG_fail; | |
20523 | } | |
4f89f6a3 RD |
20524 | { |
20525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20526 | } | |
d14a1e28 RD |
20527 | return resultobj; |
20528 | fail: | |
20529 | return NULL; | |
20530 | } | |
20531 | ||
20532 | ||
20533 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20534 | PyObject *resultobj; | |
20535 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 20536 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20537 | bool result; |
20538 | PyObject * obj0 = 0 ; | |
20539 | PyObject * obj1 = 0 ; | |
20540 | char *kwnames[] = { | |
20541 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20542 | }; | |
20543 | ||
20544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20545 | if (obj0) { | |
2f4c0a16 RD |
20546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20548 | } |
20549 | if (obj1) { | |
2f4c0a16 RD |
20550 | arg2 = (bool) SWIG_AsBool(obj1); |
20551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20552 | } |
20553 | { | |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | result = (bool)wxSafeYield(arg1,arg2); | |
20556 | ||
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
4f89f6a3 RD |
20560 | { |
20561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20562 | } | |
d14a1e28 RD |
20563 | return resultobj; |
20564 | fail: | |
20565 | return NULL; | |
20566 | } | |
20567 | ||
20568 | ||
20569 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20570 | PyObject *resultobj; | |
20571 | char *kwnames[] = { | |
20572 | NULL | |
20573 | }; | |
20574 | ||
20575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20576 | { | |
20577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20578 | wxWakeUpIdle(); | |
20579 | ||
20580 | wxPyEndAllowThreads(__tstate); | |
20581 | if (PyErr_Occurred()) SWIG_fail; | |
20582 | } | |
20583 | Py_INCREF(Py_None); resultobj = Py_None; | |
20584 | return resultobj; | |
20585 | fail: | |
20586 | return NULL; | |
20587 | } | |
20588 | ||
20589 | ||
20590 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20591 | PyObject *resultobj; | |
20592 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20593 | wxEvent *arg2 = 0 ; | |
20594 | PyObject * obj0 = 0 ; | |
20595 | PyObject * obj1 = 0 ; | |
20596 | char *kwnames[] = { | |
20597 | (char *) "dest",(char *) "event", NULL | |
20598 | }; | |
20599 | ||
20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20603 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20604 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20605 | SWIG_fail; | |
d14a1e28 | 20606 | if (arg2 == NULL) { |
2f4c0a16 RD |
20607 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20608 | SWIG_fail; | |
d14a1e28 RD |
20609 | } |
20610 | { | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | wxPostEvent(arg1,*arg2); | |
20613 | ||
20614 | wxPyEndAllowThreads(__tstate); | |
20615 | if (PyErr_Occurred()) SWIG_fail; | |
20616 | } | |
20617 | Py_INCREF(Py_None); resultobj = Py_None; | |
20618 | return resultobj; | |
20619 | fail: | |
20620 | return NULL; | |
20621 | } | |
20622 | ||
20623 | ||
20624 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20625 | PyObject *resultobj; | |
20626 | char *kwnames[] = { | |
20627 | NULL | |
20628 | }; | |
20629 | ||
20630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20631 | { | |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | wxApp_CleanUp(); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | Py_INCREF(Py_None); resultobj = Py_None; | |
20639 | return resultobj; | |
20640 | fail: | |
20641 | return NULL; | |
20642 | } | |
20643 | ||
20644 | ||
20645 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20646 | PyObject *resultobj; | |
20647 | wxPyApp *result; | |
20648 | char *kwnames[] = { | |
20649 | NULL | |
20650 | }; | |
20651 | ||
20652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20653 | { | |
20654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20655 | result = (wxPyApp *)wxGetApp(); | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | { | |
20661 | resultobj = wxPyMake_wxObject(result); | |
20662 | } | |
20663 | return resultobj; | |
20664 | fail: | |
20665 | return NULL; | |
20666 | } | |
20667 | ||
20668 | ||
41f1cec7 RD |
20669 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20670 | PyObject *resultobj; | |
20671 | int arg1 = (int) 0 ; | |
20672 | int arg2 = (int) 0 ; | |
20673 | int arg3 = (int) 0 ; | |
20674 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20675 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20676 | PyObject * obj0 = 0 ; |
20677 | PyObject * obj1 = 0 ; | |
20678 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20679 | PyObject * obj3 = 0 ; |
20680 | char *kwnames[] = { | |
20681 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20682 | }; | |
20683 | ||
8edf1c75 RD |
20684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20685 | if (obj0) { | |
2f4c0a16 RD |
20686 | arg1 = (int) SWIG_AsInt(obj0); |
20687 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20688 | } |
20689 | if (obj1) { | |
2f4c0a16 RD |
20690 | arg2 = (int) SWIG_AsInt(obj1); |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20692 | } |
20693 | if (obj2) { | |
2f4c0a16 RD |
20694 | arg3 = (int) SWIG_AsInt(obj2); |
20695 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20696 | } |
41f1cec7 | 20697 | if (obj3) { |
2f4c0a16 RD |
20698 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20700 | } |
20701 | { | |
20702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20703 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20704 | ||
20705 | wxPyEndAllowThreads(__tstate); | |
20706 | if (PyErr_Occurred()) SWIG_fail; | |
20707 | } | |
2f4c0a16 | 20708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
41f1cec7 RD |
20709 | return resultobj; |
20710 | fail: | |
20711 | return NULL; | |
20712 | } | |
20713 | ||
20714 | ||
20715 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20716 | PyObject *resultobj; | |
20717 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20718 | PyObject * obj0 = 0 ; | |
20719 | char *kwnames[] = { | |
20720 | (char *) "self", NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20726 | { |
20727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20728 | delete arg1; | |
20729 | ||
20730 | wxPyEndAllowThreads(__tstate); | |
20731 | if (PyErr_Occurred()) SWIG_fail; | |
20732 | } | |
20733 | Py_INCREF(Py_None); resultobj = Py_None; | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
20740 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20741 | PyObject *resultobj; | |
20742 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20743 | int arg2 ; | |
20744 | int arg3 ; | |
20745 | int arg4 ; | |
20746 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20747 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20748 | PyObject * obj1 = 0 ; |
20749 | PyObject * obj2 = 0 ; | |
20750 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20751 | PyObject * obj4 = 0 ; |
20752 | char *kwnames[] = { | |
20753 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20754 | }; | |
20755 | ||
8edf1c75 | 20756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20759 | arg2 = (int) SWIG_AsInt(obj1); | |
20760 | if (PyErr_Occurred()) SWIG_fail; | |
20761 | arg3 = (int) SWIG_AsInt(obj2); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | arg4 = (int) SWIG_AsInt(obj3); | |
20764 | if (PyErr_Occurred()) SWIG_fail; | |
41f1cec7 | 20765 | if (obj4) { |
2f4c0a16 RD |
20766 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20768 | } |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
20776 | Py_INCREF(Py_None); resultobj = Py_None; | |
20777 | return resultobj; | |
20778 | fail: | |
20779 | return NULL; | |
20780 | } | |
20781 | ||
20782 | ||
20783 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20784 | PyObject *resultobj; | |
20785 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20786 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20787 | PyObject * obj0 = 0 ; | |
20788 | PyObject * obj1 = 0 ; | |
20789 | char *kwnames[] = { | |
20790 | (char *) "self",(char *) "item", NULL | |
20791 | }; | |
20792 | ||
20793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20798 | { |
20799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20800 | (arg1)->SetMenuItem(arg2); | |
20801 | ||
20802 | wxPyEndAllowThreads(__tstate); | |
20803 | if (PyErr_Occurred()) SWIG_fail; | |
20804 | } | |
20805 | Py_INCREF(Py_None); resultobj = Py_None; | |
20806 | return resultobj; | |
20807 | fail: | |
20808 | return NULL; | |
20809 | } | |
20810 | ||
20811 | ||
20812 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20813 | PyObject *resultobj; | |
20814 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20815 | wxMenuItem *result; | |
20816 | PyObject * obj0 = 0 ; | |
20817 | char *kwnames[] = { | |
20818 | (char *) "self", NULL | |
20819 | }; | |
20820 | ||
20821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20824 | { |
20825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20826 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20827 | ||
20828 | wxPyEndAllowThreads(__tstate); | |
20829 | if (PyErr_Occurred()) SWIG_fail; | |
20830 | } | |
20831 | { | |
20832 | resultobj = wxPyMake_wxObject(result); | |
20833 | } | |
20834 | return resultobj; | |
20835 | fail: | |
20836 | return NULL; | |
20837 | } | |
20838 | ||
20839 | ||
20840 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20841 | PyObject *resultobj; | |
20842 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20843 | int result; | |
20844 | PyObject * obj0 = 0 ; | |
20845 | char *kwnames[] = { | |
20846 | (char *) "self", NULL | |
20847 | }; | |
20848 | ||
20849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20852 | { |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (int)(arg1)->GetFlags(); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
2f4c0a16 | 20859 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20860 | return resultobj; |
20861 | fail: | |
20862 | return NULL; | |
20863 | } | |
20864 | ||
20865 | ||
20866 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20867 | PyObject *resultobj; | |
20868 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20869 | int result; | |
20870 | PyObject * obj0 = 0 ; | |
20871 | char *kwnames[] = { | |
20872 | (char *) "self", NULL | |
20873 | }; | |
20874 | ||
20875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20878 | { |
20879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20880 | result = (int)(arg1)->GetKeyCode(); | |
20881 | ||
20882 | wxPyEndAllowThreads(__tstate); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
2f4c0a16 | 20885 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20886 | return resultobj; |
20887 | fail: | |
20888 | return NULL; | |
20889 | } | |
20890 | ||
20891 | ||
20892 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20893 | PyObject *resultobj; | |
20894 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20895 | int result; | |
20896 | PyObject * obj0 = 0 ; | |
20897 | char *kwnames[] = { | |
20898 | (char *) "self", NULL | |
20899 | }; | |
20900 | ||
20901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20904 | { |
20905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20906 | result = (int)(arg1)->GetCommand(); | |
20907 | ||
20908 | wxPyEndAllowThreads(__tstate); | |
20909 | if (PyErr_Occurred()) SWIG_fail; | |
20910 | } | |
2f4c0a16 | 20911 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20912 | return resultobj; |
20913 | fail: | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
20918 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20919 | PyObject *obj; | |
20920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20921 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20922 | Py_INCREF(obj); | |
20923 | return Py_BuildValue((char *)""); | |
20924 | } | |
20925 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20926 | PyObject *resultobj; | |
20927 | int arg1 ; | |
20928 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20929 | wxAcceleratorTable *result; | |
20930 | PyObject * obj0 = 0 ; | |
20931 | char *kwnames[] = { | |
20932 | (char *) "n", NULL | |
20933 | }; | |
20934 | ||
20935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20936 | { | |
20937 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20938 | if (arg2) arg1 = PyList_Size(obj0); | |
20939 | else arg1 = 0; | |
20940 | } | |
20941 | { | |
20942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20943 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20944 | ||
20945 | wxPyEndAllowThreads(__tstate); | |
20946 | if (PyErr_Occurred()) SWIG_fail; | |
20947 | } | |
2f4c0a16 | 20948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
41f1cec7 RD |
20949 | { |
20950 | delete [] arg2; | |
20951 | } | |
20952 | return resultobj; | |
20953 | fail: | |
20954 | { | |
20955 | delete [] arg2; | |
20956 | } | |
20957 | return NULL; | |
20958 | } | |
20959 | ||
20960 | ||
20961 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20962 | PyObject *resultobj; | |
20963 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20964 | PyObject * obj0 = 0 ; | |
20965 | char *kwnames[] = { | |
20966 | (char *) "self", NULL | |
20967 | }; | |
20968 | ||
20969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20972 | { |
20973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20974 | delete arg1; | |
20975 | ||
20976 | wxPyEndAllowThreads(__tstate); | |
20977 | if (PyErr_Occurred()) SWIG_fail; | |
20978 | } | |
20979 | Py_INCREF(Py_None); resultobj = Py_None; | |
20980 | return resultobj; | |
20981 | fail: | |
20982 | return NULL; | |
20983 | } | |
20984 | ||
20985 | ||
20986 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20987 | PyObject *resultobj; | |
20988 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20989 | bool result; | |
20990 | PyObject * obj0 = 0 ; | |
20991 | char *kwnames[] = { | |
20992 | (char *) "self", NULL | |
20993 | }; | |
20994 | ||
20995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20998 | { |
20999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21000 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21001 | ||
21002 | wxPyEndAllowThreads(__tstate); | |
21003 | if (PyErr_Occurred()) SWIG_fail; | |
21004 | } | |
4f89f6a3 RD |
21005 | { |
21006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21007 | } | |
41f1cec7 RD |
21008 | return resultobj; |
21009 | fail: | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21015 | PyObject *obj; | |
21016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21017 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21018 | Py_INCREF(obj); | |
21019 | return Py_BuildValue((char *)""); | |
21020 | } | |
2f4c0a16 | 21021 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { |
41f1cec7 RD |
21022 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21023 | return 1; | |
21024 | } | |
21025 | ||
21026 | ||
21027 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21028 | PyObject *pyobj; | |
21029 | ||
2f4c0a16 | 21030 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
41f1cec7 RD |
21031 | return pyobj; |
21032 | } | |
21033 | ||
21034 | ||
21035 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21036 | PyObject *resultobj; | |
21037 | wxString *arg1 = 0 ; | |
21038 | wxAcceleratorEntry *result; | |
21039 | bool temp1 = False ; | |
21040 | PyObject * obj0 = 0 ; | |
21041 | char *kwnames[] = { | |
21042 | (char *) "label", NULL | |
21043 | }; | |
21044 | ||
21045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21046 | { | |
21047 | arg1 = wxString_in_helper(obj0); | |
21048 | if (arg1 == NULL) SWIG_fail; | |
21049 | temp1 = True; | |
21050 | } | |
21051 | { | |
21052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21053 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21054 | ||
21055 | wxPyEndAllowThreads(__tstate); | |
21056 | if (PyErr_Occurred()) SWIG_fail; | |
21057 | } | |
2f4c0a16 | 21058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
41f1cec7 RD |
21059 | { |
21060 | if (temp1) | |
21061 | delete arg1; | |
21062 | } | |
21063 | return resultobj; | |
21064 | fail: | |
21065 | { | |
21066 | if (temp1) | |
21067 | delete arg1; | |
21068 | } | |
21069 | return NULL; | |
21070 | } | |
21071 | ||
21072 | ||
2f4c0a16 | 21073 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
423f194a RD |
21074 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21075 | return 1; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_PanelNameStr_get() { | |
21080 | PyObject *pyobj; | |
21081 | ||
21082 | { | |
21083 | #if wxUSE_UNICODE | |
21084 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21085 | #else | |
21086 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21087 | #endif | |
21088 | } | |
21089 | return pyobj; | |
21090 | } | |
21091 | ||
21092 | ||
d14a1e28 RD |
21093 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21094 | PyObject *resultobj; | |
21095 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21096 | int arg2 ; |
d14a1e28 RD |
21097 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21098 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21099 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21100 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21101 | long arg5 = (long) 0 ; | |
21102 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21103 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21104 | wxWindow *result; | |
21105 | wxPoint temp3 ; | |
21106 | wxSize temp4 ; | |
423f194a | 21107 | bool temp6 = False ; |
d14a1e28 | 21108 | PyObject * obj0 = 0 ; |
8edf1c75 | 21109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21110 | PyObject * obj2 = 0 ; |
21111 | PyObject * obj3 = 0 ; | |
8edf1c75 | 21112 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21113 | PyObject * obj5 = 0 ; |
21114 | char *kwnames[] = { | |
21115 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21116 | }; | |
21117 | ||
8edf1c75 | 21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21121 | arg2 = (int const) SWIG_AsInt(obj1); | |
21122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21123 | if (obj2) { |
21124 | { | |
21125 | arg3 = &temp3; | |
21126 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21127 | } | |
21128 | } | |
21129 | if (obj3) { | |
21130 | { | |
21131 | arg4 = &temp4; | |
21132 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21133 | } | |
21134 | } | |
8edf1c75 | 21135 | if (obj4) { |
2f4c0a16 RD |
21136 | arg5 = (long) SWIG_AsLong(obj4); |
21137 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21138 | } |
d14a1e28 RD |
21139 | if (obj5) { |
21140 | { | |
21141 | arg6 = wxString_in_helper(obj5); | |
21142 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 21143 | temp6 = True; |
d14a1e28 RD |
21144 | } |
21145 | } | |
21146 | { | |
21147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21148 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21149 | ||
21150 | wxPyEndAllowThreads(__tstate); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | } | |
21153 | { | |
21154 | resultobj = wxPyMake_wxObject(result); | |
21155 | } | |
21156 | { | |
21157 | if (temp6) | |
21158 | delete arg6; | |
21159 | } | |
21160 | return resultobj; | |
21161 | fail: | |
21162 | { | |
21163 | if (temp6) | |
21164 | delete arg6; | |
21165 | } | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21171 | PyObject *resultobj; | |
21172 | wxWindow *result; | |
21173 | char *kwnames[] = { | |
21174 | NULL | |
21175 | }; | |
21176 | ||
21177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21178 | { | |
21179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21180 | result = (wxWindow *)new wxWindow(); | |
21181 | ||
21182 | wxPyEndAllowThreads(__tstate); | |
21183 | if (PyErr_Occurred()) SWIG_fail; | |
21184 | } | |
21185 | { | |
21186 | resultobj = wxPyMake_wxObject(result); | |
21187 | } | |
21188 | return resultobj; | |
21189 | fail: | |
21190 | return NULL; | |
21191 | } | |
21192 | ||
21193 | ||
21194 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21195 | PyObject *resultobj; | |
21196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 21198 | int arg3 ; |
d14a1e28 RD |
21199 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21200 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21201 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21202 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21203 | long arg6 = (long) 0 ; | |
21204 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21205 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21206 | bool result; | |
21207 | wxPoint temp4 ; | |
21208 | wxSize temp5 ; | |
423f194a | 21209 | bool temp7 = False ; |
d14a1e28 RD |
21210 | PyObject * obj0 = 0 ; |
21211 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21212 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21213 | PyObject * obj3 = 0 ; |
21214 | PyObject * obj4 = 0 ; | |
8edf1c75 | 21215 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21216 | PyObject * obj6 = 0 ; |
21217 | char *kwnames[] = { | |
21218 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21219 | }; | |
21220 | ||
8edf1c75 | 21221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
21222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21226 | arg3 = (int const) SWIG_AsInt(obj2); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21228 | if (obj3) { |
21229 | { | |
21230 | arg4 = &temp4; | |
21231 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21232 | } | |
21233 | } | |
21234 | if (obj4) { | |
21235 | { | |
21236 | arg5 = &temp5; | |
21237 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21238 | } | |
21239 | } | |
8edf1c75 | 21240 | if (obj5) { |
2f4c0a16 RD |
21241 | arg6 = (long) SWIG_AsLong(obj5); |
21242 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21243 | } |
d14a1e28 RD |
21244 | if (obj6) { |
21245 | { | |
21246 | arg7 = wxString_in_helper(obj6); | |
21247 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 21248 | temp7 = True; |
d14a1e28 RD |
21249 | } |
21250 | } | |
21251 | { | |
21252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21253 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21254 | ||
21255 | wxPyEndAllowThreads(__tstate); | |
21256 | if (PyErr_Occurred()) SWIG_fail; | |
21257 | } | |
4f89f6a3 RD |
21258 | { |
21259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21260 | } | |
d14a1e28 RD |
21261 | { |
21262 | if (temp7) | |
21263 | delete arg7; | |
21264 | } | |
21265 | return resultobj; | |
21266 | fail: | |
21267 | { | |
21268 | if (temp7) | |
21269 | delete arg7; | |
21270 | } | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
21275 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21276 | PyObject *resultobj; | |
21277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21278 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21279 | bool result; |
21280 | PyObject * obj0 = 0 ; | |
21281 | PyObject * obj1 = 0 ; | |
21282 | char *kwnames[] = { | |
21283 | (char *) "self",(char *) "force", NULL | |
21284 | }; | |
21285 | ||
21286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21289 | if (obj1) { |
2f4c0a16 RD |
21290 | arg2 = (bool) SWIG_AsBool(obj1); |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21292 | } |
21293 | { | |
21294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21295 | result = (bool)(arg1)->Close(arg2); | |
21296 | ||
21297 | wxPyEndAllowThreads(__tstate); | |
21298 | if (PyErr_Occurred()) SWIG_fail; | |
21299 | } | |
4f89f6a3 RD |
21300 | { |
21301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21302 | } | |
d14a1e28 RD |
21303 | return resultobj; |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21312 | bool result; | |
21313 | PyObject * obj0 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "self", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21321 | { |
21322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21323 | result = (bool)(arg1)->Destroy(); | |
21324 | ||
21325 | wxPyEndAllowThreads(__tstate); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
4f89f6a3 RD |
21328 | { |
21329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21330 | } | |
d14a1e28 RD |
21331 | return resultobj; |
21332 | fail: | |
21333 | return NULL; | |
21334 | } | |
21335 | ||
21336 | ||
21337 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21338 | PyObject *resultobj; | |
21339 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21340 | bool result; | |
21341 | PyObject * obj0 = 0 ; | |
21342 | char *kwnames[] = { | |
21343 | (char *) "self", NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21349 | { |
21350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21351 | result = (bool)(arg1)->DestroyChildren(); | |
21352 | ||
21353 | wxPyEndAllowThreads(__tstate); | |
21354 | if (PyErr_Occurred()) SWIG_fail; | |
21355 | } | |
4f89f6a3 RD |
21356 | { |
21357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21358 | } | |
d14a1e28 RD |
21359 | return resultobj; |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
21365 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21366 | PyObject *resultobj; | |
21367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21368 | bool result; | |
21369 | PyObject * obj0 = 0 ; | |
21370 | char *kwnames[] = { | |
21371 | (char *) "self", NULL | |
21372 | }; | |
21373 | ||
21374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21377 | { |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
4f89f6a3 RD |
21384 | { |
21385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21386 | } | |
d14a1e28 RD |
21387 | return resultobj; |
21388 | fail: | |
21389 | return NULL; | |
21390 | } | |
21391 | ||
21392 | ||
21393 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21394 | PyObject *resultobj; | |
21395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21396 | wxString *arg2 = 0 ; | |
423f194a | 21397 | bool temp2 = False ; |
d14a1e28 RD |
21398 | PyObject * obj0 = 0 ; |
21399 | PyObject * obj1 = 0 ; | |
21400 | char *kwnames[] = { | |
21401 | (char *) "self",(char *) "title", NULL | |
21402 | }; | |
21403 | ||
21404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21407 | { |
21408 | arg2 = wxString_in_helper(obj1); | |
21409 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21410 | temp2 = True; |
d14a1e28 RD |
21411 | } |
21412 | { | |
21413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21414 | (arg1)->SetTitle((wxString const &)*arg2); | |
21415 | ||
21416 | wxPyEndAllowThreads(__tstate); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
21419 | Py_INCREF(Py_None); resultobj = Py_None; | |
21420 | { | |
21421 | if (temp2) | |
21422 | delete arg2; | |
21423 | } | |
21424 | return resultobj; | |
21425 | fail: | |
21426 | { | |
21427 | if (temp2) | |
21428 | delete arg2; | |
21429 | } | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
21434 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21435 | PyObject *resultobj; | |
21436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21437 | wxString result; | |
21438 | PyObject * obj0 = 0 ; | |
21439 | char *kwnames[] = { | |
21440 | (char *) "self", NULL | |
21441 | }; | |
21442 | ||
21443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21446 | { |
21447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21448 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21449 | ||
21450 | wxPyEndAllowThreads(__tstate); | |
21451 | if (PyErr_Occurred()) SWIG_fail; | |
21452 | } | |
21453 | { | |
21454 | #if wxUSE_UNICODE | |
21455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21456 | #else | |
21457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21458 | #endif | |
21459 | } | |
21460 | return resultobj; | |
21461 | fail: | |
21462 | return NULL; | |
21463 | } | |
21464 | ||
21465 | ||
21466 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21467 | PyObject *resultobj; | |
21468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21469 | wxString *arg2 = 0 ; | |
423f194a | 21470 | bool temp2 = False ; |
d14a1e28 RD |
21471 | PyObject * obj0 = 0 ; |
21472 | PyObject * obj1 = 0 ; | |
21473 | char *kwnames[] = { | |
21474 | (char *) "self",(char *) "label", NULL | |
21475 | }; | |
21476 | ||
21477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",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 = wxString_in_helper(obj1); | |
21482 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21483 | temp2 = True; |
d14a1e28 RD |
21484 | } |
21485 | { | |
21486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21487 | (arg1)->SetLabel((wxString const &)*arg2); | |
21488 | ||
21489 | wxPyEndAllowThreads(__tstate); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
21492 | Py_INCREF(Py_None); resultobj = Py_None; | |
21493 | { | |
21494 | if (temp2) | |
21495 | delete arg2; | |
21496 | } | |
21497 | return resultobj; | |
21498 | fail: | |
21499 | { | |
21500 | if (temp2) | |
21501 | delete arg2; | |
21502 | } | |
21503 | return NULL; | |
21504 | } | |
21505 | ||
21506 | ||
21507 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21508 | PyObject *resultobj; | |
21509 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21510 | wxString result; | |
21511 | PyObject * obj0 = 0 ; | |
21512 | char *kwnames[] = { | |
21513 | (char *) "self", NULL | |
21514 | }; | |
21515 | ||
21516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21519 | { |
21520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21521 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21522 | ||
21523 | wxPyEndAllowThreads(__tstate); | |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
21525 | } | |
21526 | { | |
21527 | #if wxUSE_UNICODE | |
21528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21529 | #else | |
21530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21531 | #endif | |
21532 | } | |
21533 | return resultobj; | |
21534 | fail: | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21540 | PyObject *resultobj; | |
21541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21542 | wxString *arg2 = 0 ; | |
423f194a | 21543 | bool temp2 = False ; |
d14a1e28 RD |
21544 | PyObject * obj0 = 0 ; |
21545 | PyObject * obj1 = 0 ; | |
21546 | char *kwnames[] = { | |
21547 | (char *) "self",(char *) "name", NULL | |
21548 | }; | |
21549 | ||
21550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21553 | { |
21554 | arg2 = wxString_in_helper(obj1); | |
21555 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21556 | temp2 = True; |
d14a1e28 RD |
21557 | } |
21558 | { | |
21559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21560 | (arg1)->SetName((wxString const &)*arg2); | |
21561 | ||
21562 | wxPyEndAllowThreads(__tstate); | |
21563 | if (PyErr_Occurred()) SWIG_fail; | |
21564 | } | |
21565 | Py_INCREF(Py_None); resultobj = Py_None; | |
21566 | { | |
21567 | if (temp2) | |
21568 | delete arg2; | |
21569 | } | |
21570 | return resultobj; | |
21571 | fail: | |
21572 | { | |
21573 | if (temp2) | |
21574 | delete arg2; | |
21575 | } | |
21576 | return NULL; | |
21577 | } | |
21578 | ||
21579 | ||
21580 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21581 | PyObject *resultobj; | |
21582 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21583 | wxString result; | |
21584 | PyObject * obj0 = 0 ; | |
21585 | char *kwnames[] = { | |
21586 | (char *) "self", NULL | |
21587 | }; | |
21588 | ||
21589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21592 | { |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | result = ((wxWindow const *)arg1)->GetName(); | |
21595 | ||
21596 | wxPyEndAllowThreads(__tstate); | |
21597 | if (PyErr_Occurred()) SWIG_fail; | |
21598 | } | |
21599 | { | |
21600 | #if wxUSE_UNICODE | |
21601 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21602 | #else | |
21603 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21604 | #endif | |
21605 | } | |
21606 | return resultobj; | |
21607 | fail: | |
21608 | return NULL; | |
21609 | } | |
21610 | ||
21611 | ||
fe763115 RD |
21612 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21613 | PyObject *resultobj; | |
21614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21615 | int arg2 ; | |
21616 | PyObject * obj0 = 0 ; | |
21617 | PyObject * obj1 = 0 ; | |
21618 | char *kwnames[] = { | |
21619 | (char *) "self",(char *) "variant", NULL | |
21620 | }; | |
21621 | ||
21622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21625 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
21627 | { | |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | Py_INCREF(Py_None); resultobj = Py_None; | |
21635 | return resultobj; | |
21636 | fail: | |
21637 | return NULL; | |
21638 | } | |
21639 | ||
21640 | ||
21641 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21642 | PyObject *resultobj; | |
21643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21644 | int result; | |
21645 | PyObject * obj0 = 0 ; | |
21646 | char *kwnames[] = { | |
21647 | (char *) "self", NULL | |
21648 | }; | |
21649 | ||
21650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21653 | { | |
21654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21655 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21656 | ||
21657 | wxPyEndAllowThreads(__tstate); | |
21658 | if (PyErr_Occurred()) SWIG_fail; | |
21659 | } | |
21660 | resultobj = SWIG_FromInt((int)result); | |
21661 | return resultobj; | |
21662 | fail: | |
21663 | return NULL; | |
21664 | } | |
21665 | ||
21666 | ||
d14a1e28 RD |
21667 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
21668 | PyObject *resultobj; | |
21669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21670 | int arg2 ; |
d14a1e28 | 21671 | PyObject * obj0 = 0 ; |
8edf1c75 | 21672 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21673 | char *kwnames[] = { |
21674 | (char *) "self",(char *) "winid", NULL | |
21675 | }; | |
21676 | ||
8edf1c75 | 21677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21680 | arg2 = (int) SWIG_AsInt(obj1); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21682 | { |
21683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21684 | (arg1)->SetId(arg2); | |
21685 | ||
21686 | wxPyEndAllowThreads(__tstate); | |
21687 | if (PyErr_Occurred()) SWIG_fail; | |
21688 | } | |
21689 | Py_INCREF(Py_None); resultobj = Py_None; | |
21690 | return resultobj; | |
21691 | fail: | |
21692 | return NULL; | |
21693 | } | |
21694 | ||
21695 | ||
21696 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21697 | PyObject *resultobj; | |
21698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21699 | int result; |
d14a1e28 RD |
21700 | PyObject * obj0 = 0 ; |
21701 | char *kwnames[] = { | |
21702 | (char *) "self", NULL | |
21703 | }; | |
21704 | ||
21705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21708 | { |
21709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21710 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21711 | |
21712 | wxPyEndAllowThreads(__tstate); | |
21713 | if (PyErr_Occurred()) SWIG_fail; | |
21714 | } | |
2f4c0a16 | 21715 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21716 | return resultobj; |
21717 | fail: | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj; | |
21724 | int result; | |
21725 | char *kwnames[] = { | |
21726 | NULL | |
21727 | }; | |
21728 | ||
21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21730 | { | |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21732 | result = (int)wxWindow::NewControlId(); | |
21733 | ||
21734 | wxPyEndAllowThreads(__tstate); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
2f4c0a16 | 21737 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21738 | return resultobj; |
21739 | fail: | |
21740 | return NULL; | |
21741 | } | |
21742 | ||
21743 | ||
21744 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21745 | PyObject *resultobj; | |
21746 | int arg1 ; | |
21747 | int result; | |
8edf1c75 | 21748 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21749 | char *kwnames[] = { |
21750 | (char *) "winid", NULL | |
21751 | }; | |
21752 | ||
8edf1c75 | 21753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21754 | arg1 = (int) SWIG_AsInt(obj0); |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21756 | { |
21757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21758 | result = (int)wxWindow::NextControlId(arg1); | |
21759 | ||
21760 | wxPyEndAllowThreads(__tstate); | |
21761 | if (PyErr_Occurred()) SWIG_fail; | |
21762 | } | |
2f4c0a16 | 21763 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21764 | return resultobj; |
21765 | fail: | |
21766 | return NULL; | |
21767 | } | |
21768 | ||
21769 | ||
21770 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21771 | PyObject *resultobj; | |
21772 | int arg1 ; | |
21773 | int result; | |
8edf1c75 | 21774 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21775 | char *kwnames[] = { |
21776 | (char *) "winid", NULL | |
21777 | }; | |
21778 | ||
8edf1c75 | 21779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21780 | arg1 = (int) SWIG_AsInt(obj0); |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21782 | { |
21783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21784 | result = (int)wxWindow::PrevControlId(arg1); | |
21785 | ||
21786 | wxPyEndAllowThreads(__tstate); | |
21787 | if (PyErr_Occurred()) SWIG_fail; | |
21788 | } | |
2f4c0a16 | 21789 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21790 | return resultobj; |
21791 | fail: | |
21792 | return NULL; | |
21793 | } | |
21794 | ||
21795 | ||
21796 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21797 | PyObject *resultobj; | |
21798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21799 | wxSize *arg2 = 0 ; | |
21800 | wxSize temp2 ; | |
21801 | PyObject * obj0 = 0 ; | |
21802 | PyObject * obj1 = 0 ; | |
21803 | char *kwnames[] = { | |
21804 | (char *) "self",(char *) "size", NULL | |
21805 | }; | |
21806 | ||
21807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21810 | { |
21811 | arg2 = &temp2; | |
21812 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21813 | } | |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | (arg1)->SetSize((wxSize const &)*arg2); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | Py_INCREF(Py_None); resultobj = Py_None; | |
21822 | return resultobj; | |
21823 | fail: | |
21824 | return NULL; | |
21825 | } | |
21826 | ||
21827 | ||
21828 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21829 | PyObject *resultobj; | |
21830 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21831 | int arg2 ; | |
21832 | int arg3 ; | |
21833 | int arg4 ; | |
21834 | int arg5 ; | |
21835 | int arg6 = (int) wxSIZE_AUTO ; | |
21836 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21837 | PyObject * obj1 = 0 ; |
21838 | PyObject * obj2 = 0 ; | |
21839 | PyObject * obj3 = 0 ; | |
21840 | PyObject * obj4 = 0 ; | |
21841 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21842 | char *kwnames[] = { |
21843 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21844 | }; | |
21845 | ||
8edf1c75 | 21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21849 | arg2 = (int) SWIG_AsInt(obj1); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
21851 | arg3 = (int) SWIG_AsInt(obj2); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | arg4 = (int) SWIG_AsInt(obj3); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | arg5 = (int) SWIG_AsInt(obj4); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21857 | if (obj5) { |
2f4c0a16 RD |
21858 | arg6 = (int) SWIG_AsInt(obj5); |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21860 | } |
d14a1e28 RD |
21861 | { |
21862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21863 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21864 | ||
21865 | wxPyEndAllowThreads(__tstate); | |
21866 | if (PyErr_Occurred()) SWIG_fail; | |
21867 | } | |
21868 | Py_INCREF(Py_None); resultobj = Py_None; | |
21869 | return resultobj; | |
21870 | fail: | |
21871 | return NULL; | |
21872 | } | |
21873 | ||
21874 | ||
21875 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21876 | PyObject *resultobj; | |
21877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21878 | wxRect *arg2 = 0 ; | |
21879 | int arg3 = (int) wxSIZE_AUTO ; | |
21880 | wxRect temp2 ; | |
21881 | PyObject * obj0 = 0 ; | |
21882 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21883 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21884 | char *kwnames[] = { |
21885 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21886 | }; | |
21887 | ||
8edf1c75 | 21888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21891 | { |
21892 | arg2 = &temp2; | |
21893 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21894 | } | |
8edf1c75 | 21895 | if (obj2) { |
2f4c0a16 RD |
21896 | arg3 = (int) SWIG_AsInt(obj2); |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21898 | } |
d14a1e28 RD |
21899 | { |
21900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21901 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21902 | ||
21903 | wxPyEndAllowThreads(__tstate); | |
21904 | if (PyErr_Occurred()) SWIG_fail; | |
21905 | } | |
21906 | Py_INCREF(Py_None); resultobj = Py_None; | |
21907 | return resultobj; | |
21908 | fail: | |
21909 | return NULL; | |
21910 | } | |
21911 | ||
21912 | ||
21913 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21914 | PyObject *resultobj; | |
21915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21916 | int arg2 ; | |
21917 | int arg3 ; | |
21918 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21919 | PyObject * obj1 = 0 ; |
21920 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21921 | char *kwnames[] = { |
21922 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21923 | }; | |
21924 | ||
8edf1c75 | 21925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21928 | arg2 = (int) SWIG_AsInt(obj1); | |
21929 | if (PyErr_Occurred()) SWIG_fail; | |
21930 | arg3 = (int) SWIG_AsInt(obj2); | |
21931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21932 | { |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | (arg1)->SetSize(arg2,arg3); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | Py_INCREF(Py_None); resultobj = Py_None; | |
21940 | return resultobj; | |
21941 | fail: | |
21942 | return NULL; | |
21943 | } | |
21944 | ||
21945 | ||
21946 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21947 | PyObject *resultobj; | |
21948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21949 | wxPoint *arg2 = 0 ; | |
21950 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21951 | wxPoint temp2 ; | |
21952 | PyObject * obj0 = 0 ; | |
21953 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21954 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21955 | char *kwnames[] = { |
21956 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21957 | }; | |
21958 | ||
8edf1c75 | 21959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21962 | { |
21963 | arg2 = &temp2; | |
21964 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21965 | } | |
8edf1c75 | 21966 | if (obj2) { |
2f4c0a16 RD |
21967 | arg3 = (int) SWIG_AsInt(obj2); |
21968 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21969 | } |
d14a1e28 RD |
21970 | { |
21971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21972 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21973 | ||
21974 | wxPyEndAllowThreads(__tstate); | |
21975 | if (PyErr_Occurred()) SWIG_fail; | |
21976 | } | |
21977 | Py_INCREF(Py_None); resultobj = Py_None; | |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21987 | int arg2 ; | |
21988 | int arg3 ; | |
21989 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21990 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21991 | PyObject * obj1 = 0 ; |
21992 | PyObject * obj2 = 0 ; | |
21993 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21994 | char *kwnames[] = { |
21995 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
21996 | }; | |
21997 | ||
8edf1c75 | 21998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22001 | arg2 = (int) SWIG_AsInt(obj1); | |
22002 | if (PyErr_Occurred()) SWIG_fail; | |
22003 | arg3 = (int) SWIG_AsInt(obj2); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22005 | if (obj3) { |
2f4c0a16 RD |
22006 | arg4 = (int) SWIG_AsInt(obj3); |
22007 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22008 | } |
d14a1e28 RD |
22009 | { |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22011 | (arg1)->Move(arg2,arg3,arg4); | |
22012 | ||
22013 | wxPyEndAllowThreads(__tstate); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | } | |
22016 | Py_INCREF(Py_None); resultobj = Py_None; | |
22017 | return resultobj; | |
22018 | fail: | |
22019 | return NULL; | |
22020 | } | |
22021 | ||
22022 | ||
22023 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22024 | PyObject *resultobj; | |
22025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22026 | PyObject * obj0 = 0 ; | |
22027 | char *kwnames[] = { | |
22028 | (char *) "self", NULL | |
22029 | }; | |
22030 | ||
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22034 | { |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22036 | (arg1)->Raise(); | |
22037 | ||
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | Py_INCREF(Py_None); resultobj = Py_None; | |
22042 | return resultobj; | |
22043 | fail: | |
22044 | return NULL; | |
22045 | } | |
22046 | ||
22047 | ||
22048 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22049 | PyObject *resultobj; | |
22050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22051 | PyObject * obj0 = 0 ; | |
22052 | char *kwnames[] = { | |
22053 | (char *) "self", NULL | |
22054 | }; | |
22055 | ||
22056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22059 | { |
22060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22061 | (arg1)->Lower(); | |
22062 | ||
22063 | wxPyEndAllowThreads(__tstate); | |
22064 | if (PyErr_Occurred()) SWIG_fail; | |
22065 | } | |
22066 | Py_INCREF(Py_None); resultobj = Py_None; | |
22067 | return resultobj; | |
22068 | fail: | |
22069 | return NULL; | |
22070 | } | |
22071 | ||
22072 | ||
22073 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22074 | PyObject *resultobj; | |
22075 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22076 | wxSize *arg2 = 0 ; | |
22077 | wxSize temp2 ; | |
22078 | PyObject * obj0 = 0 ; | |
22079 | PyObject * obj1 = 0 ; | |
22080 | char *kwnames[] = { | |
22081 | (char *) "self",(char *) "size", NULL | |
22082 | }; | |
22083 | ||
22084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22087 | { |
22088 | arg2 = &temp2; | |
22089 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22090 | } | |
22091 | { | |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | Py_INCREF(Py_None); resultobj = Py_None; | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22108 | int arg2 ; | |
22109 | int arg3 ; | |
22110 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22111 | PyObject * obj1 = 0 ; |
22112 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22113 | char *kwnames[] = { |
22114 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22115 | }; | |
22116 | ||
8edf1c75 | 22117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22120 | arg2 = (int) SWIG_AsInt(obj1); | |
22121 | if (PyErr_Occurred()) SWIG_fail; | |
22122 | arg3 = (int) SWIG_AsInt(obj2); | |
22123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22124 | { |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | (arg1)->SetClientSize(arg2,arg3); | |
22127 | ||
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | Py_INCREF(Py_None); resultobj = Py_None; | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
22138 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22139 | PyObject *resultobj; | |
22140 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22141 | wxRect *arg2 = 0 ; | |
22142 | wxRect temp2 ; | |
22143 | PyObject * obj0 = 0 ; | |
22144 | PyObject * obj1 = 0 ; | |
22145 | char *kwnames[] = { | |
22146 | (char *) "self",(char *) "rect", NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22152 | { |
22153 | arg2 = &temp2; | |
22154 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22155 | } | |
22156 | { | |
22157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22158 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22159 | ||
22160 | wxPyEndAllowThreads(__tstate); | |
22161 | if (PyErr_Occurred()) SWIG_fail; | |
22162 | } | |
22163 | Py_INCREF(Py_None); resultobj = Py_None; | |
22164 | return resultobj; | |
22165 | fail: | |
22166 | return NULL; | |
22167 | } | |
22168 | ||
22169 | ||
22170 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22171 | PyObject *resultobj; | |
22172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22173 | wxPoint result; | |
22174 | PyObject * obj0 = 0 ; | |
22175 | char *kwnames[] = { | |
22176 | (char *) "self", NULL | |
22177 | }; | |
22178 | ||
22179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22182 | { |
22183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 22184 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22185 | |
22186 | wxPyEndAllowThreads(__tstate); | |
22187 | if (PyErr_Occurred()) SWIG_fail; | |
22188 | } | |
22189 | { | |
22190 | wxPoint * resultptr; | |
22191 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22192 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22193 | } |
22194 | return resultobj; | |
22195 | fail: | |
22196 | return NULL; | |
22197 | } | |
22198 | ||
22199 | ||
22200 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22201 | PyObject *resultobj; | |
22202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22203 | int *arg2 = (int *) 0 ; | |
22204 | int *arg3 = (int *) 0 ; | |
22205 | int temp2 ; | |
22206 | int temp3 ; | |
22207 | PyObject * obj0 = 0 ; | |
22208 | char *kwnames[] = { | |
22209 | (char *) "self", NULL | |
22210 | }; | |
22211 | ||
22212 | arg2 = &temp2; | |
22213 | arg3 = &temp3; | |
22214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22217 | { |
22218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 22219 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22220 | |
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
22224 | Py_INCREF(Py_None); resultobj = Py_None; | |
22225 | { | |
22226 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22227 | resultobj = t_output_helper(resultobj,o); | |
22228 | } | |
22229 | { | |
22230 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22231 | resultobj = t_output_helper(resultobj,o); | |
22232 | } | |
22233 | return resultobj; | |
22234 | fail: | |
22235 | return NULL; | |
22236 | } | |
22237 | ||
22238 | ||
22239 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22240 | PyObject *resultobj; | |
22241 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22242 | wxSize result; | |
22243 | PyObject * obj0 = 0 ; | |
22244 | char *kwnames[] = { | |
22245 | (char *) "self", NULL | |
22246 | }; | |
22247 | ||
22248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22251 | { |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | result = ((wxWindow const *)arg1)->GetSize(); | |
22254 | ||
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
22258 | { | |
22259 | wxSize * resultptr; | |
22260 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22262 | } |
22263 | return resultobj; | |
22264 | fail: | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
22269 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22270 | PyObject *resultobj; | |
22271 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22272 | int *arg2 = (int *) 0 ; | |
22273 | int *arg3 = (int *) 0 ; | |
22274 | int temp2 ; | |
22275 | int temp3 ; | |
22276 | PyObject * obj0 = 0 ; | |
22277 | char *kwnames[] = { | |
22278 | (char *) "self", NULL | |
22279 | }; | |
22280 | ||
22281 | arg2 = &temp2; | |
22282 | arg3 = &temp3; | |
22283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22286 | { |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
22293 | Py_INCREF(Py_None); resultobj = Py_None; | |
22294 | { | |
22295 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22296 | resultobj = t_output_helper(resultobj,o); | |
22297 | } | |
22298 | { | |
22299 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22300 | resultobj = t_output_helper(resultobj,o); | |
22301 | } | |
22302 | return resultobj; | |
22303 | fail: | |
22304 | return NULL; | |
22305 | } | |
22306 | ||
22307 | ||
22308 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22309 | PyObject *resultobj; | |
22310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22311 | wxRect result; | |
22312 | PyObject * obj0 = 0 ; | |
22313 | char *kwnames[] = { | |
22314 | (char *) "self", NULL | |
22315 | }; | |
22316 | ||
22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22320 | { |
22321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22322 | result = ((wxWindow const *)arg1)->GetRect(); | |
22323 | ||
22324 | wxPyEndAllowThreads(__tstate); | |
22325 | if (PyErr_Occurred()) SWIG_fail; | |
22326 | } | |
22327 | { | |
22328 | wxRect * resultptr; | |
22329 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22331 | } |
22332 | return resultobj; | |
22333 | fail: | |
22334 | return NULL; | |
22335 | } | |
22336 | ||
22337 | ||
22338 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22339 | PyObject *resultobj; | |
22340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22341 | wxSize result; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | char *kwnames[] = { | |
22344 | (char *) "self", NULL | |
22345 | }; | |
22346 | ||
22347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22350 | { |
22351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22352 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22353 | ||
22354 | wxPyEndAllowThreads(__tstate); | |
22355 | if (PyErr_Occurred()) SWIG_fail; | |
22356 | } | |
22357 | { | |
22358 | wxSize * resultptr; | |
22359 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22360 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22361 | } |
22362 | return resultobj; | |
22363 | fail: | |
22364 | return NULL; | |
22365 | } | |
22366 | ||
22367 | ||
22368 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22369 | PyObject *resultobj; | |
22370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22371 | int *arg2 = (int *) 0 ; | |
22372 | int *arg3 = (int *) 0 ; | |
22373 | int temp2 ; | |
22374 | int temp3 ; | |
22375 | PyObject * obj0 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self", NULL | |
22378 | }; | |
22379 | ||
22380 | arg2 = &temp2; | |
22381 | arg3 = &temp3; | |
22382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22385 | { |
22386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22387 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22388 | ||
22389 | wxPyEndAllowThreads(__tstate); | |
22390 | if (PyErr_Occurred()) SWIG_fail; | |
22391 | } | |
22392 | Py_INCREF(Py_None); resultobj = Py_None; | |
22393 | { | |
22394 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22395 | resultobj = t_output_helper(resultobj,o); | |
22396 | } | |
22397 | { | |
22398 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22399 | resultobj = t_output_helper(resultobj,o); | |
22400 | } | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
22404 | } | |
22405 | ||
22406 | ||
22407 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22408 | PyObject *resultobj; | |
22409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22410 | wxPoint result; | |
22411 | PyObject * obj0 = 0 ; | |
22412 | char *kwnames[] = { | |
22413 | (char *) "self", NULL | |
22414 | }; | |
22415 | ||
22416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22419 | { |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22422 | ||
22423 | wxPyEndAllowThreads(__tstate); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
22425 | } | |
22426 | { | |
22427 | wxPoint * resultptr; | |
22428 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22430 | } |
22431 | return resultobj; | |
22432 | fail: | |
22433 | return NULL; | |
22434 | } | |
22435 | ||
22436 | ||
22437 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22438 | PyObject *resultobj; | |
22439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22440 | wxRect result; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | char *kwnames[] = { | |
22443 | (char *) "self", NULL | |
22444 | }; | |
22445 | ||
22446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22449 | { |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22452 | ||
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
22456 | { | |
22457 | wxRect * resultptr; | |
22458 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22459 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22460 | } |
22461 | return resultobj; | |
22462 | fail: | |
22463 | return NULL; | |
22464 | } | |
22465 | ||
22466 | ||
22467 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22468 | PyObject *resultobj; | |
22469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22470 | wxSize result; | |
22471 | PyObject * obj0 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self", NULL | |
22474 | }; | |
22475 | ||
22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22479 | { |
22480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22481 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22482 | ||
22483 | wxPyEndAllowThreads(__tstate); | |
22484 | if (PyErr_Occurred()) SWIG_fail; | |
22485 | } | |
22486 | { | |
22487 | wxSize * resultptr; | |
22488 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22489 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22490 | } |
22491 | return resultobj; | |
22492 | fail: | |
22493 | return NULL; | |
22494 | } | |
22495 | ||
22496 | ||
22497 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22498 | PyObject *resultobj; | |
22499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22500 | int *arg2 = (int *) 0 ; | |
22501 | int *arg3 = (int *) 0 ; | |
22502 | int temp2 ; | |
22503 | int temp3 ; | |
22504 | PyObject * obj0 = 0 ; | |
22505 | char *kwnames[] = { | |
22506 | (char *) "self", NULL | |
22507 | }; | |
22508 | ||
22509 | arg2 = &temp2; | |
22510 | arg3 = &temp3; | |
22511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22514 | { |
22515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22516 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22517 | ||
22518 | wxPyEndAllowThreads(__tstate); | |
22519 | if (PyErr_Occurred()) SWIG_fail; | |
22520 | } | |
22521 | Py_INCREF(Py_None); resultobj = Py_None; | |
22522 | { | |
22523 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22524 | resultobj = t_output_helper(resultobj,o); | |
22525 | } | |
22526 | { | |
22527 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22528 | resultobj = t_output_helper(resultobj,o); | |
22529 | } | |
22530 | return resultobj; | |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
22536 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22537 | PyObject *resultobj; | |
22538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22539 | wxSize result; | |
22540 | PyObject * obj0 = 0 ; | |
22541 | char *kwnames[] = { | |
22542 | (char *) "self", NULL | |
22543 | }; | |
22544 | ||
22545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22548 | { |
22549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22550 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22551 | ||
22552 | wxPyEndAllowThreads(__tstate); | |
22553 | if (PyErr_Occurred()) SWIG_fail; | |
22554 | } | |
22555 | { | |
22556 | wxSize * resultptr; | |
22557 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22558 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22559 | } |
22560 | return resultobj; | |
22561 | fail: | |
22562 | return NULL; | |
22563 | } | |
22564 | ||
22565 | ||
22566 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22567 | PyObject *resultobj; | |
22568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22569 | int arg2 = (int) wxBOTH ; | |
22570 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22572 | char *kwnames[] = { |
22573 | (char *) "self",(char *) "direction", NULL | |
22574 | }; | |
22575 | ||
8edf1c75 | 22576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22579 | if (obj1) { |
2f4c0a16 RD |
22580 | arg2 = (int) SWIG_AsInt(obj1); |
22581 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22582 | } |
d14a1e28 RD |
22583 | { |
22584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22585 | (arg1)->Center(arg2); | |
22586 | ||
22587 | wxPyEndAllowThreads(__tstate); | |
22588 | if (PyErr_Occurred()) SWIG_fail; | |
22589 | } | |
22590 | Py_INCREF(Py_None); resultobj = Py_None; | |
22591 | return resultobj; | |
22592 | fail: | |
22593 | return NULL; | |
22594 | } | |
22595 | ||
22596 | ||
22597 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22598 | PyObject *resultobj; | |
22599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22600 | int arg2 = (int) wxBOTH ; | |
22601 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22603 | char *kwnames[] = { |
22604 | (char *) "self",(char *) "dir", NULL | |
22605 | }; | |
22606 | ||
8edf1c75 | 22607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22610 | if (obj1) { |
2f4c0a16 RD |
22611 | arg2 = (int) SWIG_AsInt(obj1); |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22613 | } |
d14a1e28 RD |
22614 | { |
22615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22616 | (arg1)->CenterOnScreen(arg2); | |
22617 | ||
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
22621 | Py_INCREF(Py_None); resultobj = Py_None; | |
22622 | return resultobj; | |
22623 | fail: | |
22624 | return NULL; | |
22625 | } | |
22626 | ||
22627 | ||
22628 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22629 | PyObject *resultobj; | |
22630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22631 | int arg2 = (int) wxBOTH ; | |
22632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22634 | char *kwnames[] = { |
22635 | (char *) "self",(char *) "dir", NULL | |
22636 | }; | |
22637 | ||
8edf1c75 | 22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22641 | if (obj1) { |
2f4c0a16 RD |
22642 | arg2 = (int) SWIG_AsInt(obj1); |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22644 | } |
d14a1e28 RD |
22645 | { |
22646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22647 | (arg1)->CenterOnParent(arg2); | |
22648 | ||
22649 | wxPyEndAllowThreads(__tstate); | |
22650 | if (PyErr_Occurred()) SWIG_fail; | |
22651 | } | |
22652 | Py_INCREF(Py_None); resultobj = Py_None; | |
22653 | return resultobj; | |
22654 | fail: | |
22655 | return NULL; | |
22656 | } | |
22657 | ||
22658 | ||
22659 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22660 | PyObject *resultobj; | |
22661 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22662 | PyObject * obj0 = 0 ; | |
22663 | char *kwnames[] = { | |
22664 | (char *) "self", NULL | |
22665 | }; | |
22666 | ||
22667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22670 | { |
22671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22672 | (arg1)->Fit(); | |
22673 | ||
22674 | wxPyEndAllowThreads(__tstate); | |
22675 | if (PyErr_Occurred()) SWIG_fail; | |
22676 | } | |
22677 | Py_INCREF(Py_None); resultobj = Py_None; | |
22678 | return resultobj; | |
22679 | fail: | |
22680 | return NULL; | |
22681 | } | |
22682 | ||
22683 | ||
22684 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22685 | PyObject *resultobj; | |
22686 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | char *kwnames[] = { | |
22689 | (char *) "self", NULL | |
22690 | }; | |
22691 | ||
22692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22695 | { |
22696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22697 | (arg1)->FitInside(); | |
22698 | ||
22699 | wxPyEndAllowThreads(__tstate); | |
22700 | if (PyErr_Occurred()) SWIG_fail; | |
22701 | } | |
22702 | Py_INCREF(Py_None); resultobj = Py_None; | |
22703 | return resultobj; | |
22704 | fail: | |
22705 | return NULL; | |
22706 | } | |
22707 | ||
22708 | ||
22709 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22710 | PyObject *resultobj; | |
22711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22712 | int arg2 ; | |
22713 | int arg3 ; | |
22714 | int arg4 = (int) -1 ; | |
22715 | int arg5 = (int) -1 ; | |
22716 | int arg6 = (int) -1 ; | |
22717 | int arg7 = (int) -1 ; | |
22718 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22719 | PyObject * obj1 = 0 ; |
22720 | PyObject * obj2 = 0 ; | |
22721 | PyObject * obj3 = 0 ; | |
22722 | PyObject * obj4 = 0 ; | |
22723 | PyObject * obj5 = 0 ; | |
22724 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22725 | char *kwnames[] = { |
22726 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22727 | }; | |
22728 | ||
8edf1c75 | 22729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22732 | arg2 = (int) SWIG_AsInt(obj1); | |
22733 | if (PyErr_Occurred()) SWIG_fail; | |
22734 | arg3 = (int) SWIG_AsInt(obj2); | |
22735 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22736 | if (obj3) { |
2f4c0a16 RD |
22737 | arg4 = (int) SWIG_AsInt(obj3); |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22739 | } |
22740 | if (obj4) { | |
2f4c0a16 RD |
22741 | arg5 = (int) SWIG_AsInt(obj4); |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22743 | } |
22744 | if (obj5) { | |
2f4c0a16 RD |
22745 | arg6 = (int) SWIG_AsInt(obj5); |
22746 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22747 | } |
22748 | if (obj6) { | |
2f4c0a16 RD |
22749 | arg7 = (int) SWIG_AsInt(obj6); |
22750 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22751 | } |
d14a1e28 RD |
22752 | { |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22755 | ||
22756 | wxPyEndAllowThreads(__tstate); | |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
22758 | } | |
22759 | Py_INCREF(Py_None); resultobj = Py_None; | |
22760 | return resultobj; | |
22761 | fail: | |
22762 | return NULL; | |
22763 | } | |
22764 | ||
22765 | ||
22766 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22767 | PyObject *resultobj; | |
22768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22769 | int arg2 ; | |
22770 | int arg3 ; | |
22771 | int arg4 = (int) -1 ; | |
22772 | int arg5 = (int) -1 ; | |
22773 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22774 | PyObject * obj1 = 0 ; |
22775 | PyObject * obj2 = 0 ; | |
22776 | PyObject * obj3 = 0 ; | |
22777 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22778 | char *kwnames[] = { |
22779 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22780 | }; | |
22781 | ||
8edf1c75 | 22782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22785 | arg2 = (int) SWIG_AsInt(obj1); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | arg3 = (int) SWIG_AsInt(obj2); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22789 | if (obj3) { |
2f4c0a16 RD |
22790 | arg4 = (int) SWIG_AsInt(obj3); |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22792 | } |
22793 | if (obj4) { | |
2f4c0a16 RD |
22794 | arg5 = (int) SWIG_AsInt(obj4); |
22795 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22796 | } |
d14a1e28 RD |
22797 | { |
22798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22799 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22800 | ||
22801 | wxPyEndAllowThreads(__tstate); | |
22802 | if (PyErr_Occurred()) SWIG_fail; | |
22803 | } | |
22804 | Py_INCREF(Py_None); resultobj = Py_None; | |
22805 | return resultobj; | |
22806 | fail: | |
22807 | return NULL; | |
22808 | } | |
22809 | ||
22810 | ||
22811 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22812 | PyObject *resultobj; | |
22813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22814 | int result; | |
22815 | PyObject * obj0 = 0 ; | |
22816 | char *kwnames[] = { | |
22817 | (char *) "self", NULL | |
22818 | }; | |
22819 | ||
22820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",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 = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22826 | ||
22827 | wxPyEndAllowThreads(__tstate); | |
22828 | if (PyErr_Occurred()) SWIG_fail; | |
22829 | } | |
2f4c0a16 | 22830 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22831 | return resultobj; |
22832 | fail: | |
22833 | return NULL; | |
22834 | } | |
22835 | ||
22836 | ||
22837 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22838 | PyObject *resultobj; | |
22839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22840 | int result; | |
22841 | PyObject * obj0 = 0 ; | |
22842 | char *kwnames[] = { | |
22843 | (char *) "self", NULL | |
22844 | }; | |
22845 | ||
22846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22849 | { |
22850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22851 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22852 | ||
22853 | wxPyEndAllowThreads(__tstate); | |
22854 | if (PyErr_Occurred()) SWIG_fail; | |
22855 | } | |
2f4c0a16 | 22856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22857 | return resultobj; |
22858 | fail: | |
22859 | return NULL; | |
22860 | } | |
22861 | ||
22862 | ||
22863 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22864 | PyObject *resultobj; | |
22865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22866 | int result; | |
22867 | PyObject * obj0 = 0 ; | |
22868 | char *kwnames[] = { | |
22869 | (char *) "self", NULL | |
22870 | }; | |
22871 | ||
22872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22875 | { |
22876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22877 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22878 | ||
22879 | wxPyEndAllowThreads(__tstate); | |
22880 | if (PyErr_Occurred()) SWIG_fail; | |
22881 | } | |
2f4c0a16 | 22882 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22883 | return resultobj; |
22884 | fail: | |
22885 | return NULL; | |
22886 | } | |
22887 | ||
22888 | ||
22889 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22890 | PyObject *resultobj; | |
22891 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22892 | int result; | |
22893 | PyObject * obj0 = 0 ; | |
22894 | char *kwnames[] = { | |
22895 | (char *) "self", NULL | |
22896 | }; | |
22897 | ||
22898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22901 | { |
22902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22903 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22904 | ||
22905 | wxPyEndAllowThreads(__tstate); | |
22906 | if (PyErr_Occurred()) SWIG_fail; | |
22907 | } | |
2f4c0a16 | 22908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22909 | return resultobj; |
22910 | fail: | |
22911 | return NULL; | |
22912 | } | |
22913 | ||
22914 | ||
22915 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22916 | PyObject *resultobj; | |
22917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22918 | wxSize result; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | char *kwnames[] = { | |
22921 | (char *) "self", NULL | |
22922 | }; | |
22923 | ||
22924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22927 | { |
22928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22929 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22930 | ||
22931 | wxPyEndAllowThreads(__tstate); | |
22932 | if (PyErr_Occurred()) SWIG_fail; | |
22933 | } | |
22934 | { | |
22935 | wxSize * resultptr; | |
22936 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22938 | } |
22939 | return resultobj; | |
22940 | fail: | |
22941 | return NULL; | |
22942 | } | |
22943 | ||
22944 | ||
22945 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22946 | PyObject *resultobj; | |
22947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22948 | wxSize *arg2 = 0 ; | |
22949 | wxSize temp2 ; | |
22950 | PyObject * obj0 = 0 ; | |
22951 | PyObject * obj1 = 0 ; | |
22952 | char *kwnames[] = { | |
22953 | (char *) "self",(char *) "size", NULL | |
22954 | }; | |
22955 | ||
22956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22959 | { |
22960 | arg2 = &temp2; | |
22961 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22962 | } | |
22963 | { | |
22964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22965 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22966 | ||
22967 | wxPyEndAllowThreads(__tstate); | |
22968 | if (PyErr_Occurred()) SWIG_fail; | |
22969 | } | |
22970 | Py_INCREF(Py_None); resultobj = Py_None; | |
22971 | return resultobj; | |
22972 | fail: | |
22973 | return NULL; | |
22974 | } | |
22975 | ||
22976 | ||
22977 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22978 | PyObject *resultobj; | |
22979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22980 | int arg2 ; | |
22981 | int arg3 ; | |
22982 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22983 | PyObject * obj1 = 0 ; |
22984 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22985 | char *kwnames[] = { |
22986 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22987 | }; | |
22988 | ||
8edf1c75 | 22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22992 | arg2 = (int) SWIG_AsInt(obj1); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | arg3 = (int) SWIG_AsInt(obj2); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22996 | { |
22997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22998 | (arg1)->SetVirtualSize(arg2,arg3); | |
22999 | ||
23000 | wxPyEndAllowThreads(__tstate); | |
23001 | if (PyErr_Occurred()) SWIG_fail; | |
23002 | } | |
23003 | Py_INCREF(Py_None); resultobj = Py_None; | |
23004 | return resultobj; | |
23005 | fail: | |
23006 | return NULL; | |
23007 | } | |
23008 | ||
23009 | ||
23010 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23011 | PyObject *resultobj; | |
23012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23013 | wxSize result; | |
23014 | PyObject * obj0 = 0 ; | |
23015 | char *kwnames[] = { | |
23016 | (char *) "self", NULL | |
23017 | }; | |
23018 | ||
23019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23022 | { |
23023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23024 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23025 | ||
23026 | wxPyEndAllowThreads(__tstate); | |
23027 | if (PyErr_Occurred()) SWIG_fail; | |
23028 | } | |
23029 | { | |
23030 | wxSize * resultptr; | |
23031 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 23032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23033 | } |
23034 | return resultobj; | |
23035 | fail: | |
23036 | return NULL; | |
23037 | } | |
23038 | ||
23039 | ||
23040 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23041 | PyObject *resultobj; | |
23042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23043 | int *arg2 = (int *) 0 ; | |
23044 | int *arg3 = (int *) 0 ; | |
23045 | int temp2 ; | |
23046 | int temp3 ; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | char *kwnames[] = { | |
23049 | (char *) "self", NULL | |
23050 | }; | |
23051 | ||
23052 | arg2 = &temp2; | |
23053 | arg3 = &temp3; | |
23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23057 | { |
23058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23059 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23060 | ||
23061 | wxPyEndAllowThreads(__tstate); | |
23062 | if (PyErr_Occurred()) SWIG_fail; | |
23063 | } | |
23064 | Py_INCREF(Py_None); resultobj = Py_None; | |
23065 | { | |
23066 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23067 | resultobj = t_output_helper(resultobj,o); | |
23068 | } | |
23069 | { | |
23070 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23071 | resultobj = t_output_helper(resultobj,o); | |
23072 | } | |
23073 | return resultobj; | |
23074 | fail: | |
23075 | return NULL; | |
23076 | } | |
23077 | ||
23078 | ||
23079 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23080 | PyObject *resultobj; | |
23081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23082 | wxSize result; | |
23083 | PyObject * obj0 = 0 ; | |
23084 | char *kwnames[] = { | |
23085 | (char *) "self", NULL | |
23086 | }; | |
23087 | ||
23088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23091 | { |
23092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23093 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23094 | ||
23095 | wxPyEndAllowThreads(__tstate); | |
23096 | if (PyErr_Occurred()) SWIG_fail; | |
23097 | } | |
23098 | { | |
23099 | wxSize * resultptr; | |
23100 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 23101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23102 | } |
23103 | return resultobj; | |
23104 | fail: | |
23105 | return NULL; | |
23106 | } | |
23107 | ||
23108 | ||
23109 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23110 | PyObject *resultobj; | |
23111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23112 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23113 | bool result; |
23114 | PyObject * obj0 = 0 ; | |
23115 | PyObject * obj1 = 0 ; | |
23116 | char *kwnames[] = { | |
23117 | (char *) "self",(char *) "show", NULL | |
23118 | }; | |
23119 | ||
23120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23123 | if (obj1) { |
2f4c0a16 RD |
23124 | arg2 = (bool) SWIG_AsBool(obj1); |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23126 | } |
23127 | { | |
23128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23129 | result = (bool)(arg1)->Show(arg2); | |
23130 | ||
23131 | wxPyEndAllowThreads(__tstate); | |
23132 | if (PyErr_Occurred()) SWIG_fail; | |
23133 | } | |
4f89f6a3 RD |
23134 | { |
23135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23136 | } | |
d14a1e28 RD |
23137 | return resultobj; |
23138 | fail: | |
23139 | return NULL; | |
23140 | } | |
23141 | ||
23142 | ||
23143 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23144 | PyObject *resultobj; | |
23145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23146 | bool result; | |
23147 | PyObject * obj0 = 0 ; | |
23148 | char *kwnames[] = { | |
23149 | (char *) "self", NULL | |
23150 | }; | |
23151 | ||
23152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23155 | { |
23156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23157 | result = (bool)(arg1)->Hide(); | |
23158 | ||
23159 | wxPyEndAllowThreads(__tstate); | |
23160 | if (PyErr_Occurred()) SWIG_fail; | |
23161 | } | |
4f89f6a3 RD |
23162 | { |
23163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23164 | } | |
d14a1e28 RD |
23165 | return resultobj; |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
23171 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23172 | PyObject *resultobj; | |
23173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23174 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23175 | bool result; |
23176 | PyObject * obj0 = 0 ; | |
23177 | PyObject * obj1 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self",(char *) "enable", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23185 | if (obj1) { |
2f4c0a16 RD |
23186 | arg2 = (bool) SWIG_AsBool(obj1); |
23187 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23188 | } |
23189 | { | |
23190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23191 | result = (bool)(arg1)->Enable(arg2); | |
23192 | ||
23193 | wxPyEndAllowThreads(__tstate); | |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
23195 | } | |
4f89f6a3 RD |
23196 | { |
23197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23198 | } | |
d14a1e28 RD |
23199 | return resultobj; |
23200 | fail: | |
23201 | return NULL; | |
23202 | } | |
23203 | ||
23204 | ||
23205 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23206 | PyObject *resultobj; | |
23207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23208 | bool result; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | char *kwnames[] = { | |
23211 | (char *) "self", NULL | |
23212 | }; | |
23213 | ||
23214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23217 | { |
23218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23219 | result = (bool)(arg1)->Disable(); | |
23220 | ||
23221 | wxPyEndAllowThreads(__tstate); | |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
23223 | } | |
4f89f6a3 RD |
23224 | { |
23225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23226 | } | |
d14a1e28 RD |
23227 | return resultobj; |
23228 | fail: | |
23229 | return NULL; | |
23230 | } | |
23231 | ||
23232 | ||
23233 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23234 | PyObject *resultobj; | |
23235 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23236 | bool result; | |
23237 | PyObject * obj0 = 0 ; | |
23238 | char *kwnames[] = { | |
23239 | (char *) "self", NULL | |
23240 | }; | |
23241 | ||
23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23245 | { |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
4f89f6a3 RD |
23252 | { |
23253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23254 | } | |
d14a1e28 RD |
23255 | return resultobj; |
23256 | fail: | |
23257 | return NULL; | |
23258 | } | |
23259 | ||
23260 | ||
23261 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23262 | PyObject *resultobj; | |
23263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23264 | bool result; | |
23265 | PyObject * obj0 = 0 ; | |
23266 | char *kwnames[] = { | |
23267 | (char *) "self", NULL | |
23268 | }; | |
23269 | ||
23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23273 | { |
23274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23275 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23276 | ||
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
4f89f6a3 RD |
23280 | { |
23281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23282 | } | |
d14a1e28 RD |
23283 | return resultobj; |
23284 | fail: | |
23285 | return NULL; | |
23286 | } | |
23287 | ||
23288 | ||
23289 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23290 | PyObject *resultobj; | |
23291 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23292 | long arg2 ; | |
23293 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23295 | char *kwnames[] = { |
23296 | (char *) "self",(char *) "style", NULL | |
23297 | }; | |
23298 | ||
8edf1c75 | 23299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23302 | arg2 = (long) SWIG_AsLong(obj1); | |
23303 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23304 | { |
23305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23306 | (arg1)->SetWindowStyleFlag(arg2); | |
23307 | ||
23308 | wxPyEndAllowThreads(__tstate); | |
23309 | if (PyErr_Occurred()) SWIG_fail; | |
23310 | } | |
23311 | Py_INCREF(Py_None); resultobj = Py_None; | |
23312 | return resultobj; | |
23313 | fail: | |
23314 | return NULL; | |
23315 | } | |
23316 | ||
23317 | ||
23318 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23319 | PyObject *resultobj; | |
23320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23321 | long result; | |
23322 | PyObject * obj0 = 0 ; | |
23323 | char *kwnames[] = { | |
23324 | (char *) "self", NULL | |
23325 | }; | |
23326 | ||
23327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23330 | { |
23331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23332 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23333 | ||
23334 | wxPyEndAllowThreads(__tstate); | |
23335 | if (PyErr_Occurred()) SWIG_fail; | |
23336 | } | |
2f4c0a16 | 23337 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23338 | return resultobj; |
23339 | fail: | |
23340 | return NULL; | |
23341 | } | |
23342 | ||
23343 | ||
23344 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23345 | PyObject *resultobj; | |
23346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23347 | int arg2 ; | |
23348 | bool result; | |
23349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23351 | char *kwnames[] = { |
23352 | (char *) "self",(char *) "flag", NULL | |
23353 | }; | |
23354 | ||
8edf1c75 | 23355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23358 | arg2 = (int) SWIG_AsInt(obj1); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23360 | { |
23361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23362 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23363 | ||
23364 | wxPyEndAllowThreads(__tstate); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | } | |
4f89f6a3 RD |
23367 | { |
23368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23369 | } | |
d14a1e28 RD |
23370 | return resultobj; |
23371 | fail: | |
23372 | return NULL; | |
23373 | } | |
23374 | ||
23375 | ||
23376 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23377 | PyObject *resultobj; | |
23378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23379 | bool result; | |
23380 | PyObject * obj0 = 0 ; | |
23381 | char *kwnames[] = { | |
23382 | (char *) "self", NULL | |
23383 | }; | |
23384 | ||
23385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23388 | { |
23389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23390 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23391 | ||
23392 | wxPyEndAllowThreads(__tstate); | |
23393 | if (PyErr_Occurred()) SWIG_fail; | |
23394 | } | |
4f89f6a3 RD |
23395 | { |
23396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23397 | } | |
d14a1e28 RD |
23398 | return resultobj; |
23399 | fail: | |
23400 | return NULL; | |
23401 | } | |
23402 | ||
23403 | ||
23404 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23405 | PyObject *resultobj; | |
23406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23407 | long arg2 ; | |
23408 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23410 | char *kwnames[] = { |
23411 | (char *) "self",(char *) "exStyle", NULL | |
23412 | }; | |
23413 | ||
8edf1c75 | 23414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23417 | arg2 = (long) SWIG_AsLong(obj1); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23419 | { |
23420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23421 | (arg1)->SetExtraStyle(arg2); | |
23422 | ||
23423 | wxPyEndAllowThreads(__tstate); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
23425 | } | |
23426 | Py_INCREF(Py_None); resultobj = Py_None; | |
23427 | return resultobj; | |
23428 | fail: | |
23429 | return NULL; | |
23430 | } | |
23431 | ||
23432 | ||
23433 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23434 | PyObject *resultobj; | |
23435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23436 | long result; | |
23437 | PyObject * obj0 = 0 ; | |
23438 | char *kwnames[] = { | |
23439 | (char *) "self", NULL | |
23440 | }; | |
23441 | ||
23442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23445 | { |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
2f4c0a16 | 23452 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23453 | return resultobj; |
23454 | fail: | |
23455 | return NULL; | |
23456 | } | |
23457 | ||
23458 | ||
23459 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23460 | PyObject *resultobj; | |
23461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23462 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23463 | PyObject * obj0 = 0 ; |
23464 | PyObject * obj1 = 0 ; | |
23465 | char *kwnames[] = { | |
23466 | (char *) "self",(char *) "modal", NULL | |
23467 | }; | |
23468 | ||
23469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23472 | if (obj1) { |
2f4c0a16 RD |
23473 | arg2 = (bool) SWIG_AsBool(obj1); |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23475 | } |
23476 | { | |
23477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23478 | (arg1)->MakeModal(arg2); | |
23479 | ||
23480 | wxPyEndAllowThreads(__tstate); | |
23481 | if (PyErr_Occurred()) SWIG_fail; | |
23482 | } | |
23483 | Py_INCREF(Py_None); resultobj = Py_None; | |
23484 | return resultobj; | |
23485 | fail: | |
23486 | return NULL; | |
23487 | } | |
23488 | ||
23489 | ||
23490 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23491 | PyObject *resultobj; | |
23492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23493 | bool arg2 ; | |
23494 | PyObject * obj0 = 0 ; | |
23495 | PyObject * obj1 = 0 ; | |
23496 | char *kwnames[] = { | |
23497 | (char *) "self",(char *) "enableTheme", NULL | |
23498 | }; | |
23499 | ||
23500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23503 | arg2 = (bool) SWIG_AsBool(obj1); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23505 | { |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | (arg1)->SetThemeEnabled(arg2); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | Py_INCREF(Py_None); resultobj = Py_None; | |
23513 | return resultobj; | |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
23519 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23520 | PyObject *resultobj; | |
23521 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23522 | bool result; | |
23523 | PyObject * obj0 = 0 ; | |
23524 | char *kwnames[] = { | |
23525 | (char *) "self", NULL | |
23526 | }; | |
23527 | ||
23528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23531 | { |
23532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23533 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
23534 | ||
23535 | wxPyEndAllowThreads(__tstate); | |
23536 | if (PyErr_Occurred()) SWIG_fail; | |
23537 | } | |
4f89f6a3 RD |
23538 | { |
23539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23540 | } | |
d14a1e28 RD |
23541 | return resultobj; |
23542 | fail: | |
23543 | return NULL; | |
23544 | } | |
23545 | ||
23546 | ||
d14a1e28 RD |
23547 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
23548 | PyObject *resultobj; | |
23549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23550 | PyObject * obj0 = 0 ; | |
23551 | char *kwnames[] = { | |
23552 | (char *) "self", NULL | |
23553 | }; | |
23554 | ||
23555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23558 | { |
23559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23560 | (arg1)->SetFocus(); | |
23561 | ||
23562 | wxPyEndAllowThreads(__tstate); | |
23563 | if (PyErr_Occurred()) SWIG_fail; | |
23564 | } | |
23565 | Py_INCREF(Py_None); resultobj = Py_None; | |
23566 | return resultobj; | |
23567 | fail: | |
23568 | return NULL; | |
23569 | } | |
23570 | ||
23571 | ||
23572 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23573 | PyObject *resultobj; | |
23574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23575 | PyObject * obj0 = 0 ; | |
23576 | char *kwnames[] = { | |
23577 | (char *) "self", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23583 | { |
23584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23585 | (arg1)->SetFocusFromKbd(); | |
23586 | ||
23587 | wxPyEndAllowThreads(__tstate); | |
23588 | if (PyErr_Occurred()) SWIG_fail; | |
23589 | } | |
23590 | Py_INCREF(Py_None); resultobj = Py_None; | |
23591 | return resultobj; | |
23592 | fail: | |
23593 | return NULL; | |
23594 | } | |
23595 | ||
23596 | ||
23597 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23598 | PyObject *resultobj; | |
23599 | wxWindow *result; | |
23600 | char *kwnames[] = { | |
23601 | NULL | |
23602 | }; | |
23603 | ||
23604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23605 | { | |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | result = (wxWindow *)wxWindow::FindFocus(); | |
23608 | ||
23609 | wxPyEndAllowThreads(__tstate); | |
23610 | if (PyErr_Occurred()) SWIG_fail; | |
23611 | } | |
23612 | { | |
23613 | resultobj = wxPyMake_wxObject(result); | |
23614 | } | |
23615 | return resultobj; | |
23616 | fail: | |
23617 | return NULL; | |
23618 | } | |
23619 | ||
23620 | ||
23621 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23622 | PyObject *resultobj; | |
23623 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23624 | bool result; | |
23625 | PyObject * obj0 = 0 ; | |
23626 | char *kwnames[] = { | |
23627 | (char *) "self", NULL | |
23628 | }; | |
23629 | ||
23630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23633 | { |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23636 | ||
23637 | wxPyEndAllowThreads(__tstate); | |
23638 | if (PyErr_Occurred()) SWIG_fail; | |
23639 | } | |
4f89f6a3 RD |
23640 | { |
23641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23642 | } | |
d14a1e28 RD |
23643 | return resultobj; |
23644 | fail: | |
23645 | return NULL; | |
23646 | } | |
23647 | ||
23648 | ||
23649 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23650 | PyObject *resultobj; | |
23651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23652 | bool result; | |
23653 | PyObject * obj0 = 0 ; | |
23654 | char *kwnames[] = { | |
23655 | (char *) "self", NULL | |
23656 | }; | |
23657 | ||
23658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23661 | { |
23662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23663 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23664 | ||
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
4f89f6a3 RD |
23668 | { |
23669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23670 | } | |
d14a1e28 RD |
23671 | return resultobj; |
23672 | fail: | |
23673 | return NULL; | |
23674 | } | |
23675 | ||
23676 | ||
23677 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23678 | PyObject *resultobj; | |
23679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23680 | wxWindow *result; | |
23681 | PyObject * obj0 = 0 ; | |
23682 | char *kwnames[] = { | |
23683 | (char *) "self", NULL | |
23684 | }; | |
23685 | ||
23686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23689 | { |
23690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23691 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23692 | ||
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | { | |
23697 | resultobj = wxPyMake_wxObject(result); | |
23698 | } | |
23699 | return resultobj; | |
23700 | fail: | |
23701 | return NULL; | |
23702 | } | |
23703 | ||
23704 | ||
23705 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23706 | PyObject *resultobj; | |
23707 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23708 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23709 | wxWindow *result; | |
23710 | PyObject * obj0 = 0 ; | |
23711 | PyObject * obj1 = 0 ; | |
23712 | char *kwnames[] = { | |
23713 | (char *) "self",(char *) "child", NULL | |
23714 | }; | |
23715 | ||
23716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23721 | { |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
23728 | { | |
23729 | resultobj = wxPyMake_wxObject(result); | |
23730 | } | |
23731 | return resultobj; | |
23732 | fail: | |
23733 | return NULL; | |
23734 | } | |
23735 | ||
23736 | ||
23737 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23738 | PyObject *resultobj; | |
23739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23741 | PyObject * obj0 = 0 ; | |
23742 | PyObject * obj1 = 0 ; | |
23743 | char *kwnames[] = { | |
23744 | (char *) "self",(char *) "win", NULL | |
23745 | }; | |
23746 | ||
23747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23752 | { |
23753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23754 | (arg1)->SetTmpDefaultItem(arg2); | |
23755 | ||
23756 | wxPyEndAllowThreads(__tstate); | |
23757 | if (PyErr_Occurred()) SWIG_fail; | |
23758 | } | |
23759 | Py_INCREF(Py_None); resultobj = Py_None; | |
23760 | return resultobj; | |
23761 | fail: | |
23762 | return NULL; | |
23763 | } | |
23764 | ||
23765 | ||
23766 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23767 | PyObject *resultobj; | |
23768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23769 | PyObject *result; | |
23770 | PyObject * obj0 = 0 ; | |
23771 | char *kwnames[] = { | |
23772 | (char *) "self", NULL | |
23773 | }; | |
23774 | ||
23775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23778 | { |
23779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23780 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23781 | ||
23782 | wxPyEndAllowThreads(__tstate); | |
23783 | if (PyErr_Occurred()) SWIG_fail; | |
23784 | } | |
23785 | resultobj = result; | |
23786 | return resultobj; | |
23787 | fail: | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
23792 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23793 | PyObject *resultobj; | |
23794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23795 | wxWindow *result; | |
23796 | PyObject * obj0 = 0 ; | |
23797 | char *kwnames[] = { | |
23798 | (char *) "self", NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23804 | { |
23805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23806 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23807 | ||
23808 | wxPyEndAllowThreads(__tstate); | |
23809 | if (PyErr_Occurred()) SWIG_fail; | |
23810 | } | |
23811 | { | |
23812 | resultobj = wxPyMake_wxObject(result); | |
23813 | } | |
23814 | return resultobj; | |
23815 | fail: | |
23816 | return NULL; | |
23817 | } | |
23818 | ||
23819 | ||
23820 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23821 | PyObject *resultobj; | |
23822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23823 | wxWindow *result; | |
23824 | PyObject * obj0 = 0 ; | |
23825 | char *kwnames[] = { | |
23826 | (char *) "self", NULL | |
23827 | }; | |
23828 | ||
23829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23832 | { |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23835 | ||
23836 | wxPyEndAllowThreads(__tstate); | |
23837 | if (PyErr_Occurred()) SWIG_fail; | |
23838 | } | |
23839 | { | |
23840 | resultobj = wxPyMake_wxObject(result); | |
23841 | } | |
23842 | return resultobj; | |
23843 | fail: | |
23844 | return NULL; | |
23845 | } | |
23846 | ||
23847 | ||
23848 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23849 | PyObject *resultobj; | |
23850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23851 | bool result; | |
23852 | PyObject * obj0 = 0 ; | |
23853 | char *kwnames[] = { | |
23854 | (char *) "self", NULL | |
23855 | }; | |
23856 | ||
23857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23860 | { |
23861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23862 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23863 | ||
23864 | wxPyEndAllowThreads(__tstate); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
4f89f6a3 RD |
23867 | { |
23868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23869 | } | |
d14a1e28 RD |
23870 | return resultobj; |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
23876 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23877 | PyObject *resultobj; | |
23878 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23879 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23880 | bool result; | |
23881 | PyObject * obj0 = 0 ; | |
23882 | PyObject * obj1 = 0 ; | |
23883 | char *kwnames[] = { | |
23884 | (char *) "self",(char *) "newParent", NULL | |
23885 | }; | |
23886 | ||
23887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23892 | { |
23893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23894 | result = (bool)(arg1)->Reparent(arg2); | |
23895 | ||
23896 | wxPyEndAllowThreads(__tstate); | |
23897 | if (PyErr_Occurred()) SWIG_fail; | |
23898 | } | |
4f89f6a3 RD |
23899 | { |
23900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23901 | } | |
d14a1e28 RD |
23902 | return resultobj; |
23903 | fail: | |
23904 | return NULL; | |
23905 | } | |
23906 | ||
23907 | ||
23908 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23909 | PyObject *resultobj; | |
23910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23911 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23912 | PyObject * obj0 = 0 ; | |
23913 | PyObject * obj1 = 0 ; | |
23914 | char *kwnames[] = { | |
23915 | (char *) "self",(char *) "child", NULL | |
23916 | }; | |
23917 | ||
23918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23923 | { |
23924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23925 | (arg1)->AddChild(arg2); | |
23926 | ||
23927 | wxPyEndAllowThreads(__tstate); | |
23928 | if (PyErr_Occurred()) SWIG_fail; | |
23929 | } | |
23930 | Py_INCREF(Py_None); resultobj = Py_None; | |
23931 | return resultobj; | |
23932 | fail: | |
23933 | return NULL; | |
23934 | } | |
23935 | ||
23936 | ||
23937 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23938 | PyObject *resultobj; | |
23939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23940 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23941 | PyObject * obj0 = 0 ; | |
23942 | PyObject * obj1 = 0 ; | |
23943 | char *kwnames[] = { | |
23944 | (char *) "self",(char *) "child", NULL | |
23945 | }; | |
23946 | ||
23947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23952 | { |
23953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23954 | (arg1)->RemoveChild(arg2); | |
23955 | ||
23956 | wxPyEndAllowThreads(__tstate); | |
23957 | if (PyErr_Occurred()) SWIG_fail; | |
23958 | } | |
23959 | Py_INCREF(Py_None); resultobj = Py_None; | |
23960 | return resultobj; | |
23961 | fail: | |
23962 | return NULL; | |
23963 | } | |
23964 | ||
23965 | ||
23966 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23967 | PyObject *resultobj; | |
23968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23969 | long arg2 ; | |
23970 | wxWindow *result; | |
23971 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23973 | char *kwnames[] = { |
23974 | (char *) "self",(char *) "winid", NULL | |
23975 | }; | |
23976 | ||
8edf1c75 | 23977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23980 | arg2 = (long) SWIG_AsLong(obj1); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23982 | { |
23983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23984 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23985 | ||
23986 | wxPyEndAllowThreads(__tstate); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
23988 | } | |
23989 | { | |
23990 | resultobj = wxPyMake_wxObject(result); | |
23991 | } | |
23992 | return resultobj; | |
23993 | fail: | |
23994 | return NULL; | |
23995 | } | |
23996 | ||
23997 | ||
23998 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23999 | PyObject *resultobj; | |
24000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24001 | wxString *arg2 = 0 ; | |
24002 | wxWindow *result; | |
423f194a | 24003 | bool temp2 = False ; |
d14a1e28 RD |
24004 | PyObject * obj0 = 0 ; |
24005 | PyObject * obj1 = 0 ; | |
24006 | char *kwnames[] = { | |
24007 | (char *) "self",(char *) "name", NULL | |
24008 | }; | |
24009 | ||
24010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24013 | { |
24014 | arg2 = wxString_in_helper(obj1); | |
24015 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24016 | temp2 = True; |
d14a1e28 RD |
24017 | } |
24018 | { | |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24021 | ||
24022 | wxPyEndAllowThreads(__tstate); | |
24023 | if (PyErr_Occurred()) SWIG_fail; | |
24024 | } | |
24025 | { | |
24026 | resultobj = wxPyMake_wxObject(result); | |
24027 | } | |
24028 | { | |
24029 | if (temp2) | |
24030 | delete arg2; | |
24031 | } | |
24032 | return resultobj; | |
24033 | fail: | |
24034 | { | |
24035 | if (temp2) | |
24036 | delete arg2; | |
24037 | } | |
24038 | return NULL; | |
24039 | } | |
24040 | ||
24041 | ||
24042 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24043 | PyObject *resultobj; | |
24044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24045 | wxEvtHandler *result; | |
24046 | PyObject * obj0 = 0 ; | |
24047 | char *kwnames[] = { | |
24048 | (char *) "self", NULL | |
24049 | }; | |
24050 | ||
24051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24054 | { |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
24061 | { | |
24062 | resultobj = wxPyMake_wxObject(result); | |
24063 | } | |
24064 | return resultobj; | |
24065 | fail: | |
24066 | return NULL; | |
24067 | } | |
24068 | ||
24069 | ||
24070 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24071 | PyObject *resultobj; | |
24072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24073 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24074 | PyObject * obj0 = 0 ; | |
24075 | PyObject * obj1 = 0 ; | |
24076 | char *kwnames[] = { | |
24077 | (char *) "self",(char *) "handler", NULL | |
24078 | }; | |
24079 | ||
24080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24085 | { |
24086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24087 | (arg1)->SetEventHandler(arg2); | |
24088 | ||
24089 | wxPyEndAllowThreads(__tstate); | |
24090 | if (PyErr_Occurred()) SWIG_fail; | |
24091 | } | |
24092 | Py_INCREF(Py_None); resultobj = Py_None; | |
24093 | return resultobj; | |
24094 | fail: | |
24095 | return NULL; | |
24096 | } | |
24097 | ||
24098 | ||
24099 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24100 | PyObject *resultobj; | |
24101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24102 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24103 | PyObject * obj0 = 0 ; | |
24104 | PyObject * obj1 = 0 ; | |
24105 | char *kwnames[] = { | |
24106 | (char *) "self",(char *) "handler", NULL | |
24107 | }; | |
24108 | ||
24109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24114 | { |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | (arg1)->PushEventHandler(arg2); | |
24117 | ||
24118 | wxPyEndAllowThreads(__tstate); | |
24119 | if (PyErr_Occurred()) SWIG_fail; | |
24120 | } | |
24121 | Py_INCREF(Py_None); resultobj = Py_None; | |
24122 | return resultobj; | |
24123 | fail: | |
24124 | return NULL; | |
24125 | } | |
24126 | ||
24127 | ||
24128 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24129 | PyObject *resultobj; | |
24130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24131 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24132 | wxEvtHandler *result; |
24133 | PyObject * obj0 = 0 ; | |
24134 | PyObject * obj1 = 0 ; | |
24135 | char *kwnames[] = { | |
24136 | (char *) "self",(char *) "deleteHandler", NULL | |
24137 | }; | |
24138 | ||
24139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24142 | if (obj1) { |
2f4c0a16 RD |
24143 | arg2 = (bool) SWIG_AsBool(obj1); |
24144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24145 | } |
24146 | { | |
24147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24148 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24149 | ||
24150 | wxPyEndAllowThreads(__tstate); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
24152 | } | |
24153 | { | |
24154 | resultobj = wxPyMake_wxObject(result); | |
24155 | } | |
24156 | return resultobj; | |
24157 | fail: | |
24158 | return NULL; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24163 | PyObject *resultobj; | |
24164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24165 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24166 | bool result; | |
24167 | PyObject * obj0 = 0 ; | |
24168 | PyObject * obj1 = 0 ; | |
24169 | char *kwnames[] = { | |
24170 | (char *) "self",(char *) "handler", NULL | |
24171 | }; | |
24172 | ||
24173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24178 | { |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24180 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
24183 | if (PyErr_Occurred()) SWIG_fail; | |
24184 | } | |
4f89f6a3 RD |
24185 | { |
24186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24187 | } | |
d14a1e28 RD |
24188 | return resultobj; |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
24194 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24195 | PyObject *resultobj; | |
24196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24197 | wxValidator *arg2 = 0 ; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | PyObject * obj1 = 0 ; | |
24200 | char *kwnames[] = { | |
24201 | (char *) "self",(char *) "validator", NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24208 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24209 | SWIG_fail; | |
d14a1e28 | 24210 | if (arg2 == NULL) { |
2f4c0a16 RD |
24211 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24212 | SWIG_fail; | |
d14a1e28 RD |
24213 | } |
24214 | { | |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24216 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24217 | ||
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
24221 | Py_INCREF(Py_None); resultobj = Py_None; | |
24222 | return resultobj; | |
24223 | fail: | |
24224 | return NULL; | |
24225 | } | |
24226 | ||
24227 | ||
24228 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24229 | PyObject *resultobj; | |
24230 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24231 | wxValidator *result; | |
24232 | PyObject * obj0 = 0 ; | |
24233 | char *kwnames[] = { | |
24234 | (char *) "self", NULL | |
24235 | }; | |
24236 | ||
24237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24240 | { |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = (wxValidator *)(arg1)->GetValidator(); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | { | |
24248 | resultobj = wxPyMake_wxObject(result); | |
24249 | } | |
24250 | return resultobj; | |
24251 | fail: | |
24252 | return NULL; | |
24253 | } | |
24254 | ||
24255 | ||
24256 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24257 | PyObject *resultobj; | |
24258 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24259 | wxAcceleratorTable *arg2 = 0 ; | |
24260 | PyObject * obj0 = 0 ; | |
24261 | PyObject * obj1 = 0 ; | |
24262 | char *kwnames[] = { | |
24263 | (char *) "self",(char *) "accel", NULL | |
24264 | }; | |
24265 | ||
24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24271 | SWIG_fail; | |
d14a1e28 | 24272 | if (arg2 == NULL) { |
2f4c0a16 RD |
24273 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24274 | SWIG_fail; | |
d14a1e28 RD |
24275 | } |
24276 | { | |
24277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24278 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24279 | ||
24280 | wxPyEndAllowThreads(__tstate); | |
24281 | if (PyErr_Occurred()) SWIG_fail; | |
24282 | } | |
24283 | Py_INCREF(Py_None); resultobj = Py_None; | |
24284 | return resultobj; | |
24285 | fail: | |
24286 | return NULL; | |
24287 | } | |
24288 | ||
24289 | ||
24290 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24291 | PyObject *resultobj; | |
24292 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24293 | wxAcceleratorTable *result; | |
24294 | PyObject * obj0 = 0 ; | |
24295 | char *kwnames[] = { | |
24296 | (char *) "self", NULL | |
24297 | }; | |
24298 | ||
24299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24302 | { |
24303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24304 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24305 | ||
24306 | wxPyEndAllowThreads(__tstate); | |
24307 | if (PyErr_Occurred()) SWIG_fail; | |
24308 | } | |
2f4c0a16 | 24309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
24310 | return resultobj; |
24311 | fail: | |
24312 | return NULL; | |
24313 | } | |
24314 | ||
24315 | ||
24316 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24317 | PyObject *resultobj; | |
24318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24319 | int arg2 ; | |
24320 | int arg3 ; | |
24321 | int arg4 ; | |
24322 | bool result; | |
24323 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24324 | PyObject * obj1 = 0 ; |
24325 | PyObject * obj2 = 0 ; | |
24326 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24327 | char *kwnames[] = { |
24328 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24329 | }; | |
24330 | ||
8edf1c75 | 24331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
24332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24334 | arg2 = (int) SWIG_AsInt(obj1); | |
24335 | if (PyErr_Occurred()) SWIG_fail; | |
24336 | arg3 = (int) SWIG_AsInt(obj2); | |
24337 | if (PyErr_Occurred()) SWIG_fail; | |
24338 | arg4 = (int) SWIG_AsInt(obj3); | |
24339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24340 | { |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24342 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
24343 | ||
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
4f89f6a3 RD |
24347 | { |
24348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24349 | } | |
d14a1e28 RD |
24350 | return resultobj; |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
24356 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24357 | PyObject *resultobj; | |
24358 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24359 | int arg2 ; | |
24360 | bool result; | |
24361 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24363 | char *kwnames[] = { |
24364 | (char *) "self",(char *) "hotkeyId", NULL | |
24365 | }; | |
24366 | ||
8edf1c75 | 24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24370 | arg2 = (int) SWIG_AsInt(obj1); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24372 | { |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24374 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
24375 | ||
24376 | wxPyEndAllowThreads(__tstate); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
24378 | } | |
4f89f6a3 RD |
24379 | { |
24380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24381 | } | |
d14a1e28 RD |
24382 | return resultobj; |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24389 | PyObject *resultobj; | |
24390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24391 | wxPoint *arg2 = 0 ; | |
24392 | wxPoint result; | |
24393 | wxPoint temp2 ; | |
24394 | PyObject * obj0 = 0 ; | |
24395 | PyObject * obj1 = 0 ; | |
24396 | char *kwnames[] = { | |
24397 | (char *) "self",(char *) "pt", NULL | |
24398 | }; | |
24399 | ||
24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24403 | { |
24404 | arg2 = &temp2; | |
24405 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24406 | } | |
24407 | { | |
24408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24409 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24410 | ||
24411 | wxPyEndAllowThreads(__tstate); | |
24412 | if (PyErr_Occurred()) SWIG_fail; | |
24413 | } | |
24414 | { | |
24415 | wxPoint * resultptr; | |
24416 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24418 | } |
24419 | return resultobj; | |
24420 | fail: | |
24421 | return NULL; | |
24422 | } | |
24423 | ||
24424 | ||
24425 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24426 | PyObject *resultobj; | |
24427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24428 | wxSize *arg2 = 0 ; | |
24429 | wxSize result; | |
24430 | wxSize temp2 ; | |
24431 | PyObject * obj0 = 0 ; | |
24432 | PyObject * obj1 = 0 ; | |
24433 | char *kwnames[] = { | |
24434 | (char *) "self",(char *) "sz", NULL | |
24435 | }; | |
24436 | ||
24437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24440 | { |
24441 | arg2 = &temp2; | |
24442 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24443 | } | |
24444 | { | |
24445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24446 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24447 | ||
24448 | wxPyEndAllowThreads(__tstate); | |
24449 | if (PyErr_Occurred()) SWIG_fail; | |
24450 | } | |
24451 | { | |
24452 | wxSize * resultptr; | |
24453 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24454 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24455 | } |
24456 | return resultobj; | |
24457 | fail: | |
24458 | return NULL; | |
24459 | } | |
24460 | ||
24461 | ||
24462 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24463 | PyObject *resultobj; | |
24464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24465 | wxPoint *arg2 = 0 ; | |
24466 | wxPoint result; | |
24467 | wxPoint temp2 ; | |
24468 | PyObject * obj0 = 0 ; | |
24469 | PyObject * obj1 = 0 ; | |
24470 | char *kwnames[] = { | |
24471 | (char *) "self",(char *) "pt", NULL | |
24472 | }; | |
24473 | ||
24474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24477 | { |
24478 | arg2 = &temp2; | |
24479 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | wxPoint * resultptr; | |
24490 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24492 | } |
24493 | return resultobj; | |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24500 | PyObject *resultobj; | |
24501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24502 | wxSize *arg2 = 0 ; | |
24503 | wxSize result; | |
24504 | wxSize temp2 ; | |
24505 | PyObject * obj0 = 0 ; | |
24506 | PyObject * obj1 = 0 ; | |
24507 | char *kwnames[] = { | |
24508 | (char *) "self",(char *) "sz", NULL | |
24509 | }; | |
24510 | ||
24511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24514 | { |
24515 | arg2 = &temp2; | |
24516 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24517 | } | |
24518 | { | |
24519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24520 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24521 | ||
24522 | wxPyEndAllowThreads(__tstate); | |
24523 | if (PyErr_Occurred()) SWIG_fail; | |
24524 | } | |
24525 | { | |
24526 | wxSize * resultptr; | |
24527 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24528 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24529 | } |
24530 | return resultobj; | |
24531 | fail: | |
24532 | return NULL; | |
24533 | } | |
24534 | ||
24535 | ||
24536 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24537 | PyObject *resultobj; | |
24538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24539 | wxPoint *arg2 = 0 ; | |
24540 | wxPoint result; | |
24541 | wxPoint temp2 ; | |
24542 | PyObject * obj0 = 0 ; | |
24543 | PyObject * obj1 = 0 ; | |
24544 | char *kwnames[] = { | |
24545 | (char *) "self",(char *) "pt", NULL | |
24546 | }; | |
24547 | ||
24548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24551 | { |
24552 | arg2 = &temp2; | |
24553 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24554 | } | |
24555 | { | |
24556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24557 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
24558 | ||
24559 | wxPyEndAllowThreads(__tstate); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
24562 | { | |
24563 | wxPoint * resultptr; | |
24564 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24565 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24566 | } |
24567 | return resultobj; | |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
24573 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24574 | PyObject *resultobj; | |
24575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24576 | wxSize *arg2 = 0 ; | |
24577 | wxSize result; | |
24578 | wxSize temp2 ; | |
24579 | PyObject * obj0 = 0 ; | |
24580 | PyObject * obj1 = 0 ; | |
24581 | char *kwnames[] = { | |
24582 | (char *) "self",(char *) "sz", NULL | |
24583 | }; | |
24584 | ||
24585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24588 | { |
24589 | arg2 = &temp2; | |
24590 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24591 | } | |
24592 | { | |
24593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24594 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24595 | ||
24596 | wxPyEndAllowThreads(__tstate); | |
24597 | if (PyErr_Occurred()) SWIG_fail; | |
24598 | } | |
24599 | { | |
24600 | wxSize * resultptr; | |
24601 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24602 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24603 | } |
24604 | return resultobj; | |
24605 | fail: | |
24606 | return NULL; | |
24607 | } | |
24608 | ||
24609 | ||
24610 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24611 | PyObject *resultobj; | |
24612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24613 | int arg2 ; | |
24614 | int arg3 ; | |
24615 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24616 | PyObject * obj1 = 0 ; |
24617 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24618 | char *kwnames[] = { |
24619 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24620 | }; | |
24621 | ||
8edf1c75 | 24622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24625 | arg2 = (int) SWIG_AsInt(obj1); | |
24626 | if (PyErr_Occurred()) SWIG_fail; | |
24627 | arg3 = (int) SWIG_AsInt(obj2); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24629 | { |
24630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24631 | (arg1)->WarpPointer(arg2,arg3); | |
24632 | ||
24633 | wxPyEndAllowThreads(__tstate); | |
24634 | if (PyErr_Occurred()) SWIG_fail; | |
24635 | } | |
24636 | Py_INCREF(Py_None); resultobj = Py_None; | |
24637 | return resultobj; | |
24638 | fail: | |
24639 | return NULL; | |
24640 | } | |
24641 | ||
24642 | ||
24643 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24644 | PyObject *resultobj; | |
24645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24646 | PyObject * obj0 = 0 ; | |
24647 | char *kwnames[] = { | |
24648 | (char *) "self", NULL | |
24649 | }; | |
24650 | ||
24651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24654 | { |
24655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24656 | (arg1)->CaptureMouse(); | |
24657 | ||
24658 | wxPyEndAllowThreads(__tstate); | |
24659 | if (PyErr_Occurred()) SWIG_fail; | |
24660 | } | |
24661 | Py_INCREF(Py_None); resultobj = Py_None; | |
24662 | return resultobj; | |
24663 | fail: | |
24664 | return NULL; | |
24665 | } | |
24666 | ||
24667 | ||
24668 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24669 | PyObject *resultobj; | |
24670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24671 | PyObject * obj0 = 0 ; | |
24672 | char *kwnames[] = { | |
24673 | (char *) "self", NULL | |
24674 | }; | |
24675 | ||
24676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24679 | { |
24680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24681 | (arg1)->ReleaseMouse(); | |
24682 | ||
24683 | wxPyEndAllowThreads(__tstate); | |
24684 | if (PyErr_Occurred()) SWIG_fail; | |
24685 | } | |
24686 | Py_INCREF(Py_None); resultobj = Py_None; | |
24687 | return resultobj; | |
24688 | fail: | |
24689 | return NULL; | |
24690 | } | |
24691 | ||
24692 | ||
24693 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24694 | PyObject *resultobj; | |
24695 | wxWindow *result; | |
24696 | char *kwnames[] = { | |
24697 | NULL | |
24698 | }; | |
24699 | ||
24700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24701 | { | |
24702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24703 | result = (wxWindow *)wxWindow::GetCapture(); | |
24704 | ||
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | { | |
24709 | resultobj = wxPyMake_wxObject(result); | |
24710 | } | |
24711 | return resultobj; | |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24718 | PyObject *resultobj; | |
24719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24720 | bool result; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | char *kwnames[] = { | |
24723 | (char *) "self", NULL | |
24724 | }; | |
24725 | ||
24726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24729 | { |
24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24731 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
4f89f6a3 RD |
24736 | { |
24737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24738 | } | |
d14a1e28 RD |
24739 | return resultobj; |
24740 | fail: | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
24745 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24746 | PyObject *resultobj; | |
24747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24748 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24749 | wxRect *arg3 = (wxRect *) NULL ; |
24750 | PyObject * obj0 = 0 ; | |
24751 | PyObject * obj1 = 0 ; | |
24752 | PyObject * obj2 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24760 | if (obj1) { |
2f4c0a16 RD |
24761 | arg2 = (bool) SWIG_AsBool(obj1); |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24763 | } |
24764 | if (obj2) { | |
2f4c0a16 RD |
24765 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
24766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24767 | } |
24768 | { | |
24769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24770 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24771 | ||
24772 | wxPyEndAllowThreads(__tstate); | |
24773 | if (PyErr_Occurred()) SWIG_fail; | |
24774 | } | |
24775 | Py_INCREF(Py_None); resultobj = Py_None; | |
24776 | return resultobj; | |
24777 | fail: | |
24778 | return NULL; | |
24779 | } | |
24780 | ||
24781 | ||
24782 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24783 | PyObject *resultobj; | |
24784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24785 | wxRect *arg2 = 0 ; | |
24786 | wxRect temp2 ; | |
24787 | PyObject * obj0 = 0 ; | |
24788 | PyObject * obj1 = 0 ; | |
24789 | char *kwnames[] = { | |
24790 | (char *) "self",(char *) "rect", NULL | |
24791 | }; | |
24792 | ||
24793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24796 | { |
24797 | arg2 = &temp2; | |
24798 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24799 | } | |
24800 | { | |
24801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24802 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24803 | ||
24804 | wxPyEndAllowThreads(__tstate); | |
24805 | if (PyErr_Occurred()) SWIG_fail; | |
24806 | } | |
24807 | Py_INCREF(Py_None); resultobj = Py_None; | |
24808 | return resultobj; | |
24809 | fail: | |
24810 | return NULL; | |
24811 | } | |
24812 | ||
24813 | ||
24814 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24815 | PyObject *resultobj; | |
24816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24817 | PyObject * obj0 = 0 ; | |
24818 | char *kwnames[] = { | |
24819 | (char *) "self", NULL | |
24820 | }; | |
24821 | ||
24822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24825 | { |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | (arg1)->Update(); | |
24828 | ||
24829 | wxPyEndAllowThreads(__tstate); | |
24830 | if (PyErr_Occurred()) SWIG_fail; | |
24831 | } | |
24832 | Py_INCREF(Py_None); resultobj = Py_None; | |
24833 | return resultobj; | |
24834 | fail: | |
24835 | return NULL; | |
24836 | } | |
24837 | ||
24838 | ||
24839 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24840 | PyObject *resultobj; | |
24841 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24842 | PyObject * obj0 = 0 ; | |
24843 | char *kwnames[] = { | |
24844 | (char *) "self", NULL | |
24845 | }; | |
24846 | ||
24847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24850 | { |
24851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24852 | (arg1)->ClearBackground(); | |
24853 | ||
24854 | wxPyEndAllowThreads(__tstate); | |
24855 | if (PyErr_Occurred()) SWIG_fail; | |
24856 | } | |
24857 | Py_INCREF(Py_None); resultobj = Py_None; | |
24858 | return resultobj; | |
24859 | fail: | |
24860 | return NULL; | |
24861 | } | |
24862 | ||
24863 | ||
24864 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24865 | PyObject *resultobj; | |
24866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24867 | PyObject * obj0 = 0 ; | |
24868 | char *kwnames[] = { | |
24869 | (char *) "self", NULL | |
24870 | }; | |
24871 | ||
24872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24875 | { |
24876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24877 | (arg1)->Freeze(); | |
24878 | ||
24879 | wxPyEndAllowThreads(__tstate); | |
24880 | if (PyErr_Occurred()) SWIG_fail; | |
24881 | } | |
24882 | Py_INCREF(Py_None); resultobj = Py_None; | |
24883 | return resultobj; | |
24884 | fail: | |
24885 | return NULL; | |
24886 | } | |
24887 | ||
24888 | ||
24889 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24890 | PyObject *resultobj; | |
24891 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24892 | PyObject * obj0 = 0 ; | |
24893 | char *kwnames[] = { | |
24894 | (char *) "self", NULL | |
24895 | }; | |
24896 | ||
24897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24900 | { |
24901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24902 | (arg1)->Thaw(); | |
24903 | ||
24904 | wxPyEndAllowThreads(__tstate); | |
24905 | if (PyErr_Occurred()) SWIG_fail; | |
24906 | } | |
24907 | Py_INCREF(Py_None); resultobj = Py_None; | |
24908 | return resultobj; | |
24909 | fail: | |
24910 | return NULL; | |
24911 | } | |
24912 | ||
24913 | ||
24914 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24915 | PyObject *resultobj; | |
24916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24917 | wxDC *arg2 = 0 ; | |
24918 | PyObject * obj0 = 0 ; | |
24919 | PyObject * obj1 = 0 ; | |
24920 | char *kwnames[] = { | |
24921 | (char *) "self",(char *) "dc", NULL | |
24922 | }; | |
24923 | ||
24924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24929 | SWIG_fail; | |
d14a1e28 | 24930 | if (arg2 == NULL) { |
2f4c0a16 RD |
24931 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24932 | SWIG_fail; | |
d14a1e28 RD |
24933 | } |
24934 | { | |
24935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24936 | (arg1)->PrepareDC(*arg2); | |
24937 | ||
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | Py_INCREF(Py_None); resultobj = Py_None; | |
24942 | return resultobj; | |
24943 | fail: | |
24944 | return NULL; | |
24945 | } | |
24946 | ||
24947 | ||
24948 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24949 | PyObject *resultobj; | |
24950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24951 | wxRegion *result; | |
24952 | PyObject * obj0 = 0 ; | |
24953 | char *kwnames[] = { | |
24954 | (char *) "self", NULL | |
24955 | }; | |
24956 | ||
24957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24960 | { |
24961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24962 | { | |
24963 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24964 | result = (wxRegion *) &_result_ref; | |
24965 | } | |
24966 | ||
24967 | wxPyEndAllowThreads(__tstate); | |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
24969 | } | |
2f4c0a16 | 24970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
24971 | return resultobj; |
24972 | fail: | |
24973 | return NULL; | |
24974 | } | |
24975 | ||
24976 | ||
24977 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24978 | PyObject *resultobj; | |
24979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24980 | wxRect result; | |
24981 | PyObject * obj0 = 0 ; | |
24982 | char *kwnames[] = { | |
24983 | (char *) "self", NULL | |
24984 | }; | |
24985 | ||
24986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24989 | { |
24990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24991 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24992 | ||
24993 | wxPyEndAllowThreads(__tstate); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | } | |
24996 | { | |
24997 | wxRect * resultptr; | |
24998 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 24999 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25000 | } |
25001 | return resultobj; | |
25002 | fail: | |
25003 | return NULL; | |
25004 | } | |
25005 | ||
25006 | ||
25007 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25008 | PyObject *resultobj; | |
25009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25010 | int arg2 ; | |
25011 | int arg3 ; | |
25012 | int arg4 = (int) 1 ; | |
25013 | int arg5 = (int) 1 ; | |
25014 | bool result; | |
25015 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25016 | PyObject * obj1 = 0 ; |
25017 | PyObject * obj2 = 0 ; | |
25018 | PyObject * obj3 = 0 ; | |
25019 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25020 | char *kwnames[] = { |
25021 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25022 | }; | |
25023 | ||
8edf1c75 | 25024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25027 | arg2 = (int) SWIG_AsInt(obj1); | |
25028 | if (PyErr_Occurred()) SWIG_fail; | |
25029 | arg3 = (int) SWIG_AsInt(obj2); | |
25030 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25031 | if (obj3) { |
2f4c0a16 RD |
25032 | arg4 = (int) SWIG_AsInt(obj3); |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
25034 | } |
25035 | if (obj4) { | |
2f4c0a16 RD |
25036 | arg5 = (int) SWIG_AsInt(obj4); |
25037 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25038 | } |
d14a1e28 RD |
25039 | { |
25040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25041 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25042 | ||
25043 | wxPyEndAllowThreads(__tstate); | |
25044 | if (PyErr_Occurred()) SWIG_fail; | |
25045 | } | |
4f89f6a3 RD |
25046 | { |
25047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25048 | } | |
d14a1e28 RD |
25049 | return resultobj; |
25050 | fail: | |
25051 | return NULL; | |
25052 | } | |
25053 | ||
25054 | ||
25055 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25056 | PyObject *resultobj; | |
25057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25058 | wxPoint *arg2 = 0 ; | |
25059 | bool result; | |
25060 | wxPoint temp2 ; | |
25061 | PyObject * obj0 = 0 ; | |
25062 | PyObject * obj1 = 0 ; | |
25063 | char *kwnames[] = { | |
25064 | (char *) "self",(char *) "pt", NULL | |
25065 | }; | |
25066 | ||
25067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25070 | { |
25071 | arg2 = &temp2; | |
25072 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25073 | } | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
4f89f6a3 RD |
25081 | { |
25082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25083 | } | |
d14a1e28 RD |
25084 | return resultobj; |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
fe763115 | 25090 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25091 | PyObject *resultobj; |
25092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25093 | wxRect *arg2 = 0 ; | |
25094 | bool result; | |
25095 | wxRect temp2 ; | |
25096 | PyObject * obj0 = 0 ; | |
25097 | PyObject * obj1 = 0 ; | |
25098 | char *kwnames[] = { | |
25099 | (char *) "self",(char *) "rect", NULL | |
25100 | }; | |
25101 | ||
fe763115 | 25102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25105 | { |
25106 | arg2 = &temp2; | |
25107 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25108 | } | |
25109 | { | |
25110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25111 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25112 | ||
25113 | wxPyEndAllowThreads(__tstate); | |
25114 | if (PyErr_Occurred()) SWIG_fail; | |
25115 | } | |
4f89f6a3 RD |
25116 | { |
25117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25118 | } | |
d14a1e28 RD |
25119 | return resultobj; |
25120 | fail: | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
25125 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25126 | PyObject *resultobj; | |
25127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25128 | wxColour *arg2 = 0 ; | |
25129 | bool result; | |
25130 | wxColour temp2 ; | |
25131 | PyObject * obj0 = 0 ; | |
25132 | PyObject * obj1 = 0 ; | |
25133 | char *kwnames[] = { | |
25134 | (char *) "self",(char *) "colour", NULL | |
25135 | }; | |
25136 | ||
25137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25140 | { |
25141 | arg2 = &temp2; | |
25142 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25143 | } | |
25144 | { | |
25145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25146 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25147 | ||
25148 | wxPyEndAllowThreads(__tstate); | |
25149 | if (PyErr_Occurred()) SWIG_fail; | |
25150 | } | |
4f89f6a3 RD |
25151 | { |
25152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25153 | } | |
d14a1e28 RD |
25154 | return resultobj; |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
25160 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25161 | PyObject *resultobj; | |
25162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25163 | wxColour *arg2 = 0 ; | |
25164 | bool result; | |
25165 | wxColour temp2 ; | |
25166 | PyObject * obj0 = 0 ; | |
25167 | PyObject * obj1 = 0 ; | |
25168 | char *kwnames[] = { | |
25169 | (char *) "self",(char *) "colour", NULL | |
25170 | }; | |
25171 | ||
25172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25175 | { |
25176 | arg2 = &temp2; | |
25177 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25178 | } | |
25179 | { | |
25180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25181 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25182 | ||
25183 | wxPyEndAllowThreads(__tstate); | |
25184 | if (PyErr_Occurred()) SWIG_fail; | |
25185 | } | |
4f89f6a3 RD |
25186 | { |
25187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25188 | } | |
d14a1e28 RD |
25189 | return resultobj; |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25196 | PyObject *resultobj; | |
25197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25198 | wxColour result; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | char *kwnames[] = { | |
25201 | (char *) "self", NULL | |
25202 | }; | |
25203 | ||
25204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25207 | { |
25208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25209 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25210 | ||
25211 | wxPyEndAllowThreads(__tstate); | |
25212 | if (PyErr_Occurred()) SWIG_fail; | |
25213 | } | |
25214 | { | |
25215 | wxColour * resultptr; | |
25216 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 25217 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25218 | } |
25219 | return resultobj; | |
25220 | fail: | |
25221 | return NULL; | |
25222 | } | |
25223 | ||
25224 | ||
25225 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25226 | PyObject *resultobj; | |
25227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25228 | wxColour result; | |
25229 | PyObject * obj0 = 0 ; | |
25230 | char *kwnames[] = { | |
25231 | (char *) "self", NULL | |
25232 | }; | |
25233 | ||
25234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25237 | { |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | { | |
25245 | wxColour * resultptr; | |
25246 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 25247 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25248 | } |
25249 | return resultobj; | |
25250 | fail: | |
25251 | return NULL; | |
25252 | } | |
25253 | ||
25254 | ||
25255 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25256 | PyObject *resultobj; | |
25257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25258 | wxCursor *arg2 = 0 ; | |
25259 | bool result; | |
25260 | PyObject * obj0 = 0 ; | |
25261 | PyObject * obj1 = 0 ; | |
25262 | char *kwnames[] = { | |
25263 | (char *) "self",(char *) "cursor", NULL | |
25264 | }; | |
25265 | ||
25266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25271 | SWIG_fail; | |
d14a1e28 | 25272 | if (arg2 == NULL) { |
2f4c0a16 RD |
25273 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25274 | SWIG_fail; | |
d14a1e28 RD |
25275 | } |
25276 | { | |
25277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25278 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
25279 | ||
25280 | wxPyEndAllowThreads(__tstate); | |
25281 | if (PyErr_Occurred()) SWIG_fail; | |
25282 | } | |
4f89f6a3 RD |
25283 | { |
25284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25285 | } | |
d14a1e28 RD |
25286 | return resultobj; |
25287 | fail: | |
25288 | return NULL; | |
25289 | } | |
25290 | ||
25291 | ||
25292 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25293 | PyObject *resultobj; | |
25294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25295 | wxCursor *result; | |
25296 | PyObject * obj0 = 0 ; | |
25297 | char *kwnames[] = { | |
25298 | (char *) "self", NULL | |
25299 | }; | |
25300 | ||
25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25304 | { |
25305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25306 | { | |
25307 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
25308 | result = (wxCursor *) &_result_ref; | |
25309 | } | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
fe763115 RD |
25314 | { |
25315 | wxCursor* resultptr = new wxCursor(*result); | |
25316 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
25317 | } | |
d14a1e28 RD |
25318 | return resultobj; |
25319 | fail: | |
25320 | return NULL; | |
25321 | } | |
25322 | ||
25323 | ||
25324 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25325 | PyObject *resultobj; | |
25326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25327 | wxFont *arg2 = 0 ; | |
25328 | bool result; | |
25329 | PyObject * obj0 = 0 ; | |
25330 | PyObject * obj1 = 0 ; | |
25331 | char *kwnames[] = { | |
25332 | (char *) "self",(char *) "font", NULL | |
25333 | }; | |
25334 | ||
25335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25338 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
25339 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25340 | SWIG_fail; | |
d14a1e28 | 25341 | if (arg2 == NULL) { |
2f4c0a16 RD |
25342 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25343 | SWIG_fail; | |
d14a1e28 RD |
25344 | } |
25345 | { | |
25346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25347 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
25348 | ||
25349 | wxPyEndAllowThreads(__tstate); | |
25350 | if (PyErr_Occurred()) SWIG_fail; | |
25351 | } | |
4f89f6a3 RD |
25352 | { |
25353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25354 | } | |
d14a1e28 RD |
25355 | return resultobj; |
25356 | fail: | |
25357 | return NULL; | |
25358 | } | |
25359 | ||
25360 | ||
25361 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25362 | PyObject *resultobj; | |
25363 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25364 | wxFont *result; | |
25365 | PyObject * obj0 = 0 ; | |
25366 | char *kwnames[] = { | |
25367 | (char *) "self", NULL | |
25368 | }; | |
25369 | ||
25370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25373 | { |
25374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25375 | { | |
25376 | wxFont &_result_ref = (arg1)->GetFont(); | |
25377 | result = (wxFont *) &_result_ref; | |
25378 | } | |
25379 | ||
25380 | wxPyEndAllowThreads(__tstate); | |
25381 | if (PyErr_Occurred()) SWIG_fail; | |
25382 | } | |
fe763115 RD |
25383 | { |
25384 | wxFont* resultptr = new wxFont(*result); | |
25385 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25386 | } | |
d14a1e28 RD |
25387 | return resultobj; |
25388 | fail: | |
25389 | return NULL; | |
25390 | } | |
25391 | ||
25392 | ||
25393 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25394 | PyObject *resultobj; | |
25395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25396 | wxCaret *arg2 = (wxCaret *) 0 ; | |
25397 | PyObject * obj0 = 0 ; | |
25398 | PyObject * obj1 = 0 ; | |
25399 | char *kwnames[] = { | |
25400 | (char *) "self",(char *) "caret", NULL | |
25401 | }; | |
25402 | ||
25403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25406 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
25407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25408 | { |
25409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25410 | (arg1)->SetCaret(arg2); | |
25411 | ||
25412 | wxPyEndAllowThreads(__tstate); | |
25413 | if (PyErr_Occurred()) SWIG_fail; | |
25414 | } | |
25415 | Py_INCREF(Py_None); resultobj = Py_None; | |
25416 | return resultobj; | |
25417 | fail: | |
25418 | return NULL; | |
25419 | } | |
25420 | ||
25421 | ||
25422 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25423 | PyObject *resultobj; | |
25424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25425 | wxCaret *result; | |
25426 | PyObject * obj0 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25434 | { |
25435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25436 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
25437 | ||
25438 | wxPyEndAllowThreads(__tstate); | |
25439 | if (PyErr_Occurred()) SWIG_fail; | |
25440 | } | |
2f4c0a16 | 25441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
25442 | return resultobj; |
25443 | fail: | |
25444 | return NULL; | |
25445 | } | |
25446 | ||
25447 | ||
25448 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25449 | PyObject *resultobj; | |
25450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25451 | int result; | |
25452 | PyObject * obj0 = 0 ; | |
25453 | char *kwnames[] = { | |
25454 | (char *) "self", NULL | |
25455 | }; | |
25456 | ||
25457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25460 | { |
25461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25462 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
25463 | ||
25464 | wxPyEndAllowThreads(__tstate); | |
25465 | if (PyErr_Occurred()) SWIG_fail; | |
25466 | } | |
2f4c0a16 | 25467 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25468 | return resultobj; |
25469 | fail: | |
25470 | return NULL; | |
25471 | } | |
25472 | ||
25473 | ||
25474 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25475 | PyObject *resultobj; | |
25476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25477 | int result; | |
25478 | PyObject * obj0 = 0 ; | |
25479 | char *kwnames[] = { | |
25480 | (char *) "self", NULL | |
25481 | }; | |
25482 | ||
25483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25486 | { |
25487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25488 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
25489 | ||
25490 | wxPyEndAllowThreads(__tstate); | |
25491 | if (PyErr_Occurred()) SWIG_fail; | |
25492 | } | |
2f4c0a16 | 25493 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25494 | return resultobj; |
25495 | fail: | |
25496 | return NULL; | |
25497 | } | |
25498 | ||
25499 | ||
25500 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25501 | PyObject *resultobj; | |
25502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25503 | wxString *arg2 = 0 ; | |
25504 | int *arg3 = (int *) 0 ; | |
25505 | int *arg4 = (int *) 0 ; | |
423f194a | 25506 | bool temp2 = False ; |
d14a1e28 RD |
25507 | int temp3 ; |
25508 | int temp4 ; | |
25509 | PyObject * obj0 = 0 ; | |
25510 | PyObject * obj1 = 0 ; | |
25511 | char *kwnames[] = { | |
25512 | (char *) "self",(char *) "string", NULL | |
25513 | }; | |
25514 | ||
25515 | arg3 = &temp3; | |
25516 | arg4 = &temp4; | |
25517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25520 | { |
25521 | arg2 = wxString_in_helper(obj1); | |
25522 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25523 | temp2 = True; |
d14a1e28 RD |
25524 | } |
25525 | { | |
25526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25527 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
25528 | ||
25529 | wxPyEndAllowThreads(__tstate); | |
25530 | if (PyErr_Occurred()) SWIG_fail; | |
25531 | } | |
25532 | Py_INCREF(Py_None); resultobj = Py_None; | |
25533 | { | |
25534 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25535 | resultobj = t_output_helper(resultobj,o); | |
25536 | } | |
25537 | { | |
25538 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25539 | resultobj = t_output_helper(resultobj,o); | |
25540 | } | |
25541 | { | |
25542 | if (temp2) | |
25543 | delete arg2; | |
25544 | } | |
25545 | return resultobj; | |
25546 | fail: | |
25547 | { | |
25548 | if (temp2) | |
25549 | delete arg2; | |
25550 | } | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
25555 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25556 | PyObject *resultobj; | |
25557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25558 | wxString *arg2 = 0 ; | |
25559 | int *arg3 = (int *) 0 ; | |
25560 | int *arg4 = (int *) 0 ; | |
25561 | int *arg5 = (int *) 0 ; | |
25562 | int *arg6 = (int *) 0 ; | |
25563 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 25564 | bool temp2 = False ; |
d14a1e28 RD |
25565 | int temp3 ; |
25566 | int temp4 ; | |
25567 | int temp5 ; | |
25568 | int temp6 ; | |
25569 | PyObject * obj0 = 0 ; | |
25570 | PyObject * obj1 = 0 ; | |
25571 | PyObject * obj2 = 0 ; | |
25572 | char *kwnames[] = { | |
25573 | (char *) "self",(char *) "string",(char *) "font", NULL | |
25574 | }; | |
25575 | ||
25576 | arg3 = &temp3; | |
25577 | arg4 = &temp4; | |
25578 | arg5 = &temp5; | |
25579 | arg6 = &temp6; | |
25580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25583 | { |
25584 | arg2 = wxString_in_helper(obj1); | |
25585 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25586 | temp2 = True; |
d14a1e28 RD |
25587 | } |
25588 | if (obj2) { | |
2f4c0a16 RD |
25589 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
25590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25591 | } |
25592 | { | |
25593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25594 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
25595 | ||
25596 | wxPyEndAllowThreads(__tstate); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | } | |
25599 | Py_INCREF(Py_None); resultobj = Py_None; | |
25600 | { | |
25601 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25602 | resultobj = t_output_helper(resultobj,o); | |
25603 | } | |
25604 | { | |
25605 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25606 | resultobj = t_output_helper(resultobj,o); | |
25607 | } | |
25608 | { | |
25609 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
25610 | resultobj = t_output_helper(resultobj,o); | |
25611 | } | |
25612 | { | |
25613 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
25614 | resultobj = t_output_helper(resultobj,o); | |
25615 | } | |
25616 | { | |
25617 | if (temp2) | |
25618 | delete arg2; | |
25619 | } | |
25620 | return resultobj; | |
25621 | fail: | |
25622 | { | |
25623 | if (temp2) | |
25624 | delete arg2; | |
25625 | } | |
25626 | return NULL; | |
25627 | } | |
25628 | ||
25629 | ||
25630 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25631 | PyObject *resultobj; | |
25632 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25633 | int *arg2 = (int *) 0 ; | |
25634 | int *arg3 = (int *) 0 ; | |
25635 | int temp2 ; | |
25636 | int temp3 ; | |
25637 | PyObject * obj0 = 0 ; | |
25638 | PyObject * obj1 = 0 ; | |
25639 | PyObject * obj2 = 0 ; | |
25640 | char *kwnames[] = { | |
25641 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25642 | }; | |
25643 | ||
25644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25647 | { |
25648 | temp2 = PyInt_AsLong(obj1); | |
25649 | if (PyErr_Occurred()) SWIG_fail; | |
25650 | arg2 = &temp2; | |
25651 | } | |
25652 | { | |
25653 | temp3 = PyInt_AsLong(obj2); | |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
25655 | arg3 = &temp3; | |
25656 | } | |
25657 | { | |
25658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25659 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25660 | ||
25661 | wxPyEndAllowThreads(__tstate); | |
25662 | if (PyErr_Occurred()) SWIG_fail; | |
25663 | } | |
25664 | Py_INCREF(Py_None); resultobj = Py_None; | |
25665 | { | |
25666 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25667 | resultobj = t_output_helper(resultobj,o); | |
25668 | } | |
25669 | { | |
25670 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25671 | resultobj = t_output_helper(resultobj,o); | |
25672 | } | |
25673 | return resultobj; | |
25674 | fail: | |
25675 | return NULL; | |
25676 | } | |
25677 | ||
25678 | ||
25679 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25680 | PyObject *resultobj; | |
25681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25682 | int *arg2 = (int *) 0 ; | |
25683 | int *arg3 = (int *) 0 ; | |
25684 | int temp2 ; | |
25685 | int temp3 ; | |
25686 | PyObject * obj0 = 0 ; | |
25687 | PyObject * obj1 = 0 ; | |
25688 | PyObject * obj2 = 0 ; | |
25689 | char *kwnames[] = { | |
25690 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25691 | }; | |
25692 | ||
25693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25696 | { |
25697 | temp2 = PyInt_AsLong(obj1); | |
25698 | if (PyErr_Occurred()) SWIG_fail; | |
25699 | arg2 = &temp2; | |
25700 | } | |
25701 | { | |
25702 | temp3 = PyInt_AsLong(obj2); | |
25703 | if (PyErr_Occurred()) SWIG_fail; | |
25704 | arg3 = &temp3; | |
25705 | } | |
25706 | { | |
25707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25708 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25709 | ||
25710 | wxPyEndAllowThreads(__tstate); | |
25711 | if (PyErr_Occurred()) SWIG_fail; | |
25712 | } | |
25713 | Py_INCREF(Py_None); resultobj = Py_None; | |
25714 | { | |
25715 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25716 | resultobj = t_output_helper(resultobj,o); | |
25717 | } | |
25718 | { | |
25719 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25720 | resultobj = t_output_helper(resultobj,o); | |
25721 | } | |
25722 | return resultobj; | |
25723 | fail: | |
25724 | return NULL; | |
25725 | } | |
25726 | ||
25727 | ||
25728 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25729 | PyObject *resultobj; | |
25730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25731 | wxPoint *arg2 = 0 ; | |
25732 | wxPoint result; | |
25733 | wxPoint temp2 ; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | char *kwnames[] = { | |
25737 | (char *) "self",(char *) "pt", NULL | |
25738 | }; | |
25739 | ||
25740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25743 | { |
25744 | arg2 = &temp2; | |
25745 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25746 | } | |
25747 | { | |
25748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25749 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25750 | ||
25751 | wxPyEndAllowThreads(__tstate); | |
25752 | if (PyErr_Occurred()) SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | wxPoint * resultptr; | |
25756 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25757 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25758 | } |
25759 | return resultobj; | |
25760 | fail: | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
25765 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25766 | PyObject *resultobj; | |
25767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25768 | wxPoint *arg2 = 0 ; | |
25769 | wxPoint result; | |
25770 | wxPoint temp2 ; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | PyObject * obj1 = 0 ; | |
25773 | char *kwnames[] = { | |
25774 | (char *) "self",(char *) "pt", NULL | |
25775 | }; | |
25776 | ||
25777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25780 | { |
25781 | arg2 = &temp2; | |
25782 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25783 | } | |
25784 | { | |
25785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25786 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25787 | ||
25788 | wxPyEndAllowThreads(__tstate); | |
25789 | if (PyErr_Occurred()) SWIG_fail; | |
25790 | } | |
25791 | { | |
25792 | wxPoint * resultptr; | |
25793 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25795 | } |
25796 | return resultobj; | |
25797 | fail: | |
25798 | return NULL; | |
25799 | } | |
25800 | ||
25801 | ||
25802 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25803 | PyObject *resultobj; | |
25804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25805 | int arg2 ; |
25806 | int arg3 ; | |
d14a1e28 RD |
25807 | int result; |
25808 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25809 | PyObject * obj1 = 0 ; |
25810 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25811 | char *kwnames[] = { |
25812 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25813 | }; | |
25814 | ||
8edf1c75 | 25815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25818 | arg2 = (int) SWIG_AsInt(obj1); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | arg3 = (int) SWIG_AsInt(obj2); | |
25821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25822 | { |
25823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25824 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25825 | ||
25826 | wxPyEndAllowThreads(__tstate); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
25828 | } | |
2f4c0a16 | 25829 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25830 | return resultobj; |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
25836 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25837 | PyObject *resultobj; | |
25838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25839 | wxPoint *arg2 = 0 ; | |
25840 | int result; | |
25841 | wxPoint temp2 ; | |
25842 | PyObject * obj0 = 0 ; | |
25843 | PyObject * obj1 = 0 ; | |
25844 | char *kwnames[] = { | |
25845 | (char *) "self",(char *) "pt", NULL | |
25846 | }; | |
25847 | ||
25848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25851 | { |
25852 | arg2 = &temp2; | |
25853 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25854 | } | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25858 | ||
25859 | wxPyEndAllowThreads(__tstate); | |
25860 | if (PyErr_Occurred()) SWIG_fail; | |
25861 | } | |
2f4c0a16 | 25862 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25863 | return resultobj; |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
2f4c0a16 | 25869 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25870 | PyObject *resultobj; |
25871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25872 | long arg2 ; | |
25873 | int result; | |
25874 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25875 | PyObject * obj1 = 0 ; |
d14a1e28 | 25876 | |
2f4c0a16 RD |
25877 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
25878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25880 | arg2 = (long) SWIG_AsLong(obj1); | |
25881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25882 | { |
25883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25884 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25885 | ||
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
2f4c0a16 | 25889 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25890 | return resultobj; |
25891 | fail: | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
2f4c0a16 | 25896 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25897 | PyObject *resultobj; |
25898 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25899 | int result; | |
25900 | PyObject * obj0 = 0 ; | |
d14a1e28 | 25901 | |
2f4c0a16 RD |
25902 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
25903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25905 | { |
25906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25907 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25908 | ||
25909 | wxPyEndAllowThreads(__tstate); | |
25910 | if (PyErr_Occurred()) SWIG_fail; | |
25911 | } | |
2f4c0a16 | 25912 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25913 | return resultobj; |
25914 | fail: | |
25915 | return NULL; | |
25916 | } | |
25917 | ||
25918 | ||
2f4c0a16 RD |
25919 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
25920 | int argc; | |
25921 | PyObject *argv[3]; | |
25922 | int ii; | |
25923 | ||
25924 | argc = PyObject_Length(args); | |
25925 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
25926 | argv[ii] = PyTuple_GetItem(args,ii); | |
25927 | } | |
25928 | if (argc == 1) { | |
25929 | int _v; | |
25930 | { | |
25931 | void *ptr; | |
25932 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25933 | _v = 0; | |
25934 | PyErr_Clear(); | |
25935 | } else { | |
25936 | _v = 1; | |
25937 | } | |
25938 | } | |
25939 | if (_v) { | |
25940 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
25941 | } | |
25942 | } | |
25943 | if (argc == 2) { | |
25944 | int _v; | |
25945 | { | |
25946 | void *ptr; | |
25947 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25948 | _v = 0; | |
25949 | PyErr_Clear(); | |
25950 | } else { | |
25951 | _v = 1; | |
25952 | } | |
25953 | } | |
25954 | if (_v) { | |
25955 | _v = SWIG_CheckLong(argv[1]); | |
25956 | if (_v) { | |
25957 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
25958 | } | |
25959 | } | |
25960 | } | |
25961 | ||
25962 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
d14a1e28 RD |
25967 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
25968 | PyObject *resultobj; | |
25969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25970 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25971 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25973 | char *kwnames[] = { |
25974 | (char *) "self",(char *) "flags", NULL | |
25975 | }; | |
25976 | ||
8edf1c75 | 25977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25980 | if (obj1) { |
2f4c0a16 RD |
25981 | arg2 = (long) SWIG_AsLong(obj1); |
25982 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25983 | } |
d14a1e28 RD |
25984 | { |
25985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25986 | (arg1)->UpdateWindowUI(arg2); | |
25987 | ||
25988 | wxPyEndAllowThreads(__tstate); | |
25989 | if (PyErr_Occurred()) SWIG_fail; | |
25990 | } | |
25991 | Py_INCREF(Py_None); resultobj = Py_None; | |
25992 | return resultobj; | |
25993 | fail: | |
25994 | return NULL; | |
25995 | } | |
25996 | ||
25997 | ||
25998 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25999 | PyObject *resultobj; | |
26000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26001 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26002 | int arg3 ; | |
26003 | int arg4 ; | |
26004 | bool result; | |
26005 | PyObject * obj0 = 0 ; | |
26006 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
26007 | PyObject * obj2 = 0 ; |
26008 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26009 | char *kwnames[] = { |
26010 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26011 | }; | |
26012 | ||
8edf1c75 | 26013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26018 | arg3 = (int) SWIG_AsInt(obj2); | |
26019 | if (PyErr_Occurred()) SWIG_fail; | |
26020 | arg4 = (int) SWIG_AsInt(obj3); | |
26021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26022 | { |
26023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26024 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26025 | ||
26026 | wxPyEndAllowThreads(__tstate); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
26028 | } | |
4f89f6a3 RD |
26029 | { |
26030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26031 | } | |
d14a1e28 RD |
26032 | return resultobj; |
26033 | fail: | |
26034 | return NULL; | |
26035 | } | |
26036 | ||
26037 | ||
26038 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26039 | PyObject *resultobj; | |
26040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26041 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26042 | wxPoint *arg3 = 0 ; | |
26043 | bool result; | |
26044 | wxPoint temp3 ; | |
26045 | PyObject * obj0 = 0 ; | |
26046 | PyObject * obj1 = 0 ; | |
26047 | PyObject * obj2 = 0 ; | |
26048 | char *kwnames[] = { | |
26049 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26050 | }; | |
26051 | ||
26052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26057 | { |
26058 | arg3 = &temp3; | |
26059 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26060 | } | |
26061 | { | |
26062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26063 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26064 | ||
26065 | wxPyEndAllowThreads(__tstate); | |
26066 | if (PyErr_Occurred()) SWIG_fail; | |
26067 | } | |
4f89f6a3 RD |
26068 | { |
26069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26070 | } | |
d14a1e28 RD |
26071 | return resultobj; |
26072 | fail: | |
26073 | return NULL; | |
26074 | } | |
26075 | ||
26076 | ||
26077 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26078 | PyObject *resultobj; | |
26079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26080 | long result; | |
26081 | PyObject * obj0 = 0 ; | |
26082 | char *kwnames[] = { | |
26083 | (char *) "self", NULL | |
26084 | }; | |
26085 | ||
26086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26089 | { |
26090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26091 | result = (long)wxWindow_GetHandle(arg1); | |
26092 | ||
26093 | wxPyEndAllowThreads(__tstate); | |
26094 | if (PyErr_Occurred()) SWIG_fail; | |
26095 | } | |
2f4c0a16 | 26096 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
26097 | return resultobj; |
26098 | fail: | |
26099 | return NULL; | |
26100 | } | |
26101 | ||
26102 | ||
26103 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26104 | PyObject *resultobj; | |
26105 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26106 | wxPaintEvent *arg2 = 0 ; | |
26107 | PyObject * obj0 = 0 ; | |
26108 | PyObject * obj1 = 0 ; | |
26109 | char *kwnames[] = { | |
26110 | (char *) "self",(char *) "event", NULL | |
26111 | }; | |
26112 | ||
26113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26116 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
26117 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26118 | SWIG_fail; | |
d14a1e28 | 26119 | if (arg2 == NULL) { |
2f4c0a16 RD |
26120 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26121 | SWIG_fail; | |
d14a1e28 RD |
26122 | } |
26123 | { | |
26124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26125 | (arg1)->OnPaint(*arg2); | |
26126 | ||
26127 | wxPyEndAllowThreads(__tstate); | |
26128 | if (PyErr_Occurred()) SWIG_fail; | |
26129 | } | |
26130 | Py_INCREF(Py_None); resultobj = Py_None; | |
26131 | return resultobj; | |
26132 | fail: | |
26133 | return NULL; | |
26134 | } | |
26135 | ||
26136 | ||
26137 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26138 | PyObject *resultobj; | |
26139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26140 | int arg2 ; | |
26141 | bool result; | |
26142 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26144 | char *kwnames[] = { |
26145 | (char *) "self",(char *) "orient", NULL | |
26146 | }; | |
26147 | ||
8edf1c75 | 26148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26151 | arg2 = (int) SWIG_AsInt(obj1); | |
26152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26153 | { |
26154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26155 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26156 | ||
26157 | wxPyEndAllowThreads(__tstate); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
4f89f6a3 RD |
26160 | { |
26161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26162 | } | |
d14a1e28 RD |
26163 | return resultobj; |
26164 | fail: | |
26165 | return NULL; | |
26166 | } | |
26167 | ||
26168 | ||
26169 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26170 | PyObject *resultobj; | |
26171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26172 | int arg2 ; | |
26173 | int arg3 ; | |
26174 | int arg4 ; | |
26175 | int arg5 ; | |
423f194a | 26176 | bool arg6 = (bool) True ; |
d14a1e28 | 26177 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
26178 | PyObject * obj1 = 0 ; |
26179 | PyObject * obj2 = 0 ; | |
26180 | PyObject * obj3 = 0 ; | |
26181 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26182 | PyObject * obj5 = 0 ; |
26183 | char *kwnames[] = { | |
2f4c0a16 | 26184 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
26185 | }; |
26186 | ||
8edf1c75 | 26187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26190 | arg2 = (int) SWIG_AsInt(obj1); | |
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | arg3 = (int) SWIG_AsInt(obj2); | |
26193 | if (PyErr_Occurred()) SWIG_fail; | |
26194 | arg4 = (int) SWIG_AsInt(obj3); | |
26195 | if (PyErr_Occurred()) SWIG_fail; | |
26196 | arg5 = (int) SWIG_AsInt(obj4); | |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26198 | if (obj5) { |
2f4c0a16 RD |
26199 | arg6 = (bool) SWIG_AsBool(obj5); |
26200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26201 | } |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | Py_INCREF(Py_None); resultobj = Py_None; | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj; | |
26218 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26219 | int arg2 ; | |
26220 | int arg3 ; | |
423f194a | 26221 | bool arg4 = (bool) True ; |
d14a1e28 | 26222 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
26223 | PyObject * obj1 = 0 ; |
26224 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26225 | PyObject * obj3 = 0 ; |
26226 | char *kwnames[] = { | |
2f4c0a16 | 26227 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
26228 | }; |
26229 | ||
8edf1c75 | 26230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26233 | arg2 = (int) SWIG_AsInt(obj1); | |
26234 | if (PyErr_Occurred()) SWIG_fail; | |
26235 | arg3 = (int) SWIG_AsInt(obj2); | |
26236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26237 | if (obj3) { |
2f4c0a16 RD |
26238 | arg4 = (bool) SWIG_AsBool(obj3); |
26239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26240 | } |
26241 | { | |
26242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26243 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
26244 | ||
26245 | wxPyEndAllowThreads(__tstate); | |
26246 | if (PyErr_Occurred()) SWIG_fail; | |
26247 | } | |
26248 | Py_INCREF(Py_None); resultobj = Py_None; | |
26249 | return resultobj; | |
26250 | fail: | |
26251 | return NULL; | |
26252 | } | |
26253 | ||
26254 | ||
26255 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26256 | PyObject *resultobj; | |
26257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26258 | int arg2 ; | |
26259 | int result; | |
26260 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26261 | PyObject * obj1 = 0 ; |
d14a1e28 | 26262 | char *kwnames[] = { |
2f4c0a16 | 26263 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26264 | }; |
26265 | ||
8edf1c75 | 26266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26269 | arg2 = (int) SWIG_AsInt(obj1); | |
26270 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26271 | { |
26272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26273 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
26274 | ||
26275 | wxPyEndAllowThreads(__tstate); | |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
26277 | } | |
2f4c0a16 | 26278 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26279 | return resultobj; |
26280 | fail: | |
26281 | return NULL; | |
26282 | } | |
26283 | ||
26284 | ||
26285 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26286 | PyObject *resultobj; | |
26287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26288 | int arg2 ; | |
26289 | int result; | |
26290 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26291 | PyObject * obj1 = 0 ; |
d14a1e28 | 26292 | char *kwnames[] = { |
2f4c0a16 | 26293 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26294 | }; |
26295 | ||
8edf1c75 | 26296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26299 | arg2 = (int) SWIG_AsInt(obj1); | |
26300 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26301 | { |
26302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26303 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
26304 | ||
26305 | wxPyEndAllowThreads(__tstate); | |
26306 | if (PyErr_Occurred()) SWIG_fail; | |
26307 | } | |
2f4c0a16 | 26308 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26309 | return resultobj; |
26310 | fail: | |
26311 | return NULL; | |
26312 | } | |
26313 | ||
26314 | ||
26315 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26316 | PyObject *resultobj; | |
26317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26318 | int arg2 ; | |
26319 | int result; | |
26320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26321 | PyObject * obj1 = 0 ; |
d14a1e28 | 26322 | char *kwnames[] = { |
2f4c0a16 | 26323 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26324 | }; |
26325 | ||
8edf1c75 | 26326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26329 | arg2 = (int) SWIG_AsInt(obj1); | |
26330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26331 | { |
26332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26333 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
26334 | ||
26335 | wxPyEndAllowThreads(__tstate); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
26337 | } | |
2f4c0a16 | 26338 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26339 | return resultobj; |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
26345 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26346 | PyObject *resultobj; | |
26347 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26348 | int arg2 ; | |
26349 | int arg3 ; | |
26350 | wxRect *arg4 = (wxRect *) NULL ; | |
26351 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26352 | PyObject * obj1 = 0 ; |
26353 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26354 | PyObject * obj3 = 0 ; |
26355 | char *kwnames[] = { | |
26356 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
26357 | }; | |
26358 | ||
8edf1c75 | 26359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26362 | arg2 = (int) SWIG_AsInt(obj1); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | arg3 = (int) SWIG_AsInt(obj2); | |
26365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26366 | if (obj3) { |
2f4c0a16 RD |
26367 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
26368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26369 | } |
26370 | { | |
26371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26372 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
26373 | ||
26374 | wxPyEndAllowThreads(__tstate); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
26377 | Py_INCREF(Py_None); resultobj = Py_None; | |
26378 | return resultobj; | |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
26384 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26385 | PyObject *resultobj; | |
26386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26387 | int arg2 ; | |
26388 | bool result; | |
26389 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26391 | char *kwnames[] = { |
26392 | (char *) "self",(char *) "lines", NULL | |
26393 | }; | |
26394 | ||
8edf1c75 | 26395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26398 | arg2 = (int) SWIG_AsInt(obj1); | |
26399 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26400 | { |
26401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26402 | result = (bool)(arg1)->ScrollLines(arg2); | |
26403 | ||
26404 | wxPyEndAllowThreads(__tstate); | |
26405 | if (PyErr_Occurred()) SWIG_fail; | |
26406 | } | |
4f89f6a3 RD |
26407 | { |
26408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26409 | } | |
d14a1e28 RD |
26410 | return resultobj; |
26411 | fail: | |
26412 | return NULL; | |
26413 | } | |
26414 | ||
26415 | ||
26416 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26417 | PyObject *resultobj; | |
26418 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26419 | int arg2 ; | |
26420 | bool result; | |
26421 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26423 | char *kwnames[] = { |
26424 | (char *) "self",(char *) "pages", NULL | |
26425 | }; | |
26426 | ||
8edf1c75 | 26427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26430 | arg2 = (int) SWIG_AsInt(obj1); | |
26431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26432 | { |
26433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26434 | result = (bool)(arg1)->ScrollPages(arg2); | |
26435 | ||
26436 | wxPyEndAllowThreads(__tstate); | |
26437 | if (PyErr_Occurred()) SWIG_fail; | |
26438 | } | |
4f89f6a3 RD |
26439 | { |
26440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26441 | } | |
d14a1e28 RD |
26442 | return resultobj; |
26443 | fail: | |
26444 | return NULL; | |
26445 | } | |
26446 | ||
26447 | ||
26448 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26449 | PyObject *resultobj; | |
26450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26451 | bool result; | |
26452 | PyObject * obj0 = 0 ; | |
26453 | char *kwnames[] = { | |
26454 | (char *) "self", NULL | |
26455 | }; | |
26456 | ||
26457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26460 | { |
26461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26462 | result = (bool)(arg1)->LineUp(); | |
26463 | ||
26464 | wxPyEndAllowThreads(__tstate); | |
26465 | if (PyErr_Occurred()) SWIG_fail; | |
26466 | } | |
4f89f6a3 RD |
26467 | { |
26468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26469 | } | |
d14a1e28 RD |
26470 | return resultobj; |
26471 | fail: | |
26472 | return NULL; | |
26473 | } | |
26474 | ||
26475 | ||
26476 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26477 | PyObject *resultobj; | |
26478 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26479 | bool result; | |
26480 | PyObject * obj0 = 0 ; | |
26481 | char *kwnames[] = { | |
26482 | (char *) "self", NULL | |
26483 | }; | |
26484 | ||
26485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26488 | { |
26489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26490 | result = (bool)(arg1)->LineDown(); | |
26491 | ||
26492 | wxPyEndAllowThreads(__tstate); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | } | |
4f89f6a3 RD |
26495 | { |
26496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26497 | } | |
d14a1e28 RD |
26498 | return resultobj; |
26499 | fail: | |
26500 | return NULL; | |
26501 | } | |
26502 | ||
26503 | ||
26504 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26505 | PyObject *resultobj; | |
26506 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26507 | bool result; | |
26508 | PyObject * obj0 = 0 ; | |
26509 | char *kwnames[] = { | |
26510 | (char *) "self", NULL | |
26511 | }; | |
26512 | ||
26513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26516 | { |
26517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26518 | result = (bool)(arg1)->PageUp(); | |
26519 | ||
26520 | wxPyEndAllowThreads(__tstate); | |
26521 | if (PyErr_Occurred()) SWIG_fail; | |
26522 | } | |
4f89f6a3 RD |
26523 | { |
26524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26525 | } | |
d14a1e28 RD |
26526 | return resultobj; |
26527 | fail: | |
26528 | return NULL; | |
26529 | } | |
26530 | ||
26531 | ||
26532 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26533 | PyObject *resultobj; | |
26534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26535 | bool result; | |
26536 | PyObject * obj0 = 0 ; | |
26537 | char *kwnames[] = { | |
26538 | (char *) "self", NULL | |
26539 | }; | |
26540 | ||
26541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26544 | { |
26545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26546 | result = (bool)(arg1)->PageDown(); | |
26547 | ||
26548 | wxPyEndAllowThreads(__tstate); | |
26549 | if (PyErr_Occurred()) SWIG_fail; | |
26550 | } | |
4f89f6a3 RD |
26551 | { |
26552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26553 | } | |
d14a1e28 RD |
26554 | return resultobj; |
26555 | fail: | |
26556 | return NULL; | |
26557 | } | |
26558 | ||
26559 | ||
26560 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26561 | PyObject *resultobj; | |
26562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26563 | wxString *arg2 = 0 ; | |
423f194a | 26564 | bool temp2 = False ; |
d14a1e28 RD |
26565 | PyObject * obj0 = 0 ; |
26566 | PyObject * obj1 = 0 ; | |
26567 | char *kwnames[] = { | |
26568 | (char *) "self",(char *) "text", NULL | |
26569 | }; | |
26570 | ||
26571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26574 | { |
26575 | arg2 = wxString_in_helper(obj1); | |
26576 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26577 | temp2 = True; |
d14a1e28 RD |
26578 | } |
26579 | { | |
26580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26581 | (arg1)->SetHelpText((wxString const &)*arg2); | |
26582 | ||
26583 | wxPyEndAllowThreads(__tstate); | |
26584 | if (PyErr_Occurred()) SWIG_fail; | |
26585 | } | |
26586 | Py_INCREF(Py_None); resultobj = Py_None; | |
26587 | { | |
26588 | if (temp2) | |
26589 | delete arg2; | |
26590 | } | |
26591 | return resultobj; | |
26592 | fail: | |
26593 | { | |
26594 | if (temp2) | |
26595 | delete arg2; | |
26596 | } | |
26597 | return NULL; | |
26598 | } | |
26599 | ||
26600 | ||
26601 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26602 | PyObject *resultobj; | |
26603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26604 | wxString *arg2 = 0 ; | |
423f194a | 26605 | bool temp2 = False ; |
d14a1e28 RD |
26606 | PyObject * obj0 = 0 ; |
26607 | PyObject * obj1 = 0 ; | |
26608 | char *kwnames[] = { | |
26609 | (char *) "self",(char *) "text", NULL | |
26610 | }; | |
26611 | ||
26612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26615 | { |
26616 | arg2 = wxString_in_helper(obj1); | |
26617 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26618 | temp2 = True; |
d14a1e28 RD |
26619 | } |
26620 | { | |
26621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26622 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
26623 | ||
26624 | wxPyEndAllowThreads(__tstate); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | } | |
26627 | Py_INCREF(Py_None); resultobj = Py_None; | |
26628 | { | |
26629 | if (temp2) | |
26630 | delete arg2; | |
26631 | } | |
26632 | return resultobj; | |
26633 | fail: | |
26634 | { | |
26635 | if (temp2) | |
26636 | delete arg2; | |
26637 | } | |
26638 | return NULL; | |
26639 | } | |
26640 | ||
26641 | ||
26642 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26643 | PyObject *resultobj; | |
26644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26645 | wxString result; | |
26646 | PyObject * obj0 = 0 ; | |
26647 | char *kwnames[] = { | |
26648 | (char *) "self", NULL | |
26649 | }; | |
26650 | ||
26651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26654 | { |
26655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26656 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
26657 | ||
26658 | wxPyEndAllowThreads(__tstate); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
26660 | } | |
26661 | { | |
26662 | #if wxUSE_UNICODE | |
26663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26664 | #else | |
26665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26666 | #endif | |
26667 | } | |
26668 | return resultobj; | |
26669 | fail: | |
26670 | return NULL; | |
26671 | } | |
26672 | ||
26673 | ||
26674 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26675 | PyObject *resultobj; | |
26676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26677 | wxString *arg2 = 0 ; | |
423f194a | 26678 | bool temp2 = False ; |
d14a1e28 RD |
26679 | PyObject * obj0 = 0 ; |
26680 | PyObject * obj1 = 0 ; | |
26681 | char *kwnames[] = { | |
26682 | (char *) "self",(char *) "tip", NULL | |
26683 | }; | |
26684 | ||
26685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26688 | { |
26689 | arg2 = wxString_in_helper(obj1); | |
26690 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26691 | temp2 = True; |
d14a1e28 RD |
26692 | } |
26693 | { | |
26694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26695 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26696 | ||
26697 | wxPyEndAllowThreads(__tstate); | |
26698 | if (PyErr_Occurred()) SWIG_fail; | |
26699 | } | |
26700 | Py_INCREF(Py_None); resultobj = Py_None; | |
26701 | { | |
26702 | if (temp2) | |
26703 | delete arg2; | |
26704 | } | |
26705 | return resultobj; | |
26706 | fail: | |
26707 | { | |
26708 | if (temp2) | |
26709 | delete arg2; | |
26710 | } | |
26711 | return NULL; | |
26712 | } | |
26713 | ||
26714 | ||
26715 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26716 | PyObject *resultobj; | |
26717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26718 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26719 | PyObject * obj0 = 0 ; | |
26720 | PyObject * obj1 = 0 ; | |
26721 | char *kwnames[] = { | |
26722 | (char *) "self",(char *) "tip", NULL | |
26723 | }; | |
26724 | ||
26725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26728 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
26729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26730 | { |
26731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26732 | (arg1)->SetToolTip(arg2); | |
26733 | ||
26734 | wxPyEndAllowThreads(__tstate); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
26736 | } | |
26737 | Py_INCREF(Py_None); resultobj = Py_None; | |
26738 | return resultobj; | |
26739 | fail: | |
26740 | return NULL; | |
26741 | } | |
26742 | ||
26743 | ||
26744 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26745 | PyObject *resultobj; | |
26746 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26747 | wxToolTip *result; | |
26748 | PyObject * obj0 = 0 ; | |
26749 | char *kwnames[] = { | |
26750 | (char *) "self", NULL | |
26751 | }; | |
26752 | ||
26753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26756 | { |
26757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26758 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26759 | ||
26760 | wxPyEndAllowThreads(__tstate); | |
26761 | if (PyErr_Occurred()) SWIG_fail; | |
26762 | } | |
26763 | { | |
26764 | resultobj = wxPyMake_wxObject(result); | |
26765 | } | |
26766 | return resultobj; | |
26767 | fail: | |
26768 | return NULL; | |
26769 | } | |
26770 | ||
26771 | ||
26772 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26773 | PyObject *resultobj; | |
26774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26775 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26776 | PyObject * obj0 = 0 ; |
26777 | PyObject * obj1 = 0 ; | |
26778 | char *kwnames[] = { | |
26779 | (char *) "self",(char *) "dropTarget", NULL | |
26780 | }; | |
26781 | ||
26782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
26786 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26787 | { |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | (arg1)->SetDropTarget(arg2); | |
26790 | ||
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | Py_INCREF(Py_None); resultobj = Py_None; | |
26795 | return resultobj; | |
26796 | fail: | |
26797 | return NULL; | |
26798 | } | |
26799 | ||
26800 | ||
26801 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26802 | PyObject *resultobj; | |
26803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26804 | wxPyDropTarget *result; |
d14a1e28 RD |
26805 | PyObject * obj0 = 0 ; |
26806 | char *kwnames[] = { | |
26807 | (char *) "self", NULL | |
26808 | }; | |
26809 | ||
26810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26813 | { |
26814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26815 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26816 | |
26817 | wxPyEndAllowThreads(__tstate); | |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
26819 | } | |
2f4c0a16 | 26820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26821 | return resultobj; |
26822 | fail: | |
26823 | return NULL; | |
26824 | } | |
26825 | ||
26826 | ||
26827 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26828 | PyObject *resultobj; | |
26829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26830 | bool arg2 ; | |
26831 | PyObject * obj0 = 0 ; | |
26832 | PyObject * obj1 = 0 ; | |
26833 | char *kwnames[] = { | |
26834 | (char *) "self",(char *) "accept", NULL | |
26835 | }; | |
26836 | ||
26837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26840 | arg2 = (bool) SWIG_AsBool(obj1); | |
26841 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26842 | { |
26843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26844 | (arg1)->DragAcceptFiles(arg2); | |
26845 | ||
26846 | wxPyEndAllowThreads(__tstate); | |
26847 | if (PyErr_Occurred()) SWIG_fail; | |
26848 | } | |
26849 | Py_INCREF(Py_None); resultobj = Py_None; | |
26850 | return resultobj; | |
26851 | fail: | |
26852 | return NULL; | |
26853 | } | |
26854 | ||
26855 | ||
26856 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26857 | PyObject *resultobj; | |
26858 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26859 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26860 | PyObject * obj0 = 0 ; | |
26861 | PyObject * obj1 = 0 ; | |
26862 | char *kwnames[] = { | |
26863 | (char *) "self",(char *) "constraints", NULL | |
26864 | }; | |
26865 | ||
26866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26869 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
26870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26871 | { |
26872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26873 | (arg1)->SetConstraints(arg2); | |
26874 | ||
26875 | wxPyEndAllowThreads(__tstate); | |
26876 | if (PyErr_Occurred()) SWIG_fail; | |
26877 | } | |
26878 | Py_INCREF(Py_None); resultobj = Py_None; | |
26879 | return resultobj; | |
26880 | fail: | |
26881 | return NULL; | |
26882 | } | |
26883 | ||
26884 | ||
26885 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26886 | PyObject *resultobj; | |
26887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26888 | wxLayoutConstraints *result; | |
26889 | PyObject * obj0 = 0 ; | |
26890 | char *kwnames[] = { | |
26891 | (char *) "self", NULL | |
26892 | }; | |
26893 | ||
26894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26897 | { |
26898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26899 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26900 | ||
26901 | wxPyEndAllowThreads(__tstate); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
2f4c0a16 | 26904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
26905 | return resultobj; |
26906 | fail: | |
26907 | return NULL; | |
26908 | } | |
26909 | ||
26910 | ||
26911 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26912 | PyObject *resultobj; | |
26913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26914 | bool arg2 ; | |
26915 | PyObject * obj0 = 0 ; | |
26916 | PyObject * obj1 = 0 ; | |
26917 | char *kwnames[] = { | |
26918 | (char *) "self",(char *) "autoLayout", NULL | |
26919 | }; | |
26920 | ||
26921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26924 | arg2 = (bool) SWIG_AsBool(obj1); | |
26925 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26926 | { |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | (arg1)->SetAutoLayout(arg2); | |
26929 | ||
26930 | wxPyEndAllowThreads(__tstate); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
26932 | } | |
26933 | Py_INCREF(Py_None); resultobj = Py_None; | |
26934 | return resultobj; | |
26935 | fail: | |
26936 | return NULL; | |
26937 | } | |
26938 | ||
26939 | ||
26940 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26941 | PyObject *resultobj; | |
26942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26943 | bool result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | char *kwnames[] = { | |
26946 | (char *) "self", NULL | |
26947 | }; | |
26948 | ||
26949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26952 | { |
26953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26954 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26955 | ||
26956 | wxPyEndAllowThreads(__tstate); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
26958 | } | |
4f89f6a3 RD |
26959 | { |
26960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26961 | } | |
d14a1e28 RD |
26962 | return resultobj; |
26963 | fail: | |
26964 | return NULL; | |
26965 | } | |
26966 | ||
26967 | ||
26968 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26969 | PyObject *resultobj; | |
26970 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26971 | bool result; | |
26972 | PyObject * obj0 = 0 ; | |
26973 | char *kwnames[] = { | |
26974 | (char *) "self", NULL | |
26975 | }; | |
26976 | ||
26977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26980 | { |
26981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26982 | result = (bool)(arg1)->Layout(); | |
26983 | ||
26984 | wxPyEndAllowThreads(__tstate); | |
26985 | if (PyErr_Occurred()) SWIG_fail; | |
26986 | } | |
4f89f6a3 RD |
26987 | { |
26988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26989 | } | |
d14a1e28 RD |
26990 | return resultobj; |
26991 | fail: | |
26992 | return NULL; | |
26993 | } | |
26994 | ||
26995 | ||
26996 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26997 | PyObject *resultobj; | |
26998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26999 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 27000 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27001 | PyObject * obj0 = 0 ; |
27002 | PyObject * obj1 = 0 ; | |
27003 | PyObject * obj2 = 0 ; | |
27004 | char *kwnames[] = { | |
27005 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27006 | }; | |
27007 | ||
27008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27013 | if (obj2) { |
2f4c0a16 RD |
27014 | arg3 = (bool) SWIG_AsBool(obj2); |
27015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27016 | } |
27017 | { | |
27018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27019 | (arg1)->SetSizer(arg2,arg3); | |
27020 | ||
27021 | wxPyEndAllowThreads(__tstate); | |
27022 | if (PyErr_Occurred()) SWIG_fail; | |
27023 | } | |
27024 | Py_INCREF(Py_None); resultobj = Py_None; | |
27025 | return resultobj; | |
27026 | fail: | |
27027 | return NULL; | |
27028 | } | |
27029 | ||
27030 | ||
27031 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27032 | PyObject *resultobj; | |
27033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27034 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 27035 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27036 | PyObject * obj0 = 0 ; |
27037 | PyObject * obj1 = 0 ; | |
27038 | PyObject * obj2 = 0 ; | |
27039 | char *kwnames[] = { | |
27040 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27041 | }; | |
27042 | ||
27043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27048 | if (obj2) { |
2f4c0a16 RD |
27049 | arg3 = (bool) SWIG_AsBool(obj2); |
27050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27051 | } |
27052 | { | |
27053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27054 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27055 | ||
27056 | wxPyEndAllowThreads(__tstate); | |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
27058 | } | |
27059 | Py_INCREF(Py_None); resultobj = Py_None; | |
27060 | return resultobj; | |
27061 | fail: | |
27062 | return NULL; | |
27063 | } | |
27064 | ||
27065 | ||
27066 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27067 | PyObject *resultobj; | |
27068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27069 | wxSizer *result; | |
27070 | PyObject * obj0 = 0 ; | |
27071 | char *kwnames[] = { | |
27072 | (char *) "self", NULL | |
27073 | }; | |
27074 | ||
27075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27078 | { |
27079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27080 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27081 | ||
27082 | wxPyEndAllowThreads(__tstate); | |
27083 | if (PyErr_Occurred()) SWIG_fail; | |
27084 | } | |
27085 | { | |
27086 | resultobj = wxPyMake_wxSizer(result); | |
27087 | } | |
27088 | return resultobj; | |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
27094 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27095 | PyObject *resultobj; | |
27096 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27097 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27098 | PyObject * obj0 = 0 ; | |
27099 | PyObject * obj1 = 0 ; | |
27100 | char *kwnames[] = { | |
27101 | (char *) "self",(char *) "sizer", NULL | |
27102 | }; | |
27103 | ||
27104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27109 | { |
27110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27111 | (arg1)->SetContainingSizer(arg2); | |
27112 | ||
27113 | wxPyEndAllowThreads(__tstate); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
27116 | Py_INCREF(Py_None); resultobj = Py_None; | |
27117 | return resultobj; | |
27118 | fail: | |
27119 | return NULL; | |
27120 | } | |
27121 | ||
27122 | ||
27123 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27124 | PyObject *resultobj; | |
27125 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27126 | wxSizer *result; | |
27127 | PyObject * obj0 = 0 ; | |
27128 | char *kwnames[] = { | |
27129 | (char *) "self", NULL | |
27130 | }; | |
27131 | ||
27132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27135 | { |
27136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27137 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27138 | ||
27139 | wxPyEndAllowThreads(__tstate); | |
27140 | if (PyErr_Occurred()) SWIG_fail; | |
27141 | } | |
27142 | { | |
27143 | resultobj = wxPyMake_wxSizer(result); | |
27144 | } | |
27145 | return resultobj; | |
27146 | fail: | |
27147 | return NULL; | |
27148 | } | |
27149 | ||
27150 | ||
27151 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
27152 | PyObject *obj; | |
27153 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27154 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27155 | Py_INCREF(obj); | |
27156 | return Py_BuildValue((char *)""); | |
27157 | } | |
27158 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27159 | PyObject *resultobj; | |
27160 | long arg1 ; | |
27161 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27162 | wxWindow *result; | |
8edf1c75 | 27163 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27164 | PyObject * obj1 = 0 ; |
27165 | char *kwnames[] = { | |
27166 | (char *) "id",(char *) "parent", NULL | |
27167 | }; | |
27168 | ||
8edf1c75 | 27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
27170 | arg1 = (long) SWIG_AsLong(obj0); |
27171 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27172 | if (obj1) { |
2f4c0a16 RD |
27173 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27175 | } |
27176 | { | |
27177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27178 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
27179 | ||
27180 | wxPyEndAllowThreads(__tstate); | |
27181 | if (PyErr_Occurred()) SWIG_fail; | |
27182 | } | |
27183 | { | |
27184 | resultobj = wxPyMake_wxObject(result); | |
27185 | } | |
27186 | return resultobj; | |
27187 | fail: | |
27188 | return NULL; | |
27189 | } | |
27190 | ||
27191 | ||
27192 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27193 | PyObject *resultobj; | |
27194 | wxString *arg1 = 0 ; | |
27195 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27196 | wxWindow *result; | |
423f194a | 27197 | bool temp1 = False ; |
d14a1e28 RD |
27198 | PyObject * obj0 = 0 ; |
27199 | PyObject * obj1 = 0 ; | |
27200 | char *kwnames[] = { | |
27201 | (char *) "name",(char *) "parent", NULL | |
27202 | }; | |
27203 | ||
27204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
27205 | { | |
27206 | arg1 = wxString_in_helper(obj0); | |
27207 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27208 | temp1 = True; |
d14a1e28 RD |
27209 | } |
27210 | if (obj1) { | |
2f4c0a16 RD |
27211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27213 | } |
27214 | { | |
27215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27216 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
27217 | ||
27218 | wxPyEndAllowThreads(__tstate); | |
27219 | if (PyErr_Occurred()) SWIG_fail; | |
27220 | } | |
27221 | { | |
27222 | resultobj = wxPyMake_wxObject(result); | |
27223 | } | |
27224 | { | |
27225 | if (temp1) | |
27226 | delete arg1; | |
27227 | } | |
27228 | return resultobj; | |
27229 | fail: | |
27230 | { | |
27231 | if (temp1) | |
27232 | delete arg1; | |
27233 | } | |
27234 | return NULL; | |
27235 | } | |
27236 | ||
27237 | ||
27238 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27239 | PyObject *resultobj; | |
27240 | wxString *arg1 = 0 ; | |
27241 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27242 | wxWindow *result; | |
423f194a | 27243 | bool temp1 = False ; |
d14a1e28 RD |
27244 | PyObject * obj0 = 0 ; |
27245 | PyObject * obj1 = 0 ; | |
27246 | char *kwnames[] = { | |
27247 | (char *) "label",(char *) "parent", NULL | |
27248 | }; | |
27249 | ||
27250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
27251 | { | |
27252 | arg1 = wxString_in_helper(obj0); | |
27253 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27254 | temp1 = True; |
d14a1e28 RD |
27255 | } |
27256 | if (obj1) { | |
2f4c0a16 RD |
27257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27259 | } |
27260 | { | |
27261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27262 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
27263 | ||
27264 | wxPyEndAllowThreads(__tstate); | |
27265 | if (PyErr_Occurred()) SWIG_fail; | |
27266 | } | |
27267 | { | |
27268 | resultobj = wxPyMake_wxObject(result); | |
27269 | } | |
27270 | { | |
27271 | if (temp1) | |
27272 | delete arg1; | |
27273 | } | |
27274 | return resultobj; | |
27275 | fail: | |
27276 | { | |
27277 | if (temp1) | |
27278 | delete arg1; | |
27279 | } | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
27284 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27285 | PyObject *resultobj; | |
fe763115 RD |
27286 | wxWindow *arg1 = (wxWindow *) 0 ; |
27287 | unsigned long arg2 ; | |
d14a1e28 RD |
27288 | wxWindow *result; |
27289 | PyObject * obj0 = 0 ; | |
fe763115 | 27290 | PyObject * obj1 = 0 ; |
d14a1e28 | 27291 | char *kwnames[] = { |
fe763115 | 27292 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
27293 | }; |
27294 | ||
fe763115 RD |
27295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
27296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27298 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
2f4c0a16 | 27299 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27300 | { |
27301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fe763115 | 27302 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
27303 | |
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
27307 | { | |
27308 | resultobj = wxPyMake_wxObject(result); | |
27309 | } | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj; | |
27318 | wxValidator *result; | |
27319 | char *kwnames[] = { | |
27320 | NULL | |
27321 | }; | |
27322 | ||
27323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
27324 | { | |
27325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27326 | result = (wxValidator *)new wxValidator(); | |
27327 | ||
27328 | wxPyEndAllowThreads(__tstate); | |
27329 | if (PyErr_Occurred()) SWIG_fail; | |
27330 | } | |
27331 | { | |
27332 | resultobj = wxPyMake_wxObject(result); | |
27333 | } | |
27334 | return resultobj; | |
27335 | fail: | |
27336 | return NULL; | |
27337 | } | |
27338 | ||
27339 | ||
27340 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27341 | PyObject *resultobj; | |
27342 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27343 | wxValidator *result; | |
27344 | PyObject * obj0 = 0 ; | |
27345 | char *kwnames[] = { | |
27346 | (char *) "self", NULL | |
27347 | }; | |
27348 | ||
27349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27352 | { |
27353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27354 | result = (wxValidator *)(arg1)->Clone(); | |
27355 | ||
27356 | wxPyEndAllowThreads(__tstate); | |
27357 | if (PyErr_Occurred()) SWIG_fail; | |
27358 | } | |
27359 | { | |
27360 | resultobj = wxPyMake_wxObject(result); | |
27361 | } | |
27362 | return resultobj; | |
27363 | fail: | |
27364 | return NULL; | |
27365 | } | |
27366 | ||
27367 | ||
27368 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27369 | PyObject *resultobj; | |
27370 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27371 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27372 | bool result; | |
27373 | PyObject * obj0 = 0 ; | |
27374 | PyObject * obj1 = 0 ; | |
27375 | char *kwnames[] = { | |
27376 | (char *) "self",(char *) "parent", NULL | |
27377 | }; | |
27378 | ||
27379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27382 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27384 | { |
27385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27386 | result = (bool)(arg1)->Validate(arg2); | |
27387 | ||
27388 | wxPyEndAllowThreads(__tstate); | |
27389 | if (PyErr_Occurred()) SWIG_fail; | |
27390 | } | |
4f89f6a3 RD |
27391 | { |
27392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27393 | } | |
d14a1e28 RD |
27394 | return resultobj; |
27395 | fail: | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27403 | bool result; | |
27404 | PyObject * obj0 = 0 ; | |
27405 | char *kwnames[] = { | |
27406 | (char *) "self", NULL | |
27407 | }; | |
27408 | ||
27409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27412 | { |
27413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27414 | result = (bool)(arg1)->TransferToWindow(); | |
27415 | ||
27416 | wxPyEndAllowThreads(__tstate); | |
27417 | if (PyErr_Occurred()) SWIG_fail; | |
27418 | } | |
4f89f6a3 RD |
27419 | { |
27420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27421 | } | |
d14a1e28 RD |
27422 | return resultobj; |
27423 | fail: | |
27424 | return NULL; | |
27425 | } | |
27426 | ||
27427 | ||
27428 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27429 | PyObject *resultobj; | |
27430 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27431 | bool result; | |
27432 | PyObject * obj0 = 0 ; | |
27433 | char *kwnames[] = { | |
27434 | (char *) "self", NULL | |
27435 | }; | |
27436 | ||
27437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27440 | { |
27441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27442 | result = (bool)(arg1)->TransferFromWindow(); | |
27443 | ||
27444 | wxPyEndAllowThreads(__tstate); | |
27445 | if (PyErr_Occurred()) SWIG_fail; | |
27446 | } | |
4f89f6a3 RD |
27447 | { |
27448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27449 | } | |
d14a1e28 RD |
27450 | return resultobj; |
27451 | fail: | |
27452 | return NULL; | |
27453 | } | |
27454 | ||
27455 | ||
27456 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27457 | PyObject *resultobj; | |
27458 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27459 | wxWindow *result; | |
27460 | PyObject * obj0 = 0 ; | |
27461 | char *kwnames[] = { | |
27462 | (char *) "self", NULL | |
27463 | }; | |
27464 | ||
27465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27468 | { |
27469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27470 | result = (wxWindow *)(arg1)->GetWindow(); | |
27471 | ||
27472 | wxPyEndAllowThreads(__tstate); | |
27473 | if (PyErr_Occurred()) SWIG_fail; | |
27474 | } | |
27475 | { | |
27476 | resultobj = wxPyMake_wxObject(result); | |
27477 | } | |
27478 | return resultobj; | |
27479 | fail: | |
27480 | return NULL; | |
27481 | } | |
27482 | ||
27483 | ||
27484 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27485 | PyObject *resultobj; | |
27486 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27488 | PyObject * obj0 = 0 ; | |
27489 | PyObject * obj1 = 0 ; | |
27490 | char *kwnames[] = { | |
27491 | (char *) "self",(char *) "window", NULL | |
27492 | }; | |
27493 | ||
27494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27499 | { |
27500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27501 | (arg1)->SetWindow(arg2); | |
27502 | ||
27503 | wxPyEndAllowThreads(__tstate); | |
27504 | if (PyErr_Occurred()) SWIG_fail; | |
27505 | } | |
27506 | Py_INCREF(Py_None); resultobj = Py_None; | |
27507 | return resultobj; | |
27508 | fail: | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27514 | PyObject *resultobj; | |
27515 | bool result; | |
27516 | char *kwnames[] = { | |
27517 | NULL | |
27518 | }; | |
27519 | ||
27520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
27521 | { | |
27522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27523 | result = (bool)wxValidator::IsSilent(); | |
27524 | ||
27525 | wxPyEndAllowThreads(__tstate); | |
27526 | if (PyErr_Occurred()) SWIG_fail; | |
27527 | } | |
4f89f6a3 RD |
27528 | { |
27529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27530 | } | |
d14a1e28 RD |
27531 | return resultobj; |
27532 | fail: | |
27533 | return NULL; | |
27534 | } | |
27535 | ||
27536 | ||
27537 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27538 | PyObject *resultobj; | |
423f194a | 27539 | int arg1 = (int) True ; |
8edf1c75 | 27540 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27541 | char *kwnames[] = { |
27542 | (char *) "doIt", NULL | |
27543 | }; | |
27544 | ||
8edf1c75 RD |
27545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
27546 | if (obj0) { | |
2f4c0a16 RD |
27547 | arg1 = (int) SWIG_AsInt(obj0); |
27548 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27549 | } |
d14a1e28 RD |
27550 | { |
27551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27552 | wxValidator::SetBellOnError(arg1); | |
27553 | ||
27554 | wxPyEndAllowThreads(__tstate); | |
27555 | if (PyErr_Occurred()) SWIG_fail; | |
27556 | } | |
27557 | Py_INCREF(Py_None); resultobj = Py_None; | |
27558 | return resultobj; | |
27559 | fail: | |
27560 | return NULL; | |
27561 | } | |
27562 | ||
27563 | ||
27564 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
27565 | PyObject *obj; | |
27566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27567 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
27568 | Py_INCREF(obj); | |
27569 | return Py_BuildValue((char *)""); | |
27570 | } | |
27571 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27572 | PyObject *resultobj; | |
27573 | wxPyValidator *result; | |
27574 | char *kwnames[] = { | |
27575 | NULL | |
27576 | }; | |
27577 | ||
27578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
27579 | { | |
27580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27581 | result = (wxPyValidator *)new wxPyValidator(); | |
27582 | ||
27583 | wxPyEndAllowThreads(__tstate); | |
27584 | if (PyErr_Occurred()) SWIG_fail; | |
27585 | } | |
2f4c0a16 | 27586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
27587 | return resultobj; |
27588 | fail: | |
27589 | return NULL; | |
27590 | } | |
27591 | ||
27592 | ||
27593 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27594 | PyObject *resultobj; | |
27595 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
27596 | PyObject *arg2 = (PyObject *) 0 ; | |
27597 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 27598 | int arg4 = (int) True ; |
d14a1e28 RD |
27599 | PyObject * obj0 = 0 ; |
27600 | PyObject * obj1 = 0 ; | |
27601 | PyObject * obj2 = 0 ; | |
8edf1c75 | 27602 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27603 | char *kwnames[] = { |
27604 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
27605 | }; | |
27606 | ||
8edf1c75 | 27607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
27609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27610 | arg2 = obj1; |
27611 | arg3 = obj2; | |
8edf1c75 | 27612 | if (obj3) { |
2f4c0a16 RD |
27613 | arg4 = (int) SWIG_AsInt(obj3); |
27614 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27615 | } |
d14a1e28 RD |
27616 | { |
27617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27618 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
27619 | ||
27620 | wxPyEndAllowThreads(__tstate); | |
27621 | if (PyErr_Occurred()) SWIG_fail; | |
27622 | } | |
27623 | Py_INCREF(Py_None); resultobj = Py_None; | |
27624 | return resultobj; | |
27625 | fail: | |
27626 | return NULL; | |
27627 | } | |
27628 | ||
27629 | ||
27630 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
27631 | PyObject *obj; | |
27632 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27633 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
27634 | Py_INCREF(obj); | |
27635 | return Py_BuildValue((char *)""); | |
27636 | } | |
2f4c0a16 | 27637 | static int _wrap_DefaultValidator_set(PyObject *_val) { |
d14a1e28 RD |
27638 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
27639 | return 1; | |
27640 | } | |
27641 | ||
27642 | ||
27643 | static PyObject *_wrap_DefaultValidator_get() { | |
27644 | PyObject *pyobj; | |
27645 | ||
2f4c0a16 | 27646 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
27647 | return pyobj; |
27648 | } | |
27649 | ||
27650 | ||
27651 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27652 | PyObject *resultobj; | |
27653 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27654 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27655 | long arg2 = (long) 0 ; | |
27656 | wxMenu *result; | |
423f194a | 27657 | bool temp1 = False ; |
d14a1e28 | 27658 | PyObject * obj0 = 0 ; |
8edf1c75 | 27659 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27660 | char *kwnames[] = { |
27661 | (char *) "title",(char *) "style", NULL | |
27662 | }; | |
27663 | ||
8edf1c75 | 27664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
27665 | if (obj0) { |
27666 | { | |
27667 | arg1 = wxString_in_helper(obj0); | |
27668 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27669 | temp1 = True; |
d14a1e28 RD |
27670 | } |
27671 | } | |
8edf1c75 | 27672 | if (obj1) { |
2f4c0a16 RD |
27673 | arg2 = (long) SWIG_AsLong(obj1); |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27675 | } |
d14a1e28 RD |
27676 | { |
27677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27678 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
27679 | ||
27680 | wxPyEndAllowThreads(__tstate); | |
27681 | if (PyErr_Occurred()) SWIG_fail; | |
27682 | } | |
27683 | { | |
27684 | resultobj = wxPyMake_wxObject(result); | |
27685 | } | |
27686 | { | |
27687 | if (temp1) | |
27688 | delete arg1; | |
27689 | } | |
27690 | return resultobj; | |
27691 | fail: | |
27692 | { | |
27693 | if (temp1) | |
27694 | delete arg1; | |
27695 | } | |
27696 | return NULL; | |
27697 | } | |
27698 | ||
27699 | ||
27700 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27701 | PyObject *resultobj; | |
27702 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27703 | int arg2 ; | |
27704 | wxString *arg3 = 0 ; | |
27705 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27706 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27707 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 27708 | wxMenuItem *result; |
423f194a RD |
27709 | bool temp3 = False ; |
27710 | bool temp4 = False ; | |
d14a1e28 | 27711 | PyObject * obj0 = 0 ; |
8edf1c75 | 27712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27713 | PyObject * obj2 = 0 ; |
27714 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27715 | PyObject * obj4 = 0 ; |
d14a1e28 | 27716 | char *kwnames[] = { |
f0983263 | 27717 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27718 | }; |
27719 | ||
8edf1c75 | 27720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27723 | arg2 = (int) SWIG_AsInt(obj1); | |
27724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27725 | { |
27726 | arg3 = wxString_in_helper(obj2); | |
27727 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27728 | temp3 = True; |
d14a1e28 RD |
27729 | } |
27730 | if (obj3) { | |
27731 | { | |
27732 | arg4 = wxString_in_helper(obj3); | |
27733 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27734 | temp4 = True; |
d14a1e28 RD |
27735 | } |
27736 | } | |
8edf1c75 | 27737 | if (obj4) { |
2f4c0a16 RD |
27738 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
27739 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27740 | } |
d14a1e28 RD |
27741 | { |
27742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27743 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27744 | |
27745 | wxPyEndAllowThreads(__tstate); | |
27746 | if (PyErr_Occurred()) SWIG_fail; | |
27747 | } | |
83448d71 RD |
27748 | { |
27749 | resultobj = wxPyMake_wxObject(result); | |
27750 | } | |
d14a1e28 RD |
27751 | { |
27752 | if (temp3) | |
27753 | delete arg3; | |
27754 | } | |
27755 | { | |
27756 | if (temp4) | |
27757 | delete arg4; | |
27758 | } | |
27759 | return resultobj; | |
27760 | fail: | |
27761 | { | |
27762 | if (temp3) | |
27763 | delete arg3; | |
27764 | } | |
27765 | { | |
27766 | if (temp4) | |
27767 | delete arg4; | |
27768 | } | |
27769 | return NULL; | |
27770 | } | |
27771 | ||
27772 | ||
27773 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27774 | PyObject *resultobj; | |
27775 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27776 | wxMenuItem *result; |
d14a1e28 RD |
27777 | PyObject * obj0 = 0 ; |
27778 | char *kwnames[] = { | |
27779 | (char *) "self", NULL | |
27780 | }; | |
27781 | ||
27782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27785 | { |
27786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27787 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27788 | |
27789 | wxPyEndAllowThreads(__tstate); | |
27790 | if (PyErr_Occurred()) SWIG_fail; | |
27791 | } | |
83448d71 RD |
27792 | { |
27793 | resultobj = wxPyMake_wxObject(result); | |
27794 | } | |
d14a1e28 RD |
27795 | return resultobj; |
27796 | fail: | |
27797 | return NULL; | |
27798 | } | |
27799 | ||
27800 | ||
27801 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27802 | PyObject *resultobj; | |
27803 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27804 | int arg2 ; | |
27805 | wxString *arg3 = 0 ; | |
27806 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27807 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27808 | wxMenuItem *result; |
423f194a RD |
27809 | bool temp3 = False ; |
27810 | bool temp4 = False ; | |
d14a1e28 | 27811 | PyObject * obj0 = 0 ; |
8edf1c75 | 27812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27813 | PyObject * obj2 = 0 ; |
27814 | PyObject * obj3 = 0 ; | |
27815 | char *kwnames[] = { | |
f0983263 | 27816 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27817 | }; |
27818 | ||
8edf1c75 | 27819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27822 | arg2 = (int) SWIG_AsInt(obj1); | |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27824 | { |
27825 | arg3 = wxString_in_helper(obj2); | |
27826 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27827 | temp3 = True; |
d14a1e28 RD |
27828 | } |
27829 | if (obj3) { | |
27830 | { | |
27831 | arg4 = wxString_in_helper(obj3); | |
27832 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27833 | temp4 = True; |
d14a1e28 RD |
27834 | } |
27835 | } | |
27836 | { | |
27837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27838 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27839 | |
27840 | wxPyEndAllowThreads(__tstate); | |
27841 | if (PyErr_Occurred()) SWIG_fail; | |
27842 | } | |
83448d71 RD |
27843 | { |
27844 | resultobj = wxPyMake_wxObject(result); | |
27845 | } | |
d14a1e28 RD |
27846 | { |
27847 | if (temp3) | |
27848 | delete arg3; | |
27849 | } | |
27850 | { | |
27851 | if (temp4) | |
27852 | delete arg4; | |
27853 | } | |
27854 | return resultobj; | |
27855 | fail: | |
27856 | { | |
27857 | if (temp3) | |
27858 | delete arg3; | |
27859 | } | |
27860 | { | |
27861 | if (temp4) | |
27862 | delete arg4; | |
27863 | } | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
27868 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27869 | PyObject *resultobj; | |
27870 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27871 | int arg2 ; | |
27872 | wxString *arg3 = 0 ; | |
27873 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27874 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27875 | wxMenuItem *result; |
423f194a RD |
27876 | bool temp3 = False ; |
27877 | bool temp4 = False ; | |
d14a1e28 | 27878 | PyObject * obj0 = 0 ; |
8edf1c75 | 27879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27880 | PyObject * obj2 = 0 ; |
27881 | PyObject * obj3 = 0 ; | |
27882 | char *kwnames[] = { | |
f0983263 | 27883 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27884 | }; |
27885 | ||
8edf1c75 | 27886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27889 | arg2 = (int) SWIG_AsInt(obj1); | |
27890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27891 | { |
27892 | arg3 = wxString_in_helper(obj2); | |
27893 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27894 | temp3 = True; |
d14a1e28 RD |
27895 | } |
27896 | if (obj3) { | |
27897 | { | |
27898 | arg4 = wxString_in_helper(obj3); | |
27899 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27900 | temp4 = True; |
d14a1e28 RD |
27901 | } |
27902 | } | |
27903 | { | |
27904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27905 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27906 | |
27907 | wxPyEndAllowThreads(__tstate); | |
27908 | if (PyErr_Occurred()) SWIG_fail; | |
27909 | } | |
83448d71 RD |
27910 | { |
27911 | resultobj = wxPyMake_wxObject(result); | |
27912 | } | |
d14a1e28 RD |
27913 | { |
27914 | if (temp3) | |
27915 | delete arg3; | |
27916 | } | |
27917 | { | |
27918 | if (temp4) | |
27919 | delete arg4; | |
27920 | } | |
27921 | return resultobj; | |
27922 | fail: | |
27923 | { | |
27924 | if (temp3) | |
27925 | delete arg3; | |
27926 | } | |
27927 | { | |
27928 | if (temp4) | |
27929 | delete arg4; | |
27930 | } | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
27935 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27936 | PyObject *resultobj; | |
27937 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27938 | int arg2 ; | |
27939 | wxString *arg3 = 0 ; | |
27940 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27941 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27942 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27943 | wxMenuItem *result; |
423f194a RD |
27944 | bool temp3 = False ; |
27945 | bool temp5 = False ; | |
d14a1e28 | 27946 | PyObject * obj0 = 0 ; |
8edf1c75 | 27947 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27948 | PyObject * obj2 = 0 ; |
27949 | PyObject * obj3 = 0 ; | |
27950 | PyObject * obj4 = 0 ; | |
27951 | char *kwnames[] = { | |
f0983263 | 27952 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27953 | }; |
27954 | ||
8edf1c75 | 27955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27958 | arg2 = (int) SWIG_AsInt(obj1); | |
27959 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27960 | { |
27961 | arg3 = wxString_in_helper(obj2); | |
27962 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27963 | temp3 = True; |
d14a1e28 | 27964 | } |
2f4c0a16 RD |
27965 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
27966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27967 | if (obj4) { |
27968 | { | |
27969 | arg5 = wxString_in_helper(obj4); | |
27970 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27971 | temp5 = True; |
d14a1e28 RD |
27972 | } |
27973 | } | |
27974 | { | |
27975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27976 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27977 | |
27978 | wxPyEndAllowThreads(__tstate); | |
27979 | if (PyErr_Occurred()) SWIG_fail; | |
27980 | } | |
83448d71 RD |
27981 | { |
27982 | resultobj = wxPyMake_wxObject(result); | |
27983 | } | |
d14a1e28 RD |
27984 | { |
27985 | if (temp3) | |
27986 | delete arg3; | |
27987 | } | |
27988 | { | |
27989 | if (temp5) | |
27990 | delete arg5; | |
27991 | } | |
27992 | return resultobj; | |
27993 | fail: | |
27994 | { | |
27995 | if (temp3) | |
27996 | delete arg3; | |
27997 | } | |
27998 | { | |
27999 | if (temp5) | |
28000 | delete arg5; | |
28001 | } | |
28002 | return NULL; | |
28003 | } | |
28004 | ||
28005 | ||
28006 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28007 | PyObject *resultobj; | |
28008 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28009 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 28010 | wxMenuItem *result; |
d14a1e28 RD |
28011 | PyObject * obj0 = 0 ; |
28012 | PyObject * obj1 = 0 ; | |
28013 | char *kwnames[] = { | |
28014 | (char *) "self",(char *) "item", NULL | |
28015 | }; | |
28016 | ||
28017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28022 | { |
28023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28024 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
28025 | |
28026 | wxPyEndAllowThreads(__tstate); | |
28027 | if (PyErr_Occurred()) SWIG_fail; | |
28028 | } | |
83448d71 RD |
28029 | { |
28030 | resultobj = wxPyMake_wxObject(result); | |
28031 | } | |
d14a1e28 RD |
28032 | return resultobj; |
28033 | fail: | |
28034 | return NULL; | |
28035 | } | |
28036 | ||
28037 | ||
28038 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28039 | PyObject *resultobj; | |
28040 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28041 | PyObject * obj0 = 0 ; | |
28042 | char *kwnames[] = { | |
28043 | (char *) "self", NULL | |
28044 | }; | |
28045 | ||
28046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28049 | { |
28050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28051 | (arg1)->Break(); | |
28052 | ||
28053 | wxPyEndAllowThreads(__tstate); | |
28054 | if (PyErr_Occurred()) SWIG_fail; | |
28055 | } | |
28056 | Py_INCREF(Py_None); resultobj = Py_None; | |
28057 | return resultobj; | |
28058 | fail: | |
28059 | return NULL; | |
28060 | } | |
28061 | ||
28062 | ||
28063 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28064 | PyObject *resultobj; | |
28065 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28066 | size_t arg2 ; | |
28067 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
83448d71 | 28068 | wxMenuItem *result; |
d14a1e28 RD |
28069 | PyObject * obj0 = 0 ; |
28070 | PyObject * obj1 = 0 ; | |
28071 | PyObject * obj2 = 0 ; | |
28072 | char *kwnames[] = { | |
28073 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28074 | }; | |
28075 | ||
28076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28079 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28080 | if (PyErr_Occurred()) SWIG_fail; | |
28081 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28083 | { |
28084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28085 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
28086 | |
28087 | wxPyEndAllowThreads(__tstate); | |
28088 | if (PyErr_Occurred()) SWIG_fail; | |
28089 | } | |
83448d71 RD |
28090 | { |
28091 | resultobj = wxPyMake_wxObject(result); | |
28092 | } | |
d14a1e28 RD |
28093 | return resultobj; |
28094 | fail: | |
28095 | return NULL; | |
28096 | } | |
28097 | ||
28098 | ||
28099 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28100 | PyObject *resultobj; | |
28101 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28102 | size_t arg2 ; | |
28103 | int arg3 ; | |
28104 | wxString *arg4 = 0 ; | |
28105 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28106 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28107 | int arg6 = (int) wxITEM_NORMAL ; | |
83448d71 | 28108 | wxMenuItem *result; |
423f194a RD |
28109 | bool temp4 = False ; |
28110 | bool temp5 = False ; | |
d14a1e28 RD |
28111 | PyObject * obj0 = 0 ; |
28112 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28113 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28114 | PyObject * obj3 = 0 ; |
28115 | PyObject * obj4 = 0 ; | |
8edf1c75 | 28116 | PyObject * obj5 = 0 ; |
d14a1e28 | 28117 | char *kwnames[] = { |
f0983263 | 28118 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28119 | }; |
28120 | ||
8edf1c75 | 28121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28124 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28125 | if (PyErr_Occurred()) SWIG_fail; | |
28126 | arg3 = (int) SWIG_AsInt(obj2); | |
28127 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28128 | { |
28129 | arg4 = wxString_in_helper(obj3); | |
28130 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28131 | temp4 = True; |
d14a1e28 RD |
28132 | } |
28133 | if (obj4) { | |
28134 | { | |
28135 | arg5 = wxString_in_helper(obj4); | |
28136 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28137 | temp5 = True; |
d14a1e28 RD |
28138 | } |
28139 | } | |
8edf1c75 | 28140 | if (obj5) { |
2f4c0a16 RD |
28141 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
28142 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28143 | } |
d14a1e28 RD |
28144 | { |
28145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28146 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
28147 | |
28148 | wxPyEndAllowThreads(__tstate); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
83448d71 RD |
28151 | { |
28152 | resultobj = wxPyMake_wxObject(result); | |
28153 | } | |
d14a1e28 RD |
28154 | { |
28155 | if (temp4) | |
28156 | delete arg4; | |
28157 | } | |
28158 | { | |
28159 | if (temp5) | |
28160 | delete arg5; | |
28161 | } | |
28162 | return resultobj; | |
28163 | fail: | |
28164 | { | |
28165 | if (temp4) | |
28166 | delete arg4; | |
28167 | } | |
28168 | { | |
28169 | if (temp5) | |
28170 | delete arg5; | |
28171 | } | |
28172 | return NULL; | |
28173 | } | |
28174 | ||
28175 | ||
28176 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28177 | PyObject *resultobj; | |
28178 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28179 | size_t arg2 ; | |
83448d71 | 28180 | wxMenuItem *result; |
d14a1e28 RD |
28181 | PyObject * obj0 = 0 ; |
28182 | PyObject * obj1 = 0 ; | |
28183 | char *kwnames[] = { | |
28184 | (char *) "self",(char *) "pos", NULL | |
28185 | }; | |
28186 | ||
28187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28190 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28191 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28192 | { |
28193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28194 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
28195 | |
28196 | wxPyEndAllowThreads(__tstate); | |
28197 | if (PyErr_Occurred()) SWIG_fail; | |
28198 | } | |
83448d71 RD |
28199 | { |
28200 | resultobj = wxPyMake_wxObject(result); | |
28201 | } | |
d14a1e28 RD |
28202 | return resultobj; |
28203 | fail: | |
28204 | return NULL; | |
28205 | } | |
28206 | ||
28207 | ||
28208 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28209 | PyObject *resultobj; | |
28210 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28211 | size_t arg2 ; | |
28212 | int arg3 ; | |
28213 | wxString *arg4 = 0 ; | |
28214 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28215 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28216 | wxMenuItem *result; |
423f194a RD |
28217 | bool temp4 = False ; |
28218 | bool temp5 = False ; | |
d14a1e28 RD |
28219 | PyObject * obj0 = 0 ; |
28220 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28221 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28222 | PyObject * obj3 = 0 ; |
28223 | PyObject * obj4 = 0 ; | |
28224 | char *kwnames[] = { | |
f0983263 | 28225 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28226 | }; |
28227 | ||
8edf1c75 | 28228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28231 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28232 | if (PyErr_Occurred()) SWIG_fail; | |
28233 | arg3 = (int) SWIG_AsInt(obj2); | |
28234 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28235 | { |
28236 | arg4 = wxString_in_helper(obj3); | |
28237 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28238 | temp4 = True; |
d14a1e28 RD |
28239 | } |
28240 | if (obj4) { | |
28241 | { | |
28242 | arg5 = wxString_in_helper(obj4); | |
28243 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28244 | temp5 = True; |
d14a1e28 RD |
28245 | } |
28246 | } | |
28247 | { | |
28248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28249 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28250 | |
28251 | wxPyEndAllowThreads(__tstate); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | } | |
83448d71 RD |
28254 | { |
28255 | resultobj = wxPyMake_wxObject(result); | |
28256 | } | |
d14a1e28 RD |
28257 | { |
28258 | if (temp4) | |
28259 | delete arg4; | |
28260 | } | |
28261 | { | |
28262 | if (temp5) | |
28263 | delete arg5; | |
28264 | } | |
28265 | return resultobj; | |
28266 | fail: | |
28267 | { | |
28268 | if (temp4) | |
28269 | delete arg4; | |
28270 | } | |
28271 | { | |
28272 | if (temp5) | |
28273 | delete arg5; | |
28274 | } | |
28275 | return NULL; | |
28276 | } | |
28277 | ||
28278 | ||
28279 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28280 | PyObject *resultobj; | |
28281 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28282 | size_t arg2 ; | |
28283 | int arg3 ; | |
28284 | wxString *arg4 = 0 ; | |
28285 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28286 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28287 | wxMenuItem *result; |
423f194a RD |
28288 | bool temp4 = False ; |
28289 | bool temp5 = False ; | |
d14a1e28 RD |
28290 | PyObject * obj0 = 0 ; |
28291 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28292 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28293 | PyObject * obj3 = 0 ; |
28294 | PyObject * obj4 = 0 ; | |
28295 | char *kwnames[] = { | |
f0983263 | 28296 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28297 | }; |
28298 | ||
8edf1c75 | 28299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28302 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28303 | if (PyErr_Occurred()) SWIG_fail; | |
28304 | arg3 = (int) SWIG_AsInt(obj2); | |
28305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28306 | { |
28307 | arg4 = wxString_in_helper(obj3); | |
28308 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28309 | temp4 = True; |
d14a1e28 RD |
28310 | } |
28311 | if (obj4) { | |
28312 | { | |
28313 | arg5 = wxString_in_helper(obj4); | |
28314 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28315 | temp5 = True; |
d14a1e28 RD |
28316 | } |
28317 | } | |
28318 | { | |
28319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28320 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28321 | |
28322 | wxPyEndAllowThreads(__tstate); | |
28323 | if (PyErr_Occurred()) SWIG_fail; | |
28324 | } | |
83448d71 RD |
28325 | { |
28326 | resultobj = wxPyMake_wxObject(result); | |
28327 | } | |
d14a1e28 RD |
28328 | { |
28329 | if (temp4) | |
28330 | delete arg4; | |
28331 | } | |
28332 | { | |
28333 | if (temp5) | |
28334 | delete arg5; | |
28335 | } | |
28336 | return resultobj; | |
28337 | fail: | |
28338 | { | |
28339 | if (temp4) | |
28340 | delete arg4; | |
28341 | } | |
28342 | { | |
28343 | if (temp5) | |
28344 | delete arg5; | |
28345 | } | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
28350 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28351 | PyObject *resultobj; | |
28352 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28353 | size_t arg2 ; | |
28354 | int arg3 ; | |
28355 | wxString *arg4 = 0 ; | |
28356 | wxMenu *arg5 = (wxMenu *) 0 ; | |
28357 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
28358 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
83448d71 | 28359 | wxMenuItem *result; |
423f194a RD |
28360 | bool temp4 = False ; |
28361 | bool temp6 = False ; | |
d14a1e28 RD |
28362 | PyObject * obj0 = 0 ; |
28363 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28364 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28365 | PyObject * obj3 = 0 ; |
28366 | PyObject * obj4 = 0 ; | |
28367 | PyObject * obj5 = 0 ; | |
28368 | char *kwnames[] = { | |
f0983263 | 28369 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28370 | }; |
28371 | ||
8edf1c75 | 28372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28375 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28376 | if (PyErr_Occurred()) SWIG_fail; | |
28377 | arg3 = (int) SWIG_AsInt(obj2); | |
28378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28379 | { |
28380 | arg4 = wxString_in_helper(obj3); | |
28381 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28382 | temp4 = True; |
d14a1e28 | 28383 | } |
2f4c0a16 RD |
28384 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
28385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28386 | if (obj5) { |
28387 | { | |
28388 | arg6 = wxString_in_helper(obj5); | |
28389 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 28390 | temp6 = True; |
d14a1e28 RD |
28391 | } |
28392 | } | |
28393 | { | |
28394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28395 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
28396 | |
28397 | wxPyEndAllowThreads(__tstate); | |
28398 | if (PyErr_Occurred()) SWIG_fail; | |
28399 | } | |
83448d71 RD |
28400 | { |
28401 | resultobj = wxPyMake_wxObject(result); | |
28402 | } | |
d14a1e28 RD |
28403 | { |
28404 | if (temp4) | |
28405 | delete arg4; | |
28406 | } | |
28407 | { | |
28408 | if (temp6) | |
28409 | delete arg6; | |
28410 | } | |
28411 | return resultobj; | |
28412 | fail: | |
28413 | { | |
28414 | if (temp4) | |
28415 | delete arg4; | |
28416 | } | |
28417 | { | |
28418 | if (temp6) | |
28419 | delete arg6; | |
28420 | } | |
28421 | return NULL; | |
28422 | } | |
28423 | ||
28424 | ||
28425 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28426 | PyObject *resultobj; | |
28427 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28428 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 28429 | wxMenuItem *result; |
d14a1e28 RD |
28430 | PyObject * obj0 = 0 ; |
28431 | PyObject * obj1 = 0 ; | |
28432 | char *kwnames[] = { | |
28433 | (char *) "self",(char *) "item", NULL | |
28434 | }; | |
28435 | ||
28436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28441 | { |
28442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28443 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
28444 | |
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
83448d71 RD |
28448 | { |
28449 | resultobj = wxPyMake_wxObject(result); | |
28450 | } | |
d14a1e28 RD |
28451 | return resultobj; |
28452 | fail: | |
28453 | return NULL; | |
28454 | } | |
28455 | ||
28456 | ||
28457 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28458 | PyObject *resultobj; | |
28459 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28460 | int arg2 ; | |
28461 | wxString *arg3 = 0 ; | |
28462 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28463 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28464 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 28465 | wxMenuItem *result; |
423f194a RD |
28466 | bool temp3 = False ; |
28467 | bool temp4 = False ; | |
d14a1e28 | 28468 | PyObject * obj0 = 0 ; |
8edf1c75 | 28469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28470 | PyObject * obj2 = 0 ; |
28471 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28472 | PyObject * obj4 = 0 ; |
d14a1e28 | 28473 | char *kwnames[] = { |
f0983263 | 28474 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28475 | }; |
28476 | ||
8edf1c75 | 28477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28480 | arg2 = (int) SWIG_AsInt(obj1); | |
28481 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28482 | { |
28483 | arg3 = wxString_in_helper(obj2); | |
28484 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28485 | temp3 = True; |
d14a1e28 RD |
28486 | } |
28487 | if (obj3) { | |
28488 | { | |
28489 | arg4 = wxString_in_helper(obj3); | |
28490 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28491 | temp4 = True; |
d14a1e28 RD |
28492 | } |
28493 | } | |
8edf1c75 | 28494 | if (obj4) { |
2f4c0a16 RD |
28495 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28497 | } |
d14a1e28 RD |
28498 | { |
28499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28500 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28501 | |
28502 | wxPyEndAllowThreads(__tstate); | |
28503 | if (PyErr_Occurred()) SWIG_fail; | |
28504 | } | |
83448d71 RD |
28505 | { |
28506 | resultobj = wxPyMake_wxObject(result); | |
28507 | } | |
d14a1e28 RD |
28508 | { |
28509 | if (temp3) | |
28510 | delete arg3; | |
28511 | } | |
28512 | { | |
28513 | if (temp4) | |
28514 | delete arg4; | |
28515 | } | |
28516 | return resultobj; | |
28517 | fail: | |
28518 | { | |
28519 | if (temp3) | |
28520 | delete arg3; | |
28521 | } | |
28522 | { | |
28523 | if (temp4) | |
28524 | delete arg4; | |
28525 | } | |
28526 | return NULL; | |
28527 | } | |
28528 | ||
28529 | ||
28530 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28531 | PyObject *resultobj; | |
28532 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 28533 | wxMenuItem *result; |
d14a1e28 RD |
28534 | PyObject * obj0 = 0 ; |
28535 | char *kwnames[] = { | |
28536 | (char *) "self", NULL | |
28537 | }; | |
28538 | ||
28539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28542 | { |
28543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28544 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
28545 | |
28546 | wxPyEndAllowThreads(__tstate); | |
28547 | if (PyErr_Occurred()) SWIG_fail; | |
28548 | } | |
83448d71 RD |
28549 | { |
28550 | resultobj = wxPyMake_wxObject(result); | |
28551 | } | |
d14a1e28 RD |
28552 | return resultobj; |
28553 | fail: | |
28554 | return NULL; | |
28555 | } | |
28556 | ||
28557 | ||
28558 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28559 | PyObject *resultobj; | |
28560 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28561 | int arg2 ; | |
28562 | wxString *arg3 = 0 ; | |
28563 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28564 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28565 | wxMenuItem *result; |
423f194a RD |
28566 | bool temp3 = False ; |
28567 | bool temp4 = False ; | |
d14a1e28 | 28568 | PyObject * obj0 = 0 ; |
8edf1c75 | 28569 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28570 | PyObject * obj2 = 0 ; |
28571 | PyObject * obj3 = 0 ; | |
28572 | char *kwnames[] = { | |
f0983263 | 28573 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28574 | }; |
28575 | ||
8edf1c75 | 28576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28579 | arg2 = (int) SWIG_AsInt(obj1); | |
28580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28581 | { |
28582 | arg3 = wxString_in_helper(obj2); | |
28583 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28584 | temp3 = True; |
d14a1e28 RD |
28585 | } |
28586 | if (obj3) { | |
28587 | { | |
28588 | arg4 = wxString_in_helper(obj3); | |
28589 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28590 | temp4 = True; |
d14a1e28 RD |
28591 | } |
28592 | } | |
28593 | { | |
28594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28595 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28596 | |
28597 | wxPyEndAllowThreads(__tstate); | |
28598 | if (PyErr_Occurred()) SWIG_fail; | |
28599 | } | |
83448d71 RD |
28600 | { |
28601 | resultobj = wxPyMake_wxObject(result); | |
28602 | } | |
d14a1e28 RD |
28603 | { |
28604 | if (temp3) | |
28605 | delete arg3; | |
28606 | } | |
28607 | { | |
28608 | if (temp4) | |
28609 | delete arg4; | |
28610 | } | |
28611 | return resultobj; | |
28612 | fail: | |
28613 | { | |
28614 | if (temp3) | |
28615 | delete arg3; | |
28616 | } | |
28617 | { | |
28618 | if (temp4) | |
28619 | delete arg4; | |
28620 | } | |
28621 | return NULL; | |
28622 | } | |
28623 | ||
28624 | ||
28625 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28626 | PyObject *resultobj; | |
28627 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28628 | int arg2 ; | |
28629 | wxString *arg3 = 0 ; | |
28630 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28631 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28632 | wxMenuItem *result; |
423f194a RD |
28633 | bool temp3 = False ; |
28634 | bool temp4 = False ; | |
d14a1e28 | 28635 | PyObject * obj0 = 0 ; |
8edf1c75 | 28636 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28637 | PyObject * obj2 = 0 ; |
28638 | PyObject * obj3 = 0 ; | |
28639 | char *kwnames[] = { | |
f0983263 | 28640 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28641 | }; |
28642 | ||
8edf1c75 | 28643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28646 | arg2 = (int) SWIG_AsInt(obj1); | |
28647 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28648 | { |
28649 | arg3 = wxString_in_helper(obj2); | |
28650 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28651 | temp3 = True; |
d14a1e28 RD |
28652 | } |
28653 | if (obj3) { | |
28654 | { | |
28655 | arg4 = wxString_in_helper(obj3); | |
28656 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28657 | temp4 = True; |
d14a1e28 RD |
28658 | } |
28659 | } | |
28660 | { | |
28661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28662 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28663 | |
28664 | wxPyEndAllowThreads(__tstate); | |
28665 | if (PyErr_Occurred()) SWIG_fail; | |
28666 | } | |
83448d71 RD |
28667 | { |
28668 | resultobj = wxPyMake_wxObject(result); | |
28669 | } | |
d14a1e28 RD |
28670 | { |
28671 | if (temp3) | |
28672 | delete arg3; | |
28673 | } | |
28674 | { | |
28675 | if (temp4) | |
28676 | delete arg4; | |
28677 | } | |
28678 | return resultobj; | |
28679 | fail: | |
28680 | { | |
28681 | if (temp3) | |
28682 | delete arg3; | |
28683 | } | |
28684 | { | |
28685 | if (temp4) | |
28686 | delete arg4; | |
28687 | } | |
28688 | return NULL; | |
28689 | } | |
28690 | ||
28691 | ||
28692 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28693 | PyObject *resultobj; | |
28694 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28695 | int arg2 ; | |
28696 | wxString *arg3 = 0 ; | |
28697 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28698 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28699 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28700 | wxMenuItem *result; |
423f194a RD |
28701 | bool temp3 = False ; |
28702 | bool temp5 = False ; | |
d14a1e28 | 28703 | PyObject * obj0 = 0 ; |
8edf1c75 | 28704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28705 | PyObject * obj2 = 0 ; |
28706 | PyObject * obj3 = 0 ; | |
28707 | PyObject * obj4 = 0 ; | |
28708 | char *kwnames[] = { | |
f0983263 | 28709 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28710 | }; |
28711 | ||
8edf1c75 | 28712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28715 | arg2 = (int) SWIG_AsInt(obj1); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28717 | { |
28718 | arg3 = wxString_in_helper(obj2); | |
28719 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28720 | temp3 = True; |
d14a1e28 | 28721 | } |
2f4c0a16 RD |
28722 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28724 | if (obj4) { |
28725 | { | |
28726 | arg5 = wxString_in_helper(obj4); | |
28727 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28728 | temp5 = True; |
d14a1e28 RD |
28729 | } |
28730 | } | |
28731 | { | |
28732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28733 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28734 | |
28735 | wxPyEndAllowThreads(__tstate); | |
28736 | if (PyErr_Occurred()) SWIG_fail; | |
28737 | } | |
83448d71 RD |
28738 | { |
28739 | resultobj = wxPyMake_wxObject(result); | |
28740 | } | |
d14a1e28 RD |
28741 | { |
28742 | if (temp3) | |
28743 | delete arg3; | |
28744 | } | |
28745 | { | |
28746 | if (temp5) | |
28747 | delete arg5; | |
28748 | } | |
28749 | return resultobj; | |
28750 | fail: | |
28751 | { | |
28752 | if (temp3) | |
28753 | delete arg3; | |
28754 | } | |
28755 | { | |
28756 | if (temp5) | |
28757 | delete arg5; | |
28758 | } | |
28759 | return NULL; | |
28760 | } | |
28761 | ||
28762 | ||
28763 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28764 | PyObject *resultobj; | |
28765 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28766 | int arg2 ; | |
28767 | wxMenuItem *result; | |
28768 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28769 | PyObject * obj1 = 0 ; |
d14a1e28 | 28770 | char *kwnames[] = { |
f0983263 | 28771 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28772 | }; |
28773 | ||
8edf1c75 | 28774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28777 | arg2 = (int) SWIG_AsInt(obj1); | |
28778 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28779 | { |
28780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28781 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28782 | ||
28783 | wxPyEndAllowThreads(__tstate); | |
28784 | if (PyErr_Occurred()) SWIG_fail; | |
28785 | } | |
28786 | { | |
28787 | resultobj = wxPyMake_wxObject(result); | |
28788 | } | |
28789 | return resultobj; | |
28790 | fail: | |
28791 | return NULL; | |
28792 | } | |
28793 | ||
28794 | ||
28795 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28796 | PyObject *resultobj; | |
28797 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28798 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28799 | wxMenuItem *result; | |
28800 | PyObject * obj0 = 0 ; | |
28801 | PyObject * obj1 = 0 ; | |
28802 | char *kwnames[] = { | |
28803 | (char *) "self",(char *) "item", NULL | |
28804 | }; | |
28805 | ||
28806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28811 | { |
28812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28813 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28814 | ||
28815 | wxPyEndAllowThreads(__tstate); | |
28816 | if (PyErr_Occurred()) SWIG_fail; | |
28817 | } | |
28818 | { | |
28819 | resultobj = wxPyMake_wxObject(result); | |
28820 | } | |
28821 | return resultobj; | |
28822 | fail: | |
28823 | return NULL; | |
28824 | } | |
28825 | ||
28826 | ||
28827 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28828 | PyObject *resultobj; | |
28829 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28830 | int arg2 ; | |
28831 | bool result; | |
28832 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28833 | PyObject * obj1 = 0 ; |
d14a1e28 | 28834 | char *kwnames[] = { |
f0983263 | 28835 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28836 | }; |
28837 | ||
8edf1c75 | 28838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28841 | arg2 = (int) SWIG_AsInt(obj1); | |
28842 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28843 | { |
28844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28845 | result = (bool)(arg1)->Delete(arg2); | |
28846 | ||
28847 | wxPyEndAllowThreads(__tstate); | |
28848 | if (PyErr_Occurred()) SWIG_fail; | |
28849 | } | |
4f89f6a3 RD |
28850 | { |
28851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28852 | } | |
d14a1e28 RD |
28853 | return resultobj; |
28854 | fail: | |
28855 | return NULL; | |
28856 | } | |
28857 | ||
28858 | ||
28859 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28860 | PyObject *resultobj; | |
28861 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28862 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28863 | bool result; | |
28864 | PyObject * obj0 = 0 ; | |
28865 | PyObject * obj1 = 0 ; | |
28866 | char *kwnames[] = { | |
28867 | (char *) "self",(char *) "item", NULL | |
28868 | }; | |
28869 | ||
28870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28875 | { |
28876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28877 | result = (bool)(arg1)->Delete(arg2); | |
28878 | ||
28879 | wxPyEndAllowThreads(__tstate); | |
28880 | if (PyErr_Occurred()) SWIG_fail; | |
28881 | } | |
4f89f6a3 RD |
28882 | { |
28883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28884 | } | |
d14a1e28 RD |
28885 | return resultobj; |
28886 | fail: | |
28887 | return NULL; | |
28888 | } | |
28889 | ||
28890 | ||
28891 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28892 | PyObject *resultobj; | |
28893 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28894 | PyObject * obj0 = 0 ; | |
28895 | char *kwnames[] = { | |
28896 | (char *) "self", NULL | |
28897 | }; | |
28898 | ||
28899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28902 | { |
28903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28904 | wxMenu_Destroy(arg1); | |
28905 | ||
28906 | wxPyEndAllowThreads(__tstate); | |
28907 | if (PyErr_Occurred()) SWIG_fail; | |
28908 | } | |
28909 | Py_INCREF(Py_None); resultobj = Py_None; | |
28910 | return resultobj; | |
28911 | fail: | |
28912 | return NULL; | |
28913 | } | |
28914 | ||
28915 | ||
28916 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28917 | PyObject *resultobj; | |
28918 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28919 | int arg2 ; | |
28920 | bool result; | |
28921 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28922 | PyObject * obj1 = 0 ; |
d14a1e28 | 28923 | char *kwnames[] = { |
f0983263 | 28924 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28925 | }; |
28926 | ||
8edf1c75 | 28927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28930 | arg2 = (int) SWIG_AsInt(obj1); | |
28931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28932 | { |
28933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28934 | result = (bool)(arg1)->Destroy(arg2); | |
28935 | ||
28936 | wxPyEndAllowThreads(__tstate); | |
28937 | if (PyErr_Occurred()) SWIG_fail; | |
28938 | } | |
4f89f6a3 RD |
28939 | { |
28940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28941 | } | |
d14a1e28 RD |
28942 | return resultobj; |
28943 | fail: | |
28944 | return NULL; | |
28945 | } | |
28946 | ||
28947 | ||
28948 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28949 | PyObject *resultobj; | |
28950 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28951 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28952 | bool result; | |
28953 | PyObject * obj0 = 0 ; | |
28954 | PyObject * obj1 = 0 ; | |
28955 | char *kwnames[] = { | |
28956 | (char *) "self",(char *) "item", NULL | |
28957 | }; | |
28958 | ||
28959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28964 | { |
28965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28966 | result = (bool)(arg1)->Destroy(arg2); | |
28967 | ||
28968 | wxPyEndAllowThreads(__tstate); | |
28969 | if (PyErr_Occurred()) SWIG_fail; | |
28970 | } | |
4f89f6a3 RD |
28971 | { |
28972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28973 | } | |
d14a1e28 RD |
28974 | return resultobj; |
28975 | fail: | |
28976 | return NULL; | |
28977 | } | |
28978 | ||
28979 | ||
28980 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28981 | PyObject *resultobj; | |
28982 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28983 | size_t result; | |
28984 | PyObject * obj0 = 0 ; | |
28985 | char *kwnames[] = { | |
28986 | (char *) "self", NULL | |
28987 | }; | |
28988 | ||
28989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28992 | { |
28993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28994 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
28995 | ||
28996 | wxPyEndAllowThreads(__tstate); | |
28997 | if (PyErr_Occurred()) SWIG_fail; | |
28998 | } | |
2f4c0a16 | 28999 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29000 | return resultobj; |
29001 | fail: | |
29002 | return NULL; | |
29003 | } | |
29004 | ||
29005 | ||
29006 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29007 | PyObject *resultobj; | |
29008 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29009 | PyObject *result; | |
29010 | PyObject * obj0 = 0 ; | |
29011 | char *kwnames[] = { | |
29012 | (char *) "self", NULL | |
29013 | }; | |
29014 | ||
29015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29018 | { |
29019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29020 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29021 | ||
29022 | wxPyEndAllowThreads(__tstate); | |
29023 | if (PyErr_Occurred()) SWIG_fail; | |
29024 | } | |
29025 | resultobj = result; | |
29026 | return resultobj; | |
29027 | fail: | |
29028 | return NULL; | |
29029 | } | |
29030 | ||
29031 | ||
29032 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29033 | PyObject *resultobj; | |
29034 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29035 | wxString *arg2 = 0 ; | |
29036 | int result; | |
423f194a | 29037 | bool temp2 = False ; |
d14a1e28 RD |
29038 | PyObject * obj0 = 0 ; |
29039 | PyObject * obj1 = 0 ; | |
29040 | char *kwnames[] = { | |
29041 | (char *) "self",(char *) "item", NULL | |
29042 | }; | |
29043 | ||
29044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29047 | { |
29048 | arg2 = wxString_in_helper(obj1); | |
29049 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29050 | temp2 = True; |
d14a1e28 RD |
29051 | } |
29052 | { | |
29053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29054 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29055 | ||
29056 | wxPyEndAllowThreads(__tstate); | |
29057 | if (PyErr_Occurred()) SWIG_fail; | |
29058 | } | |
2f4c0a16 | 29059 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29060 | { |
29061 | if (temp2) | |
29062 | delete arg2; | |
29063 | } | |
29064 | return resultobj; | |
29065 | fail: | |
29066 | { | |
29067 | if (temp2) | |
29068 | delete arg2; | |
29069 | } | |
29070 | return NULL; | |
29071 | } | |
29072 | ||
29073 | ||
29074 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29075 | PyObject *resultobj; | |
29076 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29077 | int arg2 ; | |
29078 | wxMenuItem *result; | |
29079 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29080 | PyObject * obj1 = 0 ; |
d14a1e28 | 29081 | char *kwnames[] = { |
f0983263 | 29082 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29083 | }; |
29084 | ||
8edf1c75 | 29085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29088 | arg2 = (int) SWIG_AsInt(obj1); | |
29089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29090 | { |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29092 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29093 | ||
29094 | wxPyEndAllowThreads(__tstate); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
29096 | } | |
29097 | { | |
29098 | resultobj = wxPyMake_wxObject(result); | |
29099 | } | |
29100 | return resultobj; | |
29101 | fail: | |
29102 | return NULL; | |
29103 | } | |
29104 | ||
29105 | ||
29106 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29107 | PyObject *resultobj; | |
29108 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29109 | size_t arg2 ; | |
29110 | wxMenuItem *result; | |
29111 | PyObject * obj0 = 0 ; | |
29112 | PyObject * obj1 = 0 ; | |
29113 | char *kwnames[] = { | |
29114 | (char *) "self",(char *) "position", NULL | |
29115 | }; | |
29116 | ||
29117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29120 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29122 | { |
29123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29124 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29125 | ||
29126 | wxPyEndAllowThreads(__tstate); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
29128 | } | |
29129 | { | |
29130 | resultobj = wxPyMake_wxObject(result); | |
29131 | } | |
29132 | return resultobj; | |
29133 | fail: | |
29134 | return NULL; | |
29135 | } | |
29136 | ||
29137 | ||
29138 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29139 | PyObject *resultobj; | |
29140 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29141 | int arg2 ; | |
29142 | bool arg3 ; | |
29143 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29144 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29145 | PyObject * obj2 = 0 ; |
29146 | char *kwnames[] = { | |
f0983263 | 29147 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29148 | }; |
29149 | ||
8edf1c75 | 29150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29153 | arg2 = (int) SWIG_AsInt(obj1); | |
29154 | if (PyErr_Occurred()) SWIG_fail; | |
29155 | arg3 = (bool) SWIG_AsBool(obj2); | |
29156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29157 | { |
29158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29159 | (arg1)->Enable(arg2,arg3); | |
29160 | ||
29161 | wxPyEndAllowThreads(__tstate); | |
29162 | if (PyErr_Occurred()) SWIG_fail; | |
29163 | } | |
29164 | Py_INCREF(Py_None); resultobj = Py_None; | |
29165 | return resultobj; | |
29166 | fail: | |
29167 | return NULL; | |
29168 | } | |
29169 | ||
29170 | ||
29171 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29172 | PyObject *resultobj; | |
29173 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29174 | int arg2 ; | |
29175 | bool result; | |
29176 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29177 | PyObject * obj1 = 0 ; |
d14a1e28 | 29178 | char *kwnames[] = { |
f0983263 | 29179 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29180 | }; |
29181 | ||
8edf1c75 | 29182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29185 | arg2 = (int) SWIG_AsInt(obj1); | |
29186 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29187 | { |
29188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29189 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
29190 | ||
29191 | wxPyEndAllowThreads(__tstate); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
29193 | } | |
4f89f6a3 RD |
29194 | { |
29195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29196 | } | |
d14a1e28 RD |
29197 | return resultobj; |
29198 | fail: | |
29199 | return NULL; | |
29200 | } | |
29201 | ||
29202 | ||
29203 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29204 | PyObject *resultobj; | |
29205 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29206 | int arg2 ; | |
29207 | bool arg3 ; | |
29208 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29210 | PyObject * obj2 = 0 ; |
29211 | char *kwnames[] = { | |
f0983263 | 29212 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29213 | }; |
29214 | ||
8edf1c75 | 29215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29218 | arg2 = (int) SWIG_AsInt(obj1); | |
29219 | if (PyErr_Occurred()) SWIG_fail; | |
29220 | arg3 = (bool) SWIG_AsBool(obj2); | |
29221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29222 | { |
29223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29224 | (arg1)->Check(arg2,arg3); | |
29225 | ||
29226 | wxPyEndAllowThreads(__tstate); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | } | |
29229 | Py_INCREF(Py_None); resultobj = Py_None; | |
29230 | return resultobj; | |
29231 | fail: | |
29232 | return NULL; | |
29233 | } | |
29234 | ||
29235 | ||
29236 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29237 | PyObject *resultobj; | |
29238 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29239 | int arg2 ; | |
29240 | bool result; | |
29241 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29242 | PyObject * obj1 = 0 ; |
d14a1e28 | 29243 | char *kwnames[] = { |
f0983263 | 29244 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29245 | }; |
29246 | ||
8edf1c75 | 29247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29250 | arg2 = (int) SWIG_AsInt(obj1); | |
29251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29252 | { |
29253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29254 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
29255 | ||
29256 | wxPyEndAllowThreads(__tstate); | |
29257 | if (PyErr_Occurred()) SWIG_fail; | |
29258 | } | |
4f89f6a3 RD |
29259 | { |
29260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29261 | } | |
d14a1e28 RD |
29262 | return resultobj; |
29263 | fail: | |
29264 | return NULL; | |
29265 | } | |
29266 | ||
29267 | ||
29268 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29269 | PyObject *resultobj; | |
29270 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29271 | int arg2 ; | |
29272 | wxString *arg3 = 0 ; | |
423f194a | 29273 | bool temp3 = False ; |
d14a1e28 | 29274 | PyObject * obj0 = 0 ; |
8edf1c75 | 29275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29276 | PyObject * obj2 = 0 ; |
29277 | char *kwnames[] = { | |
f0983263 | 29278 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29279 | }; |
29280 | ||
8edf1c75 | 29281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29284 | arg2 = (int) SWIG_AsInt(obj1); | |
29285 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29286 | { |
29287 | arg3 = wxString_in_helper(obj2); | |
29288 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29289 | temp3 = True; |
d14a1e28 RD |
29290 | } |
29291 | { | |
29292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29293 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29294 | ||
29295 | wxPyEndAllowThreads(__tstate); | |
29296 | if (PyErr_Occurred()) SWIG_fail; | |
29297 | } | |
29298 | Py_INCREF(Py_None); resultobj = Py_None; | |
29299 | { | |
29300 | if (temp3) | |
29301 | delete arg3; | |
29302 | } | |
29303 | return resultobj; | |
29304 | fail: | |
29305 | { | |
29306 | if (temp3) | |
29307 | delete arg3; | |
29308 | } | |
29309 | return NULL; | |
29310 | } | |
29311 | ||
29312 | ||
29313 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29314 | PyObject *resultobj; | |
29315 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29316 | int arg2 ; | |
29317 | wxString result; | |
29318 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29319 | PyObject * obj1 = 0 ; |
d14a1e28 | 29320 | char *kwnames[] = { |
f0983263 | 29321 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29322 | }; |
29323 | ||
8edf1c75 | 29324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29327 | arg2 = (int) SWIG_AsInt(obj1); | |
29328 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29329 | { |
29330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29331 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
29332 | ||
29333 | wxPyEndAllowThreads(__tstate); | |
29334 | if (PyErr_Occurred()) SWIG_fail; | |
29335 | } | |
29336 | { | |
29337 | #if wxUSE_UNICODE | |
29338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29339 | #else | |
29340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29341 | #endif | |
29342 | } | |
29343 | return resultobj; | |
29344 | fail: | |
29345 | return NULL; | |
29346 | } | |
29347 | ||
29348 | ||
29349 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29350 | PyObject *resultobj; | |
29351 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29352 | int arg2 ; | |
29353 | wxString *arg3 = 0 ; | |
423f194a | 29354 | bool temp3 = False ; |
d14a1e28 | 29355 | PyObject * obj0 = 0 ; |
8edf1c75 | 29356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29357 | PyObject * obj2 = 0 ; |
29358 | char *kwnames[] = { | |
f0983263 | 29359 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
29360 | }; |
29361 | ||
8edf1c75 | 29362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29365 | arg2 = (int) SWIG_AsInt(obj1); | |
29366 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29367 | { |
29368 | arg3 = wxString_in_helper(obj2); | |
29369 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29370 | temp3 = True; |
d14a1e28 RD |
29371 | } |
29372 | { | |
29373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29374 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
29375 | ||
29376 | wxPyEndAllowThreads(__tstate); | |
29377 | if (PyErr_Occurred()) SWIG_fail; | |
29378 | } | |
29379 | Py_INCREF(Py_None); resultobj = Py_None; | |
29380 | { | |
29381 | if (temp3) | |
29382 | delete arg3; | |
29383 | } | |
29384 | return resultobj; | |
29385 | fail: | |
29386 | { | |
29387 | if (temp3) | |
29388 | delete arg3; | |
29389 | } | |
29390 | return NULL; | |
29391 | } | |
29392 | ||
29393 | ||
29394 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29395 | PyObject *resultobj; | |
29396 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29397 | int arg2 ; | |
29398 | wxString result; | |
29399 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29400 | PyObject * obj1 = 0 ; |
d14a1e28 | 29401 | char *kwnames[] = { |
f0983263 | 29402 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29403 | }; |
29404 | ||
8edf1c75 | 29405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29408 | arg2 = (int) SWIG_AsInt(obj1); | |
29409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29410 | { |
29411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29412 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
29413 | ||
29414 | wxPyEndAllowThreads(__tstate); | |
29415 | if (PyErr_Occurred()) SWIG_fail; | |
29416 | } | |
29417 | { | |
29418 | #if wxUSE_UNICODE | |
29419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29420 | #else | |
29421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29422 | #endif | |
29423 | } | |
29424 | return resultobj; | |
29425 | fail: | |
29426 | return NULL; | |
29427 | } | |
29428 | ||
29429 | ||
29430 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29431 | PyObject *resultobj; | |
29432 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29433 | wxString *arg2 = 0 ; | |
423f194a | 29434 | bool temp2 = False ; |
d14a1e28 RD |
29435 | PyObject * obj0 = 0 ; |
29436 | PyObject * obj1 = 0 ; | |
29437 | char *kwnames[] = { | |
29438 | (char *) "self",(char *) "title", NULL | |
29439 | }; | |
29440 | ||
29441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29444 | { |
29445 | arg2 = wxString_in_helper(obj1); | |
29446 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29447 | temp2 = True; |
d14a1e28 RD |
29448 | } |
29449 | { | |
29450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29451 | (arg1)->SetTitle((wxString const &)*arg2); | |
29452 | ||
29453 | wxPyEndAllowThreads(__tstate); | |
29454 | if (PyErr_Occurred()) SWIG_fail; | |
29455 | } | |
29456 | Py_INCREF(Py_None); resultobj = Py_None; | |
29457 | { | |
29458 | if (temp2) | |
29459 | delete arg2; | |
29460 | } | |
29461 | return resultobj; | |
29462 | fail: | |
29463 | { | |
29464 | if (temp2) | |
29465 | delete arg2; | |
29466 | } | |
29467 | return NULL; | |
29468 | } | |
29469 | ||
29470 | ||
29471 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29472 | PyObject *resultobj; | |
29473 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29474 | wxString result; | |
29475 | PyObject * obj0 = 0 ; | |
29476 | char *kwnames[] = { | |
29477 | (char *) "self", NULL | |
29478 | }; | |
29479 | ||
29480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29483 | { |
29484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29485 | result = ((wxMenu const *)arg1)->GetTitle(); | |
29486 | ||
29487 | wxPyEndAllowThreads(__tstate); | |
29488 | if (PyErr_Occurred()) SWIG_fail; | |
29489 | } | |
29490 | { | |
29491 | #if wxUSE_UNICODE | |
29492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29493 | #else | |
29494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29495 | #endif | |
29496 | } | |
29497 | return resultobj; | |
29498 | fail: | |
29499 | return NULL; | |
29500 | } | |
29501 | ||
29502 | ||
29503 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29504 | PyObject *resultobj; | |
29505 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29506 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
29507 | PyObject * obj0 = 0 ; | |
29508 | PyObject * obj1 = 0 ; | |
29509 | char *kwnames[] = { | |
29510 | (char *) "self",(char *) "handler", NULL | |
29511 | }; | |
29512 | ||
29513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
29517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29518 | { |
29519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29520 | (arg1)->SetEventHandler(arg2); | |
29521 | ||
29522 | wxPyEndAllowThreads(__tstate); | |
29523 | if (PyErr_Occurred()) SWIG_fail; | |
29524 | } | |
29525 | Py_INCREF(Py_None); resultobj = Py_None; | |
29526 | return resultobj; | |
29527 | fail: | |
29528 | return NULL; | |
29529 | } | |
29530 | ||
29531 | ||
29532 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29533 | PyObject *resultobj; | |
29534 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29535 | wxEvtHandler *result; | |
29536 | PyObject * obj0 = 0 ; | |
29537 | char *kwnames[] = { | |
29538 | (char *) "self", NULL | |
29539 | }; | |
29540 | ||
29541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29544 | { |
29545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29546 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
29547 | ||
29548 | wxPyEndAllowThreads(__tstate); | |
29549 | if (PyErr_Occurred()) SWIG_fail; | |
29550 | } | |
29551 | { | |
29552 | resultobj = wxPyMake_wxObject(result); | |
29553 | } | |
29554 | return resultobj; | |
29555 | fail: | |
29556 | return NULL; | |
29557 | } | |
29558 | ||
29559 | ||
29560 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29561 | PyObject *resultobj; | |
29562 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29563 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29564 | PyObject * obj0 = 0 ; | |
29565 | PyObject * obj1 = 0 ; | |
29566 | char *kwnames[] = { | |
29567 | (char *) "self",(char *) "win", NULL | |
29568 | }; | |
29569 | ||
29570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29575 | { |
29576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29577 | (arg1)->SetInvokingWindow(arg2); | |
29578 | ||
29579 | wxPyEndAllowThreads(__tstate); | |
29580 | if (PyErr_Occurred()) SWIG_fail; | |
29581 | } | |
29582 | Py_INCREF(Py_None); resultobj = Py_None; | |
29583 | return resultobj; | |
29584 | fail: | |
29585 | return NULL; | |
29586 | } | |
29587 | ||
29588 | ||
29589 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29590 | PyObject *resultobj; | |
29591 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29592 | wxWindow *result; | |
29593 | PyObject * obj0 = 0 ; | |
29594 | char *kwnames[] = { | |
29595 | (char *) "self", NULL | |
29596 | }; | |
29597 | ||
29598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29601 | { |
29602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29603 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
29604 | ||
29605 | wxPyEndAllowThreads(__tstate); | |
29606 | if (PyErr_Occurred()) SWIG_fail; | |
29607 | } | |
29608 | { | |
29609 | resultobj = wxPyMake_wxObject(result); | |
29610 | } | |
29611 | return resultobj; | |
29612 | fail: | |
29613 | return NULL; | |
29614 | } | |
29615 | ||
29616 | ||
29617 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29618 | PyObject *resultobj; | |
29619 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29620 | long result; | |
29621 | PyObject * obj0 = 0 ; | |
29622 | char *kwnames[] = { | |
29623 | (char *) "self", NULL | |
29624 | }; | |
29625 | ||
29626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29629 | { |
29630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29631 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
29632 | ||
29633 | wxPyEndAllowThreads(__tstate); | |
29634 | if (PyErr_Occurred()) SWIG_fail; | |
29635 | } | |
2f4c0a16 | 29636 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
29637 | return resultobj; |
29638 | fail: | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
29643 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29644 | PyObject *resultobj; | |
29645 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29646 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
29647 | PyObject * obj0 = 0 ; | |
29648 | PyObject * obj1 = 0 ; | |
29649 | char *kwnames[] = { | |
29650 | (char *) "self",(char *) "source", NULL | |
29651 | }; | |
29652 | ||
29653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29656 | if (obj1) { |
2f4c0a16 RD |
29657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
29658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29659 | } |
29660 | { | |
29661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29662 | (arg1)->UpdateUI(arg2); | |
29663 | ||
29664 | wxPyEndAllowThreads(__tstate); | |
29665 | if (PyErr_Occurred()) SWIG_fail; | |
29666 | } | |
29667 | Py_INCREF(Py_None); resultobj = Py_None; | |
29668 | return resultobj; | |
29669 | fail: | |
29670 | return NULL; | |
29671 | } | |
29672 | ||
29673 | ||
29674 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29675 | PyObject *resultobj; | |
29676 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29677 | wxMenuBar *result; | |
29678 | PyObject * obj0 = 0 ; | |
29679 | char *kwnames[] = { | |
29680 | (char *) "self", NULL | |
29681 | }; | |
29682 | ||
29683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29686 | { |
29687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29688 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
29689 | ||
29690 | wxPyEndAllowThreads(__tstate); | |
29691 | if (PyErr_Occurred()) SWIG_fail; | |
29692 | } | |
29693 | { | |
29694 | resultobj = wxPyMake_wxObject(result); | |
29695 | } | |
29696 | return resultobj; | |
29697 | fail: | |
29698 | return NULL; | |
29699 | } | |
29700 | ||
29701 | ||
29702 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29703 | PyObject *resultobj; | |
29704 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29705 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
29706 | PyObject * obj0 = 0 ; | |
29707 | PyObject * obj1 = 0 ; | |
29708 | char *kwnames[] = { | |
29709 | (char *) "self",(char *) "menubar", NULL | |
29710 | }; | |
29711 | ||
29712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29715 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
29716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29717 | { |
29718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29719 | (arg1)->Attach(arg2); | |
29720 | ||
29721 | wxPyEndAllowThreads(__tstate); | |
29722 | if (PyErr_Occurred()) SWIG_fail; | |
29723 | } | |
29724 | Py_INCREF(Py_None); resultobj = Py_None; | |
29725 | return resultobj; | |
29726 | fail: | |
29727 | return NULL; | |
29728 | } | |
29729 | ||
29730 | ||
29731 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29732 | PyObject *resultobj; | |
29733 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29734 | PyObject * obj0 = 0 ; | |
29735 | char *kwnames[] = { | |
29736 | (char *) "self", NULL | |
29737 | }; | |
29738 | ||
29739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29742 | { |
29743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29744 | (arg1)->Detach(); | |
29745 | ||
29746 | wxPyEndAllowThreads(__tstate); | |
29747 | if (PyErr_Occurred()) SWIG_fail; | |
29748 | } | |
29749 | Py_INCREF(Py_None); resultobj = Py_None; | |
29750 | return resultobj; | |
29751 | fail: | |
29752 | return NULL; | |
29753 | } | |
29754 | ||
29755 | ||
29756 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29757 | PyObject *resultobj; | |
29758 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29759 | bool result; | |
29760 | PyObject * obj0 = 0 ; | |
29761 | char *kwnames[] = { | |
29762 | (char *) "self", NULL | |
29763 | }; | |
29764 | ||
29765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29768 | { |
29769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29770 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29771 | ||
29772 | wxPyEndAllowThreads(__tstate); | |
29773 | if (PyErr_Occurred()) SWIG_fail; | |
29774 | } | |
4f89f6a3 RD |
29775 | { |
29776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29777 | } | |
d14a1e28 RD |
29778 | return resultobj; |
29779 | fail: | |
29780 | return NULL; | |
29781 | } | |
29782 | ||
29783 | ||
29784 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29785 | PyObject *resultobj; | |
29786 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29787 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29788 | PyObject * obj0 = 0 ; | |
29789 | PyObject * obj1 = 0 ; | |
29790 | char *kwnames[] = { | |
29791 | (char *) "self",(char *) "parent", NULL | |
29792 | }; | |
29793 | ||
29794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29799 | { |
29800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29801 | (arg1)->SetParent(arg2); | |
29802 | ||
29803 | wxPyEndAllowThreads(__tstate); | |
29804 | if (PyErr_Occurred()) SWIG_fail; | |
29805 | } | |
29806 | Py_INCREF(Py_None); resultobj = Py_None; | |
29807 | return resultobj; | |
29808 | fail: | |
29809 | return NULL; | |
29810 | } | |
29811 | ||
29812 | ||
29813 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29814 | PyObject *resultobj; | |
29815 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29816 | wxMenu *result; | |
29817 | PyObject * obj0 = 0 ; | |
29818 | char *kwnames[] = { | |
29819 | (char *) "self", NULL | |
29820 | }; | |
29821 | ||
29822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29825 | { |
29826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29827 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29828 | ||
29829 | wxPyEndAllowThreads(__tstate); | |
29830 | if (PyErr_Occurred()) SWIG_fail; | |
29831 | } | |
29832 | { | |
29833 | resultobj = wxPyMake_wxObject(result); | |
29834 | } | |
29835 | return resultobj; | |
29836 | fail: | |
29837 | return NULL; | |
29838 | } | |
29839 | ||
29840 | ||
29841 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29842 | PyObject *obj; | |
29843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29844 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29845 | Py_INCREF(obj); | |
29846 | return Py_BuildValue((char *)""); | |
29847 | } | |
29848 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29849 | PyObject *resultobj; | |
29850 | long arg1 = (long) 0 ; | |
29851 | wxMenuBar *result; | |
8edf1c75 | 29852 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29853 | char *kwnames[] = { |
29854 | (char *) "style", NULL | |
29855 | }; | |
29856 | ||
8edf1c75 RD |
29857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29858 | if (obj0) { | |
2f4c0a16 RD |
29859 | arg1 = (long) SWIG_AsLong(obj0); |
29860 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29861 | } |
d14a1e28 RD |
29862 | { |
29863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29864 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29865 | ||
29866 | wxPyEndAllowThreads(__tstate); | |
29867 | if (PyErr_Occurred()) SWIG_fail; | |
29868 | } | |
29869 | { | |
29870 | resultobj = wxPyMake_wxObject(result); | |
29871 | } | |
29872 | return resultobj; | |
29873 | fail: | |
29874 | return NULL; | |
29875 | } | |
29876 | ||
29877 | ||
29878 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29879 | PyObject *resultobj; | |
29880 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29881 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29882 | wxString *arg3 = 0 ; | |
29883 | bool result; | |
423f194a | 29884 | bool temp3 = False ; |
d14a1e28 RD |
29885 | PyObject * obj0 = 0 ; |
29886 | PyObject * obj1 = 0 ; | |
29887 | PyObject * obj2 = 0 ; | |
29888 | char *kwnames[] = { | |
29889 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29890 | }; | |
29891 | ||
29892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29895 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29897 | { |
29898 | arg3 = wxString_in_helper(obj2); | |
29899 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29900 | temp3 = True; |
d14a1e28 RD |
29901 | } |
29902 | { | |
29903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29904 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29905 | ||
29906 | wxPyEndAllowThreads(__tstate); | |
29907 | if (PyErr_Occurred()) SWIG_fail; | |
29908 | } | |
4f89f6a3 RD |
29909 | { |
29910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29911 | } | |
d14a1e28 RD |
29912 | { |
29913 | if (temp3) | |
29914 | delete arg3; | |
29915 | } | |
29916 | return resultobj; | |
29917 | fail: | |
29918 | { | |
29919 | if (temp3) | |
29920 | delete arg3; | |
29921 | } | |
29922 | return NULL; | |
29923 | } | |
29924 | ||
29925 | ||
29926 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29927 | PyObject *resultobj; | |
29928 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29929 | size_t arg2 ; | |
29930 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29931 | wxString *arg4 = 0 ; | |
29932 | bool result; | |
423f194a | 29933 | bool temp4 = False ; |
d14a1e28 RD |
29934 | PyObject * obj0 = 0 ; |
29935 | PyObject * obj1 = 0 ; | |
29936 | PyObject * obj2 = 0 ; | |
29937 | PyObject * obj3 = 0 ; | |
29938 | char *kwnames[] = { | |
29939 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29940 | }; | |
29941 | ||
29942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29945 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29946 | if (PyErr_Occurred()) SWIG_fail; | |
29947 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29949 | { |
29950 | arg4 = wxString_in_helper(obj3); | |
29951 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29952 | temp4 = True; |
d14a1e28 RD |
29953 | } |
29954 | { | |
29955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29956 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29957 | ||
29958 | wxPyEndAllowThreads(__tstate); | |
29959 | if (PyErr_Occurred()) SWIG_fail; | |
29960 | } | |
4f89f6a3 RD |
29961 | { |
29962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29963 | } | |
d14a1e28 RD |
29964 | { |
29965 | if (temp4) | |
29966 | delete arg4; | |
29967 | } | |
29968 | return resultobj; | |
29969 | fail: | |
29970 | { | |
29971 | if (temp4) | |
29972 | delete arg4; | |
29973 | } | |
29974 | return NULL; | |
29975 | } | |
29976 | ||
29977 | ||
29978 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29979 | PyObject *resultobj; | |
29980 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29981 | size_t result; | |
29982 | PyObject * obj0 = 0 ; | |
29983 | char *kwnames[] = { | |
29984 | (char *) "self", NULL | |
29985 | }; | |
29986 | ||
29987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29990 | { |
29991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29992 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29993 | ||
29994 | wxPyEndAllowThreads(__tstate); | |
29995 | if (PyErr_Occurred()) SWIG_fail; | |
29996 | } | |
2f4c0a16 | 29997 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29998 | return resultobj; |
29999 | fail: | |
30000 | return NULL; | |
30001 | } | |
30002 | ||
30003 | ||
30004 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30005 | PyObject *resultobj; | |
30006 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30007 | size_t arg2 ; | |
30008 | wxMenu *result; | |
30009 | PyObject * obj0 = 0 ; | |
30010 | PyObject * obj1 = 0 ; | |
30011 | char *kwnames[] = { | |
30012 | (char *) "self",(char *) "pos", NULL | |
30013 | }; | |
30014 | ||
30015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30018 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30019 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30020 | { |
30021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30022 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30023 | ||
30024 | wxPyEndAllowThreads(__tstate); | |
30025 | if (PyErr_Occurred()) SWIG_fail; | |
30026 | } | |
30027 | { | |
30028 | resultobj = wxPyMake_wxObject(result); | |
30029 | } | |
30030 | return resultobj; | |
30031 | fail: | |
30032 | return NULL; | |
30033 | } | |
30034 | ||
30035 | ||
30036 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30037 | PyObject *resultobj; | |
30038 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30039 | size_t arg2 ; | |
30040 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30041 | wxString *arg4 = 0 ; | |
30042 | wxMenu *result; | |
423f194a | 30043 | bool temp4 = False ; |
d14a1e28 RD |
30044 | PyObject * obj0 = 0 ; |
30045 | PyObject * obj1 = 0 ; | |
30046 | PyObject * obj2 = 0 ; | |
30047 | PyObject * obj3 = 0 ; | |
30048 | char *kwnames[] = { | |
30049 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30050 | }; | |
30051 | ||
30052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
30053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30055 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30056 | if (PyErr_Occurred()) SWIG_fail; | |
30057 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30059 | { |
30060 | arg4 = wxString_in_helper(obj3); | |
30061 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30062 | temp4 = True; |
d14a1e28 RD |
30063 | } |
30064 | { | |
30065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30066 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30067 | ||
30068 | wxPyEndAllowThreads(__tstate); | |
30069 | if (PyErr_Occurred()) SWIG_fail; | |
30070 | } | |
30071 | { | |
30072 | resultobj = wxPyMake_wxObject(result); | |
30073 | } | |
30074 | { | |
30075 | if (temp4) | |
30076 | delete arg4; | |
30077 | } | |
30078 | return resultobj; | |
30079 | fail: | |
30080 | { | |
30081 | if (temp4) | |
30082 | delete arg4; | |
30083 | } | |
30084 | return NULL; | |
30085 | } | |
30086 | ||
30087 | ||
30088 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30089 | PyObject *resultobj; | |
30090 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30091 | size_t arg2 ; | |
30092 | wxMenu *result; | |
30093 | PyObject * obj0 = 0 ; | |
30094 | PyObject * obj1 = 0 ; | |
30095 | char *kwnames[] = { | |
30096 | (char *) "self",(char *) "pos", NULL | |
30097 | }; | |
30098 | ||
30099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30102 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30104 | { |
30105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30106 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30107 | ||
30108 | wxPyEndAllowThreads(__tstate); | |
30109 | if (PyErr_Occurred()) SWIG_fail; | |
30110 | } | |
30111 | { | |
30112 | resultobj = wxPyMake_wxObject(result); | |
30113 | } | |
30114 | return resultobj; | |
30115 | fail: | |
30116 | return NULL; | |
30117 | } | |
30118 | ||
30119 | ||
30120 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30121 | PyObject *resultobj; | |
30122 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30123 | size_t arg2 ; | |
30124 | bool arg3 ; | |
30125 | PyObject * obj0 = 0 ; | |
30126 | PyObject * obj1 = 0 ; | |
30127 | PyObject * obj2 = 0 ; | |
30128 | char *kwnames[] = { | |
30129 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30130 | }; | |
30131 | ||
30132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30135 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30136 | if (PyErr_Occurred()) SWIG_fail; | |
30137 | arg3 = (bool) SWIG_AsBool(obj2); | |
30138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30139 | { |
30140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30141 | (arg1)->EnableTop(arg2,arg3); | |
30142 | ||
30143 | wxPyEndAllowThreads(__tstate); | |
30144 | if (PyErr_Occurred()) SWIG_fail; | |
30145 | } | |
30146 | Py_INCREF(Py_None); resultobj = Py_None; | |
30147 | return resultobj; | |
30148 | fail: | |
30149 | return NULL; | |
30150 | } | |
30151 | ||
30152 | ||
30153 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30154 | PyObject *resultobj; | |
30155 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30156 | size_t arg2 ; | |
30157 | bool result; | |
30158 | PyObject * obj0 = 0 ; | |
30159 | PyObject * obj1 = 0 ; | |
30160 | char *kwnames[] = { | |
30161 | (char *) "self",(char *) "pos", NULL | |
30162 | }; | |
30163 | ||
30164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30167 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30168 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30169 | { |
30170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30171 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
30172 | ||
30173 | wxPyEndAllowThreads(__tstate); | |
30174 | if (PyErr_Occurred()) SWIG_fail; | |
30175 | } | |
4f89f6a3 RD |
30176 | { |
30177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30178 | } | |
d14a1e28 RD |
30179 | return resultobj; |
30180 | fail: | |
30181 | return NULL; | |
30182 | } | |
30183 | ||
30184 | ||
30185 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30186 | PyObject *resultobj; | |
30187 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30188 | size_t arg2 ; | |
30189 | wxString *arg3 = 0 ; | |
423f194a | 30190 | bool temp3 = False ; |
d14a1e28 RD |
30191 | PyObject * obj0 = 0 ; |
30192 | PyObject * obj1 = 0 ; | |
30193 | PyObject * obj2 = 0 ; | |
30194 | char *kwnames[] = { | |
30195 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
30196 | }; | |
30197 | ||
30198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30201 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30203 | { |
30204 | arg3 = wxString_in_helper(obj2); | |
30205 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30206 | temp3 = True; |
d14a1e28 RD |
30207 | } |
30208 | { | |
30209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30210 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
30211 | ||
30212 | wxPyEndAllowThreads(__tstate); | |
30213 | if (PyErr_Occurred()) SWIG_fail; | |
30214 | } | |
30215 | Py_INCREF(Py_None); resultobj = Py_None; | |
30216 | { | |
30217 | if (temp3) | |
30218 | delete arg3; | |
30219 | } | |
30220 | return resultobj; | |
30221 | fail: | |
30222 | { | |
30223 | if (temp3) | |
30224 | delete arg3; | |
30225 | } | |
30226 | return NULL; | |
30227 | } | |
30228 | ||
30229 | ||
30230 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30231 | PyObject *resultobj; | |
30232 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30233 | size_t arg2 ; | |
30234 | wxString result; | |
30235 | PyObject * obj0 = 0 ; | |
30236 | PyObject * obj1 = 0 ; | |
30237 | char *kwnames[] = { | |
30238 | (char *) "self",(char *) "pos", NULL | |
30239 | }; | |
30240 | ||
30241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30244 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30246 | { |
30247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30248 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
30249 | ||
30250 | wxPyEndAllowThreads(__tstate); | |
30251 | if (PyErr_Occurred()) SWIG_fail; | |
30252 | } | |
30253 | { | |
30254 | #if wxUSE_UNICODE | |
30255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30256 | #else | |
30257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30258 | #endif | |
30259 | } | |
30260 | return resultobj; | |
30261 | fail: | |
30262 | return NULL; | |
30263 | } | |
30264 | ||
30265 | ||
30266 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30267 | PyObject *resultobj; | |
30268 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30269 | wxString *arg2 = 0 ; | |
30270 | wxString *arg3 = 0 ; | |
30271 | int result; | |
423f194a RD |
30272 | bool temp2 = False ; |
30273 | bool temp3 = False ; | |
d14a1e28 RD |
30274 | PyObject * obj0 = 0 ; |
30275 | PyObject * obj1 = 0 ; | |
30276 | PyObject * obj2 = 0 ; | |
30277 | char *kwnames[] = { | |
30278 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
30279 | }; | |
30280 | ||
30281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30284 | { |
30285 | arg2 = wxString_in_helper(obj1); | |
30286 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30287 | temp2 = True; |
d14a1e28 RD |
30288 | } |
30289 | { | |
30290 | arg3 = wxString_in_helper(obj2); | |
30291 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30292 | temp3 = True; |
d14a1e28 RD |
30293 | } |
30294 | { | |
30295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30296 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
30297 | ||
30298 | wxPyEndAllowThreads(__tstate); | |
30299 | if (PyErr_Occurred()) SWIG_fail; | |
30300 | } | |
2f4c0a16 | 30301 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30302 | { |
30303 | if (temp2) | |
30304 | delete arg2; | |
30305 | } | |
30306 | { | |
30307 | if (temp3) | |
30308 | delete arg3; | |
30309 | } | |
30310 | return resultobj; | |
30311 | fail: | |
30312 | { | |
30313 | if (temp2) | |
30314 | delete arg2; | |
30315 | } | |
30316 | { | |
30317 | if (temp3) | |
30318 | delete arg3; | |
30319 | } | |
30320 | return NULL; | |
30321 | } | |
30322 | ||
30323 | ||
30324 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30325 | PyObject *resultobj; | |
30326 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30327 | int arg2 ; | |
30328 | wxMenuItem *result; | |
30329 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30330 | PyObject * obj1 = 0 ; |
d14a1e28 | 30331 | char *kwnames[] = { |
f0983263 | 30332 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30333 | }; |
30334 | ||
8edf1c75 | 30335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30338 | arg2 = (int) SWIG_AsInt(obj1); | |
30339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30340 | { |
30341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30342 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
30343 | ||
30344 | wxPyEndAllowThreads(__tstate); | |
30345 | if (PyErr_Occurred()) SWIG_fail; | |
30346 | } | |
30347 | { | |
30348 | resultobj = wxPyMake_wxObject(result); | |
30349 | } | |
30350 | return resultobj; | |
30351 | fail: | |
30352 | return NULL; | |
30353 | } | |
30354 | ||
30355 | ||
30356 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30357 | PyObject *resultobj; | |
30358 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30359 | wxString *arg2 = 0 ; | |
30360 | int result; | |
423f194a | 30361 | bool temp2 = False ; |
d14a1e28 RD |
30362 | PyObject * obj0 = 0 ; |
30363 | PyObject * obj1 = 0 ; | |
30364 | char *kwnames[] = { | |
30365 | (char *) "self",(char *) "title", NULL | |
30366 | }; | |
30367 | ||
30368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30371 | { |
30372 | arg2 = wxString_in_helper(obj1); | |
30373 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30374 | temp2 = True; |
d14a1e28 RD |
30375 | } |
30376 | { | |
30377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30378 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
30379 | ||
30380 | wxPyEndAllowThreads(__tstate); | |
30381 | if (PyErr_Occurred()) SWIG_fail; | |
30382 | } | |
2f4c0a16 | 30383 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30384 | { |
30385 | if (temp2) | |
30386 | delete arg2; | |
30387 | } | |
30388 | return resultobj; | |
30389 | fail: | |
30390 | { | |
30391 | if (temp2) | |
30392 | delete arg2; | |
30393 | } | |
30394 | return NULL; | |
30395 | } | |
30396 | ||
30397 | ||
30398 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30399 | PyObject *resultobj; | |
30400 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30401 | int arg2 ; | |
30402 | bool arg3 ; | |
30403 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30405 | PyObject * obj2 = 0 ; |
30406 | char *kwnames[] = { | |
f0983263 | 30407 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
30408 | }; |
30409 | ||
8edf1c75 | 30410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30413 | arg2 = (int) SWIG_AsInt(obj1); | |
30414 | if (PyErr_Occurred()) SWIG_fail; | |
30415 | arg3 = (bool) SWIG_AsBool(obj2); | |
30416 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30417 | { |
30418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30419 | (arg1)->Enable(arg2,arg3); | |
30420 | ||
30421 | wxPyEndAllowThreads(__tstate); | |
30422 | if (PyErr_Occurred()) SWIG_fail; | |
30423 | } | |
30424 | Py_INCREF(Py_None); resultobj = Py_None; | |
30425 | return resultobj; | |
30426 | fail: | |
30427 | return NULL; | |
30428 | } | |
30429 | ||
30430 | ||
30431 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30432 | PyObject *resultobj; | |
30433 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30434 | int arg2 ; | |
30435 | bool arg3 ; | |
30436 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30438 | PyObject * obj2 = 0 ; |
30439 | char *kwnames[] = { | |
f0983263 | 30440 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30441 | }; |
30442 | ||
8edf1c75 | 30443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30446 | arg2 = (int) SWIG_AsInt(obj1); | |
30447 | if (PyErr_Occurred()) SWIG_fail; | |
30448 | arg3 = (bool) SWIG_AsBool(obj2); | |
30449 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30450 | { |
30451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30452 | (arg1)->Check(arg2,arg3); | |
30453 | ||
30454 | wxPyEndAllowThreads(__tstate); | |
30455 | if (PyErr_Occurred()) SWIG_fail; | |
30456 | } | |
30457 | Py_INCREF(Py_None); resultobj = Py_None; | |
30458 | return resultobj; | |
30459 | fail: | |
30460 | return NULL; | |
30461 | } | |
30462 | ||
30463 | ||
30464 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30465 | PyObject *resultobj; | |
30466 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30467 | int arg2 ; | |
30468 | bool result; | |
30469 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30470 | PyObject * obj1 = 0 ; |
d14a1e28 | 30471 | char *kwnames[] = { |
f0983263 | 30472 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30473 | }; |
30474 | ||
8edf1c75 | 30475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30478 | arg2 = (int) SWIG_AsInt(obj1); | |
30479 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30480 | { |
30481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30482 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
30483 | ||
30484 | wxPyEndAllowThreads(__tstate); | |
30485 | if (PyErr_Occurred()) SWIG_fail; | |
30486 | } | |
4f89f6a3 RD |
30487 | { |
30488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30489 | } | |
d14a1e28 RD |
30490 | return resultobj; |
30491 | fail: | |
30492 | return NULL; | |
30493 | } | |
30494 | ||
30495 | ||
30496 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30497 | PyObject *resultobj; | |
30498 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30499 | int arg2 ; | |
30500 | bool result; | |
30501 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30502 | PyObject * obj1 = 0 ; |
d14a1e28 | 30503 | char *kwnames[] = { |
f0983263 | 30504 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30505 | }; |
30506 | ||
8edf1c75 | 30507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30510 | arg2 = (int) SWIG_AsInt(obj1); | |
30511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30512 | { |
30513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30514 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
30515 | ||
30516 | wxPyEndAllowThreads(__tstate); | |
30517 | if (PyErr_Occurred()) SWIG_fail; | |
30518 | } | |
4f89f6a3 RD |
30519 | { |
30520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30521 | } | |
d14a1e28 RD |
30522 | return resultobj; |
30523 | fail: | |
30524 | return NULL; | |
30525 | } | |
30526 | ||
30527 | ||
30528 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30529 | PyObject *resultobj; | |
30530 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30531 | int arg2 ; | |
30532 | wxString *arg3 = 0 ; | |
423f194a | 30533 | bool temp3 = False ; |
d14a1e28 | 30534 | PyObject * obj0 = 0 ; |
8edf1c75 | 30535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30536 | PyObject * obj2 = 0 ; |
30537 | char *kwnames[] = { | |
f0983263 | 30538 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30539 | }; |
30540 | ||
8edf1c75 | 30541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30544 | arg2 = (int) SWIG_AsInt(obj1); | |
30545 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30546 | { |
30547 | arg3 = wxString_in_helper(obj2); | |
30548 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30549 | temp3 = True; |
d14a1e28 RD |
30550 | } |
30551 | { | |
30552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30553 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30554 | ||
30555 | wxPyEndAllowThreads(__tstate); | |
30556 | if (PyErr_Occurred()) SWIG_fail; | |
30557 | } | |
30558 | Py_INCREF(Py_None); resultobj = Py_None; | |
30559 | { | |
30560 | if (temp3) | |
30561 | delete arg3; | |
30562 | } | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | { | |
30566 | if (temp3) | |
30567 | delete arg3; | |
30568 | } | |
30569 | return NULL; | |
30570 | } | |
30571 | ||
30572 | ||
30573 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30574 | PyObject *resultobj; | |
30575 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30576 | int arg2 ; | |
30577 | wxString result; | |
30578 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30579 | PyObject * obj1 = 0 ; |
d14a1e28 | 30580 | char *kwnames[] = { |
f0983263 | 30581 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30582 | }; |
30583 | ||
8edf1c75 | 30584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30587 | arg2 = (int) SWIG_AsInt(obj1); | |
30588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30589 | { |
30590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30591 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
30592 | ||
30593 | wxPyEndAllowThreads(__tstate); | |
30594 | if (PyErr_Occurred()) SWIG_fail; | |
30595 | } | |
30596 | { | |
30597 | #if wxUSE_UNICODE | |
30598 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30599 | #else | |
30600 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30601 | #endif | |
30602 | } | |
30603 | return resultobj; | |
30604 | fail: | |
30605 | return NULL; | |
30606 | } | |
30607 | ||
30608 | ||
30609 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30610 | PyObject *resultobj; | |
30611 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30612 | int arg2 ; | |
30613 | wxString *arg3 = 0 ; | |
423f194a | 30614 | bool temp3 = False ; |
d14a1e28 | 30615 | PyObject * obj0 = 0 ; |
8edf1c75 | 30616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30617 | PyObject * obj2 = 0 ; |
30618 | char *kwnames[] = { | |
f0983263 | 30619 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30620 | }; |
30621 | ||
8edf1c75 | 30622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30625 | arg2 = (int) SWIG_AsInt(obj1); | |
30626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30627 | { |
30628 | arg3 = wxString_in_helper(obj2); | |
30629 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30630 | temp3 = True; |
d14a1e28 RD |
30631 | } |
30632 | { | |
30633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30634 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30635 | ||
30636 | wxPyEndAllowThreads(__tstate); | |
30637 | if (PyErr_Occurred()) SWIG_fail; | |
30638 | } | |
30639 | Py_INCREF(Py_None); resultobj = Py_None; | |
30640 | { | |
30641 | if (temp3) | |
30642 | delete arg3; | |
30643 | } | |
30644 | return resultobj; | |
30645 | fail: | |
30646 | { | |
30647 | if (temp3) | |
30648 | delete arg3; | |
30649 | } | |
30650 | return NULL; | |
30651 | } | |
30652 | ||
30653 | ||
30654 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30655 | PyObject *resultobj; | |
30656 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30657 | int arg2 ; | |
30658 | wxString result; | |
30659 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30660 | PyObject * obj1 = 0 ; |
d14a1e28 | 30661 | char *kwnames[] = { |
f0983263 | 30662 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30663 | }; |
30664 | ||
8edf1c75 | 30665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30668 | arg2 = (int) SWIG_AsInt(obj1); | |
30669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30670 | { |
30671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30672 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
30673 | ||
30674 | wxPyEndAllowThreads(__tstate); | |
30675 | if (PyErr_Occurred()) SWIG_fail; | |
30676 | } | |
30677 | { | |
30678 | #if wxUSE_UNICODE | |
30679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30680 | #else | |
30681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30682 | #endif | |
30683 | } | |
30684 | return resultobj; | |
30685 | fail: | |
30686 | return NULL; | |
30687 | } | |
30688 | ||
30689 | ||
30690 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30691 | PyObject *resultobj; | |
30692 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30693 | wxFrame *result; | |
30694 | PyObject * obj0 = 0 ; | |
30695 | char *kwnames[] = { | |
30696 | (char *) "self", NULL | |
30697 | }; | |
30698 | ||
30699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30702 | { |
30703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30704 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
30705 | ||
30706 | wxPyEndAllowThreads(__tstate); | |
30707 | if (PyErr_Occurred()) SWIG_fail; | |
30708 | } | |
30709 | { | |
30710 | resultobj = wxPyMake_wxObject(result); | |
30711 | } | |
30712 | return resultobj; | |
30713 | fail: | |
30714 | return NULL; | |
30715 | } | |
30716 | ||
30717 | ||
30718 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30719 | PyObject *resultobj; | |
30720 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30721 | bool result; | |
30722 | PyObject * obj0 = 0 ; | |
30723 | char *kwnames[] = { | |
30724 | (char *) "self", NULL | |
30725 | }; | |
30726 | ||
30727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30730 | { |
30731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30732 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30733 | ||
30734 | wxPyEndAllowThreads(__tstate); | |
30735 | if (PyErr_Occurred()) SWIG_fail; | |
30736 | } | |
4f89f6a3 RD |
30737 | { |
30738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30739 | } | |
d14a1e28 RD |
30740 | return resultobj; |
30741 | fail: | |
30742 | return NULL; | |
30743 | } | |
30744 | ||
30745 | ||
30746 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30747 | PyObject *resultobj; | |
30748 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30749 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30750 | PyObject * obj0 = 0 ; | |
30751 | PyObject * obj1 = 0 ; | |
30752 | char *kwnames[] = { | |
30753 | (char *) "self",(char *) "frame", NULL | |
30754 | }; | |
30755 | ||
30756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
30760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30761 | { |
30762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30763 | (arg1)->Attach(arg2); | |
30764 | ||
30765 | wxPyEndAllowThreads(__tstate); | |
30766 | if (PyErr_Occurred()) SWIG_fail; | |
30767 | } | |
30768 | Py_INCREF(Py_None); resultobj = Py_None; | |
30769 | return resultobj; | |
30770 | fail: | |
30771 | return NULL; | |
30772 | } | |
30773 | ||
30774 | ||
30775 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30776 | PyObject *resultobj; | |
30777 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30778 | PyObject * obj0 = 0 ; | |
30779 | char *kwnames[] = { | |
30780 | (char *) "self", NULL | |
30781 | }; | |
30782 | ||
30783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30786 | { |
30787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30788 | (arg1)->Detach(); | |
30789 | ||
30790 | wxPyEndAllowThreads(__tstate); | |
30791 | if (PyErr_Occurred()) SWIG_fail; | |
30792 | } | |
30793 | Py_INCREF(Py_None); resultobj = Py_None; | |
30794 | return resultobj; | |
30795 | fail: | |
30796 | return NULL; | |
30797 | } | |
30798 | ||
30799 | ||
30800 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30801 | PyObject *obj; | |
30802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30803 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30804 | Py_INCREF(obj); | |
30805 | return Py_BuildValue((char *)""); | |
30806 | } | |
30807 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30808 | PyObject *resultobj; | |
30809 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30810 | int arg2 = (int) wxID_SEPARATOR ; | |
30811 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30812 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30813 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30814 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30815 | int arg5 = (int) wxITEM_NORMAL ; | |
30816 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30817 | wxMenuItem *result; | |
423f194a RD |
30818 | bool temp3 = False ; |
30819 | bool temp4 = False ; | |
d14a1e28 | 30820 | PyObject * obj0 = 0 ; |
8edf1c75 | 30821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30822 | PyObject * obj2 = 0 ; |
30823 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30824 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30825 | PyObject * obj5 = 0 ; |
30826 | char *kwnames[] = { | |
30827 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30828 | }; | |
30829 | ||
8edf1c75 | 30830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 30831 | if (obj0) { |
2f4c0a16 RD |
30832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30834 | } |
8edf1c75 | 30835 | if (obj1) { |
2f4c0a16 RD |
30836 | arg2 = (int) SWIG_AsInt(obj1); |
30837 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30838 | } |
d14a1e28 RD |
30839 | if (obj2) { |
30840 | { | |
30841 | arg3 = wxString_in_helper(obj2); | |
30842 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30843 | temp3 = True; |
d14a1e28 RD |
30844 | } |
30845 | } | |
30846 | if (obj3) { | |
30847 | { | |
30848 | arg4 = wxString_in_helper(obj3); | |
30849 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30850 | temp4 = True; |
d14a1e28 RD |
30851 | } |
30852 | } | |
8edf1c75 | 30853 | if (obj4) { |
2f4c0a16 RD |
30854 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
30855 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30856 | } |
d14a1e28 | 30857 | if (obj5) { |
2f4c0a16 RD |
30858 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
30859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30860 | } |
30861 | { | |
30862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30863 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30864 | ||
30865 | wxPyEndAllowThreads(__tstate); | |
30866 | if (PyErr_Occurred()) SWIG_fail; | |
30867 | } | |
30868 | { | |
30869 | resultobj = wxPyMake_wxObject(result); | |
30870 | } | |
30871 | { | |
30872 | if (temp3) | |
30873 | delete arg3; | |
30874 | } | |
30875 | { | |
30876 | if (temp4) | |
30877 | delete arg4; | |
30878 | } | |
30879 | return resultobj; | |
30880 | fail: | |
30881 | { | |
30882 | if (temp3) | |
30883 | delete arg3; | |
30884 | } | |
30885 | { | |
30886 | if (temp4) | |
30887 | delete arg4; | |
30888 | } | |
30889 | return NULL; | |
30890 | } | |
30891 | ||
30892 | ||
30893 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30894 | PyObject *resultobj; | |
30895 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30896 | wxMenu *result; | |
30897 | PyObject * obj0 = 0 ; | |
30898 | char *kwnames[] = { | |
30899 | (char *) "self", NULL | |
30900 | }; | |
30901 | ||
30902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30905 | { |
30906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30907 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30908 | ||
30909 | wxPyEndAllowThreads(__tstate); | |
30910 | if (PyErr_Occurred()) SWIG_fail; | |
30911 | } | |
30912 | { | |
30913 | resultobj = wxPyMake_wxObject(result); | |
30914 | } | |
30915 | return resultobj; | |
30916 | fail: | |
30917 | return NULL; | |
30918 | } | |
30919 | ||
30920 | ||
30921 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30922 | PyObject *resultobj; | |
30923 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30924 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30925 | PyObject * obj0 = 0 ; | |
30926 | PyObject * obj1 = 0 ; | |
30927 | char *kwnames[] = { | |
30928 | (char *) "self",(char *) "menu", NULL | |
30929 | }; | |
30930 | ||
30931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30936 | { |
30937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30938 | (arg1)->SetMenu(arg2); | |
30939 | ||
30940 | wxPyEndAllowThreads(__tstate); | |
30941 | if (PyErr_Occurred()) SWIG_fail; | |
30942 | } | |
30943 | Py_INCREF(Py_None); resultobj = Py_None; | |
30944 | return resultobj; | |
30945 | fail: | |
30946 | return NULL; | |
30947 | } | |
30948 | ||
30949 | ||
30950 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30951 | PyObject *resultobj; | |
30952 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30953 | int arg2 ; | |
30954 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30955 | PyObject * obj1 = 0 ; |
d14a1e28 | 30956 | char *kwnames[] = { |
f0983263 | 30957 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30958 | }; |
30959 | ||
8edf1c75 | 30960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30963 | arg2 = (int) SWIG_AsInt(obj1); | |
30964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30965 | { |
30966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30967 | (arg1)->SetId(arg2); | |
30968 | ||
30969 | wxPyEndAllowThreads(__tstate); | |
30970 | if (PyErr_Occurred()) SWIG_fail; | |
30971 | } | |
30972 | Py_INCREF(Py_None); resultobj = Py_None; | |
30973 | return resultobj; | |
30974 | fail: | |
30975 | return NULL; | |
30976 | } | |
30977 | ||
30978 | ||
30979 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30980 | PyObject *resultobj; | |
30981 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30982 | int result; | |
30983 | PyObject * obj0 = 0 ; | |
30984 | char *kwnames[] = { | |
30985 | (char *) "self", NULL | |
30986 | }; | |
30987 | ||
30988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30991 | { |
30992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30993 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
30994 | ||
30995 | wxPyEndAllowThreads(__tstate); | |
30996 | if (PyErr_Occurred()) SWIG_fail; | |
30997 | } | |
2f4c0a16 | 30998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30999 | return resultobj; |
31000 | fail: | |
31001 | return NULL; | |
31002 | } | |
31003 | ||
31004 | ||
31005 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31006 | PyObject *resultobj; | |
31007 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31008 | bool result; | |
31009 | PyObject * obj0 = 0 ; | |
31010 | char *kwnames[] = { | |
31011 | (char *) "self", NULL | |
31012 | }; | |
31013 | ||
31014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31017 | { |
31018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31019 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31020 | ||
31021 | wxPyEndAllowThreads(__tstate); | |
31022 | if (PyErr_Occurred()) SWIG_fail; | |
31023 | } | |
4f89f6a3 RD |
31024 | { |
31025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31026 | } | |
d14a1e28 RD |
31027 | return resultobj; |
31028 | fail: | |
31029 | return NULL; | |
31030 | } | |
31031 | ||
31032 | ||
31033 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31034 | PyObject *resultobj; | |
31035 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31036 | wxString *arg2 = 0 ; | |
423f194a | 31037 | bool temp2 = False ; |
d14a1e28 RD |
31038 | PyObject * obj0 = 0 ; |
31039 | PyObject * obj1 = 0 ; | |
31040 | char *kwnames[] = { | |
31041 | (char *) "self",(char *) "str", NULL | |
31042 | }; | |
31043 | ||
31044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31047 | { |
31048 | arg2 = wxString_in_helper(obj1); | |
31049 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31050 | temp2 = True; |
d14a1e28 RD |
31051 | } |
31052 | { | |
31053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31054 | (arg1)->SetText((wxString const &)*arg2); | |
31055 | ||
31056 | wxPyEndAllowThreads(__tstate); | |
31057 | if (PyErr_Occurred()) SWIG_fail; | |
31058 | } | |
31059 | Py_INCREF(Py_None); resultobj = Py_None; | |
31060 | { | |
31061 | if (temp2) | |
31062 | delete arg2; | |
31063 | } | |
31064 | return resultobj; | |
31065 | fail: | |
31066 | { | |
31067 | if (temp2) | |
31068 | delete arg2; | |
31069 | } | |
31070 | return NULL; | |
31071 | } | |
31072 | ||
31073 | ||
31074 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31075 | PyObject *resultobj; | |
31076 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31077 | wxString result; | |
31078 | PyObject * obj0 = 0 ; | |
31079 | char *kwnames[] = { | |
31080 | (char *) "self", NULL | |
31081 | }; | |
31082 | ||
31083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31086 | { |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | { | |
31094 | #if wxUSE_UNICODE | |
31095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31096 | #else | |
31097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31098 | #endif | |
31099 | } | |
31100 | return resultobj; | |
31101 | fail: | |
31102 | return NULL; | |
31103 | } | |
31104 | ||
31105 | ||
31106 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31107 | PyObject *resultobj; | |
31108 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31109 | wxString *result; | |
31110 | PyObject * obj0 = 0 ; | |
31111 | char *kwnames[] = { | |
31112 | (char *) "self", NULL | |
31113 | }; | |
31114 | ||
31115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31118 | { |
31119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31120 | { | |
31121 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31122 | result = (wxString *) &_result_ref; | |
31123 | } | |
31124 | ||
31125 | wxPyEndAllowThreads(__tstate); | |
31126 | if (PyErr_Occurred()) SWIG_fail; | |
31127 | } | |
f0983263 RD |
31128 | { |
31129 | #if wxUSE_UNICODE | |
31130 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31131 | #else | |
31132 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31133 | #endif | |
31134 | } | |
d14a1e28 RD |
31135 | return resultobj; |
31136 | fail: | |
31137 | return NULL; | |
31138 | } | |
31139 | ||
31140 | ||
31141 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31142 | PyObject *resultobj; | |
31143 | wxString *arg1 = 0 ; | |
31144 | wxString result; | |
423f194a | 31145 | bool temp1 = False ; |
d14a1e28 RD |
31146 | PyObject * obj0 = 0 ; |
31147 | char *kwnames[] = { | |
31148 | (char *) "text", NULL | |
31149 | }; | |
31150 | ||
31151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31152 | { | |
31153 | arg1 = wxString_in_helper(obj0); | |
31154 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 31155 | temp1 = True; |
d14a1e28 RD |
31156 | } |
31157 | { | |
31158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31159 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
31160 | ||
31161 | wxPyEndAllowThreads(__tstate); | |
31162 | if (PyErr_Occurred()) SWIG_fail; | |
31163 | } | |
31164 | { | |
31165 | #if wxUSE_UNICODE | |
31166 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31167 | #else | |
31168 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31169 | #endif | |
31170 | } | |
31171 | { | |
31172 | if (temp1) | |
31173 | delete arg1; | |
31174 | } | |
31175 | return resultobj; | |
31176 | fail: | |
31177 | { | |
31178 | if (temp1) | |
31179 | delete arg1; | |
31180 | } | |
31181 | return NULL; | |
31182 | } | |
31183 | ||
31184 | ||
31185 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31186 | PyObject *resultobj; | |
31187 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31188 | int result; | |
31189 | PyObject * obj0 = 0 ; | |
31190 | char *kwnames[] = { | |
31191 | (char *) "self", NULL | |
31192 | }; | |
31193 | ||
31194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31197 | { |
31198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31199 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
31200 | ||
31201 | wxPyEndAllowThreads(__tstate); | |
31202 | if (PyErr_Occurred()) SWIG_fail; | |
31203 | } | |
2f4c0a16 | 31204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31205 | return resultobj; |
31206 | fail: | |
31207 | return NULL; | |
31208 | } | |
31209 | ||
31210 | ||
31211 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31212 | PyObject *resultobj; | |
31213 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31214 | bool arg2 ; | |
31215 | PyObject * obj0 = 0 ; | |
31216 | PyObject * obj1 = 0 ; | |
31217 | char *kwnames[] = { | |
31218 | (char *) "self",(char *) "checkable", NULL | |
31219 | }; | |
31220 | ||
31221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31224 | arg2 = (bool) SWIG_AsBool(obj1); | |
31225 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31226 | { |
31227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31228 | (arg1)->SetCheckable(arg2); | |
31229 | ||
31230 | wxPyEndAllowThreads(__tstate); | |
31231 | if (PyErr_Occurred()) SWIG_fail; | |
31232 | } | |
31233 | Py_INCREF(Py_None); resultobj = Py_None; | |
31234 | return resultobj; | |
31235 | fail: | |
31236 | return NULL; | |
31237 | } | |
31238 | ||
31239 | ||
31240 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31241 | PyObject *resultobj; | |
31242 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31243 | bool result; | |
31244 | PyObject * obj0 = 0 ; | |
31245 | char *kwnames[] = { | |
31246 | (char *) "self", NULL | |
31247 | }; | |
31248 | ||
31249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31252 | { |
31253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31254 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
31255 | ||
31256 | wxPyEndAllowThreads(__tstate); | |
31257 | if (PyErr_Occurred()) SWIG_fail; | |
31258 | } | |
4f89f6a3 RD |
31259 | { |
31260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31261 | } | |
d14a1e28 RD |
31262 | return resultobj; |
31263 | fail: | |
31264 | return NULL; | |
31265 | } | |
31266 | ||
31267 | ||
31268 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31269 | PyObject *resultobj; | |
31270 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31271 | bool result; | |
31272 | PyObject * obj0 = 0 ; | |
31273 | char *kwnames[] = { | |
31274 | (char *) "self", NULL | |
31275 | }; | |
31276 | ||
31277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31280 | { |
31281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31282 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
31283 | ||
31284 | wxPyEndAllowThreads(__tstate); | |
31285 | if (PyErr_Occurred()) SWIG_fail; | |
31286 | } | |
4f89f6a3 RD |
31287 | { |
31288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31289 | } | |
d14a1e28 RD |
31290 | return resultobj; |
31291 | fail: | |
31292 | return NULL; | |
31293 | } | |
31294 | ||
31295 | ||
31296 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31297 | PyObject *resultobj; | |
31298 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31299 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31300 | PyObject * obj0 = 0 ; | |
31301 | PyObject * obj1 = 0 ; | |
31302 | char *kwnames[] = { | |
31303 | (char *) "self",(char *) "menu", NULL | |
31304 | }; | |
31305 | ||
31306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31311 | { |
31312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31313 | (arg1)->SetSubMenu(arg2); | |
31314 | ||
31315 | wxPyEndAllowThreads(__tstate); | |
31316 | if (PyErr_Occurred()) SWIG_fail; | |
31317 | } | |
31318 | Py_INCREF(Py_None); resultobj = Py_None; | |
31319 | return resultobj; | |
31320 | fail: | |
31321 | return NULL; | |
31322 | } | |
31323 | ||
31324 | ||
31325 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31326 | PyObject *resultobj; | |
31327 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31328 | wxMenu *result; | |
31329 | PyObject * obj0 = 0 ; | |
31330 | char *kwnames[] = { | |
31331 | (char *) "self", NULL | |
31332 | }; | |
31333 | ||
31334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31337 | { |
31338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31339 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
31340 | ||
31341 | wxPyEndAllowThreads(__tstate); | |
31342 | if (PyErr_Occurred()) SWIG_fail; | |
31343 | } | |
31344 | { | |
31345 | resultobj = wxPyMake_wxObject(result); | |
31346 | } | |
31347 | return resultobj; | |
31348 | fail: | |
31349 | return NULL; | |
31350 | } | |
31351 | ||
31352 | ||
31353 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31354 | PyObject *resultobj; | |
31355 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31356 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31357 | PyObject * obj0 = 0 ; |
31358 | PyObject * obj1 = 0 ; | |
31359 | char *kwnames[] = { | |
31360 | (char *) "self",(char *) "enable", NULL | |
31361 | }; | |
31362 | ||
31363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31366 | if (obj1) { |
2f4c0a16 RD |
31367 | arg2 = (bool) SWIG_AsBool(obj1); |
31368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31369 | } |
31370 | { | |
31371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31372 | (arg1)->Enable(arg2); | |
31373 | ||
31374 | wxPyEndAllowThreads(__tstate); | |
31375 | if (PyErr_Occurred()) SWIG_fail; | |
31376 | } | |
31377 | Py_INCREF(Py_None); resultobj = Py_None; | |
31378 | return resultobj; | |
31379 | fail: | |
31380 | return NULL; | |
31381 | } | |
31382 | ||
31383 | ||
31384 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31385 | PyObject *resultobj; | |
31386 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31387 | bool result; | |
31388 | PyObject * obj0 = 0 ; | |
31389 | char *kwnames[] = { | |
31390 | (char *) "self", NULL | |
31391 | }; | |
31392 | ||
31393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31396 | { |
31397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31398 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
31399 | ||
31400 | wxPyEndAllowThreads(__tstate); | |
31401 | if (PyErr_Occurred()) SWIG_fail; | |
31402 | } | |
4f89f6a3 RD |
31403 | { |
31404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31405 | } | |
d14a1e28 RD |
31406 | return resultobj; |
31407 | fail: | |
31408 | return NULL; | |
31409 | } | |
31410 | ||
31411 | ||
31412 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31413 | PyObject *resultobj; | |
31414 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31415 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31416 | PyObject * obj0 = 0 ; |
31417 | PyObject * obj1 = 0 ; | |
31418 | char *kwnames[] = { | |
31419 | (char *) "self",(char *) "check", NULL | |
31420 | }; | |
31421 | ||
31422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31425 | if (obj1) { |
2f4c0a16 RD |
31426 | arg2 = (bool) SWIG_AsBool(obj1); |
31427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31428 | } |
31429 | { | |
31430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31431 | (arg1)->Check(arg2); | |
31432 | ||
31433 | wxPyEndAllowThreads(__tstate); | |
31434 | if (PyErr_Occurred()) SWIG_fail; | |
31435 | } | |
31436 | Py_INCREF(Py_None); resultobj = Py_None; | |
31437 | return resultobj; | |
31438 | fail: | |
31439 | return NULL; | |
31440 | } | |
31441 | ||
31442 | ||
31443 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31444 | PyObject *resultobj; | |
31445 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31446 | bool result; | |
31447 | PyObject * obj0 = 0 ; | |
31448 | char *kwnames[] = { | |
31449 | (char *) "self", NULL | |
31450 | }; | |
31451 | ||
31452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31455 | { |
31456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31457 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
31458 | ||
31459 | wxPyEndAllowThreads(__tstate); | |
31460 | if (PyErr_Occurred()) SWIG_fail; | |
31461 | } | |
4f89f6a3 RD |
31462 | { |
31463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31464 | } | |
d14a1e28 RD |
31465 | return resultobj; |
31466 | fail: | |
31467 | return NULL; | |
31468 | } | |
31469 | ||
31470 | ||
31471 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31472 | PyObject *resultobj; | |
31473 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31474 | PyObject * obj0 = 0 ; | |
31475 | char *kwnames[] = { | |
31476 | (char *) "self", NULL | |
31477 | }; | |
31478 | ||
31479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31482 | { |
31483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31484 | (arg1)->Toggle(); | |
31485 | ||
31486 | wxPyEndAllowThreads(__tstate); | |
31487 | if (PyErr_Occurred()) SWIG_fail; | |
31488 | } | |
31489 | Py_INCREF(Py_None); resultobj = Py_None; | |
31490 | return resultobj; | |
31491 | fail: | |
31492 | return NULL; | |
31493 | } | |
31494 | ||
31495 | ||
31496 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31497 | PyObject *resultobj; | |
31498 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31499 | wxString *arg2 = 0 ; | |
423f194a | 31500 | bool temp2 = False ; |
d14a1e28 RD |
31501 | PyObject * obj0 = 0 ; |
31502 | PyObject * obj1 = 0 ; | |
31503 | char *kwnames[] = { | |
31504 | (char *) "self",(char *) "str", NULL | |
31505 | }; | |
31506 | ||
31507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31510 | { |
31511 | arg2 = wxString_in_helper(obj1); | |
31512 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31513 | temp2 = True; |
d14a1e28 RD |
31514 | } |
31515 | { | |
31516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31517 | (arg1)->SetHelp((wxString const &)*arg2); | |
31518 | ||
31519 | wxPyEndAllowThreads(__tstate); | |
31520 | if (PyErr_Occurred()) SWIG_fail; | |
31521 | } | |
31522 | Py_INCREF(Py_None); resultobj = Py_None; | |
31523 | { | |
31524 | if (temp2) | |
31525 | delete arg2; | |
31526 | } | |
31527 | return resultobj; | |
31528 | fail: | |
31529 | { | |
31530 | if (temp2) | |
31531 | delete arg2; | |
31532 | } | |
31533 | return NULL; | |
31534 | } | |
31535 | ||
31536 | ||
31537 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31538 | PyObject *resultobj; | |
31539 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31540 | wxString *result; | |
31541 | PyObject * obj0 = 0 ; | |
31542 | char *kwnames[] = { | |
31543 | (char *) "self", NULL | |
31544 | }; | |
31545 | ||
31546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31549 | { |
31550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31551 | { | |
31552 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
31553 | result = (wxString *) &_result_ref; | |
31554 | } | |
31555 | ||
31556 | wxPyEndAllowThreads(__tstate); | |
31557 | if (PyErr_Occurred()) SWIG_fail; | |
31558 | } | |
f0983263 RD |
31559 | { |
31560 | #if wxUSE_UNICODE | |
31561 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31562 | #else | |
31563 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31564 | #endif | |
31565 | } | |
d14a1e28 RD |
31566 | return resultobj; |
31567 | fail: | |
31568 | return NULL; | |
31569 | } | |
31570 | ||
31571 | ||
31572 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31573 | PyObject *resultobj; | |
31574 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31575 | wxAcceleratorEntry *result; | |
31576 | PyObject * obj0 = 0 ; | |
31577 | char *kwnames[] = { | |
31578 | (char *) "self", NULL | |
31579 | }; | |
31580 | ||
31581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31584 | { |
31585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31586 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
31587 | ||
31588 | wxPyEndAllowThreads(__tstate); | |
31589 | if (PyErr_Occurred()) SWIG_fail; | |
31590 | } | |
2f4c0a16 | 31591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
31592 | return resultobj; |
31593 | fail: | |
31594 | return NULL; | |
31595 | } | |
31596 | ||
31597 | ||
31598 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31599 | PyObject *resultobj; | |
31600 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31601 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
31602 | PyObject * obj0 = 0 ; | |
31603 | PyObject * obj1 = 0 ; | |
31604 | char *kwnames[] = { | |
31605 | (char *) "self",(char *) "accel", NULL | |
31606 | }; | |
31607 | ||
31608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
31612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31613 | { |
31614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31615 | (arg1)->SetAccel(arg2); | |
31616 | ||
31617 | wxPyEndAllowThreads(__tstate); | |
31618 | if (PyErr_Occurred()) SWIG_fail; | |
31619 | } | |
31620 | Py_INCREF(Py_None); resultobj = Py_None; | |
31621 | return resultobj; | |
31622 | fail: | |
31623 | return NULL; | |
31624 | } | |
31625 | ||
31626 | ||
31627 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31628 | PyObject *resultobj; | |
31629 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31630 | wxFont *arg2 = 0 ; | |
31631 | PyObject * obj0 = 0 ; | |
31632 | PyObject * obj1 = 0 ; | |
31633 | char *kwnames[] = { | |
31634 | (char *) "self",(char *) "font", NULL | |
31635 | }; | |
31636 | ||
31637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
31641 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31642 | SWIG_fail; | |
d14a1e28 | 31643 | if (arg2 == NULL) { |
2f4c0a16 RD |
31644 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31645 | SWIG_fail; | |
d14a1e28 RD |
31646 | } |
31647 | { | |
31648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31649 | (arg1)->SetFont((wxFont const &)*arg2); | |
31650 | ||
31651 | wxPyEndAllowThreads(__tstate); | |
31652 | if (PyErr_Occurred()) SWIG_fail; | |
31653 | } | |
31654 | Py_INCREF(Py_None); resultobj = Py_None; | |
31655 | return resultobj; | |
31656 | fail: | |
31657 | return NULL; | |
31658 | } | |
31659 | ||
31660 | ||
31661 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31662 | PyObject *resultobj; | |
31663 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31664 | wxFont result; | |
31665 | PyObject * obj0 = 0 ; | |
31666 | char *kwnames[] = { | |
31667 | (char *) "self", NULL | |
31668 | }; | |
31669 | ||
31670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31673 | { |
31674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31675 | result = (arg1)->GetFont(); | |
31676 | ||
31677 | wxPyEndAllowThreads(__tstate); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | } | |
31680 | { | |
31681 | wxFont * resultptr; | |
31682 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 31683 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
31684 | } |
31685 | return resultobj; | |
31686 | fail: | |
31687 | return NULL; | |
31688 | } | |
31689 | ||
31690 | ||
31691 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31692 | PyObject *resultobj; | |
31693 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31694 | wxColour *arg2 = 0 ; | |
31695 | wxColour temp2 ; | |
31696 | PyObject * obj0 = 0 ; | |
31697 | PyObject * obj1 = 0 ; | |
31698 | char *kwnames[] = { | |
31699 | (char *) "self",(char *) "colText", NULL | |
31700 | }; | |
31701 | ||
31702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31705 | { |
31706 | arg2 = &temp2; | |
31707 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31708 | } | |
31709 | { | |
31710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31711 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
31712 | ||
31713 | wxPyEndAllowThreads(__tstate); | |
31714 | if (PyErr_Occurred()) SWIG_fail; | |
31715 | } | |
31716 | Py_INCREF(Py_None); resultobj = Py_None; | |
31717 | return resultobj; | |
31718 | fail: | |
31719 | return NULL; | |
31720 | } | |
31721 | ||
31722 | ||
31723 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31724 | PyObject *resultobj; | |
31725 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31726 | wxColour result; | |
31727 | PyObject * obj0 = 0 ; | |
31728 | char *kwnames[] = { | |
31729 | (char *) "self", NULL | |
31730 | }; | |
31731 | ||
31732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31735 | { |
31736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31737 | result = (arg1)->GetTextColour(); | |
31738 | ||
31739 | wxPyEndAllowThreads(__tstate); | |
31740 | if (PyErr_Occurred()) SWIG_fail; | |
31741 | } | |
31742 | { | |
31743 | wxColour * resultptr; | |
31744 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31745 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31746 | } |
31747 | return resultobj; | |
31748 | fail: | |
31749 | return NULL; | |
31750 | } | |
31751 | ||
31752 | ||
31753 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31754 | PyObject *resultobj; | |
31755 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31756 | wxColour *arg2 = 0 ; | |
31757 | wxColour temp2 ; | |
31758 | PyObject * obj0 = 0 ; | |
31759 | PyObject * obj1 = 0 ; | |
31760 | char *kwnames[] = { | |
31761 | (char *) "self",(char *) "colBack", NULL | |
31762 | }; | |
31763 | ||
31764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31767 | { |
31768 | arg2 = &temp2; | |
31769 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31770 | } | |
31771 | { | |
31772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31773 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
31774 | ||
31775 | wxPyEndAllowThreads(__tstate); | |
31776 | if (PyErr_Occurred()) SWIG_fail; | |
31777 | } | |
31778 | Py_INCREF(Py_None); resultobj = Py_None; | |
31779 | return resultobj; | |
31780 | fail: | |
31781 | return NULL; | |
31782 | } | |
31783 | ||
31784 | ||
31785 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31786 | PyObject *resultobj; | |
31787 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31788 | wxColour result; | |
31789 | PyObject * obj0 = 0 ; | |
31790 | char *kwnames[] = { | |
31791 | (char *) "self", NULL | |
31792 | }; | |
31793 | ||
31794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31797 | { |
31798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31799 | result = (arg1)->GetBackgroundColour(); | |
31800 | ||
31801 | wxPyEndAllowThreads(__tstate); | |
31802 | if (PyErr_Occurred()) SWIG_fail; | |
31803 | } | |
31804 | { | |
31805 | wxColour * resultptr; | |
31806 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31808 | } |
31809 | return resultobj; | |
31810 | fail: | |
31811 | return NULL; | |
31812 | } | |
31813 | ||
31814 | ||
31815 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31816 | PyObject *resultobj; | |
31817 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31818 | wxBitmap *arg2 = 0 ; | |
31819 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31820 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31821 | PyObject * obj0 = 0 ; | |
31822 | PyObject * obj1 = 0 ; | |
31823 | PyObject * obj2 = 0 ; | |
31824 | char *kwnames[] = { | |
31825 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
31826 | }; | |
31827 | ||
31828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31833 | SWIG_fail; | |
d14a1e28 | 31834 | if (arg2 == NULL) { |
2f4c0a16 RD |
31835 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31836 | SWIG_fail; | |
d14a1e28 RD |
31837 | } |
31838 | if (obj2) { | |
2f4c0a16 RD |
31839 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
31840 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31841 | SWIG_fail; | |
d14a1e28 | 31842 | if (arg3 == NULL) { |
2f4c0a16 RD |
31843 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31844 | SWIG_fail; | |
d14a1e28 RD |
31845 | } |
31846 | } | |
31847 | { | |
31848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31849 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31850 | ||
31851 | wxPyEndAllowThreads(__tstate); | |
31852 | if (PyErr_Occurred()) SWIG_fail; | |
31853 | } | |
31854 | Py_INCREF(Py_None); resultobj = Py_None; | |
31855 | return resultobj; | |
31856 | fail: | |
31857 | return NULL; | |
31858 | } | |
31859 | ||
31860 | ||
31861 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31862 | PyObject *resultobj; | |
31863 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31864 | wxBitmap *arg2 = 0 ; | |
31865 | PyObject * obj0 = 0 ; | |
31866 | PyObject * obj1 = 0 ; | |
31867 | char *kwnames[] = { | |
31868 | (char *) "self",(char *) "bmpDisabled", NULL | |
31869 | }; | |
31870 | ||
31871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31876 | SWIG_fail; | |
d14a1e28 | 31877 | if (arg2 == NULL) { |
2f4c0a16 RD |
31878 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31879 | SWIG_fail; | |
d14a1e28 RD |
31880 | } |
31881 | { | |
31882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31883 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
31884 | ||
31885 | wxPyEndAllowThreads(__tstate); | |
31886 | if (PyErr_Occurred()) SWIG_fail; | |
31887 | } | |
31888 | Py_INCREF(Py_None); resultobj = Py_None; | |
31889 | return resultobj; | |
31890 | fail: | |
31891 | return NULL; | |
31892 | } | |
31893 | ||
31894 | ||
31895 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31896 | PyObject *resultobj; | |
31897 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31898 | wxBitmap *result; | |
31899 | PyObject * obj0 = 0 ; | |
31900 | char *kwnames[] = { | |
31901 | (char *) "self", NULL | |
31902 | }; | |
31903 | ||
31904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31907 | { |
31908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31909 | { | |
31910 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
31911 | result = (wxBitmap *) &_result_ref; | |
31912 | } | |
31913 | ||
31914 | wxPyEndAllowThreads(__tstate); | |
31915 | if (PyErr_Occurred()) SWIG_fail; | |
31916 | } | |
fe763115 RD |
31917 | { |
31918 | wxBitmap* resultptr = new wxBitmap(*result); | |
31919 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
31920 | } | |
d14a1e28 RD |
31921 | return resultobj; |
31922 | fail: | |
31923 | return NULL; | |
31924 | } | |
31925 | ||
31926 | ||
31927 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31928 | PyObject *resultobj; | |
31929 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31930 | int arg2 ; | |
31931 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31932 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31933 | char *kwnames[] = { |
31934 | (char *) "self",(char *) "nWidth", NULL | |
31935 | }; | |
31936 | ||
8edf1c75 | 31937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31940 | arg2 = (int) SWIG_AsInt(obj1); | |
31941 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31942 | { |
31943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31944 | (arg1)->SetMarginWidth(arg2); | |
31945 | ||
31946 | wxPyEndAllowThreads(__tstate); | |
31947 | if (PyErr_Occurred()) SWIG_fail; | |
31948 | } | |
31949 | Py_INCREF(Py_None); resultobj = Py_None; | |
31950 | return resultobj; | |
31951 | fail: | |
31952 | return NULL; | |
31953 | } | |
31954 | ||
31955 | ||
31956 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31957 | PyObject *resultobj; | |
31958 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31959 | int result; | |
31960 | PyObject * obj0 = 0 ; | |
31961 | char *kwnames[] = { | |
31962 | (char *) "self", NULL | |
31963 | }; | |
31964 | ||
31965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31968 | { |
31969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31970 | result = (int)(arg1)->GetMarginWidth(); | |
31971 | ||
31972 | wxPyEndAllowThreads(__tstate); | |
31973 | if (PyErr_Occurred()) SWIG_fail; | |
31974 | } | |
2f4c0a16 | 31975 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31976 | return resultobj; |
31977 | fail: | |
31978 | return NULL; | |
31979 | } | |
31980 | ||
31981 | ||
31982 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31983 | PyObject *resultobj; | |
31984 | int result; | |
31985 | char *kwnames[] = { | |
31986 | NULL | |
31987 | }; | |
31988 | ||
31989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31990 | { | |
31991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31992 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
31993 | ||
31994 | wxPyEndAllowThreads(__tstate); | |
31995 | if (PyErr_Occurred()) SWIG_fail; | |
31996 | } | |
2f4c0a16 | 31997 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31998 | return resultobj; |
31999 | fail: | |
32000 | return NULL; | |
32001 | } | |
32002 | ||
32003 | ||
32004 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32005 | PyObject *resultobj; | |
32006 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32007 | bool result; | |
32008 | PyObject * obj0 = 0 ; | |
32009 | char *kwnames[] = { | |
32010 | (char *) "self", NULL | |
32011 | }; | |
32012 | ||
32013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32016 | { |
32017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32018 | result = (bool)(arg1)->IsOwnerDrawn(); | |
32019 | ||
32020 | wxPyEndAllowThreads(__tstate); | |
32021 | if (PyErr_Occurred()) SWIG_fail; | |
32022 | } | |
4f89f6a3 RD |
32023 | { |
32024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32025 | } | |
d14a1e28 RD |
32026 | return resultobj; |
32027 | fail: | |
32028 | return NULL; | |
32029 | } | |
32030 | ||
32031 | ||
32032 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32033 | PyObject *resultobj; | |
32034 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 32035 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32036 | PyObject * obj0 = 0 ; |
32037 | PyObject * obj1 = 0 ; | |
32038 | char *kwnames[] = { | |
32039 | (char *) "self",(char *) "ownerDrawn", NULL | |
32040 | }; | |
32041 | ||
32042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32045 | if (obj1) { |
2f4c0a16 RD |
32046 | arg2 = (bool) SWIG_AsBool(obj1); |
32047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32048 | } |
32049 | { | |
32050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32051 | (arg1)->SetOwnerDrawn(arg2); | |
32052 | ||
32053 | wxPyEndAllowThreads(__tstate); | |
32054 | if (PyErr_Occurred()) SWIG_fail; | |
32055 | } | |
32056 | Py_INCREF(Py_None); resultobj = Py_None; | |
32057 | return resultobj; | |
32058 | fail: | |
32059 | return NULL; | |
32060 | } | |
32061 | ||
32062 | ||
32063 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32064 | PyObject *resultobj; | |
32065 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32066 | PyObject * obj0 = 0 ; | |
32067 | char *kwnames[] = { | |
32068 | (char *) "self", NULL | |
32069 | }; | |
32070 | ||
32071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32074 | { |
32075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32076 | (arg1)->ResetOwnerDrawn(); | |
32077 | ||
32078 | wxPyEndAllowThreads(__tstate); | |
32079 | if (PyErr_Occurred()) SWIG_fail; | |
32080 | } | |
32081 | Py_INCREF(Py_None); resultobj = Py_None; | |
32082 | return resultobj; | |
32083 | fail: | |
32084 | return NULL; | |
32085 | } | |
32086 | ||
32087 | ||
32088 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32089 | PyObject *resultobj; | |
32090 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32091 | wxBitmap *arg2 = 0 ; | |
32092 | PyObject * obj0 = 0 ; | |
32093 | PyObject * obj1 = 0 ; | |
32094 | char *kwnames[] = { | |
32095 | (char *) "self",(char *) "bitmap", NULL | |
32096 | }; | |
32097 | ||
32098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32103 | SWIG_fail; | |
d14a1e28 | 32104 | if (arg2 == NULL) { |
2f4c0a16 RD |
32105 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32106 | SWIG_fail; | |
d14a1e28 RD |
32107 | } |
32108 | { | |
32109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32110 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32111 | ||
32112 | wxPyEndAllowThreads(__tstate); | |
32113 | if (PyErr_Occurred()) SWIG_fail; | |
32114 | } | |
32115 | Py_INCREF(Py_None); resultobj = Py_None; | |
32116 | return resultobj; | |
32117 | fail: | |
32118 | return NULL; | |
32119 | } | |
32120 | ||
32121 | ||
32122 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32123 | PyObject *resultobj; | |
32124 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32125 | wxBitmap *result; | |
32126 | PyObject * obj0 = 0 ; | |
32127 | char *kwnames[] = { | |
32128 | (char *) "self", NULL | |
32129 | }; | |
32130 | ||
32131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32134 | { |
32135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32136 | { | |
32137 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32138 | result = (wxBitmap *) &_result_ref; | |
32139 | } | |
32140 | ||
32141 | wxPyEndAllowThreads(__tstate); | |
32142 | if (PyErr_Occurred()) SWIG_fail; | |
32143 | } | |
fe763115 RD |
32144 | { |
32145 | wxBitmap* resultptr = new wxBitmap(*result); | |
32146 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32147 | } | |
d14a1e28 RD |
32148 | return resultobj; |
32149 | fail: | |
32150 | return NULL; | |
32151 | } | |
32152 | ||
32153 | ||
32154 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32155 | PyObject *obj; | |
32156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32157 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32158 | Py_INCREF(obj); | |
32159 | return Py_BuildValue((char *)""); | |
32160 | } | |
2f4c0a16 | 32161 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
d03fd34d RD |
32162 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
32163 | return 1; | |
32164 | } | |
32165 | ||
32166 | ||
32167 | static PyObject *_wrap_ControlNameStr_get() { | |
32168 | PyObject *pyobj; | |
32169 | ||
32170 | { | |
32171 | #if wxUSE_UNICODE | |
32172 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32173 | #else | |
32174 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32175 | #endif | |
32176 | } | |
32177 | return pyobj; | |
32178 | } | |
32179 | ||
32180 | ||
d14a1e28 RD |
32181 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32182 | PyObject *resultobj; | |
32183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 32184 | int arg2 ; |
d14a1e28 RD |
32185 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32186 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32187 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32188 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32189 | long arg5 = (long) 0 ; | |
32190 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32191 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32192 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32193 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32194 | wxControl *result; | |
32195 | wxPoint temp3 ; | |
32196 | wxSize temp4 ; | |
423f194a | 32197 | bool temp7 = False ; |
d14a1e28 | 32198 | PyObject * obj0 = 0 ; |
8edf1c75 | 32199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32200 | PyObject * obj2 = 0 ; |
32201 | PyObject * obj3 = 0 ; | |
8edf1c75 | 32202 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32203 | PyObject * obj5 = 0 ; |
32204 | PyObject * obj6 = 0 ; | |
32205 | char *kwnames[] = { | |
32206 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32207 | }; | |
32208 | ||
8edf1c75 | 32209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
32210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32212 | arg2 = (int) SWIG_AsInt(obj1); | |
32213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32214 | if (obj2) { |
32215 | { | |
32216 | arg3 = &temp3; | |
32217 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32218 | } | |
32219 | } | |
32220 | if (obj3) { | |
32221 | { | |
32222 | arg4 = &temp4; | |
32223 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32224 | } | |
32225 | } | |
8edf1c75 | 32226 | if (obj4) { |
2f4c0a16 RD |
32227 | arg5 = (long) SWIG_AsLong(obj4); |
32228 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 32229 | } |
d14a1e28 | 32230 | if (obj5) { |
2f4c0a16 RD |
32231 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32233 | SWIG_fail; | |
d14a1e28 | 32234 | if (arg6 == NULL) { |
2f4c0a16 RD |
32235 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32236 | SWIG_fail; | |
d14a1e28 RD |
32237 | } |
32238 | } | |
32239 | if (obj6) { | |
32240 | { | |
32241 | arg7 = wxString_in_helper(obj6); | |
32242 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 32243 | temp7 = True; |
d14a1e28 RD |
32244 | } |
32245 | } | |
32246 | { | |
32247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32248 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32249 | ||
32250 | wxPyEndAllowThreads(__tstate); | |
32251 | if (PyErr_Occurred()) SWIG_fail; | |
32252 | } | |
32253 | { | |
32254 | resultobj = wxPyMake_wxObject(result); | |
32255 | } | |
32256 | { | |
32257 | if (temp7) | |
32258 | delete arg7; | |
32259 | } | |
32260 | return resultobj; | |
32261 | fail: | |
32262 | { | |
32263 | if (temp7) | |
32264 | delete arg7; | |
32265 | } | |
32266 | return NULL; | |
32267 | } | |
32268 | ||
32269 | ||
32270 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32271 | PyObject *resultobj; | |
32272 | wxControl *result; | |
32273 | char *kwnames[] = { | |
32274 | NULL | |
32275 | }; | |
32276 | ||
32277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32278 | { | |
32279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32280 | result = (wxControl *)new wxControl(); | |
32281 | ||
32282 | wxPyEndAllowThreads(__tstate); | |
32283 | if (PyErr_Occurred()) SWIG_fail; | |
32284 | } | |
32285 | { | |
32286 | resultobj = wxPyMake_wxObject(result); | |
32287 | } | |
32288 | return resultobj; | |
32289 | fail: | |
32290 | return NULL; | |
32291 | } | |
32292 | ||
32293 | ||
32294 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32295 | PyObject *resultobj; | |
32296 | wxControl *arg1 = (wxControl *) 0 ; | |
32297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 32298 | int arg3 ; |
d14a1e28 RD |
32299 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32300 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32301 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32302 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32303 | long arg6 = (long) 0 ; | |
32304 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32305 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32306 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32307 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32308 | bool result; | |
32309 | wxPoint temp4 ; | |
32310 | wxSize temp5 ; | |
423f194a | 32311 | bool temp8 = False ; |
d14a1e28 RD |
32312 | PyObject * obj0 = 0 ; |
32313 | PyObject * obj1 = 0 ; | |
8edf1c75 | 32314 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32315 | PyObject * obj3 = 0 ; |
32316 | PyObject * obj4 = 0 ; | |
8edf1c75 | 32317 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32318 | PyObject * obj6 = 0 ; |
32319 | PyObject * obj7 = 0 ; | |
32320 | char *kwnames[] = { | |
32321 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32322 | }; | |
32323 | ||
8edf1c75 | 32324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
32325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32329 | arg3 = (int) SWIG_AsInt(obj2); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32331 | if (obj3) { |
32332 | { | |
32333 | arg4 = &temp4; | |
32334 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32335 | } | |
32336 | } | |
32337 | if (obj4) { | |
32338 | { | |
32339 | arg5 = &temp5; | |
32340 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32341 | } | |
32342 | } | |
8edf1c75 | 32343 | if (obj5) { |
2f4c0a16 RD |
32344 | arg6 = (long) SWIG_AsLong(obj5); |
32345 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 32346 | } |
d14a1e28 | 32347 | if (obj6) { |
2f4c0a16 RD |
32348 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
32349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32350 | SWIG_fail; | |
d14a1e28 | 32351 | if (arg7 == NULL) { |
2f4c0a16 RD |
32352 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32353 | SWIG_fail; | |
d14a1e28 RD |
32354 | } |
32355 | } | |
32356 | if (obj7) { | |
32357 | { | |
32358 | arg8 = wxString_in_helper(obj7); | |
32359 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 32360 | temp8 = True; |
d14a1e28 RD |
32361 | } |
32362 | } | |
32363 | { | |
32364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32365 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32366 | ||
32367 | wxPyEndAllowThreads(__tstate); | |
32368 | if (PyErr_Occurred()) SWIG_fail; | |
32369 | } | |
4f89f6a3 RD |
32370 | { |
32371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32372 | } | |
d14a1e28 RD |
32373 | { |
32374 | if (temp8) | |
32375 | delete arg8; | |
32376 | } | |
32377 | return resultobj; | |
32378 | fail: | |
32379 | { | |
32380 | if (temp8) | |
32381 | delete arg8; | |
32382 | } | |
32383 | return NULL; | |
32384 | } | |
32385 | ||
32386 | ||
32387 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32388 | PyObject *resultobj; | |
32389 | wxControl *arg1 = (wxControl *) 0 ; | |
32390 | wxCommandEvent *arg2 = 0 ; | |
32391 | PyObject * obj0 = 0 ; | |
32392 | PyObject * obj1 = 0 ; | |
32393 | char *kwnames[] = { | |
32394 | (char *) "self",(char *) "event", NULL | |
32395 | }; | |
32396 | ||
32397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32402 | SWIG_fail; | |
d14a1e28 | 32403 | if (arg2 == NULL) { |
2f4c0a16 RD |
32404 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32405 | SWIG_fail; | |
d14a1e28 RD |
32406 | } |
32407 | { | |
32408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32409 | (arg1)->Command(*arg2); | |
32410 | ||
32411 | wxPyEndAllowThreads(__tstate); | |
32412 | if (PyErr_Occurred()) SWIG_fail; | |
32413 | } | |
32414 | Py_INCREF(Py_None); resultobj = Py_None; | |
32415 | return resultobj; | |
32416 | fail: | |
32417 | return NULL; | |
32418 | } | |
32419 | ||
32420 | ||
32421 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32422 | PyObject *resultobj; | |
32423 | wxControl *arg1 = (wxControl *) 0 ; | |
32424 | wxString result; | |
32425 | PyObject * obj0 = 0 ; | |
32426 | char *kwnames[] = { | |
32427 | (char *) "self", NULL | |
32428 | }; | |
32429 | ||
32430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32433 | { |
32434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32435 | result = (arg1)->GetLabel(); | |
32436 | ||
32437 | wxPyEndAllowThreads(__tstate); | |
32438 | if (PyErr_Occurred()) SWIG_fail; | |
32439 | } | |
32440 | { | |
32441 | #if wxUSE_UNICODE | |
32442 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32443 | #else | |
32444 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32445 | #endif | |
32446 | } | |
32447 | return resultobj; | |
32448 | fail: | |
32449 | return NULL; | |
32450 | } | |
32451 | ||
32452 | ||
32453 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32454 | PyObject *resultobj; | |
32455 | wxControl *arg1 = (wxControl *) 0 ; | |
32456 | wxString *arg2 = 0 ; | |
423f194a | 32457 | bool temp2 = False ; |
d14a1e28 RD |
32458 | PyObject * obj0 = 0 ; |
32459 | PyObject * obj1 = 0 ; | |
32460 | char *kwnames[] = { | |
32461 | (char *) "self",(char *) "label", NULL | |
32462 | }; | |
32463 | ||
32464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32467 | { |
32468 | arg2 = wxString_in_helper(obj1); | |
32469 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32470 | temp2 = True; |
d14a1e28 RD |
32471 | } |
32472 | { | |
32473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32474 | (arg1)->SetLabel((wxString const &)*arg2); | |
32475 | ||
32476 | wxPyEndAllowThreads(__tstate); | |
32477 | if (PyErr_Occurred()) SWIG_fail; | |
32478 | } | |
32479 | Py_INCREF(Py_None); resultobj = Py_None; | |
32480 | { | |
32481 | if (temp2) | |
32482 | delete arg2; | |
32483 | } | |
32484 | return resultobj; | |
32485 | fail: | |
32486 | { | |
32487 | if (temp2) | |
32488 | delete arg2; | |
32489 | } | |
32490 | return NULL; | |
32491 | } | |
32492 | ||
32493 | ||
32494 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
32495 | PyObject *obj; | |
32496 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32497 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32498 | Py_INCREF(obj); | |
32499 | return Py_BuildValue((char *)""); | |
32500 | } | |
32501 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32502 | PyObject *resultobj; | |
32503 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32504 | wxString *arg2 = 0 ; | |
32505 | PyObject *arg3 = (PyObject *) NULL ; | |
32506 | int result; | |
423f194a | 32507 | bool temp2 = False ; |
d14a1e28 RD |
32508 | PyObject * obj0 = 0 ; |
32509 | PyObject * obj1 = 0 ; | |
32510 | PyObject * obj2 = 0 ; | |
32511 | char *kwnames[] = { | |
32512 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32513 | }; | |
32514 | ||
32515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32518 | { |
32519 | arg2 = wxString_in_helper(obj1); | |
32520 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32521 | temp2 = True; |
d14a1e28 RD |
32522 | } |
32523 | if (obj2) { | |
32524 | arg3 = obj2; | |
32525 | } | |
32526 | { | |
32527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32528 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32529 | ||
32530 | wxPyEndAllowThreads(__tstate); | |
32531 | if (PyErr_Occurred()) SWIG_fail; | |
32532 | } | |
2f4c0a16 | 32533 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32534 | { |
32535 | if (temp2) | |
32536 | delete arg2; | |
32537 | } | |
32538 | return resultobj; | |
32539 | fail: | |
32540 | { | |
32541 | if (temp2) | |
32542 | delete arg2; | |
32543 | } | |
32544 | return NULL; | |
32545 | } | |
32546 | ||
32547 | ||
32548 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32549 | PyObject *resultobj; | |
32550 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32551 | wxArrayString *arg2 = 0 ; | |
db914595 | 32552 | bool temp2 = False ; |
d14a1e28 RD |
32553 | PyObject * obj0 = 0 ; |
32554 | PyObject * obj1 = 0 ; | |
32555 | char *kwnames[] = { | |
32556 | (char *) "self",(char *) "strings", NULL | |
32557 | }; | |
32558 | ||
32559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32562 | { |
32563 | if (! PySequence_Check(obj1)) { | |
32564 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
32565 | SWIG_fail; | |
32566 | } | |
32567 | arg2 = new wxArrayString; | |
db914595 | 32568 | temp2 = True; |
d14a1e28 RD |
32569 | int i, len=PySequence_Length(obj1); |
32570 | for (i=0; i<len; i++) { | |
32571 | PyObject* item = PySequence_GetItem(obj1, i); | |
32572 | #if wxUSE_UNICODE | |
32573 | PyObject* str = PyObject_Unicode(item); | |
32574 | #else | |
32575 | PyObject* str = PyObject_Str(item); | |
32576 | #endif | |
32577 | arg2->Add(Py2wxString(str)); | |
32578 | Py_DECREF(item); | |
32579 | Py_DECREF(str); | |
32580 | } | |
32581 | } | |
32582 | { | |
32583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32584 | (arg1)->Append((wxArrayString const &)*arg2); | |
32585 | ||
32586 | wxPyEndAllowThreads(__tstate); | |
32587 | if (PyErr_Occurred()) SWIG_fail; | |
32588 | } | |
32589 | Py_INCREF(Py_None); resultobj = Py_None; | |
32590 | { | |
db914595 | 32591 | if (temp2) delete arg2; |
d14a1e28 RD |
32592 | } |
32593 | return resultobj; | |
32594 | fail: | |
32595 | { | |
db914595 | 32596 | if (temp2) delete arg2; |
d14a1e28 RD |
32597 | } |
32598 | return NULL; | |
32599 | } | |
32600 | ||
32601 | ||
32602 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32603 | PyObject *resultobj; | |
32604 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32605 | wxString *arg2 = 0 ; | |
32606 | int arg3 ; | |
32607 | PyObject *arg4 = (PyObject *) NULL ; | |
32608 | int result; | |
423f194a | 32609 | bool temp2 = False ; |
d14a1e28 RD |
32610 | PyObject * obj0 = 0 ; |
32611 | PyObject * obj1 = 0 ; | |
8edf1c75 | 32612 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32613 | PyObject * obj3 = 0 ; |
32614 | char *kwnames[] = { | |
32615 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
32616 | }; | |
32617 | ||
8edf1c75 | 32618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32621 | { |
32622 | arg2 = wxString_in_helper(obj1); | |
32623 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32624 | temp2 = True; |
d14a1e28 | 32625 | } |
2f4c0a16 RD |
32626 | arg3 = (int) SWIG_AsInt(obj2); |
32627 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32628 | if (obj3) { |
32629 | arg4 = obj3; | |
32630 | } | |
32631 | { | |
32632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32633 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
32634 | ||
32635 | wxPyEndAllowThreads(__tstate); | |
32636 | if (PyErr_Occurred()) SWIG_fail; | |
32637 | } | |
2f4c0a16 | 32638 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32639 | { |
32640 | if (temp2) | |
32641 | delete arg2; | |
32642 | } | |
32643 | return resultobj; | |
32644 | fail: | |
32645 | { | |
32646 | if (temp2) | |
32647 | delete arg2; | |
32648 | } | |
32649 | return NULL; | |
32650 | } | |
32651 | ||
32652 | ||
32653 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32654 | PyObject *resultobj; | |
32655 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32656 | PyObject * obj0 = 0 ; | |
32657 | char *kwnames[] = { | |
32658 | (char *) "self", NULL | |
32659 | }; | |
32660 | ||
32661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32664 | { |
32665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32666 | (arg1)->Clear(); | |
32667 | ||
32668 | wxPyEndAllowThreads(__tstate); | |
32669 | if (PyErr_Occurred()) SWIG_fail; | |
32670 | } | |
32671 | Py_INCREF(Py_None); resultobj = Py_None; | |
32672 | return resultobj; | |
32673 | fail: | |
32674 | return NULL; | |
32675 | } | |
32676 | ||
32677 | ||
32678 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32679 | PyObject *resultobj; | |
32680 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32681 | int arg2 ; | |
32682 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32684 | char *kwnames[] = { |
32685 | (char *) "self",(char *) "n", NULL | |
32686 | }; | |
32687 | ||
8edf1c75 | 32688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32691 | arg2 = (int) SWIG_AsInt(obj1); | |
32692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32693 | { |
32694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32695 | (arg1)->Delete(arg2); | |
32696 | ||
32697 | wxPyEndAllowThreads(__tstate); | |
32698 | if (PyErr_Occurred()) SWIG_fail; | |
32699 | } | |
32700 | Py_INCREF(Py_None); resultobj = Py_None; | |
32701 | return resultobj; | |
32702 | fail: | |
32703 | return NULL; | |
32704 | } | |
32705 | ||
32706 | ||
32707 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32708 | PyObject *resultobj; | |
32709 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32710 | int result; | |
32711 | PyObject * obj0 = 0 ; | |
32712 | char *kwnames[] = { | |
32713 | (char *) "self", NULL | |
32714 | }; | |
32715 | ||
32716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32719 | { |
32720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32721 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
32722 | ||
32723 | wxPyEndAllowThreads(__tstate); | |
32724 | if (PyErr_Occurred()) SWIG_fail; | |
32725 | } | |
2f4c0a16 | 32726 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32727 | return resultobj; |
32728 | fail: | |
32729 | return NULL; | |
32730 | } | |
32731 | ||
32732 | ||
32733 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32734 | PyObject *resultobj; | |
32735 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32736 | bool result; | |
32737 | PyObject * obj0 = 0 ; | |
32738 | char *kwnames[] = { | |
32739 | (char *) "self", NULL | |
32740 | }; | |
32741 | ||
32742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32745 | { |
32746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32747 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
32748 | ||
32749 | wxPyEndAllowThreads(__tstate); | |
32750 | if (PyErr_Occurred()) SWIG_fail; | |
32751 | } | |
4f89f6a3 RD |
32752 | { |
32753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32754 | } | |
d14a1e28 RD |
32755 | return resultobj; |
32756 | fail: | |
32757 | return NULL; | |
32758 | } | |
32759 | ||
32760 | ||
32761 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32762 | PyObject *resultobj; | |
32763 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32764 | int arg2 ; | |
32765 | wxString result; | |
32766 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32768 | char *kwnames[] = { |
32769 | (char *) "self",(char *) "n", NULL | |
32770 | }; | |
32771 | ||
8edf1c75 | 32772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32775 | arg2 = (int) SWIG_AsInt(obj1); | |
32776 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32777 | { |
32778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32779 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
32780 | ||
32781 | wxPyEndAllowThreads(__tstate); | |
32782 | if (PyErr_Occurred()) SWIG_fail; | |
32783 | } | |
32784 | { | |
32785 | #if wxUSE_UNICODE | |
32786 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32787 | #else | |
32788 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32789 | #endif | |
32790 | } | |
32791 | return resultobj; | |
32792 | fail: | |
32793 | return NULL; | |
32794 | } | |
32795 | ||
32796 | ||
32797 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32798 | PyObject *resultobj; | |
32799 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32800 | wxArrayString result; | |
32801 | PyObject * obj0 = 0 ; | |
32802 | char *kwnames[] = { | |
32803 | (char *) "self", NULL | |
32804 | }; | |
32805 | ||
32806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32809 | { |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
32812 | ||
32813 | wxPyEndAllowThreads(__tstate); | |
32814 | if (PyErr_Occurred()) SWIG_fail; | |
32815 | } | |
32816 | { | |
32817 | resultobj = wxArrayString2PyList_helper(result); | |
32818 | } | |
32819 | return resultobj; | |
32820 | fail: | |
32821 | return NULL; | |
32822 | } | |
32823 | ||
32824 | ||
32825 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32826 | PyObject *resultobj; | |
32827 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32828 | int arg2 ; | |
32829 | wxString *arg3 = 0 ; | |
423f194a | 32830 | bool temp3 = False ; |
d14a1e28 | 32831 | PyObject * obj0 = 0 ; |
8edf1c75 | 32832 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32833 | PyObject * obj2 = 0 ; |
32834 | char *kwnames[] = { | |
32835 | (char *) "self",(char *) "n",(char *) "s", NULL | |
32836 | }; | |
32837 | ||
8edf1c75 | 32838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32841 | arg2 = (int) SWIG_AsInt(obj1); | |
32842 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32843 | { |
32844 | arg3 = wxString_in_helper(obj2); | |
32845 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 32846 | temp3 = True; |
d14a1e28 RD |
32847 | } |
32848 | { | |
32849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32850 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
32851 | ||
32852 | wxPyEndAllowThreads(__tstate); | |
32853 | if (PyErr_Occurred()) SWIG_fail; | |
32854 | } | |
32855 | Py_INCREF(Py_None); resultobj = Py_None; | |
32856 | { | |
32857 | if (temp3) | |
32858 | delete arg3; | |
32859 | } | |
32860 | return resultobj; | |
32861 | fail: | |
32862 | { | |
32863 | if (temp3) | |
32864 | delete arg3; | |
32865 | } | |
32866 | return NULL; | |
32867 | } | |
32868 | ||
32869 | ||
32870 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32871 | PyObject *resultobj; | |
32872 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32873 | wxString *arg2 = 0 ; | |
32874 | int result; | |
423f194a | 32875 | bool temp2 = False ; |
d14a1e28 RD |
32876 | PyObject * obj0 = 0 ; |
32877 | PyObject * obj1 = 0 ; | |
32878 | char *kwnames[] = { | |
32879 | (char *) "self",(char *) "s", NULL | |
32880 | }; | |
32881 | ||
32882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32885 | { |
32886 | arg2 = wxString_in_helper(obj1); | |
32887 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32888 | temp2 = True; |
d14a1e28 RD |
32889 | } |
32890 | { | |
32891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32892 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
32893 | ||
32894 | wxPyEndAllowThreads(__tstate); | |
32895 | if (PyErr_Occurred()) SWIG_fail; | |
32896 | } | |
2f4c0a16 | 32897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32898 | { |
32899 | if (temp2) | |
32900 | delete arg2; | |
32901 | } | |
32902 | return resultobj; | |
32903 | fail: | |
32904 | { | |
32905 | if (temp2) | |
32906 | delete arg2; | |
32907 | } | |
32908 | return NULL; | |
32909 | } | |
32910 | ||
32911 | ||
32912 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32913 | PyObject *resultobj; | |
32914 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32915 | int arg2 ; | |
32916 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32918 | char *kwnames[] = { |
32919 | (char *) "self",(char *) "n", NULL | |
32920 | }; | |
32921 | ||
8edf1c75 | 32922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32925 | arg2 = (int) SWIG_AsInt(obj1); | |
32926 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32927 | { |
32928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32929 | (arg1)->Select(arg2); | |
32930 | ||
32931 | wxPyEndAllowThreads(__tstate); | |
32932 | if (PyErr_Occurred()) SWIG_fail; | |
32933 | } | |
32934 | Py_INCREF(Py_None); resultobj = Py_None; | |
32935 | return resultobj; | |
32936 | fail: | |
32937 | return NULL; | |
32938 | } | |
32939 | ||
32940 | ||
32941 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32942 | PyObject *resultobj; | |
32943 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32944 | int result; | |
32945 | PyObject * obj0 = 0 ; | |
32946 | char *kwnames[] = { | |
32947 | (char *) "self", NULL | |
32948 | }; | |
32949 | ||
32950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32953 | { |
32954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32955 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
32956 | ||
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
2f4c0a16 | 32960 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32961 | return resultobj; |
32962 | fail: | |
32963 | return NULL; | |
32964 | } | |
32965 | ||
32966 | ||
32967 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32968 | PyObject *resultobj; | |
32969 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32970 | wxString result; | |
32971 | PyObject * obj0 = 0 ; | |
32972 | char *kwnames[] = { | |
32973 | (char *) "self", NULL | |
32974 | }; | |
32975 | ||
32976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32979 | { |
32980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32981 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32982 | ||
32983 | wxPyEndAllowThreads(__tstate); | |
32984 | if (PyErr_Occurred()) SWIG_fail; | |
32985 | } | |
32986 | { | |
32987 | #if wxUSE_UNICODE | |
32988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32989 | #else | |
32990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32991 | #endif | |
32992 | } | |
32993 | return resultobj; | |
32994 | fail: | |
32995 | return NULL; | |
32996 | } | |
32997 | ||
32998 | ||
32999 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33000 | PyObject *resultobj; | |
33001 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33002 | int arg2 ; | |
33003 | PyObject *result; | |
33004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33006 | char *kwnames[] = { |
33007 | (char *) "self",(char *) "n", NULL | |
33008 | }; | |
33009 | ||
8edf1c75 | 33010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33013 | arg2 = (int) SWIG_AsInt(obj1); | |
33014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33015 | { |
33016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33017 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33018 | ||
33019 | wxPyEndAllowThreads(__tstate); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
33021 | } | |
33022 | resultobj = result; | |
33023 | return resultobj; | |
33024 | fail: | |
33025 | return NULL; | |
33026 | } | |
33027 | ||
33028 | ||
33029 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33030 | PyObject *resultobj; | |
33031 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33032 | int arg2 ; | |
33033 | PyObject *arg3 = (PyObject *) 0 ; | |
33034 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33036 | PyObject * obj2 = 0 ; |
33037 | char *kwnames[] = { | |
33038 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33039 | }; | |
33040 | ||
8edf1c75 | 33041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33044 | arg2 = (int) SWIG_AsInt(obj1); | |
33045 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33046 | arg3 = obj2; |
33047 | { | |
33048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33049 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33050 | ||
33051 | wxPyEndAllowThreads(__tstate); | |
33052 | if (PyErr_Occurred()) SWIG_fail; | |
33053 | } | |
33054 | Py_INCREF(Py_None); resultobj = Py_None; | |
33055 | return resultobj; | |
33056 | fail: | |
33057 | return NULL; | |
33058 | } | |
33059 | ||
33060 | ||
33061 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33062 | PyObject *obj; | |
33063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33064 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33065 | Py_INCREF(obj); | |
33066 | return Py_BuildValue((char *)""); | |
33067 | } | |
33068 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33069 | PyObject *obj; | |
33070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33071 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33072 | Py_INCREF(obj); | |
33073 | return Py_BuildValue((char *)""); | |
33074 | } | |
33075 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33076 | PyObject *resultobj; | |
33077 | wxSizerItem *result; | |
33078 | char *kwnames[] = { | |
33079 | NULL | |
33080 | }; | |
33081 | ||
33082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33083 | { | |
33084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33085 | result = (wxSizerItem *)new wxSizerItem(); | |
33086 | ||
33087 | wxPyEndAllowThreads(__tstate); | |
33088 | if (PyErr_Occurred()) SWIG_fail; | |
33089 | } | |
2f4c0a16 | 33090 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33091 | return resultobj; |
33092 | fail: | |
33093 | return NULL; | |
33094 | } | |
33095 | ||
33096 | ||
33097 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33098 | PyObject *resultobj; | |
33099 | int arg1 ; | |
33100 | int arg2 ; | |
33101 | int arg3 ; | |
33102 | int arg4 ; | |
33103 | int arg5 ; | |
33104 | wxObject *arg6 = (wxObject *) 0 ; | |
33105 | wxSizerItem *result; | |
8edf1c75 RD |
33106 | PyObject * obj0 = 0 ; |
33107 | PyObject * obj1 = 0 ; | |
33108 | PyObject * obj2 = 0 ; | |
33109 | PyObject * obj3 = 0 ; | |
33110 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33111 | PyObject * obj5 = 0 ; |
33112 | char *kwnames[] = { | |
33113 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33114 | }; | |
33115 | ||
8edf1c75 | 33116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33117 | arg1 = (int) SWIG_AsInt(obj0); |
33118 | if (PyErr_Occurred()) SWIG_fail; | |
33119 | arg2 = (int) SWIG_AsInt(obj1); | |
33120 | if (PyErr_Occurred()) SWIG_fail; | |
33121 | arg3 = (int) SWIG_AsInt(obj2); | |
33122 | if (PyErr_Occurred()) SWIG_fail; | |
33123 | arg4 = (int) SWIG_AsInt(obj3); | |
33124 | if (PyErr_Occurred()) SWIG_fail; | |
33125 | arg5 = (int) SWIG_AsInt(obj4); | |
33126 | if (PyErr_Occurred()) SWIG_fail; | |
33127 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
33128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33129 | { |
33130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33131 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
33132 | ||
33133 | wxPyEndAllowThreads(__tstate); | |
33134 | if (PyErr_Occurred()) SWIG_fail; | |
33135 | } | |
2f4c0a16 | 33136 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33137 | return resultobj; |
33138 | fail: | |
33139 | return NULL; | |
33140 | } | |
33141 | ||
33142 | ||
33143 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33144 | PyObject *resultobj; | |
33145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33146 | int arg2 ; | |
33147 | int arg3 ; | |
33148 | int arg4 ; | |
33149 | wxObject *arg5 = (wxObject *) 0 ; | |
33150 | wxSizerItem *result; | |
33151 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33152 | PyObject * obj1 = 0 ; |
33153 | PyObject * obj2 = 0 ; | |
33154 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33155 | PyObject * obj4 = 0 ; |
33156 | char *kwnames[] = { | |
33157 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33158 | }; | |
33159 | ||
8edf1c75 | 33160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33163 | arg2 = (int) SWIG_AsInt(obj1); | |
33164 | if (PyErr_Occurred()) SWIG_fail; | |
33165 | arg3 = (int) SWIG_AsInt(obj2); | |
33166 | if (PyErr_Occurred()) SWIG_fail; | |
33167 | arg4 = (int) SWIG_AsInt(obj3); | |
33168 | if (PyErr_Occurred()) SWIG_fail; | |
33169 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33171 | { |
33172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33173 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33174 | ||
33175 | wxPyEndAllowThreads(__tstate); | |
33176 | if (PyErr_Occurred()) SWIG_fail; | |
33177 | } | |
2f4c0a16 | 33178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33179 | return resultobj; |
33180 | fail: | |
33181 | return NULL; | |
33182 | } | |
33183 | ||
33184 | ||
33185 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33186 | PyObject *resultobj; | |
33187 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33188 | int arg2 ; | |
33189 | int arg3 ; | |
33190 | int arg4 ; | |
33191 | wxObject *arg5 = (wxObject *) 0 ; | |
33192 | wxSizerItem *result; | |
33193 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33194 | PyObject * obj1 = 0 ; |
33195 | PyObject * obj2 = 0 ; | |
33196 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33197 | PyObject * obj4 = 0 ; |
33198 | char *kwnames[] = { | |
33199 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33200 | }; | |
33201 | ||
8edf1c75 | 33202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33205 | arg2 = (int) SWIG_AsInt(obj1); | |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | arg3 = (int) SWIG_AsInt(obj2); | |
33208 | if (PyErr_Occurred()) SWIG_fail; | |
33209 | arg4 = (int) SWIG_AsInt(obj3); | |
33210 | if (PyErr_Occurred()) SWIG_fail; | |
33211 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33213 | { |
33214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33215 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33216 | ||
33217 | wxPyEndAllowThreads(__tstate); | |
33218 | if (PyErr_Occurred()) SWIG_fail; | |
33219 | } | |
2f4c0a16 | 33220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33221 | return resultobj; |
33222 | fail: | |
33223 | return NULL; | |
33224 | } | |
33225 | ||
33226 | ||
33227 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33228 | PyObject *resultobj; | |
33229 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33230 | PyObject * obj0 = 0 ; | |
33231 | char *kwnames[] = { | |
33232 | (char *) "self", NULL | |
33233 | }; | |
33234 | ||
33235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33238 | { |
33239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33240 | (arg1)->DeleteWindows(); | |
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_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33253 | PyObject *resultobj; | |
33254 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33255 | PyObject * obj0 = 0 ; | |
33256 | char *kwnames[] = { | |
33257 | (char *) "self", NULL | |
33258 | }; | |
33259 | ||
33260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33263 | { |
33264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33265 | (arg1)->DetachSizer(); | |
33266 | ||
33267 | wxPyEndAllowThreads(__tstate); | |
33268 | if (PyErr_Occurred()) SWIG_fail; | |
33269 | } | |
33270 | Py_INCREF(Py_None); resultobj = Py_None; | |
33271 | return resultobj; | |
33272 | fail: | |
33273 | return NULL; | |
33274 | } | |
33275 | ||
33276 | ||
33277 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33278 | PyObject *resultobj; | |
33279 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33280 | wxSize result; | |
33281 | PyObject * obj0 = 0 ; | |
33282 | char *kwnames[] = { | |
33283 | (char *) "self", NULL | |
33284 | }; | |
33285 | ||
33286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33289 | { |
33290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33291 | result = (arg1)->GetSize(); | |
33292 | ||
33293 | wxPyEndAllowThreads(__tstate); | |
33294 | if (PyErr_Occurred()) SWIG_fail; | |
33295 | } | |
33296 | { | |
33297 | wxSize * resultptr; | |
33298 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33299 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33300 | } |
33301 | return resultobj; | |
33302 | fail: | |
33303 | return NULL; | |
33304 | } | |
33305 | ||
33306 | ||
33307 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33308 | PyObject *resultobj; | |
33309 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33310 | wxSize result; | |
33311 | PyObject * obj0 = 0 ; | |
33312 | char *kwnames[] = { | |
33313 | (char *) "self", NULL | |
33314 | }; | |
33315 | ||
33316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",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 = (arg1)->CalcMin(); | |
33322 | ||
33323 | wxPyEndAllowThreads(__tstate); | |
33324 | if (PyErr_Occurred()) SWIG_fail; | |
33325 | } | |
33326 | { | |
33327 | wxSize * resultptr; | |
33328 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33330 | } |
33331 | return resultobj; | |
33332 | fail: | |
33333 | return NULL; | |
33334 | } | |
33335 | ||
33336 | ||
33337 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33338 | PyObject *resultobj; | |
33339 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33340 | wxPoint arg2 ; | |
33341 | wxSize arg3 ; | |
33342 | wxPoint *argp2 ; | |
33343 | wxSize *argp3 ; | |
33344 | PyObject * obj0 = 0 ; | |
33345 | PyObject * obj1 = 0 ; | |
33346 | PyObject * obj2 = 0 ; | |
33347 | char *kwnames[] = { | |
33348 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33349 | }; | |
33350 | ||
33351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33354 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33355 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33356 | arg2 = *argp2; | |
33357 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33358 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33359 | arg3 = *argp3; | |
d14a1e28 RD |
33360 | { |
33361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33362 | (arg1)->SetDimension(arg2,arg3); | |
33363 | ||
33364 | wxPyEndAllowThreads(__tstate); | |
33365 | if (PyErr_Occurred()) SWIG_fail; | |
33366 | } | |
33367 | Py_INCREF(Py_None); resultobj = Py_None; | |
33368 | return resultobj; | |
33369 | fail: | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
33374 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33375 | PyObject *resultobj; | |
33376 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33377 | wxSize result; | |
33378 | PyObject * obj0 = 0 ; | |
33379 | char *kwnames[] = { | |
33380 | (char *) "self", NULL | |
33381 | }; | |
33382 | ||
33383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33386 | { |
33387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33388 | result = (arg1)->GetMinSize(); | |
33389 | ||
33390 | wxPyEndAllowThreads(__tstate); | |
33391 | if (PyErr_Occurred()) SWIG_fail; | |
33392 | } | |
33393 | { | |
33394 | wxSize * resultptr; | |
33395 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33396 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33397 | } |
33398 | return resultobj; | |
33399 | fail: | |
33400 | return NULL; | |
33401 | } | |
33402 | ||
33403 | ||
33404 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33405 | PyObject *resultobj; | |
33406 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33407 | int arg2 ; | |
33408 | int arg3 ; | |
33409 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33410 | PyObject * obj1 = 0 ; |
33411 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33412 | char *kwnames[] = { |
33413 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33414 | }; | |
33415 | ||
8edf1c75 | 33416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33419 | arg2 = (int) SWIG_AsInt(obj1); | |
33420 | if (PyErr_Occurred()) SWIG_fail; | |
33421 | arg3 = (int) SWIG_AsInt(obj2); | |
33422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33423 | { |
33424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33425 | (arg1)->SetInitSize(arg2,arg3); | |
33426 | ||
33427 | wxPyEndAllowThreads(__tstate); | |
33428 | if (PyErr_Occurred()) SWIG_fail; | |
33429 | } | |
33430 | Py_INCREF(Py_None); resultobj = Py_None; | |
33431 | return resultobj; | |
33432 | fail: | |
33433 | return NULL; | |
33434 | } | |
33435 | ||
33436 | ||
33437 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33438 | PyObject *resultobj; | |
33439 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33440 | int arg2 ; | |
33441 | int arg3 ; | |
33442 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33443 | PyObject * obj1 = 0 ; |
33444 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33445 | char *kwnames[] = { |
33446 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33447 | }; | |
33448 | ||
8edf1c75 | 33449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33452 | arg2 = (int) SWIG_AsInt(obj1); | |
33453 | if (PyErr_Occurred()) SWIG_fail; | |
33454 | arg3 = (int) SWIG_AsInt(obj2); | |
33455 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33456 | { |
33457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33458 | (arg1)->SetRatio(arg2,arg3); | |
33459 | ||
33460 | wxPyEndAllowThreads(__tstate); | |
33461 | if (PyErr_Occurred()) SWIG_fail; | |
33462 | } | |
33463 | Py_INCREF(Py_None); resultobj = Py_None; | |
33464 | return resultobj; | |
33465 | fail: | |
33466 | return NULL; | |
33467 | } | |
33468 | ||
33469 | ||
33470 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33471 | PyObject *resultobj; | |
33472 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33473 | wxSize arg2 ; | |
33474 | wxSize *argp2 ; | |
33475 | PyObject * obj0 = 0 ; | |
33476 | PyObject * obj1 = 0 ; | |
33477 | char *kwnames[] = { | |
33478 | (char *) "self",(char *) "size", NULL | |
33479 | }; | |
33480 | ||
33481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33484 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33485 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33486 | arg2 = *argp2; | |
d14a1e28 RD |
33487 | { |
33488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33489 | (arg1)->SetRatio(arg2); | |
33490 | ||
33491 | wxPyEndAllowThreads(__tstate); | |
33492 | if (PyErr_Occurred()) SWIG_fail; | |
33493 | } | |
33494 | Py_INCREF(Py_None); resultobj = Py_None; | |
33495 | return resultobj; | |
33496 | fail: | |
33497 | return NULL; | |
33498 | } | |
33499 | ||
33500 | ||
33501 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33502 | PyObject *resultobj; | |
33503 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33504 | float arg2 ; | |
33505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33507 | char *kwnames[] = { |
33508 | (char *) "self",(char *) "ratio", NULL | |
33509 | }; | |
33510 | ||
8edf1c75 | 33511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33514 | arg2 = (float) SWIG_AsFloat(obj1); | |
33515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33516 | { |
33517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33518 | (arg1)->SetRatio(arg2); | |
33519 | ||
33520 | wxPyEndAllowThreads(__tstate); | |
33521 | if (PyErr_Occurred()) SWIG_fail; | |
33522 | } | |
33523 | Py_INCREF(Py_None); resultobj = Py_None; | |
33524 | return resultobj; | |
33525 | fail: | |
33526 | return NULL; | |
33527 | } | |
33528 | ||
33529 | ||
33530 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33531 | PyObject *resultobj; | |
33532 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33533 | float result; | |
33534 | PyObject * obj0 = 0 ; | |
33535 | char *kwnames[] = { | |
33536 | (char *) "self", NULL | |
33537 | }; | |
33538 | ||
33539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33542 | { |
33543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33544 | result = (float)(arg1)->GetRatio(); | |
33545 | ||
33546 | wxPyEndAllowThreads(__tstate); | |
33547 | if (PyErr_Occurred()) SWIG_fail; | |
33548 | } | |
2f4c0a16 | 33549 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
33550 | return resultobj; |
33551 | fail: | |
33552 | return NULL; | |
33553 | } | |
33554 | ||
33555 | ||
33556 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33557 | PyObject *resultobj; | |
33558 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33559 | bool result; | |
33560 | PyObject * obj0 = 0 ; | |
33561 | char *kwnames[] = { | |
33562 | (char *) "self", NULL | |
33563 | }; | |
33564 | ||
33565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33568 | { |
33569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33570 | result = (bool)(arg1)->IsWindow(); | |
33571 | ||
33572 | wxPyEndAllowThreads(__tstate); | |
33573 | if (PyErr_Occurred()) SWIG_fail; | |
33574 | } | |
4f89f6a3 RD |
33575 | { |
33576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33577 | } | |
d14a1e28 RD |
33578 | return resultobj; |
33579 | fail: | |
33580 | return NULL; | |
33581 | } | |
33582 | ||
33583 | ||
33584 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33585 | PyObject *resultobj; | |
33586 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33587 | bool result; | |
33588 | PyObject * obj0 = 0 ; | |
33589 | char *kwnames[] = { | |
33590 | (char *) "self", NULL | |
33591 | }; | |
33592 | ||
33593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33596 | { |
33597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33598 | result = (bool)(arg1)->IsSizer(); | |
33599 | ||
33600 | wxPyEndAllowThreads(__tstate); | |
33601 | if (PyErr_Occurred()) SWIG_fail; | |
33602 | } | |
4f89f6a3 RD |
33603 | { |
33604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33605 | } | |
d14a1e28 RD |
33606 | return resultobj; |
33607 | fail: | |
33608 | return NULL; | |
33609 | } | |
33610 | ||
33611 | ||
33612 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33613 | PyObject *resultobj; | |
33614 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33615 | bool result; | |
33616 | PyObject * obj0 = 0 ; | |
33617 | char *kwnames[] = { | |
33618 | (char *) "self", NULL | |
33619 | }; | |
33620 | ||
33621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33624 | { |
33625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33626 | result = (bool)(arg1)->IsSpacer(); | |
33627 | ||
33628 | wxPyEndAllowThreads(__tstate); | |
33629 | if (PyErr_Occurred()) SWIG_fail; | |
33630 | } | |
4f89f6a3 RD |
33631 | { |
33632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33633 | } | |
d14a1e28 RD |
33634 | return resultobj; |
33635 | fail: | |
33636 | return NULL; | |
33637 | } | |
33638 | ||
33639 | ||
33640 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33641 | PyObject *resultobj; | |
33642 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33643 | int arg2 ; | |
33644 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33646 | char *kwnames[] = { |
33647 | (char *) "self",(char *) "proportion", NULL | |
33648 | }; | |
33649 | ||
8edf1c75 | 33650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33653 | arg2 = (int) SWIG_AsInt(obj1); | |
33654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33655 | { |
33656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33657 | (arg1)->SetProportion(arg2); | |
33658 | ||
33659 | wxPyEndAllowThreads(__tstate); | |
33660 | if (PyErr_Occurred()) SWIG_fail; | |
33661 | } | |
33662 | Py_INCREF(Py_None); resultobj = Py_None; | |
33663 | return resultobj; | |
33664 | fail: | |
33665 | return NULL; | |
33666 | } | |
33667 | ||
33668 | ||
33669 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33670 | PyObject *resultobj; | |
33671 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33672 | int result; | |
33673 | PyObject * obj0 = 0 ; | |
33674 | char *kwnames[] = { | |
33675 | (char *) "self", NULL | |
33676 | }; | |
33677 | ||
33678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33681 | { |
33682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33683 | result = (int)(arg1)->GetProportion(); | |
33684 | ||
33685 | wxPyEndAllowThreads(__tstate); | |
33686 | if (PyErr_Occurred()) SWIG_fail; | |
33687 | } | |
2f4c0a16 | 33688 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33689 | return resultobj; |
33690 | fail: | |
33691 | return NULL; | |
33692 | } | |
33693 | ||
33694 | ||
33695 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33696 | PyObject *resultobj; | |
33697 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33698 | int arg2 ; | |
33699 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33701 | char *kwnames[] = { |
33702 | (char *) "self",(char *) "flag", NULL | |
33703 | }; | |
33704 | ||
8edf1c75 | 33705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33708 | arg2 = (int) SWIG_AsInt(obj1); | |
33709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33710 | { |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33712 | (arg1)->SetFlag(arg2); | |
33713 | ||
33714 | wxPyEndAllowThreads(__tstate); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
33716 | } | |
33717 | Py_INCREF(Py_None); resultobj = Py_None; | |
33718 | return resultobj; | |
33719 | fail: | |
33720 | return NULL; | |
33721 | } | |
33722 | ||
33723 | ||
33724 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33725 | PyObject *resultobj; | |
33726 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33727 | int result; | |
33728 | PyObject * obj0 = 0 ; | |
33729 | char *kwnames[] = { | |
33730 | (char *) "self", NULL | |
33731 | }; | |
33732 | ||
33733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33736 | { |
33737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33738 | result = (int)(arg1)->GetFlag(); | |
33739 | ||
33740 | wxPyEndAllowThreads(__tstate); | |
33741 | if (PyErr_Occurred()) SWIG_fail; | |
33742 | } | |
2f4c0a16 | 33743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33744 | return resultobj; |
33745 | fail: | |
33746 | return NULL; | |
33747 | } | |
33748 | ||
33749 | ||
33750 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33751 | PyObject *resultobj; | |
33752 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33753 | int arg2 ; | |
33754 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33756 | char *kwnames[] = { |
33757 | (char *) "self",(char *) "border", NULL | |
33758 | }; | |
33759 | ||
8edf1c75 | 33760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33763 | arg2 = (int) SWIG_AsInt(obj1); | |
33764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33765 | { |
33766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33767 | (arg1)->SetBorder(arg2); | |
33768 | ||
33769 | wxPyEndAllowThreads(__tstate); | |
33770 | if (PyErr_Occurred()) SWIG_fail; | |
33771 | } | |
33772 | Py_INCREF(Py_None); resultobj = Py_None; | |
33773 | return resultobj; | |
33774 | fail: | |
33775 | return NULL; | |
33776 | } | |
33777 | ||
33778 | ||
33779 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33780 | PyObject *resultobj; | |
33781 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33782 | int result; | |
33783 | PyObject * obj0 = 0 ; | |
33784 | char *kwnames[] = { | |
33785 | (char *) "self", NULL | |
33786 | }; | |
33787 | ||
33788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33791 | { |
33792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33793 | result = (int)(arg1)->GetBorder(); | |
33794 | ||
33795 | wxPyEndAllowThreads(__tstate); | |
33796 | if (PyErr_Occurred()) SWIG_fail; | |
33797 | } | |
2f4c0a16 | 33798 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33799 | return resultobj; |
33800 | fail: | |
33801 | return NULL; | |
33802 | } | |
33803 | ||
33804 | ||
33805 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33806 | PyObject *resultobj; | |
33807 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33808 | wxWindow *result; | |
33809 | PyObject * obj0 = 0 ; | |
33810 | char *kwnames[] = { | |
33811 | (char *) "self", NULL | |
33812 | }; | |
33813 | ||
33814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33817 | { |
33818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33819 | result = (wxWindow *)(arg1)->GetWindow(); | |
33820 | ||
33821 | wxPyEndAllowThreads(__tstate); | |
33822 | if (PyErr_Occurred()) SWIG_fail; | |
33823 | } | |
33824 | { | |
33825 | resultobj = wxPyMake_wxObject(result); | |
33826 | } | |
33827 | return resultobj; | |
33828 | fail: | |
33829 | return NULL; | |
33830 | } | |
33831 | ||
33832 | ||
33833 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33834 | PyObject *resultobj; | |
33835 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33836 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33837 | PyObject * obj0 = 0 ; | |
33838 | PyObject * obj1 = 0 ; | |
33839 | char *kwnames[] = { | |
33840 | (char *) "self",(char *) "window", NULL | |
33841 | }; | |
33842 | ||
33843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33848 | { |
33849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33850 | (arg1)->SetWindow(arg2); | |
33851 | ||
33852 | wxPyEndAllowThreads(__tstate); | |
33853 | if (PyErr_Occurred()) SWIG_fail; | |
33854 | } | |
33855 | Py_INCREF(Py_None); resultobj = Py_None; | |
33856 | return resultobj; | |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
33862 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33863 | PyObject *resultobj; | |
33864 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33865 | wxSizer *result; | |
33866 | PyObject * obj0 = 0 ; | |
33867 | char *kwnames[] = { | |
33868 | (char *) "self", NULL | |
33869 | }; | |
33870 | ||
33871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33874 | { |
33875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33876 | result = (wxSizer *)(arg1)->GetSizer(); | |
33877 | ||
33878 | wxPyEndAllowThreads(__tstate); | |
33879 | if (PyErr_Occurred()) SWIG_fail; | |
33880 | } | |
33881 | { | |
33882 | resultobj = wxPyMake_wxSizer(result); | |
33883 | } | |
33884 | return resultobj; | |
33885 | fail: | |
33886 | return NULL; | |
33887 | } | |
33888 | ||
33889 | ||
33890 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33891 | PyObject *resultobj; | |
33892 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33893 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33894 | PyObject * obj0 = 0 ; | |
33895 | PyObject * obj1 = 0 ; | |
33896 | char *kwnames[] = { | |
33897 | (char *) "self",(char *) "sizer", NULL | |
33898 | }; | |
33899 | ||
33900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
33904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33905 | { |
33906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33907 | (arg1)->SetSizer(arg2); | |
33908 | ||
33909 | wxPyEndAllowThreads(__tstate); | |
33910 | if (PyErr_Occurred()) SWIG_fail; | |
33911 | } | |
33912 | Py_INCREF(Py_None); resultobj = Py_None; | |
33913 | return resultobj; | |
33914 | fail: | |
33915 | return NULL; | |
33916 | } | |
33917 | ||
33918 | ||
33919 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33920 | PyObject *resultobj; | |
33921 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33922 | wxSize *result; | |
33923 | PyObject * obj0 = 0 ; | |
33924 | char *kwnames[] = { | |
33925 | (char *) "self", NULL | |
33926 | }; | |
33927 | ||
33928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33931 | { |
33932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33933 | { | |
33934 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
33935 | result = (wxSize *) &_result_ref; | |
33936 | } | |
33937 | ||
33938 | wxPyEndAllowThreads(__tstate); | |
33939 | if (PyErr_Occurred()) SWIG_fail; | |
33940 | } | |
2f4c0a16 | 33941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
33942 | return resultobj; |
33943 | fail: | |
33944 | return NULL; | |
33945 | } | |
33946 | ||
33947 | ||
33948 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33949 | PyObject *resultobj; | |
33950 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33951 | wxSize *arg2 = 0 ; | |
33952 | wxSize temp2 ; | |
33953 | PyObject * obj0 = 0 ; | |
33954 | PyObject * obj1 = 0 ; | |
33955 | char *kwnames[] = { | |
33956 | (char *) "self",(char *) "size", NULL | |
33957 | }; | |
33958 | ||
33959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33962 | { |
33963 | arg2 = &temp2; | |
33964 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33965 | } | |
33966 | { | |
33967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33968 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33969 | ||
33970 | wxPyEndAllowThreads(__tstate); | |
33971 | if (PyErr_Occurred()) SWIG_fail; | |
33972 | } | |
33973 | Py_INCREF(Py_None); resultobj = Py_None; | |
33974 | return resultobj; | |
33975 | fail: | |
33976 | return NULL; | |
33977 | } | |
33978 | ||
33979 | ||
33980 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33981 | PyObject *resultobj; | |
33982 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33983 | bool arg2 ; | |
33984 | PyObject * obj0 = 0 ; | |
33985 | PyObject * obj1 = 0 ; | |
33986 | char *kwnames[] = { | |
33987 | (char *) "self",(char *) "show", NULL | |
33988 | }; | |
33989 | ||
33990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33993 | arg2 = (bool) SWIG_AsBool(obj1); | |
33994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33995 | { |
33996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33997 | (arg1)->Show(arg2); | |
33998 | ||
33999 | wxPyEndAllowThreads(__tstate); | |
34000 | if (PyErr_Occurred()) SWIG_fail; | |
34001 | } | |
34002 | Py_INCREF(Py_None); resultobj = Py_None; | |
34003 | return resultobj; | |
34004 | fail: | |
34005 | return NULL; | |
34006 | } | |
34007 | ||
34008 | ||
34009 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34010 | PyObject *resultobj; | |
34011 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34012 | bool result; | |
34013 | PyObject * obj0 = 0 ; | |
34014 | char *kwnames[] = { | |
34015 | (char *) "self", NULL | |
34016 | }; | |
34017 | ||
34018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34021 | { |
34022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34023 | result = (bool)(arg1)->IsShown(); | |
34024 | ||
34025 | wxPyEndAllowThreads(__tstate); | |
34026 | if (PyErr_Occurred()) SWIG_fail; | |
34027 | } | |
4f89f6a3 RD |
34028 | { |
34029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34030 | } | |
d14a1e28 RD |
34031 | return resultobj; |
34032 | fail: | |
34033 | return NULL; | |
34034 | } | |
34035 | ||
34036 | ||
34037 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34038 | PyObject *resultobj; | |
34039 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34040 | wxPoint result; | |
34041 | PyObject * obj0 = 0 ; | |
34042 | char *kwnames[] = { | |
34043 | (char *) "self", NULL | |
34044 | }; | |
34045 | ||
34046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34049 | { |
34050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34051 | result = (arg1)->GetPosition(); | |
34052 | ||
34053 | wxPyEndAllowThreads(__tstate); | |
34054 | if (PyErr_Occurred()) SWIG_fail; | |
34055 | } | |
34056 | { | |
34057 | wxPoint * resultptr; | |
34058 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 34059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34060 | } |
34061 | return resultobj; | |
34062 | fail: | |
34063 | return NULL; | |
34064 | } | |
34065 | ||
34066 | ||
34067 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34068 | PyObject *resultobj; | |
34069 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34070 | PyObject *result; | |
34071 | PyObject * obj0 = 0 ; | |
34072 | char *kwnames[] = { | |
34073 | (char *) "self", NULL | |
34074 | }; | |
34075 | ||
34076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34079 | { |
34080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34081 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34082 | ||
34083 | wxPyEndAllowThreads(__tstate); | |
34084 | if (PyErr_Occurred()) SWIG_fail; | |
34085 | } | |
34086 | resultobj = result; | |
34087 | return resultobj; | |
34088 | fail: | |
34089 | return NULL; | |
34090 | } | |
34091 | ||
34092 | ||
34093 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34094 | PyObject *obj; | |
34095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34096 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34097 | Py_INCREF(obj); | |
34098 | return Py_BuildValue((char *)""); | |
34099 | } | |
34100 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34101 | PyObject *resultobj; | |
34102 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34103 | PyObject *arg2 = (PyObject *) 0 ; | |
34104 | PyObject * obj0 = 0 ; | |
34105 | PyObject * obj1 = 0 ; | |
34106 | char *kwnames[] = { | |
34107 | (char *) "self",(char *) "_self", NULL | |
34108 | }; | |
34109 | ||
34110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34113 | arg2 = obj1; |
34114 | { | |
34115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34116 | wxSizer__setOORInfo(arg1,arg2); | |
34117 | ||
34118 | wxPyEndAllowThreads(__tstate); | |
34119 | if (PyErr_Occurred()) SWIG_fail; | |
34120 | } | |
34121 | Py_INCREF(Py_None); resultobj = Py_None; | |
34122 | return resultobj; | |
34123 | fail: | |
34124 | return NULL; | |
34125 | } | |
34126 | ||
34127 | ||
34128 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34129 | PyObject *resultobj; | |
34130 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34131 | PyObject *arg2 = (PyObject *) 0 ; | |
34132 | int arg3 = (int) 0 ; | |
34133 | int arg4 = (int) 0 ; | |
34134 | int arg5 = (int) 0 ; | |
34135 | PyObject *arg6 = (PyObject *) NULL ; | |
34136 | PyObject * obj0 = 0 ; | |
34137 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
34138 | PyObject * obj2 = 0 ; |
34139 | PyObject * obj3 = 0 ; | |
34140 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34141 | PyObject * obj5 = 0 ; |
34142 | char *kwnames[] = { | |
34143 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34144 | }; | |
34145 | ||
8edf1c75 | 34146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
34147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34149 | arg2 = obj1; |
8edf1c75 | 34150 | if (obj2) { |
2f4c0a16 RD |
34151 | arg3 = (int) SWIG_AsInt(obj2); |
34152 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34153 | } |
34154 | if (obj3) { | |
2f4c0a16 RD |
34155 | arg4 = (int) SWIG_AsInt(obj3); |
34156 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34157 | } |
34158 | if (obj4) { | |
2f4c0a16 RD |
34159 | arg5 = (int) SWIG_AsInt(obj4); |
34160 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34161 | } |
d14a1e28 RD |
34162 | if (obj5) { |
34163 | arg6 = obj5; | |
34164 | } | |
34165 | { | |
34166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34167 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34168 | ||
34169 | wxPyEndAllowThreads(__tstate); | |
34170 | if (PyErr_Occurred()) SWIG_fail; | |
34171 | } | |
34172 | Py_INCREF(Py_None); resultobj = Py_None; | |
34173 | return resultobj; | |
34174 | fail: | |
34175 | return NULL; | |
34176 | } | |
34177 | ||
34178 | ||
34179 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34180 | PyObject *resultobj; | |
34181 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34182 | int arg2 ; | |
34183 | PyObject *arg3 = (PyObject *) 0 ; | |
34184 | int arg4 = (int) 0 ; | |
34185 | int arg5 = (int) 0 ; | |
34186 | int arg6 = (int) 0 ; | |
34187 | PyObject *arg7 = (PyObject *) NULL ; | |
34188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34189 | PyObject * obj1 = 0 ; |
d14a1e28 | 34190 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
34191 | PyObject * obj3 = 0 ; |
34192 | PyObject * obj4 = 0 ; | |
34193 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
34194 | PyObject * obj6 = 0 ; |
34195 | char *kwnames[] = { | |
34196 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34197 | }; | |
34198 | ||
8edf1c75 | 34199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
34200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34202 | arg2 = (int) SWIG_AsInt(obj1); | |
34203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 34204 | arg3 = obj2; |
8edf1c75 | 34205 | if (obj3) { |
2f4c0a16 RD |
34206 | arg4 = (int) SWIG_AsInt(obj3); |
34207 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34208 | } |
34209 | if (obj4) { | |
2f4c0a16 RD |
34210 | arg5 = (int) SWIG_AsInt(obj4); |
34211 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34212 | } |
34213 | if (obj5) { | |
2f4c0a16 RD |
34214 | arg6 = (int) SWIG_AsInt(obj5); |
34215 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34216 | } |
d14a1e28 RD |
34217 | if (obj6) { |
34218 | arg7 = obj6; | |
34219 | } | |
34220 | { | |
34221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34222 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34223 | ||
34224 | wxPyEndAllowThreads(__tstate); | |
34225 | if (PyErr_Occurred()) SWIG_fail; | |
34226 | } | |
34227 | Py_INCREF(Py_None); resultobj = Py_None; | |
34228 | return resultobj; | |
34229 | fail: | |
34230 | return NULL; | |
34231 | } | |
34232 | ||
34233 | ||
34234 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34235 | PyObject *resultobj; | |
34236 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34237 | PyObject *arg2 = (PyObject *) 0 ; | |
34238 | int arg3 = (int) 0 ; | |
34239 | int arg4 = (int) 0 ; | |
34240 | int arg5 = (int) 0 ; | |
34241 | PyObject *arg6 = (PyObject *) NULL ; | |
34242 | PyObject * obj0 = 0 ; | |
34243 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
34244 | PyObject * obj2 = 0 ; |
34245 | PyObject * obj3 = 0 ; | |
34246 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34247 | PyObject * obj5 = 0 ; |
34248 | char *kwnames[] = { | |
34249 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34250 | }; | |
34251 | ||
8edf1c75 | 34252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
34253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34255 | arg2 = obj1; |
8edf1c75 | 34256 | if (obj2) { |
2f4c0a16 RD |
34257 | arg3 = (int) SWIG_AsInt(obj2); |
34258 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34259 | } |
34260 | if (obj3) { | |
2f4c0a16 RD |
34261 | arg4 = (int) SWIG_AsInt(obj3); |
34262 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34263 | } |
34264 | if (obj4) { | |
2f4c0a16 RD |
34265 | arg5 = (int) SWIG_AsInt(obj4); |
34266 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34267 | } |
d14a1e28 RD |
34268 | if (obj5) { |
34269 | arg6 = obj5; | |
34270 | } | |
34271 | { | |
34272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34273 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34274 | ||
34275 | wxPyEndAllowThreads(__tstate); | |
34276 | if (PyErr_Occurred()) SWIG_fail; | |
34277 | } | |
34278 | Py_INCREF(Py_None); resultobj = Py_None; | |
34279 | return resultobj; | |
34280 | fail: | |
34281 | return NULL; | |
34282 | } | |
34283 | ||
34284 | ||
34285 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34286 | PyObject *resultobj; | |
34287 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34288 | PyObject *arg2 = (PyObject *) 0 ; | |
34289 | bool result; | |
34290 | PyObject * obj0 = 0 ; | |
34291 | PyObject * obj1 = 0 ; | |
34292 | char *kwnames[] = { | |
34293 | (char *) "self",(char *) "item", NULL | |
34294 | }; | |
34295 | ||
34296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34299 | arg2 = obj1; |
34300 | { | |
34301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34302 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34303 | ||
34304 | wxPyEndAllowThreads(__tstate); | |
34305 | if (PyErr_Occurred()) SWIG_fail; | |
34306 | } | |
4f89f6a3 RD |
34307 | { |
34308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34309 | } | |
d14a1e28 RD |
34310 | return resultobj; |
34311 | fail: | |
34312 | return NULL; | |
34313 | } | |
34314 | ||
34315 | ||
34316 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34317 | PyObject *resultobj; | |
34318 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34319 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
34320 | wxSize *arg3 = 0 ; |
34321 | wxSize temp3 ; | |
d14a1e28 RD |
34322 | PyObject * obj0 = 0 ; |
34323 | PyObject * obj1 = 0 ; | |
34324 | PyObject * obj2 = 0 ; | |
34325 | char *kwnames[] = { | |
34326 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34327 | }; | |
34328 | ||
34329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34332 | arg2 = obj1; |
423f194a RD |
34333 | { |
34334 | arg3 = &temp3; | |
34335 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34336 | } | |
d14a1e28 RD |
34337 | { |
34338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 34339 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
34340 | |
34341 | wxPyEndAllowThreads(__tstate); | |
34342 | if (PyErr_Occurred()) SWIG_fail; | |
34343 | } | |
34344 | Py_INCREF(Py_None); resultobj = Py_None; | |
34345 | return resultobj; | |
34346 | fail: | |
34347 | return NULL; | |
34348 | } | |
34349 | ||
34350 | ||
34351 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34352 | PyObject *resultobj; | |
34353 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34354 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34355 | PyObject * obj0 = 0 ; | |
34356 | PyObject * obj1 = 0 ; | |
34357 | char *kwnames[] = { | |
34358 | (char *) "self",(char *) "item", NULL | |
34359 | }; | |
34360 | ||
34361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34366 | { |
34367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34368 | (arg1)->Add(arg2); | |
34369 | ||
34370 | wxPyEndAllowThreads(__tstate); | |
34371 | if (PyErr_Occurred()) SWIG_fail; | |
34372 | } | |
34373 | Py_INCREF(Py_None); resultobj = Py_None; | |
34374 | return resultobj; | |
34375 | fail: | |
34376 | return NULL; | |
34377 | } | |
34378 | ||
34379 | ||
34380 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34381 | PyObject *resultobj; | |
34382 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34383 | size_t arg2 ; | |
34384 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34385 | PyObject * obj0 = 0 ; | |
34386 | PyObject * obj1 = 0 ; | |
34387 | PyObject * obj2 = 0 ; | |
34388 | char *kwnames[] = { | |
34389 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34390 | }; | |
34391 | ||
34392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34395 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34396 | if (PyErr_Occurred()) SWIG_fail; | |
34397 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34399 | { |
34400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34401 | (arg1)->Insert(arg2,arg3); | |
34402 | ||
34403 | wxPyEndAllowThreads(__tstate); | |
34404 | if (PyErr_Occurred()) SWIG_fail; | |
34405 | } | |
34406 | Py_INCREF(Py_None); resultobj = Py_None; | |
34407 | return resultobj; | |
34408 | fail: | |
34409 | return NULL; | |
34410 | } | |
34411 | ||
34412 | ||
34413 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34414 | PyObject *resultobj; | |
34415 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34416 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34417 | PyObject * obj0 = 0 ; | |
34418 | PyObject * obj1 = 0 ; | |
34419 | char *kwnames[] = { | |
34420 | (char *) "self",(char *) "item", NULL | |
34421 | }; | |
34422 | ||
34423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34428 | { |
34429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34430 | (arg1)->Prepend(arg2); | |
34431 | ||
34432 | wxPyEndAllowThreads(__tstate); | |
34433 | if (PyErr_Occurred()) SWIG_fail; | |
34434 | } | |
34435 | Py_INCREF(Py_None); resultobj = Py_None; | |
34436 | return resultobj; | |
34437 | fail: | |
34438 | return NULL; | |
34439 | } | |
34440 | ||
34441 | ||
34442 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34443 | PyObject *resultobj; | |
34444 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34445 | int arg2 ; | |
34446 | int arg3 ; | |
34447 | int arg4 ; | |
34448 | int arg5 ; | |
34449 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
34450 | PyObject * obj1 = 0 ; |
34451 | PyObject * obj2 = 0 ; | |
34452 | PyObject * obj3 = 0 ; | |
34453 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34454 | char *kwnames[] = { |
34455 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34456 | }; | |
34457 | ||
8edf1c75 | 34458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
34459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34461 | arg2 = (int) SWIG_AsInt(obj1); | |
34462 | if (PyErr_Occurred()) SWIG_fail; | |
34463 | arg3 = (int) SWIG_AsInt(obj2); | |
34464 | if (PyErr_Occurred()) SWIG_fail; | |
34465 | arg4 = (int) SWIG_AsInt(obj3); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | arg5 = (int) SWIG_AsInt(obj4); | |
34468 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34469 | { |
34470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34471 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
34472 | ||
34473 | wxPyEndAllowThreads(__tstate); | |
34474 | if (PyErr_Occurred()) SWIG_fail; | |
34475 | } | |
34476 | Py_INCREF(Py_None); resultobj = Py_None; | |
34477 | return resultobj; | |
34478 | fail: | |
34479 | return NULL; | |
34480 | } | |
34481 | ||
34482 | ||
34483 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34484 | PyObject *resultobj; | |
34485 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
34486 | wxSize *arg2 = 0 ; |
34487 | wxSize temp2 ; | |
d14a1e28 RD |
34488 | PyObject * obj0 = 0 ; |
34489 | PyObject * obj1 = 0 ; | |
34490 | char *kwnames[] = { | |
34491 | (char *) "self",(char *) "size", NULL | |
34492 | }; | |
34493 | ||
34494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a64def11 RD |
34497 | { |
34498 | arg2 = &temp2; | |
34499 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34500 | } | |
d14a1e28 RD |
34501 | { |
34502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 34503 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
34504 | |
34505 | wxPyEndAllowThreads(__tstate); | |
34506 | if (PyErr_Occurred()) SWIG_fail; | |
34507 | } | |
34508 | Py_INCREF(Py_None); resultobj = Py_None; | |
34509 | return resultobj; | |
34510 | fail: | |
34511 | return NULL; | |
34512 | } | |
34513 | ||
34514 | ||
34515 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34516 | PyObject *resultobj; | |
34517 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34518 | wxSize result; | |
34519 | PyObject * obj0 = 0 ; | |
34520 | char *kwnames[] = { | |
34521 | (char *) "self", NULL | |
34522 | }; | |
34523 | ||
34524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34527 | { |
34528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34529 | result = (arg1)->GetSize(); | |
34530 | ||
34531 | wxPyEndAllowThreads(__tstate); | |
34532 | if (PyErr_Occurred()) SWIG_fail; | |
34533 | } | |
34534 | { | |
34535 | wxSize * resultptr; | |
34536 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34537 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34538 | } |
34539 | return resultobj; | |
34540 | fail: | |
34541 | return NULL; | |
34542 | } | |
34543 | ||
34544 | ||
34545 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34546 | PyObject *resultobj; | |
34547 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34548 | wxPoint result; | |
34549 | PyObject * obj0 = 0 ; | |
34550 | char *kwnames[] = { | |
34551 | (char *) "self", NULL | |
34552 | }; | |
34553 | ||
34554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34557 | { |
34558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34559 | result = (arg1)->GetPosition(); | |
34560 | ||
34561 | wxPyEndAllowThreads(__tstate); | |
34562 | if (PyErr_Occurred()) SWIG_fail; | |
34563 | } | |
34564 | { | |
34565 | wxPoint * resultptr; | |
34566 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 34567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34568 | } |
34569 | return resultobj; | |
34570 | fail: | |
34571 | return NULL; | |
34572 | } | |
34573 | ||
34574 | ||
34575 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34576 | PyObject *resultobj; | |
34577 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34578 | wxSize result; | |
34579 | PyObject * obj0 = 0 ; | |
34580 | char *kwnames[] = { | |
34581 | (char *) "self", NULL | |
34582 | }; | |
34583 | ||
34584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34587 | { |
34588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34589 | result = (arg1)->GetMinSize(); | |
34590 | ||
34591 | wxPyEndAllowThreads(__tstate); | |
34592 | if (PyErr_Occurred()) SWIG_fail; | |
34593 | } | |
34594 | { | |
34595 | wxSize * resultptr; | |
34596 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34597 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34598 | } |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
34605 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34606 | PyObject *resultobj; | |
34607 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34608 | PyObject * obj0 = 0 ; | |
34609 | char *kwnames[] = { | |
34610 | (char *) "self", NULL | |
34611 | }; | |
34612 | ||
34613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34616 | { |
34617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34618 | (arg1)->RecalcSizes(); | |
34619 | ||
34620 | wxPyEndAllowThreads(__tstate); | |
34621 | if (PyErr_Occurred()) SWIG_fail; | |
34622 | } | |
34623 | Py_INCREF(Py_None); resultobj = Py_None; | |
34624 | return resultobj; | |
34625 | fail: | |
34626 | return NULL; | |
34627 | } | |
34628 | ||
34629 | ||
34630 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34631 | PyObject *resultobj; | |
34632 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34633 | wxSize result; | |
34634 | PyObject * obj0 = 0 ; | |
34635 | char *kwnames[] = { | |
34636 | (char *) "self", NULL | |
34637 | }; | |
34638 | ||
34639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34642 | { |
34643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34644 | result = (arg1)->CalcMin(); | |
34645 | ||
34646 | wxPyEndAllowThreads(__tstate); | |
34647 | if (PyErr_Occurred()) SWIG_fail; | |
34648 | } | |
34649 | { | |
34650 | wxSize * resultptr; | |
34651 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34652 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34653 | } |
34654 | return resultobj; | |
34655 | fail: | |
34656 | return NULL; | |
34657 | } | |
34658 | ||
34659 | ||
34660 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34661 | PyObject *resultobj; | |
34662 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34663 | PyObject * obj0 = 0 ; | |
34664 | char *kwnames[] = { | |
34665 | (char *) "self", NULL | |
34666 | }; | |
34667 | ||
34668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34671 | { |
34672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34673 | (arg1)->Layout(); | |
34674 | ||
34675 | wxPyEndAllowThreads(__tstate); | |
34676 | if (PyErr_Occurred()) SWIG_fail; | |
34677 | } | |
34678 | Py_INCREF(Py_None); resultobj = Py_None; | |
34679 | return resultobj; | |
34680 | fail: | |
34681 | return NULL; | |
34682 | } | |
34683 | ||
34684 | ||
34685 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34686 | PyObject *resultobj; | |
34687 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34689 | wxSize result; | |
34690 | PyObject * obj0 = 0 ; | |
34691 | PyObject * obj1 = 0 ; | |
34692 | char *kwnames[] = { | |
34693 | (char *) "self",(char *) "window", NULL | |
34694 | }; | |
34695 | ||
34696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34701 | { |
34702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34703 | result = (arg1)->Fit(arg2); | |
34704 | ||
34705 | wxPyEndAllowThreads(__tstate); | |
34706 | if (PyErr_Occurred()) SWIG_fail; | |
34707 | } | |
34708 | { | |
34709 | wxSize * resultptr; | |
34710 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34711 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34712 | } |
34713 | return resultobj; | |
34714 | fail: | |
34715 | return NULL; | |
34716 | } | |
34717 | ||
34718 | ||
34719 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34720 | PyObject *resultobj; | |
34721 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34723 | PyObject * obj0 = 0 ; | |
34724 | PyObject * obj1 = 0 ; | |
34725 | char *kwnames[] = { | |
34726 | (char *) "self",(char *) "window", NULL | |
34727 | }; | |
34728 | ||
34729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34732 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34734 | { |
34735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34736 | (arg1)->FitInside(arg2); | |
34737 | ||
34738 | wxPyEndAllowThreads(__tstate); | |
34739 | if (PyErr_Occurred()) SWIG_fail; | |
34740 | } | |
34741 | Py_INCREF(Py_None); resultobj = Py_None; | |
34742 | return resultobj; | |
34743 | fail: | |
34744 | return NULL; | |
34745 | } | |
34746 | ||
34747 | ||
34748 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34749 | PyObject *resultobj; | |
34750 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34752 | PyObject * obj0 = 0 ; | |
34753 | PyObject * obj1 = 0 ; | |
34754 | char *kwnames[] = { | |
34755 | (char *) "self",(char *) "window", NULL | |
34756 | }; | |
34757 | ||
34758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34763 | { |
34764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34765 | (arg1)->SetSizeHints(arg2); | |
34766 | ||
34767 | wxPyEndAllowThreads(__tstate); | |
34768 | if (PyErr_Occurred()) SWIG_fail; | |
34769 | } | |
34770 | Py_INCREF(Py_None); resultobj = Py_None; | |
34771 | return resultobj; | |
34772 | fail: | |
34773 | return NULL; | |
34774 | } | |
34775 | ||
34776 | ||
34777 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34778 | PyObject *resultobj; | |
34779 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34780 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34781 | PyObject * obj0 = 0 ; | |
34782 | PyObject * obj1 = 0 ; | |
34783 | char *kwnames[] = { | |
34784 | (char *) "self",(char *) "window", NULL | |
34785 | }; | |
34786 | ||
34787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34792 | { |
34793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34794 | (arg1)->SetVirtualSizeHints(arg2); | |
34795 | ||
34796 | wxPyEndAllowThreads(__tstate); | |
34797 | if (PyErr_Occurred()) SWIG_fail; | |
34798 | } | |
34799 | Py_INCREF(Py_None); resultobj = Py_None; | |
34800 | return resultobj; | |
34801 | fail: | |
34802 | return NULL; | |
34803 | } | |
34804 | ||
34805 | ||
34806 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34807 | PyObject *resultobj; | |
34808 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 34809 | bool arg2 = (bool) False ; |
d14a1e28 RD |
34810 | PyObject * obj0 = 0 ; |
34811 | PyObject * obj1 = 0 ; | |
34812 | char *kwnames[] = { | |
34813 | (char *) "self",(char *) "delete_windows", NULL | |
34814 | }; | |
34815 | ||
34816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34819 | if (obj1) { |
2f4c0a16 RD |
34820 | arg2 = (bool) SWIG_AsBool(obj1); |
34821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34822 | } |
34823 | { | |
34824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34825 | (arg1)->Clear(arg2); | |
34826 | ||
34827 | wxPyEndAllowThreads(__tstate); | |
34828 | if (PyErr_Occurred()) SWIG_fail; | |
34829 | } | |
34830 | Py_INCREF(Py_None); resultobj = Py_None; | |
34831 | return resultobj; | |
34832 | fail: | |
34833 | return NULL; | |
34834 | } | |
34835 | ||
34836 | ||
34837 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34838 | PyObject *resultobj; | |
34839 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34840 | PyObject * obj0 = 0 ; | |
34841 | char *kwnames[] = { | |
34842 | (char *) "self", NULL | |
34843 | }; | |
34844 | ||
34845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34848 | { |
34849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34850 | (arg1)->DeleteWindows(); | |
34851 | ||
34852 | wxPyEndAllowThreads(__tstate); | |
34853 | if (PyErr_Occurred()) SWIG_fail; | |
34854 | } | |
34855 | Py_INCREF(Py_None); resultobj = Py_None; | |
34856 | return resultobj; | |
34857 | fail: | |
34858 | return NULL; | |
34859 | } | |
34860 | ||
34861 | ||
34862 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34863 | PyObject *resultobj; | |
34864 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34865 | PyObject *result; | |
34866 | PyObject * obj0 = 0 ; | |
34867 | char *kwnames[] = { | |
34868 | (char *) "self", NULL | |
34869 | }; | |
34870 | ||
34871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34874 | { |
34875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34876 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
34877 | ||
34878 | wxPyEndAllowThreads(__tstate); | |
34879 | if (PyErr_Occurred()) SWIG_fail; | |
34880 | } | |
34881 | resultobj = result; | |
34882 | return resultobj; | |
34883 | fail: | |
34884 | return NULL; | |
34885 | } | |
34886 | ||
34887 | ||
34888 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34889 | PyObject *resultobj; | |
34890 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34891 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 34892 | bool arg3 = (bool) True ; |
d14a1e28 RD |
34893 | PyObject * obj0 = 0 ; |
34894 | PyObject * obj1 = 0 ; | |
34895 | PyObject * obj2 = 0 ; | |
34896 | char *kwnames[] = { | |
34897 | (char *) "self",(char *) "item",(char *) "show", NULL | |
34898 | }; | |
34899 | ||
34900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34903 | arg2 = obj1; |
34904 | if (obj2) { | |
2f4c0a16 RD |
34905 | arg3 = (bool) SWIG_AsBool(obj2); |
34906 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34907 | } |
34908 | { | |
34909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34910 | wxSizer_Show(arg1,arg2,arg3); | |
34911 | ||
34912 | wxPyEndAllowThreads(__tstate); | |
34913 | if (PyErr_Occurred()) SWIG_fail; | |
34914 | } | |
34915 | Py_INCREF(Py_None); resultobj = Py_None; | |
34916 | return resultobj; | |
34917 | fail: | |
34918 | return NULL; | |
34919 | } | |
34920 | ||
34921 | ||
34922 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34923 | PyObject *resultobj; | |
34924 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34925 | PyObject *arg2 = (PyObject *) 0 ; | |
34926 | PyObject * obj0 = 0 ; | |
34927 | PyObject * obj1 = 0 ; | |
34928 | char *kwnames[] = { | |
34929 | (char *) "self",(char *) "item", NULL | |
34930 | }; | |
34931 | ||
34932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34935 | arg2 = obj1; |
34936 | { | |
34937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34938 | wxSizer_Hide(arg1,arg2); | |
34939 | ||
34940 | wxPyEndAllowThreads(__tstate); | |
34941 | if (PyErr_Occurred()) SWIG_fail; | |
34942 | } | |
34943 | Py_INCREF(Py_None); resultobj = Py_None; | |
34944 | return resultobj; | |
34945 | fail: | |
34946 | return NULL; | |
34947 | } | |
34948 | ||
34949 | ||
34950 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34951 | PyObject *resultobj; | |
34952 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34953 | PyObject *arg2 = (PyObject *) 0 ; | |
34954 | bool result; | |
34955 | PyObject * obj0 = 0 ; | |
34956 | PyObject * obj1 = 0 ; | |
34957 | char *kwnames[] = { | |
34958 | (char *) "self",(char *) "item", NULL | |
34959 | }; | |
34960 | ||
34961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34964 | arg2 = obj1; |
34965 | { | |
34966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34967 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
34968 | ||
34969 | wxPyEndAllowThreads(__tstate); | |
34970 | if (PyErr_Occurred()) SWIG_fail; | |
34971 | } | |
4f89f6a3 RD |
34972 | { |
34973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34974 | } | |
d14a1e28 RD |
34975 | return resultobj; |
34976 | fail: | |
34977 | return NULL; | |
34978 | } | |
34979 | ||
34980 | ||
34981 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34982 | PyObject *resultobj; | |
34983 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34984 | bool arg2 ; | |
34985 | PyObject * obj0 = 0 ; | |
34986 | PyObject * obj1 = 0 ; | |
34987 | char *kwnames[] = { | |
34988 | (char *) "self",(char *) "show", NULL | |
34989 | }; | |
34990 | ||
34991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34994 | arg2 = (bool) SWIG_AsBool(obj1); | |
34995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34996 | { |
34997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34998 | (arg1)->ShowItems(arg2); | |
34999 | ||
35000 | wxPyEndAllowThreads(__tstate); | |
35001 | if (PyErr_Occurred()) SWIG_fail; | |
35002 | } | |
35003 | Py_INCREF(Py_None); resultobj = Py_None; | |
35004 | return resultobj; | |
35005 | fail: | |
35006 | return NULL; | |
35007 | } | |
35008 | ||
35009 | ||
35010 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35011 | PyObject *obj; | |
35012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35013 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35014 | Py_INCREF(obj); | |
35015 | return Py_BuildValue((char *)""); | |
35016 | } | |
35017 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35018 | PyObject *resultobj; | |
35019 | wxPySizer *result; | |
35020 | char *kwnames[] = { | |
35021 | NULL | |
35022 | }; | |
35023 | ||
35024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35025 | { | |
35026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35027 | result = (wxPySizer *)new wxPySizer(); | |
35028 | ||
35029 | wxPyEndAllowThreads(__tstate); | |
35030 | if (PyErr_Occurred()) SWIG_fail; | |
35031 | } | |
2f4c0a16 | 35032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35033 | return resultobj; |
35034 | fail: | |
35035 | return NULL; | |
35036 | } | |
35037 | ||
35038 | ||
35039 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35040 | PyObject *resultobj; | |
35041 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35042 | PyObject *arg2 = (PyObject *) 0 ; | |
35043 | PyObject *arg3 = (PyObject *) 0 ; | |
35044 | PyObject * obj0 = 0 ; | |
35045 | PyObject * obj1 = 0 ; | |
35046 | PyObject * obj2 = 0 ; | |
35047 | char *kwnames[] = { | |
35048 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35049 | }; | |
35050 | ||
35051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
35052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35054 | arg2 = obj1; |
35055 | arg3 = obj2; | |
35056 | { | |
35057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35058 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35059 | ||
35060 | wxPyEndAllowThreads(__tstate); | |
35061 | if (PyErr_Occurred()) SWIG_fail; | |
35062 | } | |
35063 | Py_INCREF(Py_None); resultobj = Py_None; | |
35064 | return resultobj; | |
35065 | fail: | |
35066 | return NULL; | |
35067 | } | |
35068 | ||
35069 | ||
35070 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35071 | PyObject *obj; | |
35072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35073 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35074 | Py_INCREF(obj); | |
35075 | return Py_BuildValue((char *)""); | |
35076 | } | |
35077 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35078 | PyObject *resultobj; | |
35079 | int arg1 = (int) wxHORIZONTAL ; | |
35080 | wxBoxSizer *result; | |
8edf1c75 | 35081 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35082 | char *kwnames[] = { |
35083 | (char *) "orient", NULL | |
35084 | }; | |
35085 | ||
8edf1c75 RD |
35086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35087 | if (obj0) { | |
2f4c0a16 RD |
35088 | arg1 = (int) SWIG_AsInt(obj0); |
35089 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35090 | } |
d14a1e28 RD |
35091 | { |
35092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35093 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35094 | ||
35095 | wxPyEndAllowThreads(__tstate); | |
35096 | if (PyErr_Occurred()) SWIG_fail; | |
35097 | } | |
2f4c0a16 | 35098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35099 | return resultobj; |
35100 | fail: | |
35101 | return NULL; | |
35102 | } | |
35103 | ||
35104 | ||
35105 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35106 | PyObject *resultobj; | |
35107 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35108 | int result; | |
35109 | PyObject * obj0 = 0 ; | |
35110 | char *kwnames[] = { | |
35111 | (char *) "self", NULL | |
35112 | }; | |
35113 | ||
35114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35117 | { |
35118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35119 | result = (int)(arg1)->GetOrientation(); | |
35120 | ||
35121 | wxPyEndAllowThreads(__tstate); | |
35122 | if (PyErr_Occurred()) SWIG_fail; | |
35123 | } | |
2f4c0a16 | 35124 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35125 | return resultobj; |
35126 | fail: | |
35127 | return NULL; | |
35128 | } | |
35129 | ||
35130 | ||
35131 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35132 | PyObject *resultobj; | |
35133 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35134 | int arg2 ; | |
35135 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35137 | char *kwnames[] = { |
35138 | (char *) "self",(char *) "orient", NULL | |
35139 | }; | |
35140 | ||
8edf1c75 | 35141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35144 | arg2 = (int) SWIG_AsInt(obj1); | |
35145 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35146 | { |
35147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35148 | (arg1)->SetOrientation(arg2); | |
35149 | ||
35150 | wxPyEndAllowThreads(__tstate); | |
35151 | if (PyErr_Occurred()) SWIG_fail; | |
35152 | } | |
35153 | Py_INCREF(Py_None); resultobj = Py_None; | |
35154 | return resultobj; | |
35155 | fail: | |
35156 | return NULL; | |
35157 | } | |
35158 | ||
35159 | ||
35160 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35161 | PyObject *resultobj; | |
35162 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35163 | PyObject * obj0 = 0 ; | |
35164 | char *kwnames[] = { | |
35165 | (char *) "self", NULL | |
35166 | }; | |
35167 | ||
35168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35171 | { |
35172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35173 | (arg1)->RecalcSizes(); | |
35174 | ||
35175 | wxPyEndAllowThreads(__tstate); | |
35176 | if (PyErr_Occurred()) SWIG_fail; | |
35177 | } | |
35178 | Py_INCREF(Py_None); resultobj = Py_None; | |
35179 | return resultobj; | |
35180 | fail: | |
35181 | return NULL; | |
35182 | } | |
35183 | ||
35184 | ||
35185 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35186 | PyObject *resultobj; | |
35187 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35188 | wxSize result; | |
35189 | PyObject * obj0 = 0 ; | |
35190 | char *kwnames[] = { | |
35191 | (char *) "self", NULL | |
35192 | }; | |
35193 | ||
35194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35197 | { |
35198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35199 | result = (arg1)->CalcMin(); | |
35200 | ||
35201 | wxPyEndAllowThreads(__tstate); | |
35202 | if (PyErr_Occurred()) SWIG_fail; | |
35203 | } | |
35204 | { | |
35205 | wxSize * resultptr; | |
35206 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35208 | } |
35209 | return resultobj; | |
35210 | fail: | |
35211 | return NULL; | |
35212 | } | |
35213 | ||
35214 | ||
35215 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35216 | PyObject *obj; | |
35217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35218 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35219 | Py_INCREF(obj); | |
35220 | return Py_BuildValue((char *)""); | |
35221 | } | |
35222 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35223 | PyObject *resultobj; | |
35224 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35225 | int arg2 = (int) wxHORIZONTAL ; | |
35226 | wxStaticBoxSizer *result; | |
35227 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35229 | char *kwnames[] = { |
35230 | (char *) "box",(char *) "orient", NULL | |
35231 | }; | |
35232 | ||
8edf1c75 | 35233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
35235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 35236 | if (obj1) { |
2f4c0a16 RD |
35237 | arg2 = (int) SWIG_AsInt(obj1); |
35238 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35239 | } |
d14a1e28 RD |
35240 | { |
35241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35242 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35243 | ||
35244 | wxPyEndAllowThreads(__tstate); | |
35245 | if (PyErr_Occurred()) SWIG_fail; | |
35246 | } | |
2f4c0a16 | 35247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
35248 | return resultobj; |
35249 | fail: | |
35250 | return NULL; | |
35251 | } | |
35252 | ||
35253 | ||
35254 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35255 | PyObject *resultobj; | |
35256 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35257 | wxStaticBox *result; | |
35258 | PyObject * obj0 = 0 ; | |
35259 | char *kwnames[] = { | |
35260 | (char *) "self", NULL | |
35261 | }; | |
35262 | ||
35263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35266 | { |
35267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35268 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35269 | ||
35270 | wxPyEndAllowThreads(__tstate); | |
35271 | if (PyErr_Occurred()) SWIG_fail; | |
35272 | } | |
35273 | { | |
35274 | resultobj = wxPyMake_wxObject(result); | |
35275 | } | |
35276 | return resultobj; | |
35277 | fail: | |
35278 | return NULL; | |
35279 | } | |
35280 | ||
35281 | ||
35282 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35283 | PyObject *resultobj; | |
35284 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35285 | PyObject * obj0 = 0 ; | |
35286 | char *kwnames[] = { | |
35287 | (char *) "self", NULL | |
35288 | }; | |
35289 | ||
35290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35293 | { |
35294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35295 | (arg1)->RecalcSizes(); | |
35296 | ||
35297 | wxPyEndAllowThreads(__tstate); | |
35298 | if (PyErr_Occurred()) SWIG_fail; | |
35299 | } | |
35300 | Py_INCREF(Py_None); resultobj = Py_None; | |
35301 | return resultobj; | |
35302 | fail: | |
35303 | return NULL; | |
35304 | } | |
35305 | ||
35306 | ||
35307 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35308 | PyObject *resultobj; | |
35309 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35310 | wxSize result; | |
35311 | PyObject * obj0 = 0 ; | |
35312 | char *kwnames[] = { | |
35313 | (char *) "self", NULL | |
35314 | }; | |
35315 | ||
35316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35319 | { |
35320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35321 | result = (arg1)->CalcMin(); | |
35322 | ||
35323 | wxPyEndAllowThreads(__tstate); | |
35324 | if (PyErr_Occurred()) SWIG_fail; | |
35325 | } | |
35326 | { | |
35327 | wxSize * resultptr; | |
35328 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35330 | } |
35331 | return resultobj; | |
35332 | fail: | |
35333 | return NULL; | |
35334 | } | |
35335 | ||
35336 | ||
35337 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35338 | PyObject *obj; | |
35339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35340 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35341 | Py_INCREF(obj); | |
35342 | return Py_BuildValue((char *)""); | |
35343 | } | |
35344 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35345 | PyObject *resultobj; | |
35346 | int arg1 = (int) 1 ; | |
35347 | int arg2 = (int) 0 ; | |
35348 | int arg3 = (int) 0 ; | |
35349 | int arg4 = (int) 0 ; | |
35350 | wxGridSizer *result; | |
8edf1c75 RD |
35351 | PyObject * obj0 = 0 ; |
35352 | PyObject * obj1 = 0 ; | |
35353 | PyObject * obj2 = 0 ; | |
35354 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35355 | char *kwnames[] = { |
35356 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35357 | }; | |
35358 | ||
8edf1c75 RD |
35359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35360 | if (obj0) { | |
2f4c0a16 RD |
35361 | arg1 = (int) SWIG_AsInt(obj0); |
35362 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35363 | } |
35364 | if (obj1) { | |
2f4c0a16 RD |
35365 | arg2 = (int) SWIG_AsInt(obj1); |
35366 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35367 | } |
35368 | if (obj2) { | |
2f4c0a16 RD |
35369 | arg3 = (int) SWIG_AsInt(obj2); |
35370 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35371 | } |
35372 | if (obj3) { | |
2f4c0a16 RD |
35373 | arg4 = (int) SWIG_AsInt(obj3); |
35374 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35375 | } |
d14a1e28 RD |
35376 | { |
35377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35378 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35379 | ||
35380 | wxPyEndAllowThreads(__tstate); | |
35381 | if (PyErr_Occurred()) SWIG_fail; | |
35382 | } | |
2f4c0a16 | 35383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
35384 | return resultobj; |
35385 | fail: | |
35386 | return NULL; | |
35387 | } | |
35388 | ||
35389 | ||
35390 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35391 | PyObject *resultobj; | |
35392 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35393 | PyObject * obj0 = 0 ; | |
35394 | char *kwnames[] = { | |
35395 | (char *) "self", NULL | |
35396 | }; | |
35397 | ||
35398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35401 | { |
35402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35403 | (arg1)->RecalcSizes(); | |
35404 | ||
35405 | wxPyEndAllowThreads(__tstate); | |
35406 | if (PyErr_Occurred()) SWIG_fail; | |
35407 | } | |
35408 | Py_INCREF(Py_None); resultobj = Py_None; | |
35409 | return resultobj; | |
35410 | fail: | |
35411 | return NULL; | |
35412 | } | |
35413 | ||
35414 | ||
35415 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35416 | PyObject *resultobj; | |
35417 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35418 | wxSize result; | |
35419 | PyObject * obj0 = 0 ; | |
35420 | char *kwnames[] = { | |
35421 | (char *) "self", NULL | |
35422 | }; | |
35423 | ||
35424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35427 | { |
35428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35429 | result = (arg1)->CalcMin(); | |
35430 | ||
35431 | wxPyEndAllowThreads(__tstate); | |
35432 | if (PyErr_Occurred()) SWIG_fail; | |
35433 | } | |
35434 | { | |
35435 | wxSize * resultptr; | |
35436 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35437 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35438 | } |
35439 | return resultobj; | |
35440 | fail: | |
35441 | return NULL; | |
35442 | } | |
35443 | ||
35444 | ||
35445 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35446 | PyObject *resultobj; | |
35447 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35448 | int arg2 ; | |
35449 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35450 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35451 | char *kwnames[] = { |
35452 | (char *) "self",(char *) "cols", NULL | |
35453 | }; | |
35454 | ||
8edf1c75 | 35455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35458 | arg2 = (int) SWIG_AsInt(obj1); | |
35459 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35460 | { |
35461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35462 | (arg1)->SetCols(arg2); | |
35463 | ||
35464 | wxPyEndAllowThreads(__tstate); | |
35465 | if (PyErr_Occurred()) SWIG_fail; | |
35466 | } | |
35467 | Py_INCREF(Py_None); resultobj = Py_None; | |
35468 | return resultobj; | |
35469 | fail: | |
35470 | return NULL; | |
35471 | } | |
35472 | ||
35473 | ||
35474 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35475 | PyObject *resultobj; | |
35476 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35477 | int arg2 ; | |
35478 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35480 | char *kwnames[] = { |
35481 | (char *) "self",(char *) "rows", NULL | |
35482 | }; | |
35483 | ||
8edf1c75 | 35484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35487 | arg2 = (int) SWIG_AsInt(obj1); | |
35488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35489 | { |
35490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35491 | (arg1)->SetRows(arg2); | |
35492 | ||
35493 | wxPyEndAllowThreads(__tstate); | |
35494 | if (PyErr_Occurred()) SWIG_fail; | |
35495 | } | |
35496 | Py_INCREF(Py_None); resultobj = Py_None; | |
35497 | return resultobj; | |
35498 | fail: | |
35499 | return NULL; | |
35500 | } | |
35501 | ||
35502 | ||
35503 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35504 | PyObject *resultobj; | |
35505 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35506 | int arg2 ; | |
35507 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35509 | char *kwnames[] = { |
35510 | (char *) "self",(char *) "gap", NULL | |
35511 | }; | |
35512 | ||
8edf1c75 | 35513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35516 | arg2 = (int) SWIG_AsInt(obj1); | |
35517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35518 | { |
35519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35520 | (arg1)->SetVGap(arg2); | |
35521 | ||
35522 | wxPyEndAllowThreads(__tstate); | |
35523 | if (PyErr_Occurred()) SWIG_fail; | |
35524 | } | |
35525 | Py_INCREF(Py_None); resultobj = Py_None; | |
35526 | return resultobj; | |
35527 | fail: | |
35528 | return NULL; | |
35529 | } | |
35530 | ||
35531 | ||
35532 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35533 | PyObject *resultobj; | |
35534 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35535 | int arg2 ; | |
35536 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35537 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35538 | char *kwnames[] = { |
35539 | (char *) "self",(char *) "gap", NULL | |
35540 | }; | |
35541 | ||
8edf1c75 | 35542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35545 | arg2 = (int) SWIG_AsInt(obj1); | |
35546 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35547 | { |
35548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35549 | (arg1)->SetHGap(arg2); | |
35550 | ||
35551 | wxPyEndAllowThreads(__tstate); | |
35552 | if (PyErr_Occurred()) SWIG_fail; | |
35553 | } | |
35554 | Py_INCREF(Py_None); resultobj = Py_None; | |
35555 | return resultobj; | |
35556 | fail: | |
35557 | return NULL; | |
35558 | } | |
35559 | ||
35560 | ||
35561 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35562 | PyObject *resultobj; | |
35563 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35564 | int result; | |
35565 | PyObject * obj0 = 0 ; | |
35566 | char *kwnames[] = { | |
35567 | (char *) "self", NULL | |
35568 | }; | |
35569 | ||
35570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35573 | { |
35574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35575 | result = (int)(arg1)->GetCols(); | |
35576 | ||
35577 | wxPyEndAllowThreads(__tstate); | |
35578 | if (PyErr_Occurred()) SWIG_fail; | |
35579 | } | |
2f4c0a16 | 35580 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35581 | return resultobj; |
35582 | fail: | |
35583 | return NULL; | |
35584 | } | |
35585 | ||
35586 | ||
35587 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35588 | PyObject *resultobj; | |
35589 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35590 | int result; | |
35591 | PyObject * obj0 = 0 ; | |
35592 | char *kwnames[] = { | |
35593 | (char *) "self", NULL | |
35594 | }; | |
35595 | ||
35596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35599 | { |
35600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35601 | result = (int)(arg1)->GetRows(); | |
35602 | ||
35603 | wxPyEndAllowThreads(__tstate); | |
35604 | if (PyErr_Occurred()) SWIG_fail; | |
35605 | } | |
2f4c0a16 | 35606 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35607 | return resultobj; |
35608 | fail: | |
35609 | return NULL; | |
35610 | } | |
35611 | ||
35612 | ||
35613 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35614 | PyObject *resultobj; | |
35615 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35616 | int result; | |
35617 | PyObject * obj0 = 0 ; | |
35618 | char *kwnames[] = { | |
35619 | (char *) "self", NULL | |
35620 | }; | |
35621 | ||
35622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35625 | { |
35626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35627 | result = (int)(arg1)->GetVGap(); | |
35628 | ||
35629 | wxPyEndAllowThreads(__tstate); | |
35630 | if (PyErr_Occurred()) SWIG_fail; | |
35631 | } | |
2f4c0a16 | 35632 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35633 | return resultobj; |
35634 | fail: | |
35635 | return NULL; | |
35636 | } | |
35637 | ||
35638 | ||
35639 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35640 | PyObject *resultobj; | |
35641 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35642 | int result; | |
35643 | PyObject * obj0 = 0 ; | |
35644 | char *kwnames[] = { | |
35645 | (char *) "self", NULL | |
35646 | }; | |
35647 | ||
35648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35651 | { |
35652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35653 | result = (int)(arg1)->GetHGap(); | |
35654 | ||
35655 | wxPyEndAllowThreads(__tstate); | |
35656 | if (PyErr_Occurred()) SWIG_fail; | |
35657 | } | |
2f4c0a16 | 35658 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35659 | return resultobj; |
35660 | fail: | |
35661 | return NULL; | |
35662 | } | |
35663 | ||
35664 | ||
35665 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
35666 | PyObject *obj; | |
35667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35668 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
35669 | Py_INCREF(obj); | |
35670 | return Py_BuildValue((char *)""); | |
35671 | } | |
35672 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35673 | PyObject *resultobj; | |
35674 | int arg1 = (int) 1 ; | |
35675 | int arg2 = (int) 0 ; | |
35676 | int arg3 = (int) 0 ; | |
35677 | int arg4 = (int) 0 ; | |
35678 | wxFlexGridSizer *result; | |
8edf1c75 RD |
35679 | PyObject * obj0 = 0 ; |
35680 | PyObject * obj1 = 0 ; | |
35681 | PyObject * obj2 = 0 ; | |
35682 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35683 | char *kwnames[] = { |
35684 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35685 | }; | |
35686 | ||
8edf1c75 RD |
35687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35688 | if (obj0) { | |
2f4c0a16 RD |
35689 | arg1 = (int) SWIG_AsInt(obj0); |
35690 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35691 | } |
35692 | if (obj1) { | |
2f4c0a16 RD |
35693 | arg2 = (int) SWIG_AsInt(obj1); |
35694 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35695 | } |
35696 | if (obj2) { | |
2f4c0a16 RD |
35697 | arg3 = (int) SWIG_AsInt(obj2); |
35698 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35699 | } |
35700 | if (obj3) { | |
2f4c0a16 RD |
35701 | arg4 = (int) SWIG_AsInt(obj3); |
35702 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35703 | } |
d14a1e28 RD |
35704 | { |
35705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35706 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
35707 | ||
35708 | wxPyEndAllowThreads(__tstate); | |
35709 | if (PyErr_Occurred()) SWIG_fail; | |
35710 | } | |
2f4c0a16 | 35711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
35712 | return resultobj; |
35713 | fail: | |
35714 | return NULL; | |
35715 | } | |
35716 | ||
35717 | ||
35718 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35719 | PyObject *resultobj; | |
35720 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35721 | PyObject * obj0 = 0 ; | |
35722 | char *kwnames[] = { | |
35723 | (char *) "self", NULL | |
35724 | }; | |
35725 | ||
35726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35729 | { |
35730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35731 | (arg1)->RecalcSizes(); | |
35732 | ||
35733 | wxPyEndAllowThreads(__tstate); | |
35734 | if (PyErr_Occurred()) SWIG_fail; | |
35735 | } | |
35736 | Py_INCREF(Py_None); resultobj = Py_None; | |
35737 | return resultobj; | |
35738 | fail: | |
35739 | return NULL; | |
35740 | } | |
35741 | ||
35742 | ||
35743 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35744 | PyObject *resultobj; | |
35745 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35746 | wxSize result; | |
35747 | PyObject * obj0 = 0 ; | |
35748 | char *kwnames[] = { | |
35749 | (char *) "self", NULL | |
35750 | }; | |
35751 | ||
35752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35755 | { |
35756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35757 | result = (arg1)->CalcMin(); | |
35758 | ||
35759 | wxPyEndAllowThreads(__tstate); | |
35760 | if (PyErr_Occurred()) SWIG_fail; | |
35761 | } | |
35762 | { | |
35763 | wxSize * resultptr; | |
35764 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35766 | } |
35767 | return resultobj; | |
35768 | fail: | |
35769 | return NULL; | |
35770 | } | |
35771 | ||
35772 | ||
35773 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35774 | PyObject *resultobj; | |
35775 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35776 | size_t arg2 ; | |
35777 | int arg3 = (int) 0 ; | |
35778 | PyObject * obj0 = 0 ; | |
35779 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35780 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35781 | char *kwnames[] = { |
35782 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35783 | }; | |
35784 | ||
8edf1c75 | 35785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35788 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35789 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35790 | if (obj2) { |
2f4c0a16 RD |
35791 | arg3 = (int) SWIG_AsInt(obj2); |
35792 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35793 | } |
d14a1e28 RD |
35794 | { |
35795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35796 | (arg1)->AddGrowableRow(arg2,arg3); | |
35797 | ||
35798 | wxPyEndAllowThreads(__tstate); | |
35799 | if (PyErr_Occurred()) SWIG_fail; | |
35800 | } | |
35801 | Py_INCREF(Py_None); resultobj = Py_None; | |
35802 | return resultobj; | |
35803 | fail: | |
35804 | return NULL; | |
35805 | } | |
35806 | ||
35807 | ||
35808 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35809 | PyObject *resultobj; | |
35810 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35811 | size_t arg2 ; | |
35812 | PyObject * obj0 = 0 ; | |
35813 | PyObject * obj1 = 0 ; | |
35814 | char *kwnames[] = { | |
35815 | (char *) "self",(char *) "idx", NULL | |
35816 | }; | |
35817 | ||
35818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35821 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35823 | { |
35824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35825 | (arg1)->RemoveGrowableRow(arg2); | |
35826 | ||
35827 | wxPyEndAllowThreads(__tstate); | |
35828 | if (PyErr_Occurred()) SWIG_fail; | |
35829 | } | |
35830 | Py_INCREF(Py_None); resultobj = Py_None; | |
35831 | return resultobj; | |
35832 | fail: | |
35833 | return NULL; | |
35834 | } | |
35835 | ||
35836 | ||
35837 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35838 | PyObject *resultobj; | |
35839 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35840 | size_t arg2 ; | |
35841 | int arg3 = (int) 0 ; | |
35842 | PyObject * obj0 = 0 ; | |
35843 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35844 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35845 | char *kwnames[] = { |
35846 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35847 | }; | |
35848 | ||
8edf1c75 | 35849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35852 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35853 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35854 | if (obj2) { |
2f4c0a16 RD |
35855 | arg3 = (int) SWIG_AsInt(obj2); |
35856 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35857 | } |
d14a1e28 RD |
35858 | { |
35859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35860 | (arg1)->AddGrowableCol(arg2,arg3); | |
35861 | ||
35862 | wxPyEndAllowThreads(__tstate); | |
35863 | if (PyErr_Occurred()) SWIG_fail; | |
35864 | } | |
35865 | Py_INCREF(Py_None); resultobj = Py_None; | |
35866 | return resultobj; | |
35867 | fail: | |
35868 | return NULL; | |
35869 | } | |
35870 | ||
35871 | ||
35872 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35873 | PyObject *resultobj; | |
35874 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35875 | size_t arg2 ; | |
35876 | PyObject * obj0 = 0 ; | |
35877 | PyObject * obj1 = 0 ; | |
35878 | char *kwnames[] = { | |
35879 | (char *) "self",(char *) "idx", NULL | |
35880 | }; | |
35881 | ||
35882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35885 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35886 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35887 | { |
35888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35889 | (arg1)->RemoveGrowableCol(arg2); | |
35890 | ||
35891 | wxPyEndAllowThreads(__tstate); | |
35892 | if (PyErr_Occurred()) SWIG_fail; | |
35893 | } | |
35894 | Py_INCREF(Py_None); resultobj = Py_None; | |
35895 | return resultobj; | |
35896 | fail: | |
35897 | return NULL; | |
35898 | } | |
35899 | ||
35900 | ||
35901 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35902 | PyObject *resultobj; | |
35903 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35904 | int arg2 ; | |
35905 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35906 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35907 | char *kwnames[] = { |
35908 | (char *) "self",(char *) "direction", NULL | |
35909 | }; | |
35910 | ||
8edf1c75 | 35911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35914 | arg2 = (int) SWIG_AsInt(obj1); | |
35915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35916 | { |
35917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35918 | (arg1)->SetFlexibleDirection(arg2); | |
35919 | ||
35920 | wxPyEndAllowThreads(__tstate); | |
35921 | if (PyErr_Occurred()) SWIG_fail; | |
35922 | } | |
35923 | Py_INCREF(Py_None); resultobj = Py_None; | |
35924 | return resultobj; | |
35925 | fail: | |
35926 | return NULL; | |
35927 | } | |
35928 | ||
35929 | ||
35930 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35931 | PyObject *resultobj; | |
35932 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35933 | int result; | |
35934 | PyObject * obj0 = 0 ; | |
35935 | char *kwnames[] = { | |
35936 | (char *) "self", NULL | |
35937 | }; | |
35938 | ||
35939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35942 | { |
35943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35944 | result = (int)(arg1)->GetFlexibleDirection(); | |
35945 | ||
35946 | wxPyEndAllowThreads(__tstate); | |
35947 | if (PyErr_Occurred()) SWIG_fail; | |
35948 | } | |
2f4c0a16 | 35949 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35950 | return resultobj; |
35951 | fail: | |
35952 | return NULL; | |
35953 | } | |
35954 | ||
35955 | ||
35956 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35957 | PyObject *resultobj; | |
35958 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35959 | int arg2 ; | |
35960 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35962 | char *kwnames[] = { |
35963 | (char *) "self",(char *) "mode", NULL | |
35964 | }; | |
35965 | ||
8edf1c75 | 35966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35969 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
35970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35971 | { |
35972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35973 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35974 | ||
35975 | wxPyEndAllowThreads(__tstate); | |
35976 | if (PyErr_Occurred()) SWIG_fail; | |
35977 | } | |
35978 | Py_INCREF(Py_None); resultobj = Py_None; | |
35979 | return resultobj; | |
35980 | fail: | |
35981 | return NULL; | |
35982 | } | |
35983 | ||
35984 | ||
35985 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35986 | PyObject *resultobj; | |
35987 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35988 | int result; | |
35989 | PyObject * obj0 = 0 ; | |
35990 | char *kwnames[] = { | |
35991 | (char *) "self", NULL | |
35992 | }; | |
35993 | ||
35994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35997 | { |
35998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35999 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36000 | ||
36001 | wxPyEndAllowThreads(__tstate); | |
36002 | if (PyErr_Occurred()) SWIG_fail; | |
36003 | } | |
2f4c0a16 | 36004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36005 | return resultobj; |
36006 | fail: | |
36007 | return NULL; | |
36008 | } | |
36009 | ||
36010 | ||
423f194a RD |
36011 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36012 | PyObject *resultobj; | |
36013 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36014 | wxArrayInt *result; | |
36015 | PyObject * obj0 = 0 ; | |
36016 | char *kwnames[] = { | |
36017 | (char *) "self", NULL | |
36018 | }; | |
36019 | ||
36020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
36023 | { |
36024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36025 | { | |
36026 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36027 | result = (wxArrayInt *) &_result_ref; | |
36028 | } | |
36029 | ||
36030 | wxPyEndAllowThreads(__tstate); | |
36031 | if (PyErr_Occurred()) SWIG_fail; | |
36032 | } | |
36033 | { | |
36034 | resultobj = PyList_New(0); | |
36035 | size_t idx; | |
36036 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36037 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36038 | PyList_Append(resultobj, val); | |
36039 | Py_DECREF(val); | |
36040 | } | |
36041 | } | |
36042 | return resultobj; | |
36043 | fail: | |
36044 | return NULL; | |
36045 | } | |
36046 | ||
36047 | ||
36048 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36049 | PyObject *resultobj; | |
36050 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36051 | wxArrayInt *result; | |
36052 | PyObject * obj0 = 0 ; | |
36053 | char *kwnames[] = { | |
36054 | (char *) "self", NULL | |
36055 | }; | |
36056 | ||
36057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
36060 | { |
36061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36062 | { | |
36063 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36064 | result = (wxArrayInt *) &_result_ref; | |
36065 | } | |
36066 | ||
36067 | wxPyEndAllowThreads(__tstate); | |
36068 | if (PyErr_Occurred()) SWIG_fail; | |
36069 | } | |
36070 | { | |
36071 | resultobj = PyList_New(0); | |
36072 | size_t idx; | |
36073 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36074 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36075 | PyList_Append(resultobj, val); | |
36076 | Py_DECREF(val); | |
36077 | } | |
36078 | } | |
36079 | return resultobj; | |
36080 | fail: | |
36081 | return NULL; | |
36082 | } | |
36083 | ||
36084 | ||
d14a1e28 RD |
36085 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36086 | PyObject *obj; | |
36087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36088 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36089 | Py_INCREF(obj); | |
36090 | return Py_BuildValue((char *)""); | |
36091 | } | |
36092 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36093 | PyObject *resultobj; | |
36094 | int arg1 = (int) 0 ; | |
36095 | int arg2 = (int) 0 ; | |
36096 | wxGBPosition *result; | |
8edf1c75 RD |
36097 | PyObject * obj0 = 0 ; |
36098 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36099 | char *kwnames[] = { |
36100 | (char *) "row",(char *) "col", NULL | |
36101 | }; | |
36102 | ||
8edf1c75 RD |
36103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36104 | if (obj0) { | |
2f4c0a16 RD |
36105 | arg1 = (int) SWIG_AsInt(obj0); |
36106 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36107 | } |
36108 | if (obj1) { | |
2f4c0a16 RD |
36109 | arg2 = (int) SWIG_AsInt(obj1); |
36110 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36111 | } |
d14a1e28 RD |
36112 | { |
36113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36114 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36115 | ||
36116 | wxPyEndAllowThreads(__tstate); | |
36117 | if (PyErr_Occurred()) SWIG_fail; | |
36118 | } | |
2f4c0a16 | 36119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36120 | return resultobj; |
36121 | fail: | |
36122 | return NULL; | |
36123 | } | |
36124 | ||
36125 | ||
36126 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36127 | PyObject *resultobj; | |
36128 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36129 | int result; | |
36130 | PyObject * obj0 = 0 ; | |
36131 | char *kwnames[] = { | |
36132 | (char *) "self", NULL | |
36133 | }; | |
36134 | ||
36135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36138 | { |
36139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36140 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36141 | ||
36142 | wxPyEndAllowThreads(__tstate); | |
36143 | if (PyErr_Occurred()) SWIG_fail; | |
36144 | } | |
2f4c0a16 | 36145 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36146 | return resultobj; |
36147 | fail: | |
36148 | return NULL; | |
36149 | } | |
36150 | ||
36151 | ||
36152 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36153 | PyObject *resultobj; | |
36154 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36155 | int result; | |
36156 | PyObject * obj0 = 0 ; | |
36157 | char *kwnames[] = { | |
36158 | (char *) "self", NULL | |
36159 | }; | |
36160 | ||
36161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36164 | { |
36165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36166 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36167 | ||
36168 | wxPyEndAllowThreads(__tstate); | |
36169 | if (PyErr_Occurred()) SWIG_fail; | |
36170 | } | |
2f4c0a16 | 36171 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36172 | return resultobj; |
36173 | fail: | |
36174 | return NULL; | |
36175 | } | |
36176 | ||
36177 | ||
36178 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36179 | PyObject *resultobj; | |
36180 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36181 | int arg2 ; | |
36182 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36184 | char *kwnames[] = { |
36185 | (char *) "self",(char *) "row", NULL | |
36186 | }; | |
36187 | ||
8edf1c75 | 36188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36191 | arg2 = (int) SWIG_AsInt(obj1); | |
36192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36193 | { |
36194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36195 | (arg1)->SetRow(arg2); | |
36196 | ||
36197 | wxPyEndAllowThreads(__tstate); | |
36198 | if (PyErr_Occurred()) SWIG_fail; | |
36199 | } | |
36200 | Py_INCREF(Py_None); resultobj = Py_None; | |
36201 | return resultobj; | |
36202 | fail: | |
36203 | return NULL; | |
36204 | } | |
36205 | ||
36206 | ||
36207 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36208 | PyObject *resultobj; | |
36209 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36210 | int arg2 ; | |
36211 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36213 | char *kwnames[] = { |
36214 | (char *) "self",(char *) "col", NULL | |
36215 | }; | |
36216 | ||
8edf1c75 | 36217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36220 | arg2 = (int) SWIG_AsInt(obj1); | |
36221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36222 | { |
36223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36224 | (arg1)->SetCol(arg2); | |
36225 | ||
36226 | wxPyEndAllowThreads(__tstate); | |
36227 | if (PyErr_Occurred()) SWIG_fail; | |
36228 | } | |
36229 | Py_INCREF(Py_None); resultobj = Py_None; | |
36230 | return resultobj; | |
36231 | fail: | |
36232 | return NULL; | |
36233 | } | |
36234 | ||
36235 | ||
36236 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36237 | PyObject *resultobj; | |
36238 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36239 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36240 | bool result; |
4f89f6a3 | 36241 | wxGBPosition temp2 ; |
d14a1e28 RD |
36242 | PyObject * obj0 = 0 ; |
36243 | PyObject * obj1 = 0 ; | |
36244 | char *kwnames[] = { | |
328fcd84 | 36245 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36246 | }; |
36247 | ||
36248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36251 | { |
36252 | arg2 = &temp2; | |
36253 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36254 | } | |
d14a1e28 RD |
36255 | { |
36256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36257 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36258 | |
36259 | wxPyEndAllowThreads(__tstate); | |
36260 | if (PyErr_Occurred()) SWIG_fail; | |
36261 | } | |
4f89f6a3 RD |
36262 | { |
36263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36264 | } | |
d14a1e28 RD |
36265 | return resultobj; |
36266 | fail: | |
36267 | return NULL; | |
36268 | } | |
36269 | ||
36270 | ||
36271 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36272 | PyObject *resultobj; | |
36273 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36274 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36275 | bool result; |
4f89f6a3 | 36276 | wxGBPosition temp2 ; |
d14a1e28 RD |
36277 | PyObject * obj0 = 0 ; |
36278 | PyObject * obj1 = 0 ; | |
36279 | char *kwnames[] = { | |
328fcd84 | 36280 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36281 | }; |
36282 | ||
36283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36286 | { |
36287 | arg2 = &temp2; | |
36288 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36289 | } | |
d14a1e28 RD |
36290 | { |
36291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36292 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36293 | |
36294 | wxPyEndAllowThreads(__tstate); | |
36295 | if (PyErr_Occurred()) SWIG_fail; | |
36296 | } | |
4f89f6a3 RD |
36297 | { |
36298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36299 | } | |
d14a1e28 RD |
36300 | return resultobj; |
36301 | fail: | |
36302 | return NULL; | |
36303 | } | |
36304 | ||
36305 | ||
423f194a RD |
36306 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36307 | PyObject *resultobj; | |
36308 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36309 | int arg2 = (int) 0 ; | |
36310 | int arg3 = (int) 0 ; | |
36311 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
36312 | PyObject * obj1 = 0 ; |
36313 | PyObject * obj2 = 0 ; | |
423f194a RD |
36314 | char *kwnames[] = { |
36315 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36316 | }; | |
36317 | ||
8edf1c75 | 36318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
36319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 36321 | if (obj1) { |
2f4c0a16 RD |
36322 | arg2 = (int) SWIG_AsInt(obj1); |
36323 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36324 | } |
36325 | if (obj2) { | |
2f4c0a16 RD |
36326 | arg3 = (int) SWIG_AsInt(obj2); |
36327 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36328 | } |
423f194a RD |
36329 | { |
36330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36331 | wxGBPosition_Set(arg1,arg2,arg3); | |
36332 | ||
36333 | wxPyEndAllowThreads(__tstate); | |
36334 | if (PyErr_Occurred()) SWIG_fail; | |
36335 | } | |
36336 | Py_INCREF(Py_None); resultobj = Py_None; | |
36337 | return resultobj; | |
36338 | fail: | |
36339 | return NULL; | |
36340 | } | |
36341 | ||
36342 | ||
36343 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36344 | PyObject *resultobj; |
36345 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36346 | PyObject *result; | |
36347 | PyObject * obj0 = 0 ; | |
36348 | char *kwnames[] = { | |
36349 | (char *) "self", NULL | |
36350 | }; | |
36351 | ||
423f194a | 36352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
36353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36355 | { |
36356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 36357 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36358 | |
36359 | wxPyEndAllowThreads(__tstate); | |
36360 | if (PyErr_Occurred()) SWIG_fail; | |
36361 | } | |
36362 | resultobj = result; | |
36363 | return resultobj; | |
36364 | fail: | |
36365 | return NULL; | |
36366 | } | |
36367 | ||
36368 | ||
36369 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36370 | PyObject *obj; | |
36371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36372 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36373 | Py_INCREF(obj); | |
36374 | return Py_BuildValue((char *)""); | |
36375 | } | |
36376 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36377 | PyObject *resultobj; | |
36378 | int arg1 = (int) 1 ; | |
36379 | int arg2 = (int) 1 ; | |
36380 | wxGBSpan *result; | |
8edf1c75 RD |
36381 | PyObject * obj0 = 0 ; |
36382 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36383 | char *kwnames[] = { |
36384 | (char *) "rowspan",(char *) "colspan", NULL | |
36385 | }; | |
36386 | ||
8edf1c75 RD |
36387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36388 | if (obj0) { | |
2f4c0a16 RD |
36389 | arg1 = (int) SWIG_AsInt(obj0); |
36390 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36391 | } |
36392 | if (obj1) { | |
2f4c0a16 RD |
36393 | arg2 = (int) SWIG_AsInt(obj1); |
36394 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36395 | } |
d14a1e28 RD |
36396 | { |
36397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36398 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36399 | ||
36400 | wxPyEndAllowThreads(__tstate); | |
36401 | if (PyErr_Occurred()) SWIG_fail; | |
36402 | } | |
2f4c0a16 | 36403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36404 | return resultobj; |
36405 | fail: | |
36406 | return NULL; | |
36407 | } | |
36408 | ||
36409 | ||
36410 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36411 | PyObject *resultobj; | |
36412 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36413 | int result; | |
36414 | PyObject * obj0 = 0 ; | |
36415 | char *kwnames[] = { | |
36416 | (char *) "self", NULL | |
36417 | }; | |
36418 | ||
36419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36422 | { |
36423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36424 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36425 | ||
36426 | wxPyEndAllowThreads(__tstate); | |
36427 | if (PyErr_Occurred()) SWIG_fail; | |
36428 | } | |
2f4c0a16 | 36429 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36430 | return resultobj; |
36431 | fail: | |
36432 | return NULL; | |
36433 | } | |
36434 | ||
36435 | ||
36436 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36437 | PyObject *resultobj; | |
36438 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36439 | int result; | |
36440 | PyObject * obj0 = 0 ; | |
36441 | char *kwnames[] = { | |
36442 | (char *) "self", NULL | |
36443 | }; | |
36444 | ||
36445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36448 | { |
36449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36450 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
36451 | ||
36452 | wxPyEndAllowThreads(__tstate); | |
36453 | if (PyErr_Occurred()) SWIG_fail; | |
36454 | } | |
2f4c0a16 | 36455 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36456 | return resultobj; |
36457 | fail: | |
36458 | return NULL; | |
36459 | } | |
36460 | ||
36461 | ||
36462 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36463 | PyObject *resultobj; | |
36464 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36465 | int arg2 ; | |
36466 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36468 | char *kwnames[] = { |
36469 | (char *) "self",(char *) "rowspan", NULL | |
36470 | }; | |
36471 | ||
8edf1c75 | 36472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36475 | arg2 = (int) SWIG_AsInt(obj1); | |
36476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36477 | { |
36478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36479 | (arg1)->SetRowspan(arg2); | |
36480 | ||
36481 | wxPyEndAllowThreads(__tstate); | |
36482 | if (PyErr_Occurred()) SWIG_fail; | |
36483 | } | |
36484 | Py_INCREF(Py_None); resultobj = Py_None; | |
36485 | return resultobj; | |
36486 | fail: | |
36487 | return NULL; | |
36488 | } | |
36489 | ||
36490 | ||
36491 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36492 | PyObject *resultobj; | |
36493 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36494 | int arg2 ; | |
36495 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36497 | char *kwnames[] = { |
36498 | (char *) "self",(char *) "colspan", NULL | |
36499 | }; | |
36500 | ||
8edf1c75 | 36501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36504 | arg2 = (int) SWIG_AsInt(obj1); | |
36505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36506 | { |
36507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36508 | (arg1)->SetColspan(arg2); | |
36509 | ||
36510 | wxPyEndAllowThreads(__tstate); | |
36511 | if (PyErr_Occurred()) SWIG_fail; | |
36512 | } | |
36513 | Py_INCREF(Py_None); resultobj = Py_None; | |
36514 | return resultobj; | |
36515 | fail: | |
36516 | return NULL; | |
36517 | } | |
36518 | ||
36519 | ||
36520 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36521 | PyObject *resultobj; | |
36522 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36523 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36524 | bool result; |
4f89f6a3 | 36525 | wxGBSpan temp2 ; |
d14a1e28 RD |
36526 | PyObject * obj0 = 0 ; |
36527 | PyObject * obj1 = 0 ; | |
36528 | char *kwnames[] = { | |
328fcd84 | 36529 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36530 | }; |
36531 | ||
36532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36535 | { |
36536 | arg2 = &temp2; | |
36537 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36538 | } | |
d14a1e28 RD |
36539 | { |
36540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36541 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36542 | |
36543 | wxPyEndAllowThreads(__tstate); | |
36544 | if (PyErr_Occurred()) SWIG_fail; | |
36545 | } | |
4f89f6a3 RD |
36546 | { |
36547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36548 | } | |
d14a1e28 RD |
36549 | return resultobj; |
36550 | fail: | |
36551 | return NULL; | |
36552 | } | |
36553 | ||
36554 | ||
36555 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36556 | PyObject *resultobj; | |
36557 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36558 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36559 | bool result; |
4f89f6a3 | 36560 | wxGBSpan temp2 ; |
d14a1e28 RD |
36561 | PyObject * obj0 = 0 ; |
36562 | PyObject * obj1 = 0 ; | |
36563 | char *kwnames[] = { | |
328fcd84 | 36564 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36565 | }; |
36566 | ||
36567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36570 | { |
36571 | arg2 = &temp2; | |
36572 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36573 | } | |
d14a1e28 RD |
36574 | { |
36575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36576 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36577 | |
36578 | wxPyEndAllowThreads(__tstate); | |
36579 | if (PyErr_Occurred()) SWIG_fail; | |
36580 | } | |
4f89f6a3 RD |
36581 | { |
36582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36583 | } | |
d14a1e28 RD |
36584 | return resultobj; |
36585 | fail: | |
36586 | return NULL; | |
36587 | } | |
36588 | ||
36589 | ||
423f194a RD |
36590 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36591 | PyObject *resultobj; | |
36592 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36593 | int arg2 = (int) 1 ; | |
36594 | int arg3 = (int) 1 ; | |
36595 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
36596 | PyObject * obj1 = 0 ; |
36597 | PyObject * obj2 = 0 ; | |
423f194a RD |
36598 | char *kwnames[] = { |
36599 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
36600 | }; | |
36601 | ||
8edf1c75 | 36602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
36603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 36605 | if (obj1) { |
2f4c0a16 RD |
36606 | arg2 = (int) SWIG_AsInt(obj1); |
36607 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36608 | } |
36609 | if (obj2) { | |
2f4c0a16 RD |
36610 | arg3 = (int) SWIG_AsInt(obj2); |
36611 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36612 | } |
423f194a RD |
36613 | { |
36614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36615 | wxGBSpan_Set(arg1,arg2,arg3); | |
36616 | ||
36617 | wxPyEndAllowThreads(__tstate); | |
36618 | if (PyErr_Occurred()) SWIG_fail; | |
36619 | } | |
36620 | Py_INCREF(Py_None); resultobj = Py_None; | |
36621 | return resultobj; | |
36622 | fail: | |
36623 | return NULL; | |
36624 | } | |
36625 | ||
36626 | ||
36627 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36628 | PyObject *resultobj; |
36629 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36630 | PyObject *result; | |
36631 | PyObject * obj0 = 0 ; | |
36632 | char *kwnames[] = { | |
36633 | (char *) "self", NULL | |
36634 | }; | |
36635 | ||
423f194a | 36636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
36637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36639 | { |
36640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 36641 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
36642 | |
36643 | wxPyEndAllowThreads(__tstate); | |
36644 | if (PyErr_Occurred()) SWIG_fail; | |
36645 | } | |
36646 | resultobj = result; | |
36647 | return resultobj; | |
36648 | fail: | |
36649 | return NULL; | |
36650 | } | |
36651 | ||
36652 | ||
36653 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
36654 | PyObject *obj; | |
36655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36656 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
36657 | Py_INCREF(obj); | |
36658 | return Py_BuildValue((char *)""); | |
36659 | } | |
2f4c0a16 | 36660 | static int _wrap_DefaultSpan_set(PyObject *_val) { |
d14a1e28 RD |
36661 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
36662 | return 1; | |
36663 | } | |
36664 | ||
36665 | ||
36666 | static PyObject *_wrap_DefaultSpan_get() { | |
36667 | PyObject *pyobj; | |
36668 | ||
2f4c0a16 | 36669 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
36670 | return pyobj; |
36671 | } | |
36672 | ||
36673 | ||
36674 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36675 | PyObject *resultobj; | |
36676 | wxGBSizerItem *result; | |
36677 | char *kwnames[] = { | |
36678 | NULL | |
36679 | }; | |
36680 | ||
36681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
36682 | { | |
36683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36684 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
36685 | ||
36686 | wxPyEndAllowThreads(__tstate); | |
36687 | if (PyErr_Occurred()) SWIG_fail; | |
36688 | } | |
2f4c0a16 | 36689 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36690 | return resultobj; |
36691 | fail: | |
36692 | return NULL; | |
36693 | } | |
36694 | ||
36695 | ||
36696 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36697 | PyObject *resultobj; | |
36698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36699 | wxGBPosition *arg2 = 0 ; | |
36700 | wxGBSpan *arg3 = 0 ; | |
36701 | int arg4 ; | |
36702 | int arg5 ; | |
36703 | wxObject *arg6 = (wxObject *) 0 ; | |
36704 | wxGBSizerItem *result; | |
36705 | wxGBPosition temp2 ; | |
36706 | wxGBSpan temp3 ; | |
36707 | PyObject * obj0 = 0 ; | |
36708 | PyObject * obj1 = 0 ; | |
36709 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36710 | PyObject * obj3 = 0 ; |
36711 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36712 | PyObject * obj5 = 0 ; |
36713 | char *kwnames[] = { | |
36714 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36715 | }; | |
36716 | ||
8edf1c75 | 36717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
36719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36720 | { |
36721 | arg2 = &temp2; | |
36722 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36723 | } | |
36724 | { | |
36725 | arg3 = &temp3; | |
36726 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36727 | } | |
2f4c0a16 RD |
36728 | arg4 = (int) SWIG_AsInt(obj3); |
36729 | if (PyErr_Occurred()) SWIG_fail; | |
36730 | arg5 = (int) SWIG_AsInt(obj4); | |
36731 | if (PyErr_Occurred()) SWIG_fail; | |
36732 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36734 | { |
36735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36736 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36737 | ||
36738 | wxPyEndAllowThreads(__tstate); | |
36739 | if (PyErr_Occurred()) SWIG_fail; | |
36740 | } | |
2f4c0a16 | 36741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36742 | return resultobj; |
36743 | fail: | |
36744 | return NULL; | |
36745 | } | |
36746 | ||
36747 | ||
36748 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36749 | PyObject *resultobj; | |
36750 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36751 | wxGBPosition *arg2 = 0 ; | |
36752 | wxGBSpan *arg3 = 0 ; | |
36753 | int arg4 ; | |
36754 | int arg5 ; | |
36755 | wxObject *arg6 = (wxObject *) 0 ; | |
36756 | wxGBSizerItem *result; | |
36757 | wxGBPosition temp2 ; | |
36758 | wxGBSpan temp3 ; | |
36759 | PyObject * obj0 = 0 ; | |
36760 | PyObject * obj1 = 0 ; | |
36761 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36762 | PyObject * obj3 = 0 ; |
36763 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36764 | PyObject * obj5 = 0 ; |
36765 | char *kwnames[] = { | |
36766 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36767 | }; | |
36768 | ||
8edf1c75 | 36769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36772 | { |
36773 | arg2 = &temp2; | |
36774 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36775 | } | |
36776 | { | |
36777 | arg3 = &temp3; | |
36778 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36779 | } | |
2f4c0a16 RD |
36780 | arg4 = (int) SWIG_AsInt(obj3); |
36781 | if (PyErr_Occurred()) SWIG_fail; | |
36782 | arg5 = (int) SWIG_AsInt(obj4); | |
36783 | if (PyErr_Occurred()) SWIG_fail; | |
36784 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36786 | { |
36787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36788 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36789 | ||
36790 | wxPyEndAllowThreads(__tstate); | |
36791 | if (PyErr_Occurred()) SWIG_fail; | |
36792 | } | |
2f4c0a16 | 36793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36794 | return resultobj; |
36795 | fail: | |
36796 | return NULL; | |
36797 | } | |
36798 | ||
36799 | ||
36800 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36801 | PyObject *resultobj; | |
36802 | int arg1 ; | |
36803 | int arg2 ; | |
36804 | wxGBPosition *arg3 = 0 ; | |
36805 | wxGBSpan *arg4 = 0 ; | |
36806 | int arg5 ; | |
36807 | int arg6 ; | |
36808 | wxObject *arg7 = (wxObject *) 0 ; | |
36809 | wxGBSizerItem *result; | |
36810 | wxGBPosition temp3 ; | |
36811 | wxGBSpan temp4 ; | |
8edf1c75 RD |
36812 | PyObject * obj0 = 0 ; |
36813 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36814 | PyObject * obj2 = 0 ; |
36815 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36816 | PyObject * obj4 = 0 ; |
36817 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36818 | PyObject * obj6 = 0 ; |
36819 | char *kwnames[] = { | |
36820 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36821 | }; | |
36822 | ||
8edf1c75 | 36823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
36824 | arg1 = (int) SWIG_AsInt(obj0); |
36825 | if (PyErr_Occurred()) SWIG_fail; | |
36826 | arg2 = (int) SWIG_AsInt(obj1); | |
36827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36828 | { |
36829 | arg3 = &temp3; | |
36830 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36831 | } | |
36832 | { | |
36833 | arg4 = &temp4; | |
36834 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36835 | } | |
2f4c0a16 RD |
36836 | arg5 = (int) SWIG_AsInt(obj4); |
36837 | if (PyErr_Occurred()) SWIG_fail; | |
36838 | arg6 = (int) SWIG_AsInt(obj5); | |
36839 | if (PyErr_Occurred()) SWIG_fail; | |
36840 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
36841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36842 | { |
36843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36844 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36845 | ||
36846 | wxPyEndAllowThreads(__tstate); | |
36847 | if (PyErr_Occurred()) SWIG_fail; | |
36848 | } | |
2f4c0a16 | 36849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36850 | return resultobj; |
36851 | fail: | |
36852 | return NULL; | |
36853 | } | |
36854 | ||
36855 | ||
36856 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36857 | PyObject *resultobj; | |
36858 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36859 | wxGBPosition result; | |
36860 | PyObject * obj0 = 0 ; | |
36861 | char *kwnames[] = { | |
36862 | (char *) "self", NULL | |
36863 | }; | |
36864 | ||
36865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36868 | { |
36869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36870 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
36871 | ||
36872 | wxPyEndAllowThreads(__tstate); | |
36873 | if (PyErr_Occurred()) SWIG_fail; | |
36874 | } | |
36875 | { | |
36876 | wxGBPosition * resultptr; | |
36877 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36879 | } |
36880 | return resultobj; | |
36881 | fail: | |
36882 | return NULL; | |
36883 | } | |
36884 | ||
36885 | ||
36886 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36887 | PyObject *resultobj; | |
36888 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36889 | wxGBSpan result; | |
36890 | PyObject * obj0 = 0 ; | |
36891 | char *kwnames[] = { | |
36892 | (char *) "self", NULL | |
36893 | }; | |
36894 | ||
36895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36898 | { |
36899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36900 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
36901 | ||
36902 | wxPyEndAllowThreads(__tstate); | |
36903 | if (PyErr_Occurred()) SWIG_fail; | |
36904 | } | |
36905 | { | |
36906 | wxGBSpan * resultptr; | |
36907 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36908 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36909 | } |
36910 | return resultobj; | |
36911 | fail: | |
36912 | return NULL; | |
36913 | } | |
36914 | ||
36915 | ||
36916 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36917 | PyObject *resultobj; | |
36918 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36919 | wxGBPosition *arg2 = 0 ; | |
36920 | bool result; | |
36921 | wxGBPosition temp2 ; | |
36922 | PyObject * obj0 = 0 ; | |
36923 | PyObject * obj1 = 0 ; | |
36924 | char *kwnames[] = { | |
36925 | (char *) "self",(char *) "pos", NULL | |
36926 | }; | |
36927 | ||
36928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36931 | { |
36932 | arg2 = &temp2; | |
36933 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36934 | } | |
36935 | { | |
36936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36937 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
36938 | ||
36939 | wxPyEndAllowThreads(__tstate); | |
36940 | if (PyErr_Occurred()) SWIG_fail; | |
36941 | } | |
4f89f6a3 RD |
36942 | { |
36943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36944 | } | |
d14a1e28 RD |
36945 | return resultobj; |
36946 | fail: | |
36947 | return NULL; | |
36948 | } | |
36949 | ||
36950 | ||
36951 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36952 | PyObject *resultobj; | |
36953 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36954 | wxGBSpan *arg2 = 0 ; | |
36955 | bool result; | |
36956 | wxGBSpan temp2 ; | |
36957 | PyObject * obj0 = 0 ; | |
36958 | PyObject * obj1 = 0 ; | |
36959 | char *kwnames[] = { | |
36960 | (char *) "self",(char *) "span", NULL | |
36961 | }; | |
36962 | ||
36963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36966 | { |
36967 | arg2 = &temp2; | |
36968 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36969 | } | |
36970 | { | |
36971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36972 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
36973 | ||
36974 | wxPyEndAllowThreads(__tstate); | |
36975 | if (PyErr_Occurred()) SWIG_fail; | |
36976 | } | |
4f89f6a3 RD |
36977 | { |
36978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36979 | } | |
d14a1e28 RD |
36980 | return resultobj; |
36981 | fail: | |
36982 | return NULL; | |
36983 | } | |
36984 | ||
36985 | ||
36986 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
36987 | PyObject *resultobj; | |
36988 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36989 | wxGBSizerItem *arg2 = 0 ; | |
36990 | bool result; | |
36991 | PyObject * obj0 = 0 ; | |
36992 | PyObject * obj1 = 0 ; | |
36993 | ||
36994 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
36998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
36999 | SWIG_fail; | |
d14a1e28 | 37000 | if (arg2 == NULL) { |
2f4c0a16 RD |
37001 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37002 | SWIG_fail; | |
d14a1e28 RD |
37003 | } |
37004 | { | |
37005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37006 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37007 | ||
37008 | wxPyEndAllowThreads(__tstate); | |
37009 | if (PyErr_Occurred()) SWIG_fail; | |
37010 | } | |
4f89f6a3 RD |
37011 | { |
37012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37013 | } | |
d14a1e28 RD |
37014 | return resultobj; |
37015 | fail: | |
37016 | return NULL; | |
37017 | } | |
37018 | ||
37019 | ||
37020 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37021 | PyObject *resultobj; | |
37022 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37023 | wxGBPosition *arg2 = 0 ; | |
37024 | wxGBSpan *arg3 = 0 ; | |
37025 | bool result; | |
37026 | wxGBPosition temp2 ; | |
37027 | wxGBSpan temp3 ; | |
37028 | PyObject * obj0 = 0 ; | |
37029 | PyObject * obj1 = 0 ; | |
37030 | PyObject * obj2 = 0 ; | |
37031 | ||
37032 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37035 | { |
37036 | arg2 = &temp2; | |
37037 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37038 | } | |
37039 | { | |
37040 | arg3 = &temp3; | |
37041 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37042 | } | |
37043 | { | |
37044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37045 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37046 | ||
37047 | wxPyEndAllowThreads(__tstate); | |
37048 | if (PyErr_Occurred()) SWIG_fail; | |
37049 | } | |
4f89f6a3 RD |
37050 | { |
37051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37052 | } | |
d14a1e28 RD |
37053 | return resultobj; |
37054 | fail: | |
37055 | return NULL; | |
37056 | } | |
37057 | ||
37058 | ||
37059 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37060 | int argc; | |
37061 | PyObject *argv[4]; | |
37062 | int ii; | |
37063 | ||
37064 | argc = PyObject_Length(args); | |
37065 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37066 | argv[ii] = PyTuple_GetItem(args,ii); | |
37067 | } | |
37068 | if (argc == 2) { | |
37069 | int _v; | |
37070 | { | |
37071 | void *ptr; | |
2f4c0a16 | 37072 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37073 | _v = 0; |
37074 | PyErr_Clear(); | |
37075 | } else { | |
37076 | _v = 1; | |
37077 | } | |
37078 | } | |
37079 | if (_v) { | |
37080 | { | |
37081 | void *ptr; | |
2f4c0a16 | 37082 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37083 | _v = 0; |
37084 | PyErr_Clear(); | |
37085 | } else { | |
37086 | _v = 1; | |
37087 | } | |
37088 | } | |
37089 | if (_v) { | |
37090 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37091 | } | |
37092 | } | |
37093 | } | |
37094 | if (argc == 3) { | |
37095 | int _v; | |
37096 | { | |
37097 | void *ptr; | |
2f4c0a16 | 37098 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37099 | _v = 0; |
37100 | PyErr_Clear(); | |
37101 | } else { | |
37102 | _v = 1; | |
37103 | } | |
37104 | } | |
37105 | if (_v) { | |
37106 | { | |
37107 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37108 | } | |
37109 | if (_v) { | |
37110 | { | |
37111 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37112 | } | |
37113 | if (_v) { | |
37114 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
37115 | } | |
37116 | } | |
37117 | } | |
37118 | } | |
37119 | ||
37120 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
37121 | return NULL; | |
37122 | } | |
37123 | ||
37124 | ||
37125 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37126 | PyObject *resultobj; | |
37127 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37128 | int *arg2 = 0 ; | |
37129 | int *arg3 = 0 ; | |
37130 | PyObject * obj0 = 0 ; | |
37131 | PyObject * obj1 = 0 ; | |
37132 | PyObject * obj2 = 0 ; | |
37133 | char *kwnames[] = { | |
37134 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37135 | }; | |
37136 | ||
37137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37140 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
37141 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37142 | SWIG_fail; | |
d14a1e28 | 37143 | if (arg2 == NULL) { |
2f4c0a16 RD |
37144 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37145 | SWIG_fail; | |
d14a1e28 | 37146 | } |
2f4c0a16 RD |
37147 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
37148 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37149 | SWIG_fail; | |
d14a1e28 | 37150 | if (arg3 == NULL) { |
2f4c0a16 RD |
37151 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37152 | SWIG_fail; | |
d14a1e28 RD |
37153 | } |
37154 | { | |
37155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37156 | (arg1)->GetEndPos(*arg2,*arg3); | |
37157 | ||
37158 | wxPyEndAllowThreads(__tstate); | |
37159 | if (PyErr_Occurred()) SWIG_fail; | |
37160 | } | |
37161 | Py_INCREF(Py_None); resultobj = Py_None; | |
37162 | return resultobj; | |
37163 | fail: | |
37164 | return NULL; | |
37165 | } | |
37166 | ||
37167 | ||
37168 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37169 | PyObject *resultobj; | |
37170 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37171 | wxGridBagSizer *result; | |
37172 | PyObject * obj0 = 0 ; | |
37173 | char *kwnames[] = { | |
37174 | (char *) "self", NULL | |
37175 | }; | |
37176 | ||
37177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37180 | { |
37181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37182 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37183 | ||
37184 | wxPyEndAllowThreads(__tstate); | |
37185 | if (PyErr_Occurred()) SWIG_fail; | |
37186 | } | |
2f4c0a16 | 37187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37188 | return resultobj; |
37189 | fail: | |
37190 | return NULL; | |
37191 | } | |
37192 | ||
37193 | ||
37194 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37195 | PyObject *resultobj; | |
37196 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37197 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37198 | PyObject * obj0 = 0 ; | |
37199 | PyObject * obj1 = 0 ; | |
37200 | char *kwnames[] = { | |
37201 | (char *) "self",(char *) "sizer", NULL | |
37202 | }; | |
37203 | ||
37204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37209 | { |
37210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37211 | (arg1)->SetGBSizer(arg2); | |
37212 | ||
37213 | wxPyEndAllowThreads(__tstate); | |
37214 | if (PyErr_Occurred()) SWIG_fail; | |
37215 | } | |
37216 | Py_INCREF(Py_None); resultobj = Py_None; | |
37217 | return resultobj; | |
37218 | fail: | |
37219 | return NULL; | |
37220 | } | |
37221 | ||
37222 | ||
37223 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37224 | PyObject *obj; | |
37225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37226 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37227 | Py_INCREF(obj); | |
37228 | return Py_BuildValue((char *)""); | |
37229 | } | |
37230 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37231 | PyObject *resultobj; | |
37232 | int arg1 = (int) 0 ; | |
37233 | int arg2 = (int) 0 ; | |
37234 | wxGridBagSizer *result; | |
8edf1c75 RD |
37235 | PyObject * obj0 = 0 ; |
37236 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37237 | char *kwnames[] = { |
37238 | (char *) "vgap",(char *) "hgap", NULL | |
37239 | }; | |
37240 | ||
8edf1c75 RD |
37241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37242 | if (obj0) { | |
2f4c0a16 RD |
37243 | arg1 = (int) SWIG_AsInt(obj0); |
37244 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
37245 | } |
37246 | if (obj1) { | |
2f4c0a16 RD |
37247 | arg2 = (int) SWIG_AsInt(obj1); |
37248 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37249 | } |
d14a1e28 RD |
37250 | { |
37251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37252 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37253 | ||
37254 | wxPyEndAllowThreads(__tstate); | |
37255 | if (PyErr_Occurred()) SWIG_fail; | |
37256 | } | |
2f4c0a16 | 37257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37258 | return resultobj; |
37259 | fail: | |
37260 | return NULL; | |
37261 | } | |
37262 | ||
37263 | ||
37264 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37265 | PyObject *resultobj; | |
37266 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37267 | PyObject *arg2 = (PyObject *) 0 ; | |
37268 | wxGBPosition *arg3 = 0 ; | |
37269 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37270 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37271 | int arg5 = (int) 0 ; | |
37272 | int arg6 = (int) 0 ; | |
37273 | PyObject *arg7 = (PyObject *) NULL ; | |
37274 | bool result; | |
37275 | wxGBPosition temp3 ; | |
37276 | wxGBSpan temp4 ; | |
37277 | PyObject * obj0 = 0 ; | |
37278 | PyObject * obj1 = 0 ; | |
37279 | PyObject * obj2 = 0 ; | |
37280 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
37281 | PyObject * obj4 = 0 ; |
37282 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37283 | PyObject * obj6 = 0 ; |
37284 | char *kwnames[] = { | |
37285 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37286 | }; | |
37287 | ||
8edf1c75 | 37288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
37289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37291 | arg2 = obj1; |
37292 | { | |
37293 | arg3 = &temp3; | |
37294 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37295 | } | |
37296 | if (obj3) { | |
37297 | { | |
37298 | arg4 = &temp4; | |
37299 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37300 | } | |
37301 | } | |
8edf1c75 | 37302 | if (obj4) { |
2f4c0a16 RD |
37303 | arg5 = (int) SWIG_AsInt(obj4); |
37304 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
37305 | } |
37306 | if (obj5) { | |
2f4c0a16 RD |
37307 | arg6 = (int) SWIG_AsInt(obj5); |
37308 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37309 | } |
d14a1e28 RD |
37310 | if (obj6) { |
37311 | arg7 = obj6; | |
37312 | } | |
37313 | { | |
37314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37315 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37316 | ||
37317 | wxPyEndAllowThreads(__tstate); | |
37318 | if (PyErr_Occurred()) SWIG_fail; | |
37319 | } | |
4f89f6a3 RD |
37320 | { |
37321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37322 | } | |
d14a1e28 RD |
37323 | return resultobj; |
37324 | fail: | |
37325 | return NULL; | |
37326 | } | |
37327 | ||
37328 | ||
37329 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37330 | PyObject *resultobj; | |
37331 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37332 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37333 | bool result; | |
37334 | PyObject * obj0 = 0 ; | |
37335 | PyObject * obj1 = 0 ; | |
37336 | char *kwnames[] = { | |
37337 | (char *) "self",(char *) "item", NULL | |
37338 | }; | |
37339 | ||
37340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37345 | { |
37346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37347 | result = (bool)(arg1)->Add(arg2); | |
37348 | ||
37349 | wxPyEndAllowThreads(__tstate); | |
37350 | if (PyErr_Occurred()) SWIG_fail; | |
37351 | } | |
4f89f6a3 RD |
37352 | { |
37353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37354 | } | |
d14a1e28 RD |
37355 | return resultobj; |
37356 | fail: | |
37357 | return NULL; | |
37358 | } | |
37359 | ||
37360 | ||
37361 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37362 | PyObject *resultobj; | |
37363 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37364 | wxSize result; | |
37365 | PyObject * obj0 = 0 ; | |
37366 | char *kwnames[] = { | |
37367 | (char *) "self", NULL | |
37368 | }; | |
37369 | ||
37370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37373 | { |
37374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37375 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37376 | ||
37377 | wxPyEndAllowThreads(__tstate); | |
37378 | if (PyErr_Occurred()) SWIG_fail; | |
37379 | } | |
37380 | { | |
37381 | wxSize * resultptr; | |
37382 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 37383 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37384 | } |
37385 | return resultobj; | |
37386 | fail: | |
37387 | return NULL; | |
37388 | } | |
37389 | ||
37390 | ||
37391 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37392 | PyObject *resultobj; | |
37393 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37394 | wxSize *arg2 = 0 ; | |
37395 | wxSize temp2 ; | |
37396 | PyObject * obj0 = 0 ; | |
37397 | PyObject * obj1 = 0 ; | |
37398 | char *kwnames[] = { | |
37399 | (char *) "self",(char *) "sz", NULL | |
37400 | }; | |
37401 | ||
37402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37405 | { |
37406 | arg2 = &temp2; | |
37407 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37408 | } | |
37409 | { | |
37410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37411 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37412 | ||
37413 | wxPyEndAllowThreads(__tstate); | |
37414 | if (PyErr_Occurred()) SWIG_fail; | |
37415 | } | |
37416 | Py_INCREF(Py_None); resultobj = Py_None; | |
37417 | return resultobj; | |
37418 | fail: | |
37419 | return NULL; | |
37420 | } | |
37421 | ||
37422 | ||
37423 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37424 | PyObject *resultobj; | |
37425 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37426 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37427 | wxGBPosition result; | |
37428 | PyObject * obj0 = 0 ; | |
37429 | PyObject * obj1 = 0 ; | |
37430 | ||
37431 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37434 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37436 | { |
37437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37438 | result = (arg1)->GetItemPosition(arg2); | |
37439 | ||
37440 | wxPyEndAllowThreads(__tstate); | |
37441 | if (PyErr_Occurred()) SWIG_fail; | |
37442 | } | |
37443 | { | |
37444 | wxGBPosition * resultptr; | |
37445 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37447 | } |
37448 | return resultobj; | |
37449 | fail: | |
37450 | return NULL; | |
37451 | } | |
37452 | ||
37453 | ||
37454 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37455 | PyObject *resultobj; | |
37456 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37457 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37458 | wxGBPosition result; | |
37459 | PyObject * obj0 = 0 ; | |
37460 | PyObject * obj1 = 0 ; | |
37461 | ||
37462 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37467 | { |
37468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37469 | result = (arg1)->GetItemPosition(arg2); | |
37470 | ||
37471 | wxPyEndAllowThreads(__tstate); | |
37472 | if (PyErr_Occurred()) SWIG_fail; | |
37473 | } | |
37474 | { | |
37475 | wxGBPosition * resultptr; | |
37476 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37477 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37478 | } |
37479 | return resultobj; | |
37480 | fail: | |
37481 | return NULL; | |
37482 | } | |
37483 | ||
37484 | ||
37485 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37486 | PyObject *resultobj; | |
37487 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37488 | size_t arg2 ; | |
37489 | wxGBPosition result; | |
37490 | PyObject * obj0 = 0 ; | |
37491 | PyObject * obj1 = 0 ; | |
37492 | ||
37493 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37496 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37498 | { |
37499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37500 | result = (arg1)->GetItemPosition(arg2); | |
37501 | ||
37502 | wxPyEndAllowThreads(__tstate); | |
37503 | if (PyErr_Occurred()) SWIG_fail; | |
37504 | } | |
37505 | { | |
37506 | wxGBPosition * resultptr; | |
37507 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37509 | } |
37510 | return resultobj; | |
37511 | fail: | |
37512 | return NULL; | |
37513 | } | |
37514 | ||
37515 | ||
37516 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37517 | int argc; | |
37518 | PyObject *argv[3]; | |
37519 | int ii; | |
37520 | ||
37521 | argc = PyObject_Length(args); | |
37522 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37523 | argv[ii] = PyTuple_GetItem(args,ii); | |
37524 | } | |
37525 | if (argc == 2) { | |
37526 | int _v; | |
37527 | { | |
37528 | void *ptr; | |
2f4c0a16 | 37529 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37530 | _v = 0; |
37531 | PyErr_Clear(); | |
37532 | } else { | |
37533 | _v = 1; | |
37534 | } | |
37535 | } | |
37536 | if (_v) { | |
37537 | { | |
37538 | void *ptr; | |
2f4c0a16 | 37539 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37540 | _v = 0; |
37541 | PyErr_Clear(); | |
37542 | } else { | |
37543 | _v = 1; | |
37544 | } | |
37545 | } | |
37546 | if (_v) { | |
37547 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37548 | } | |
37549 | } | |
37550 | } | |
37551 | if (argc == 2) { | |
37552 | int _v; | |
37553 | { | |
37554 | void *ptr; | |
2f4c0a16 | 37555 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37556 | _v = 0; |
37557 | PyErr_Clear(); | |
37558 | } else { | |
37559 | _v = 1; | |
37560 | } | |
37561 | } | |
37562 | if (_v) { | |
37563 | { | |
37564 | void *ptr; | |
2f4c0a16 | 37565 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37566 | _v = 0; |
37567 | PyErr_Clear(); | |
37568 | } else { | |
37569 | _v = 1; | |
37570 | } | |
37571 | } | |
37572 | if (_v) { | |
37573 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
37574 | } | |
37575 | } | |
37576 | } | |
37577 | if (argc == 2) { | |
37578 | int _v; | |
37579 | { | |
37580 | void *ptr; | |
2f4c0a16 | 37581 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37582 | _v = 0; |
37583 | PyErr_Clear(); | |
37584 | } else { | |
37585 | _v = 1; | |
37586 | } | |
37587 | } | |
37588 | if (_v) { | |
2f4c0a16 | 37589 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37590 | if (_v) { |
37591 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
37592 | } | |
37593 | } | |
37594 | } | |
37595 | ||
37596 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
37597 | return NULL; | |
37598 | } | |
37599 | ||
37600 | ||
37601 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37602 | PyObject *resultobj; | |
37603 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37605 | wxGBPosition *arg3 = 0 ; | |
37606 | bool result; | |
37607 | wxGBPosition temp3 ; | |
37608 | PyObject * obj0 = 0 ; | |
37609 | PyObject * obj1 = 0 ; | |
37610 | PyObject * obj2 = 0 ; | |
37611 | ||
37612 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37617 | { |
37618 | arg3 = &temp3; | |
37619 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37620 | } | |
37621 | { | |
37622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37623 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37624 | ||
37625 | wxPyEndAllowThreads(__tstate); | |
37626 | if (PyErr_Occurred()) SWIG_fail; | |
37627 | } | |
4f89f6a3 RD |
37628 | { |
37629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37630 | } | |
d14a1e28 RD |
37631 | return resultobj; |
37632 | fail: | |
37633 | return NULL; | |
37634 | } | |
37635 | ||
37636 | ||
37637 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37638 | PyObject *resultobj; | |
37639 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37640 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37641 | wxGBPosition *arg3 = 0 ; | |
37642 | bool result; | |
37643 | wxGBPosition temp3 ; | |
37644 | PyObject * obj0 = 0 ; | |
37645 | PyObject * obj1 = 0 ; | |
37646 | PyObject * obj2 = 0 ; | |
37647 | ||
37648 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37653 | { |
37654 | arg3 = &temp3; | |
37655 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37656 | } | |
37657 | { | |
37658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37659 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37660 | ||
37661 | wxPyEndAllowThreads(__tstate); | |
37662 | if (PyErr_Occurred()) SWIG_fail; | |
37663 | } | |
4f89f6a3 RD |
37664 | { |
37665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37666 | } | |
d14a1e28 RD |
37667 | return resultobj; |
37668 | fail: | |
37669 | return NULL; | |
37670 | } | |
37671 | ||
37672 | ||
37673 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37674 | PyObject *resultobj; | |
37675 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37676 | size_t arg2 ; | |
37677 | wxGBPosition *arg3 = 0 ; | |
37678 | bool result; | |
37679 | wxGBPosition temp3 ; | |
37680 | PyObject * obj0 = 0 ; | |
37681 | PyObject * obj1 = 0 ; | |
37682 | PyObject * obj2 = 0 ; | |
37683 | ||
37684 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37687 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37689 | { |
37690 | arg3 = &temp3; | |
37691 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37692 | } | |
37693 | { | |
37694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37695 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37696 | ||
37697 | wxPyEndAllowThreads(__tstate); | |
37698 | if (PyErr_Occurred()) SWIG_fail; | |
37699 | } | |
4f89f6a3 RD |
37700 | { |
37701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37702 | } | |
d14a1e28 RD |
37703 | return resultobj; |
37704 | fail: | |
37705 | return NULL; | |
37706 | } | |
37707 | ||
37708 | ||
37709 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
37710 | int argc; | |
37711 | PyObject *argv[4]; | |
37712 | int ii; | |
37713 | ||
37714 | argc = PyObject_Length(args); | |
37715 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37716 | argv[ii] = PyTuple_GetItem(args,ii); | |
37717 | } | |
37718 | if (argc == 3) { | |
37719 | int _v; | |
37720 | { | |
37721 | void *ptr; | |
2f4c0a16 | 37722 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37723 | _v = 0; |
37724 | PyErr_Clear(); | |
37725 | } else { | |
37726 | _v = 1; | |
37727 | } | |
37728 | } | |
37729 | if (_v) { | |
37730 | { | |
37731 | void *ptr; | |
2f4c0a16 | 37732 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37733 | _v = 0; |
37734 | PyErr_Clear(); | |
37735 | } else { | |
37736 | _v = 1; | |
37737 | } | |
37738 | } | |
37739 | if (_v) { | |
37740 | { | |
37741 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37742 | } | |
37743 | if (_v) { | |
37744 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
37745 | } | |
37746 | } | |
37747 | } | |
37748 | } | |
37749 | if (argc == 3) { | |
37750 | int _v; | |
37751 | { | |
37752 | void *ptr; | |
2f4c0a16 | 37753 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37754 | _v = 0; |
37755 | PyErr_Clear(); | |
37756 | } else { | |
37757 | _v = 1; | |
37758 | } | |
37759 | } | |
37760 | if (_v) { | |
37761 | { | |
37762 | void *ptr; | |
2f4c0a16 | 37763 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37764 | _v = 0; |
37765 | PyErr_Clear(); | |
37766 | } else { | |
37767 | _v = 1; | |
37768 | } | |
37769 | } | |
37770 | if (_v) { | |
37771 | { | |
37772 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37773 | } | |
37774 | if (_v) { | |
37775 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
37776 | } | |
37777 | } | |
37778 | } | |
37779 | } | |
37780 | if (argc == 3) { | |
37781 | int _v; | |
37782 | { | |
37783 | void *ptr; | |
2f4c0a16 | 37784 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37785 | _v = 0; |
37786 | PyErr_Clear(); | |
37787 | } else { | |
37788 | _v = 1; | |
37789 | } | |
37790 | } | |
37791 | if (_v) { | |
2f4c0a16 | 37792 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37793 | if (_v) { |
37794 | { | |
37795 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37796 | } | |
37797 | if (_v) { | |
37798 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
37799 | } | |
37800 | } | |
37801 | } | |
37802 | } | |
37803 | ||
37804 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
37805 | return NULL; | |
37806 | } | |
37807 | ||
37808 | ||
37809 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37810 | PyObject *resultobj; | |
37811 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37812 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37813 | wxGBSpan result; | |
37814 | PyObject * obj0 = 0 ; | |
37815 | PyObject * obj1 = 0 ; | |
37816 | ||
37817 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37822 | { |
37823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37824 | result = (arg1)->GetItemSpan(arg2); | |
37825 | ||
37826 | wxPyEndAllowThreads(__tstate); | |
37827 | if (PyErr_Occurred()) SWIG_fail; | |
37828 | } | |
37829 | { | |
37830 | wxGBSpan * resultptr; | |
37831 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37833 | } |
37834 | return resultobj; | |
37835 | fail: | |
37836 | return NULL; | |
37837 | } | |
37838 | ||
37839 | ||
37840 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37841 | PyObject *resultobj; | |
37842 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37843 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37844 | wxGBSpan result; | |
37845 | PyObject * obj0 = 0 ; | |
37846 | PyObject * obj1 = 0 ; | |
37847 | ||
37848 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37853 | { |
37854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37855 | result = (arg1)->GetItemSpan(arg2); | |
37856 | ||
37857 | wxPyEndAllowThreads(__tstate); | |
37858 | if (PyErr_Occurred()) SWIG_fail; | |
37859 | } | |
37860 | { | |
37861 | wxGBSpan * resultptr; | |
37862 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37864 | } |
37865 | return resultobj; | |
37866 | fail: | |
37867 | return NULL; | |
37868 | } | |
37869 | ||
37870 | ||
37871 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37872 | PyObject *resultobj; | |
37873 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37874 | size_t arg2 ; | |
37875 | wxGBSpan result; | |
37876 | PyObject * obj0 = 0 ; | |
37877 | PyObject * obj1 = 0 ; | |
37878 | ||
37879 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37882 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37884 | { |
37885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37886 | result = (arg1)->GetItemSpan(arg2); | |
37887 | ||
37888 | wxPyEndAllowThreads(__tstate); | |
37889 | if (PyErr_Occurred()) SWIG_fail; | |
37890 | } | |
37891 | { | |
37892 | wxGBSpan * resultptr; | |
37893 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37895 | } |
37896 | return resultobj; | |
37897 | fail: | |
37898 | return NULL; | |
37899 | } | |
37900 | ||
37901 | ||
37902 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
37903 | int argc; | |
37904 | PyObject *argv[3]; | |
37905 | int ii; | |
37906 | ||
37907 | argc = PyObject_Length(args); | |
37908 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37909 | argv[ii] = PyTuple_GetItem(args,ii); | |
37910 | } | |
37911 | if (argc == 2) { | |
37912 | int _v; | |
37913 | { | |
37914 | void *ptr; | |
2f4c0a16 | 37915 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37916 | _v = 0; |
37917 | PyErr_Clear(); | |
37918 | } else { | |
37919 | _v = 1; | |
37920 | } | |
37921 | } | |
37922 | if (_v) { | |
37923 | { | |
37924 | void *ptr; | |
2f4c0a16 | 37925 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37926 | _v = 0; |
37927 | PyErr_Clear(); | |
37928 | } else { | |
37929 | _v = 1; | |
37930 | } | |
37931 | } | |
37932 | if (_v) { | |
37933 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
37934 | } | |
37935 | } | |
37936 | } | |
37937 | if (argc == 2) { | |
37938 | int _v; | |
37939 | { | |
37940 | void *ptr; | |
2f4c0a16 | 37941 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37942 | _v = 0; |
37943 | PyErr_Clear(); | |
37944 | } else { | |
37945 | _v = 1; | |
37946 | } | |
37947 | } | |
37948 | if (_v) { | |
37949 | { | |
37950 | void *ptr; | |
2f4c0a16 | 37951 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37952 | _v = 0; |
37953 | PyErr_Clear(); | |
37954 | } else { | |
37955 | _v = 1; | |
37956 | } | |
37957 | } | |
37958 | if (_v) { | |
37959 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
37960 | } | |
37961 | } | |
37962 | } | |
37963 | if (argc == 2) { | |
37964 | int _v; | |
37965 | { | |
37966 | void *ptr; | |
2f4c0a16 | 37967 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37968 | _v = 0; |
37969 | PyErr_Clear(); | |
37970 | } else { | |
37971 | _v = 1; | |
37972 | } | |
37973 | } | |
37974 | if (_v) { | |
2f4c0a16 | 37975 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37976 | if (_v) { |
37977 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
37978 | } | |
37979 | } | |
37980 | } | |
37981 | ||
37982 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
37983 | return NULL; | |
37984 | } | |
37985 | ||
37986 | ||
37987 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37988 | PyObject *resultobj; | |
37989 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37990 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37991 | wxGBSpan *arg3 = 0 ; | |
37992 | bool result; | |
37993 | wxGBSpan temp3 ; | |
37994 | PyObject * obj0 = 0 ; | |
37995 | PyObject * obj1 = 0 ; | |
37996 | PyObject * obj2 = 0 ; | |
37997 | ||
37998 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38001 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38003 | { |
38004 | arg3 = &temp3; | |
38005 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38006 | } | |
38007 | { | |
38008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38009 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38010 | ||
38011 | wxPyEndAllowThreads(__tstate); | |
38012 | if (PyErr_Occurred()) SWIG_fail; | |
38013 | } | |
4f89f6a3 RD |
38014 | { |
38015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38016 | } | |
d14a1e28 RD |
38017 | return resultobj; |
38018 | fail: | |
38019 | return NULL; | |
38020 | } | |
38021 | ||
38022 | ||
38023 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38024 | PyObject *resultobj; | |
38025 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38026 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38027 | wxGBSpan *arg3 = 0 ; | |
38028 | bool result; | |
38029 | wxGBSpan temp3 ; | |
38030 | PyObject * obj0 = 0 ; | |
38031 | PyObject * obj1 = 0 ; | |
38032 | PyObject * obj2 = 0 ; | |
38033 | ||
38034 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38039 | { |
38040 | arg3 = &temp3; | |
38041 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38042 | } | |
38043 | { | |
38044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38045 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38046 | ||
38047 | wxPyEndAllowThreads(__tstate); | |
38048 | if (PyErr_Occurred()) SWIG_fail; | |
38049 | } | |
4f89f6a3 RD |
38050 | { |
38051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38052 | } | |
d14a1e28 RD |
38053 | return resultobj; |
38054 | fail: | |
38055 | return NULL; | |
38056 | } | |
38057 | ||
38058 | ||
38059 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38060 | PyObject *resultobj; | |
38061 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38062 | size_t arg2 ; | |
38063 | wxGBSpan *arg3 = 0 ; | |
38064 | bool result; | |
38065 | wxGBSpan temp3 ; | |
38066 | PyObject * obj0 = 0 ; | |
38067 | PyObject * obj1 = 0 ; | |
38068 | PyObject * obj2 = 0 ; | |
38069 | ||
38070 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38073 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38075 | { |
38076 | arg3 = &temp3; | |
38077 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38078 | } | |
38079 | { | |
38080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38081 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38082 | ||
38083 | wxPyEndAllowThreads(__tstate); | |
38084 | if (PyErr_Occurred()) SWIG_fail; | |
38085 | } | |
4f89f6a3 RD |
38086 | { |
38087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38088 | } | |
d14a1e28 RD |
38089 | return resultobj; |
38090 | fail: | |
38091 | return NULL; | |
38092 | } | |
38093 | ||
38094 | ||
38095 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38096 | int argc; | |
38097 | PyObject *argv[4]; | |
38098 | int ii; | |
38099 | ||
38100 | argc = PyObject_Length(args); | |
38101 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38102 | argv[ii] = PyTuple_GetItem(args,ii); | |
38103 | } | |
38104 | if (argc == 3) { | |
38105 | int _v; | |
38106 | { | |
38107 | void *ptr; | |
2f4c0a16 | 38108 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38109 | _v = 0; |
38110 | PyErr_Clear(); | |
38111 | } else { | |
38112 | _v = 1; | |
38113 | } | |
38114 | } | |
38115 | if (_v) { | |
38116 | { | |
38117 | void *ptr; | |
2f4c0a16 | 38118 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38119 | _v = 0; |
38120 | PyErr_Clear(); | |
38121 | } else { | |
38122 | _v = 1; | |
38123 | } | |
38124 | } | |
38125 | if (_v) { | |
38126 | { | |
38127 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38128 | } | |
38129 | if (_v) { | |
38130 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38131 | } | |
38132 | } | |
38133 | } | |
38134 | } | |
38135 | if (argc == 3) { | |
38136 | int _v; | |
38137 | { | |
38138 | void *ptr; | |
2f4c0a16 | 38139 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38140 | _v = 0; |
38141 | PyErr_Clear(); | |
38142 | } else { | |
38143 | _v = 1; | |
38144 | } | |
38145 | } | |
38146 | if (_v) { | |
38147 | { | |
38148 | void *ptr; | |
2f4c0a16 | 38149 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38150 | _v = 0; |
38151 | PyErr_Clear(); | |
38152 | } else { | |
38153 | _v = 1; | |
38154 | } | |
38155 | } | |
38156 | if (_v) { | |
38157 | { | |
38158 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38159 | } | |
38160 | if (_v) { | |
38161 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38162 | } | |
38163 | } | |
38164 | } | |
38165 | } | |
38166 | if (argc == 3) { | |
38167 | int _v; | |
38168 | { | |
38169 | void *ptr; | |
2f4c0a16 | 38170 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38171 | _v = 0; |
38172 | PyErr_Clear(); | |
38173 | } else { | |
38174 | _v = 1; | |
38175 | } | |
38176 | } | |
38177 | if (_v) { | |
2f4c0a16 | 38178 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38179 | if (_v) { |
38180 | { | |
38181 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38182 | } | |
38183 | if (_v) { | |
38184 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38185 | } | |
38186 | } | |
38187 | } | |
38188 | } | |
38189 | ||
38190 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38191 | return NULL; | |
38192 | } | |
38193 | ||
38194 | ||
38195 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38196 | PyObject *resultobj; | |
38197 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38198 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38199 | wxGBSizerItem *result; | |
38200 | PyObject * obj0 = 0 ; | |
38201 | PyObject * obj1 = 0 ; | |
38202 | ||
38203 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38208 | { |
38209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38210 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38211 | ||
38212 | wxPyEndAllowThreads(__tstate); | |
38213 | if (PyErr_Occurred()) SWIG_fail; | |
38214 | } | |
2f4c0a16 | 38215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38216 | return resultobj; |
38217 | fail: | |
38218 | return NULL; | |
38219 | } | |
38220 | ||
38221 | ||
38222 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38223 | PyObject *resultobj; | |
38224 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38225 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38226 | wxGBSizerItem *result; | |
38227 | PyObject * obj0 = 0 ; | |
38228 | PyObject * obj1 = 0 ; | |
38229 | ||
38230 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38235 | { |
38236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38237 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38238 | ||
38239 | wxPyEndAllowThreads(__tstate); | |
38240 | if (PyErr_Occurred()) SWIG_fail; | |
38241 | } | |
2f4c0a16 | 38242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38243 | return resultobj; |
38244 | fail: | |
38245 | return NULL; | |
38246 | } | |
38247 | ||
38248 | ||
38249 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38250 | int argc; | |
38251 | PyObject *argv[3]; | |
38252 | int ii; | |
38253 | ||
38254 | argc = PyObject_Length(args); | |
38255 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38256 | argv[ii] = PyTuple_GetItem(args,ii); | |
38257 | } | |
38258 | if (argc == 2) { | |
38259 | int _v; | |
38260 | { | |
38261 | void *ptr; | |
2f4c0a16 | 38262 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38263 | _v = 0; |
38264 | PyErr_Clear(); | |
38265 | } else { | |
38266 | _v = 1; | |
38267 | } | |
38268 | } | |
38269 | if (_v) { | |
38270 | { | |
38271 | void *ptr; | |
2f4c0a16 | 38272 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38273 | _v = 0; |
38274 | PyErr_Clear(); | |
38275 | } else { | |
38276 | _v = 1; | |
38277 | } | |
38278 | } | |
38279 | if (_v) { | |
38280 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38281 | } | |
38282 | } | |
38283 | } | |
38284 | if (argc == 2) { | |
38285 | int _v; | |
38286 | { | |
38287 | void *ptr; | |
2f4c0a16 | 38288 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38289 | _v = 0; |
38290 | PyErr_Clear(); | |
38291 | } else { | |
38292 | _v = 1; | |
38293 | } | |
38294 | } | |
38295 | if (_v) { | |
38296 | { | |
38297 | void *ptr; | |
2f4c0a16 | 38298 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38299 | _v = 0; |
38300 | PyErr_Clear(); | |
38301 | } else { | |
38302 | _v = 1; | |
38303 | } | |
38304 | } | |
38305 | if (_v) { | |
38306 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38307 | } | |
38308 | } | |
38309 | } | |
38310 | ||
38311 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38312 | return NULL; | |
38313 | } | |
38314 | ||
38315 | ||
38316 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38317 | PyObject *resultobj; | |
38318 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38319 | wxGBPosition *arg2 = 0 ; | |
38320 | wxGBSizerItem *result; | |
38321 | wxGBPosition temp2 ; | |
38322 | PyObject * obj0 = 0 ; | |
38323 | PyObject * obj1 = 0 ; | |
38324 | char *kwnames[] = { | |
38325 | (char *) "self",(char *) "pos", NULL | |
38326 | }; | |
38327 | ||
38328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38331 | { |
38332 | arg2 = &temp2; | |
38333 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38334 | } | |
38335 | { | |
38336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38337 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38338 | ||
38339 | wxPyEndAllowThreads(__tstate); | |
38340 | if (PyErr_Occurred()) SWIG_fail; | |
38341 | } | |
2f4c0a16 | 38342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38343 | return resultobj; |
38344 | fail: | |
38345 | return NULL; | |
38346 | } | |
38347 | ||
38348 | ||
423f194a RD |
38349 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38350 | PyObject *resultobj; | |
38351 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38352 | wxPoint *arg2 = 0 ; | |
38353 | wxGBSizerItem *result; | |
38354 | wxPoint temp2 ; | |
38355 | PyObject * obj0 = 0 ; | |
38356 | PyObject * obj1 = 0 ; | |
38357 | char *kwnames[] = { | |
38358 | (char *) "self",(char *) "pt", NULL | |
38359 | }; | |
38360 | ||
38361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
38364 | { |
38365 | arg2 = &temp2; | |
38366 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38367 | } | |
38368 | { | |
38369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38370 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38371 | ||
38372 | wxPyEndAllowThreads(__tstate); | |
38373 | if (PyErr_Occurred()) SWIG_fail; | |
38374 | } | |
2f4c0a16 | 38375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
423f194a RD |
38376 | return resultobj; |
38377 | fail: | |
38378 | return NULL; | |
38379 | } | |
38380 | ||
38381 | ||
d14a1e28 RD |
38382 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
38383 | PyObject *resultobj; | |
38384 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38385 | wxObject *arg2 = (wxObject *) 0 ; | |
38386 | wxGBSizerItem *result; | |
38387 | PyObject * obj0 = 0 ; | |
38388 | PyObject * obj1 = 0 ; | |
38389 | char *kwnames[] = { | |
38390 | (char *) "self",(char *) "userData", NULL | |
38391 | }; | |
38392 | ||
38393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
38397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38398 | { |
38399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38400 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
38401 | ||
38402 | wxPyEndAllowThreads(__tstate); | |
38403 | if (PyErr_Occurred()) SWIG_fail; | |
38404 | } | |
2f4c0a16 | 38405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38406 | return resultobj; |
38407 | fail: | |
38408 | return NULL; | |
38409 | } | |
38410 | ||
38411 | ||
38412 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38413 | PyObject *resultobj; | |
38414 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38415 | PyObject * obj0 = 0 ; | |
38416 | char *kwnames[] = { | |
38417 | (char *) "self", NULL | |
38418 | }; | |
38419 | ||
38420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38423 | { |
38424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38425 | (arg1)->RecalcSizes(); | |
38426 | ||
38427 | wxPyEndAllowThreads(__tstate); | |
38428 | if (PyErr_Occurred()) SWIG_fail; | |
38429 | } | |
38430 | Py_INCREF(Py_None); resultobj = Py_None; | |
38431 | return resultobj; | |
38432 | fail: | |
38433 | return NULL; | |
38434 | } | |
38435 | ||
38436 | ||
38437 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38438 | PyObject *resultobj; | |
38439 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38440 | wxSize result; | |
38441 | PyObject * obj0 = 0 ; | |
38442 | char *kwnames[] = { | |
38443 | (char *) "self", NULL | |
38444 | }; | |
38445 | ||
38446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38449 | { |
38450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38451 | result = (arg1)->CalcMin(); | |
38452 | ||
38453 | wxPyEndAllowThreads(__tstate); | |
38454 | if (PyErr_Occurred()) SWIG_fail; | |
38455 | } | |
38456 | { | |
38457 | wxSize * resultptr; | |
38458 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 38459 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38460 | } |
38461 | return resultobj; | |
38462 | fail: | |
38463 | return NULL; | |
38464 | } | |
38465 | ||
38466 | ||
38467 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
38468 | PyObject *resultobj; | |
38469 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38470 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38471 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38472 | bool result; | |
38473 | PyObject * obj0 = 0 ; | |
38474 | PyObject * obj1 = 0 ; | |
38475 | PyObject * obj2 = 0 ; | |
38476 | ||
38477 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38480 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 38482 | if (obj2) { |
2f4c0a16 RD |
38483 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
38484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38485 | } |
38486 | { | |
38487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38488 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38489 | ||
38490 | wxPyEndAllowThreads(__tstate); | |
38491 | if (PyErr_Occurred()) SWIG_fail; | |
38492 | } | |
4f89f6a3 RD |
38493 | { |
38494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38495 | } | |
d14a1e28 RD |
38496 | return resultobj; |
38497 | fail: | |
38498 | return NULL; | |
38499 | } | |
38500 | ||
38501 | ||
38502 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
38503 | PyObject *resultobj; | |
38504 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38505 | wxGBPosition *arg2 = 0 ; | |
38506 | wxGBSpan *arg3 = 0 ; | |
38507 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38508 | bool result; | |
38509 | wxGBPosition temp2 ; | |
38510 | wxGBSpan temp3 ; | |
38511 | PyObject * obj0 = 0 ; | |
38512 | PyObject * obj1 = 0 ; | |
38513 | PyObject * obj2 = 0 ; | |
38514 | PyObject * obj3 = 0 ; | |
38515 | ||
38516 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
38517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38519 | { |
38520 | arg2 = &temp2; | |
38521 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38522 | } | |
38523 | { | |
38524 | arg3 = &temp3; | |
38525 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38526 | } | |
38527 | if (obj3) { | |
2f4c0a16 RD |
38528 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38530 | } |
38531 | { | |
38532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38533 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38534 | ||
38535 | wxPyEndAllowThreads(__tstate); | |
38536 | if (PyErr_Occurred()) SWIG_fail; | |
38537 | } | |
4f89f6a3 RD |
38538 | { |
38539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38540 | } | |
d14a1e28 RD |
38541 | return resultobj; |
38542 | fail: | |
38543 | return NULL; | |
38544 | } | |
38545 | ||
38546 | ||
38547 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
38548 | int argc; | |
38549 | PyObject *argv[5]; | |
38550 | int ii; | |
38551 | ||
38552 | argc = PyObject_Length(args); | |
38553 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
38554 | argv[ii] = PyTuple_GetItem(args,ii); | |
38555 | } | |
38556 | if ((argc >= 2) && (argc <= 3)) { | |
38557 | int _v; | |
38558 | { | |
38559 | void *ptr; | |
2f4c0a16 | 38560 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38561 | _v = 0; |
38562 | PyErr_Clear(); | |
38563 | } else { | |
38564 | _v = 1; | |
38565 | } | |
38566 | } | |
38567 | if (_v) { | |
38568 | { | |
38569 | void *ptr; | |
2f4c0a16 | 38570 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38571 | _v = 0; |
38572 | PyErr_Clear(); | |
38573 | } else { | |
38574 | _v = 1; | |
38575 | } | |
38576 | } | |
38577 | if (_v) { | |
38578 | if (argc <= 2) { | |
38579 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38580 | } | |
38581 | { | |
38582 | void *ptr; | |
2f4c0a16 | 38583 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38584 | _v = 0; |
38585 | PyErr_Clear(); | |
38586 | } else { | |
38587 | _v = 1; | |
38588 | } | |
38589 | } | |
38590 | if (_v) { | |
38591 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38592 | } | |
38593 | } | |
38594 | } | |
38595 | } | |
38596 | if ((argc >= 3) && (argc <= 4)) { | |
38597 | int _v; | |
38598 | { | |
38599 | void *ptr; | |
2f4c0a16 | 38600 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38601 | _v = 0; |
38602 | PyErr_Clear(); | |
38603 | } else { | |
38604 | _v = 1; | |
38605 | } | |
38606 | } | |
38607 | if (_v) { | |
38608 | { | |
38609 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38610 | } | |
38611 | if (_v) { | |
38612 | { | |
38613 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38614 | } | |
38615 | if (_v) { | |
38616 | if (argc <= 3) { | |
38617 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38618 | } | |
38619 | { | |
38620 | void *ptr; | |
2f4c0a16 | 38621 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38622 | _v = 0; |
38623 | PyErr_Clear(); | |
38624 | } else { | |
38625 | _v = 1; | |
38626 | } | |
38627 | } | |
38628 | if (_v) { | |
38629 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38630 | } | |
38631 | } | |
38632 | } | |
38633 | } | |
38634 | } | |
38635 | ||
38636 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
38637 | return NULL; | |
38638 | } | |
38639 | ||
38640 | ||
38641 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
38642 | PyObject *obj; | |
38643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38644 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
38645 | Py_INCREF(obj); | |
38646 | return Py_BuildValue((char *)""); | |
38647 | } | |
38648 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38649 | PyObject *resultobj; | |
38650 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38651 | int arg2 ; | |
38652 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38653 | int arg4 ; | |
38654 | int arg5 = (int) 0 ; | |
38655 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
38656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38657 | PyObject * obj1 = 0 ; |
d14a1e28 | 38658 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
38659 | PyObject * obj3 = 0 ; |
38660 | PyObject * obj4 = 0 ; | |
38661 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38662 | char *kwnames[] = { |
38663 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
38664 | }; | |
38665 | ||
8edf1c75 | 38666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
38667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38669 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38670 | if (PyErr_Occurred()) SWIG_fail; | |
38671 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38673 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
38674 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38675 | if (obj4) { |
2f4c0a16 RD |
38676 | arg5 = (int) SWIG_AsInt(obj4); |
38677 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
38678 | } |
38679 | if (obj5) { | |
2f4c0a16 RD |
38680 | arg6 = (int) SWIG_AsInt(obj5); |
38681 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38682 | } |
d14a1e28 RD |
38683 | { |
38684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38685 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
38686 | ||
38687 | wxPyEndAllowThreads(__tstate); | |
38688 | if (PyErr_Occurred()) SWIG_fail; | |
38689 | } | |
38690 | Py_INCREF(Py_None); resultobj = Py_None; | |
38691 | return resultobj; | |
38692 | fail: | |
38693 | return NULL; | |
38694 | } | |
38695 | ||
38696 | ||
38697 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38698 | PyObject *resultobj; | |
38699 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38701 | int arg3 = (int) 0 ; | |
38702 | PyObject * obj0 = 0 ; | |
38703 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38704 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38705 | char *kwnames[] = { |
38706 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38707 | }; | |
38708 | ||
8edf1c75 | 38709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38714 | if (obj2) { |
2f4c0a16 RD |
38715 | arg3 = (int) SWIG_AsInt(obj2); |
38716 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38717 | } |
d14a1e28 RD |
38718 | { |
38719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38720 | (arg1)->LeftOf(arg2,arg3); | |
38721 | ||
38722 | wxPyEndAllowThreads(__tstate); | |
38723 | if (PyErr_Occurred()) SWIG_fail; | |
38724 | } | |
38725 | Py_INCREF(Py_None); resultobj = Py_None; | |
38726 | return resultobj; | |
38727 | fail: | |
38728 | return NULL; | |
38729 | } | |
38730 | ||
38731 | ||
38732 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38733 | PyObject *resultobj; | |
38734 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38735 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38736 | int arg3 = (int) 0 ; | |
38737 | PyObject * obj0 = 0 ; | |
38738 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38739 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38740 | char *kwnames[] = { |
38741 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38742 | }; | |
38743 | ||
8edf1c75 | 38744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38749 | if (obj2) { |
2f4c0a16 RD |
38750 | arg3 = (int) SWIG_AsInt(obj2); |
38751 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38752 | } |
d14a1e28 RD |
38753 | { |
38754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38755 | (arg1)->RightOf(arg2,arg3); | |
38756 | ||
38757 | wxPyEndAllowThreads(__tstate); | |
38758 | if (PyErr_Occurred()) SWIG_fail; | |
38759 | } | |
38760 | Py_INCREF(Py_None); resultobj = Py_None; | |
38761 | return resultobj; | |
38762 | fail: | |
38763 | return NULL; | |
38764 | } | |
38765 | ||
38766 | ||
38767 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38768 | PyObject *resultobj; | |
38769 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38770 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38771 | int arg3 = (int) 0 ; | |
38772 | PyObject * obj0 = 0 ; | |
38773 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38774 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38775 | char *kwnames[] = { |
38776 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38777 | }; | |
38778 | ||
8edf1c75 | 38779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38784 | if (obj2) { |
2f4c0a16 RD |
38785 | arg3 = (int) SWIG_AsInt(obj2); |
38786 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38787 | } |
d14a1e28 RD |
38788 | { |
38789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38790 | (arg1)->Above(arg2,arg3); | |
38791 | ||
38792 | wxPyEndAllowThreads(__tstate); | |
38793 | if (PyErr_Occurred()) SWIG_fail; | |
38794 | } | |
38795 | Py_INCREF(Py_None); resultobj = Py_None; | |
38796 | return resultobj; | |
38797 | fail: | |
38798 | return NULL; | |
38799 | } | |
38800 | ||
38801 | ||
38802 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38803 | PyObject *resultobj; | |
38804 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38805 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38806 | int arg3 = (int) 0 ; | |
38807 | PyObject * obj0 = 0 ; | |
38808 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38809 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38810 | char *kwnames[] = { |
38811 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38812 | }; | |
38813 | ||
8edf1c75 | 38814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38819 | if (obj2) { |
2f4c0a16 RD |
38820 | arg3 = (int) SWIG_AsInt(obj2); |
38821 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38822 | } |
d14a1e28 RD |
38823 | { |
38824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38825 | (arg1)->Below(arg2,arg3); | |
38826 | ||
38827 | wxPyEndAllowThreads(__tstate); | |
38828 | if (PyErr_Occurred()) SWIG_fail; | |
38829 | } | |
38830 | Py_INCREF(Py_None); resultobj = Py_None; | |
38831 | return resultobj; | |
38832 | fail: | |
38833 | return NULL; | |
38834 | } | |
38835 | ||
38836 | ||
38837 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38838 | PyObject *resultobj; | |
38839 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38840 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38841 | int arg3 ; | |
38842 | int arg4 = (int) 0 ; | |
38843 | PyObject * obj0 = 0 ; | |
38844 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38845 | PyObject * obj2 = 0 ; |
38846 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38847 | char *kwnames[] = { |
38848 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38849 | }; | |
38850 | ||
8edf1c75 | 38851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38854 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38856 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38857 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38858 | if (obj3) { |
2f4c0a16 RD |
38859 | arg4 = (int) SWIG_AsInt(obj3); |
38860 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38861 | } |
d14a1e28 RD |
38862 | { |
38863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38864 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38865 | ||
38866 | wxPyEndAllowThreads(__tstate); | |
38867 | if (PyErr_Occurred()) SWIG_fail; | |
38868 | } | |
38869 | Py_INCREF(Py_None); resultobj = Py_None; | |
38870 | return resultobj; | |
38871 | fail: | |
38872 | return NULL; | |
38873 | } | |
38874 | ||
38875 | ||
38876 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38877 | PyObject *resultobj; | |
38878 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38879 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38880 | int arg3 ; | |
38881 | int arg4 ; | |
38882 | PyObject * obj0 = 0 ; | |
38883 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38884 | PyObject * obj2 = 0 ; |
38885 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38886 | char *kwnames[] = { |
38887 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38888 | }; | |
38889 | ||
8edf1c75 | 38890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38895 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38896 | if (PyErr_Occurred()) SWIG_fail; | |
38897 | arg4 = (int) SWIG_AsInt(obj3); | |
38898 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38899 | { |
38900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38901 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38902 | ||
38903 | wxPyEndAllowThreads(__tstate); | |
38904 | if (PyErr_Occurred()) SWIG_fail; | |
38905 | } | |
38906 | Py_INCREF(Py_None); resultobj = Py_None; | |
38907 | return resultobj; | |
38908 | fail: | |
38909 | return NULL; | |
38910 | } | |
38911 | ||
38912 | ||
38913 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38914 | PyObject *resultobj; | |
38915 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38916 | int arg2 ; | |
38917 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38918 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38919 | char *kwnames[] = { |
38920 | (char *) "self",(char *) "val", NULL | |
38921 | }; | |
38922 | ||
8edf1c75 | 38923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38926 | arg2 = (int) SWIG_AsInt(obj1); | |
38927 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38928 | { |
38929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38930 | (arg1)->Absolute(arg2); | |
38931 | ||
38932 | wxPyEndAllowThreads(__tstate); | |
38933 | if (PyErr_Occurred()) SWIG_fail; | |
38934 | } | |
38935 | Py_INCREF(Py_None); resultobj = Py_None; | |
38936 | return resultobj; | |
38937 | fail: | |
38938 | return NULL; | |
38939 | } | |
38940 | ||
38941 | ||
38942 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38943 | PyObject *resultobj; | |
38944 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38945 | PyObject * obj0 = 0 ; | |
38946 | char *kwnames[] = { | |
38947 | (char *) "self", NULL | |
38948 | }; | |
38949 | ||
38950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38953 | { |
38954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38955 | (arg1)->Unconstrained(); | |
38956 | ||
38957 | wxPyEndAllowThreads(__tstate); | |
38958 | if (PyErr_Occurred()) SWIG_fail; | |
38959 | } | |
38960 | Py_INCREF(Py_None); resultobj = Py_None; | |
38961 | return resultobj; | |
38962 | fail: | |
38963 | return NULL; | |
38964 | } | |
38965 | ||
38966 | ||
38967 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38968 | PyObject *resultobj; | |
38969 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38970 | PyObject * obj0 = 0 ; | |
38971 | char *kwnames[] = { | |
38972 | (char *) "self", NULL | |
38973 | }; | |
38974 | ||
38975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38978 | { |
38979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38980 | (arg1)->AsIs(); | |
38981 | ||
38982 | wxPyEndAllowThreads(__tstate); | |
38983 | if (PyErr_Occurred()) SWIG_fail; | |
38984 | } | |
38985 | Py_INCREF(Py_None); resultobj = Py_None; | |
38986 | return resultobj; | |
38987 | fail: | |
38988 | return NULL; | |
38989 | } | |
38990 | ||
38991 | ||
38992 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38993 | PyObject *resultobj; | |
38994 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38995 | wxWindow *result; | |
38996 | PyObject * obj0 = 0 ; | |
38997 | char *kwnames[] = { | |
38998 | (char *) "self", NULL | |
38999 | }; | |
39000 | ||
39001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39004 | { |
39005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39006 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39007 | ||
39008 | wxPyEndAllowThreads(__tstate); | |
39009 | if (PyErr_Occurred()) SWIG_fail; | |
39010 | } | |
39011 | { | |
39012 | resultobj = wxPyMake_wxObject(result); | |
39013 | } | |
39014 | return resultobj; | |
39015 | fail: | |
39016 | return NULL; | |
39017 | } | |
39018 | ||
39019 | ||
39020 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39021 | PyObject *resultobj; | |
39022 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39023 | int result; | |
39024 | PyObject * obj0 = 0 ; | |
39025 | char *kwnames[] = { | |
39026 | (char *) "self", NULL | |
39027 | }; | |
39028 | ||
39029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39032 | { |
39033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39034 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39035 | ||
39036 | wxPyEndAllowThreads(__tstate); | |
39037 | if (PyErr_Occurred()) SWIG_fail; | |
39038 | } | |
2f4c0a16 | 39039 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39040 | return resultobj; |
39041 | fail: | |
39042 | return NULL; | |
39043 | } | |
39044 | ||
39045 | ||
39046 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39047 | PyObject *resultobj; | |
39048 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39049 | int arg2 ; | |
39050 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39052 | char *kwnames[] = { |
39053 | (char *) "self",(char *) "which", NULL | |
39054 | }; | |
39055 | ||
8edf1c75 | 39056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39059 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39060 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39061 | { |
39062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39063 | (arg1)->SetEdge((wxEdge )arg2); | |
39064 | ||
39065 | wxPyEndAllowThreads(__tstate); | |
39066 | if (PyErr_Occurred()) SWIG_fail; | |
39067 | } | |
39068 | Py_INCREF(Py_None); resultobj = Py_None; | |
39069 | return resultobj; | |
39070 | fail: | |
39071 | return NULL; | |
39072 | } | |
39073 | ||
39074 | ||
39075 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39076 | PyObject *resultobj; | |
39077 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39078 | int arg2 ; | |
39079 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39081 | char *kwnames[] = { |
39082 | (char *) "self",(char *) "v", NULL | |
39083 | }; | |
39084 | ||
8edf1c75 | 39085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39088 | arg2 = (int) SWIG_AsInt(obj1); | |
39089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39090 | { |
39091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39092 | (arg1)->SetValue(arg2); | |
39093 | ||
39094 | wxPyEndAllowThreads(__tstate); | |
39095 | if (PyErr_Occurred()) SWIG_fail; | |
39096 | } | |
39097 | Py_INCREF(Py_None); resultobj = Py_None; | |
39098 | return resultobj; | |
39099 | fail: | |
39100 | return NULL; | |
39101 | } | |
39102 | ||
39103 | ||
39104 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39105 | PyObject *resultobj; | |
39106 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39107 | int result; | |
39108 | PyObject * obj0 = 0 ; | |
39109 | char *kwnames[] = { | |
39110 | (char *) "self", NULL | |
39111 | }; | |
39112 | ||
39113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39116 | { |
39117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39118 | result = (int)(arg1)->GetMargin(); | |
39119 | ||
39120 | wxPyEndAllowThreads(__tstate); | |
39121 | if (PyErr_Occurred()) SWIG_fail; | |
39122 | } | |
2f4c0a16 | 39123 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39124 | return resultobj; |
39125 | fail: | |
39126 | return NULL; | |
39127 | } | |
39128 | ||
39129 | ||
39130 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39131 | PyObject *resultobj; | |
39132 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39133 | int arg2 ; | |
39134 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39136 | char *kwnames[] = { |
39137 | (char *) "self",(char *) "m", NULL | |
39138 | }; | |
39139 | ||
8edf1c75 | 39140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39143 | arg2 = (int) SWIG_AsInt(obj1); | |
39144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39145 | { |
39146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39147 | (arg1)->SetMargin(arg2); | |
39148 | ||
39149 | wxPyEndAllowThreads(__tstate); | |
39150 | if (PyErr_Occurred()) SWIG_fail; | |
39151 | } | |
39152 | Py_INCREF(Py_None); resultobj = Py_None; | |
39153 | return resultobj; | |
39154 | fail: | |
39155 | return NULL; | |
39156 | } | |
39157 | ||
39158 | ||
39159 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39160 | PyObject *resultobj; | |
39161 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39162 | int result; | |
39163 | PyObject * obj0 = 0 ; | |
39164 | char *kwnames[] = { | |
39165 | (char *) "self", NULL | |
39166 | }; | |
39167 | ||
39168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39171 | { |
39172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39173 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39174 | ||
39175 | wxPyEndAllowThreads(__tstate); | |
39176 | if (PyErr_Occurred()) SWIG_fail; | |
39177 | } | |
2f4c0a16 | 39178 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39179 | return resultobj; |
39180 | fail: | |
39181 | return NULL; | |
39182 | } | |
39183 | ||
39184 | ||
39185 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39186 | PyObject *resultobj; | |
39187 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39188 | int result; | |
39189 | PyObject * obj0 = 0 ; | |
39190 | char *kwnames[] = { | |
39191 | (char *) "self", NULL | |
39192 | }; | |
39193 | ||
39194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39197 | { |
39198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39199 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39200 | ||
39201 | wxPyEndAllowThreads(__tstate); | |
39202 | if (PyErr_Occurred()) SWIG_fail; | |
39203 | } | |
2f4c0a16 | 39204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39205 | return resultobj; |
39206 | fail: | |
39207 | return NULL; | |
39208 | } | |
39209 | ||
39210 | ||
39211 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39212 | PyObject *resultobj; | |
39213 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39214 | int result; | |
39215 | PyObject * obj0 = 0 ; | |
39216 | char *kwnames[] = { | |
39217 | (char *) "self", NULL | |
39218 | }; | |
39219 | ||
39220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39223 | { |
39224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39225 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39226 | ||
39227 | wxPyEndAllowThreads(__tstate); | |
39228 | if (PyErr_Occurred()) SWIG_fail; | |
39229 | } | |
2f4c0a16 | 39230 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39231 | return resultobj; |
39232 | fail: | |
39233 | return NULL; | |
39234 | } | |
39235 | ||
39236 | ||
39237 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39238 | PyObject *resultobj; | |
39239 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39240 | bool result; | |
39241 | PyObject * obj0 = 0 ; | |
39242 | char *kwnames[] = { | |
39243 | (char *) "self", NULL | |
39244 | }; | |
39245 | ||
39246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39249 | { |
39250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39251 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39252 | ||
39253 | wxPyEndAllowThreads(__tstate); | |
39254 | if (PyErr_Occurred()) SWIG_fail; | |
39255 | } | |
4f89f6a3 RD |
39256 | { |
39257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39258 | } | |
d14a1e28 RD |
39259 | return resultobj; |
39260 | fail: | |
39261 | return NULL; | |
39262 | } | |
39263 | ||
39264 | ||
39265 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39266 | PyObject *resultobj; | |
39267 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39268 | bool arg2 ; | |
39269 | PyObject * obj0 = 0 ; | |
39270 | PyObject * obj1 = 0 ; | |
39271 | char *kwnames[] = { | |
39272 | (char *) "self",(char *) "d", NULL | |
39273 | }; | |
39274 | ||
39275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39278 | arg2 = (bool) SWIG_AsBool(obj1); | |
39279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39280 | { |
39281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39282 | (arg1)->SetDone(arg2); | |
39283 | ||
39284 | wxPyEndAllowThreads(__tstate); | |
39285 | if (PyErr_Occurred()) SWIG_fail; | |
39286 | } | |
39287 | Py_INCREF(Py_None); resultobj = Py_None; | |
39288 | return resultobj; | |
39289 | fail: | |
39290 | return NULL; | |
39291 | } | |
39292 | ||
39293 | ||
39294 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39295 | PyObject *resultobj; | |
39296 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39297 | int result; | |
39298 | PyObject * obj0 = 0 ; | |
39299 | char *kwnames[] = { | |
39300 | (char *) "self", NULL | |
39301 | }; | |
39302 | ||
39303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39306 | { |
39307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39308 | result = (int)(arg1)->GetRelationship(); | |
39309 | ||
39310 | wxPyEndAllowThreads(__tstate); | |
39311 | if (PyErr_Occurred()) SWIG_fail; | |
39312 | } | |
2f4c0a16 | 39313 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39314 | return resultobj; |
39315 | fail: | |
39316 | return NULL; | |
39317 | } | |
39318 | ||
39319 | ||
39320 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39321 | PyObject *resultobj; | |
39322 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39323 | int arg2 ; | |
39324 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39326 | char *kwnames[] = { |
39327 | (char *) "self",(char *) "r", NULL | |
39328 | }; | |
39329 | ||
8edf1c75 | 39330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39333 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39335 | { |
39336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39337 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39338 | ||
39339 | wxPyEndAllowThreads(__tstate); | |
39340 | if (PyErr_Occurred()) SWIG_fail; | |
39341 | } | |
39342 | Py_INCREF(Py_None); resultobj = Py_None; | |
39343 | return resultobj; | |
39344 | fail: | |
39345 | return NULL; | |
39346 | } | |
39347 | ||
39348 | ||
39349 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39350 | PyObject *resultobj; | |
39351 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39352 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39353 | bool result; | |
39354 | PyObject * obj0 = 0 ; | |
39355 | PyObject * obj1 = 0 ; | |
39356 | char *kwnames[] = { | |
39357 | (char *) "self",(char *) "otherW", NULL | |
39358 | }; | |
39359 | ||
39360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39363 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39365 | { |
39366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39367 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39368 | ||
39369 | wxPyEndAllowThreads(__tstate); | |
39370 | if (PyErr_Occurred()) SWIG_fail; | |
39371 | } | |
4f89f6a3 RD |
39372 | { |
39373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39374 | } | |
d14a1e28 RD |
39375 | return resultobj; |
39376 | fail: | |
39377 | return NULL; | |
39378 | } | |
39379 | ||
39380 | ||
39381 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39382 | PyObject *resultobj; | |
39383 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39384 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39385 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39386 | bool result; | |
39387 | PyObject * obj0 = 0 ; | |
39388 | PyObject * obj1 = 0 ; | |
39389 | PyObject * obj2 = 0 ; | |
39390 | char *kwnames[] = { | |
39391 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39392 | }; | |
39393 | ||
39394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
39395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39397 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39399 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39401 | { |
39402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39403 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39404 | ||
39405 | wxPyEndAllowThreads(__tstate); | |
39406 | if (PyErr_Occurred()) SWIG_fail; | |
39407 | } | |
4f89f6a3 RD |
39408 | { |
39409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39410 | } | |
d14a1e28 RD |
39411 | return resultobj; |
39412 | fail: | |
39413 | return NULL; | |
39414 | } | |
39415 | ||
39416 | ||
39417 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39418 | PyObject *resultobj; | |
39419 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39420 | int arg2 ; | |
39421 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39422 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39423 | int result; | |
39424 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39425 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39426 | PyObject * obj2 = 0 ; |
39427 | PyObject * obj3 = 0 ; | |
39428 | char *kwnames[] = { | |
39429 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39430 | }; | |
39431 | ||
8edf1c75 | 39432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
39433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39435 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39436 | if (PyErr_Occurred()) SWIG_fail; | |
39437 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39439 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39441 | { |
39442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39443 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39444 | ||
39445 | wxPyEndAllowThreads(__tstate); | |
39446 | if (PyErr_Occurred()) SWIG_fail; | |
39447 | } | |
2f4c0a16 | 39448 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39449 | return resultobj; |
39450 | fail: | |
39451 | return NULL; | |
39452 | } | |
39453 | ||
39454 | ||
39455 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39456 | PyObject *obj; | |
39457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39458 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39459 | Py_INCREF(obj); | |
39460 | return Py_BuildValue((char *)""); | |
39461 | } | |
39462 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39463 | PyObject *resultobj; | |
39464 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39465 | wxIndividualLayoutConstraint *result; | |
39466 | PyObject * obj0 = 0 ; | |
39467 | char *kwnames[] = { | |
39468 | (char *) "self", NULL | |
39469 | }; | |
39470 | ||
39471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39474 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
39475 | ||
2f4c0a16 | 39476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39477 | return resultobj; |
39478 | fail: | |
39479 | return NULL; | |
39480 | } | |
39481 | ||
39482 | ||
39483 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39484 | PyObject *resultobj; | |
39485 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39486 | wxIndividualLayoutConstraint *result; | |
39487 | PyObject * obj0 = 0 ; | |
39488 | char *kwnames[] = { | |
39489 | (char *) "self", NULL | |
39490 | }; | |
39491 | ||
39492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39495 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
39496 | ||
2f4c0a16 | 39497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39498 | return resultobj; |
39499 | fail: | |
39500 | return NULL; | |
39501 | } | |
39502 | ||
39503 | ||
39504 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39505 | PyObject *resultobj; | |
39506 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39507 | wxIndividualLayoutConstraint *result; | |
39508 | PyObject * obj0 = 0 ; | |
39509 | char *kwnames[] = { | |
39510 | (char *) "self", NULL | |
39511 | }; | |
39512 | ||
39513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39516 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
39517 | ||
2f4c0a16 | 39518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39519 | return resultobj; |
39520 | fail: | |
39521 | return NULL; | |
39522 | } | |
39523 | ||
39524 | ||
39525 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39526 | PyObject *resultobj; | |
39527 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39528 | wxIndividualLayoutConstraint *result; | |
39529 | PyObject * obj0 = 0 ; | |
39530 | char *kwnames[] = { | |
39531 | (char *) "self", NULL | |
39532 | }; | |
39533 | ||
39534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39537 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39538 | ||
2f4c0a16 | 39539 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39540 | return resultobj; |
39541 | fail: | |
39542 | return NULL; | |
39543 | } | |
39544 | ||
39545 | ||
39546 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39547 | PyObject *resultobj; | |
39548 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39549 | wxIndividualLayoutConstraint *result; | |
39550 | PyObject * obj0 = 0 ; | |
39551 | char *kwnames[] = { | |
39552 | (char *) "self", NULL | |
39553 | }; | |
39554 | ||
39555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39558 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39559 | ||
2f4c0a16 | 39560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39561 | return resultobj; |
39562 | fail: | |
39563 | return NULL; | |
39564 | } | |
39565 | ||
39566 | ||
39567 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39568 | PyObject *resultobj; | |
39569 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39570 | wxIndividualLayoutConstraint *result; | |
39571 | PyObject * obj0 = 0 ; | |
39572 | char *kwnames[] = { | |
39573 | (char *) "self", NULL | |
39574 | }; | |
39575 | ||
39576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39579 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39580 | ||
2f4c0a16 | 39581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39582 | return resultobj; |
39583 | fail: | |
39584 | return NULL; | |
39585 | } | |
39586 | ||
39587 | ||
39588 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39589 | PyObject *resultobj; | |
39590 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39591 | wxIndividualLayoutConstraint *result; | |
39592 | PyObject * obj0 = 0 ; | |
39593 | char *kwnames[] = { | |
39594 | (char *) "self", NULL | |
39595 | }; | |
39596 | ||
39597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39600 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39601 | ||
2f4c0a16 | 39602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39603 | return resultobj; |
39604 | fail: | |
39605 | return NULL; | |
39606 | } | |
39607 | ||
39608 | ||
39609 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39610 | PyObject *resultobj; | |
39611 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39612 | wxIndividualLayoutConstraint *result; | |
39613 | PyObject * obj0 = 0 ; | |
39614 | char *kwnames[] = { | |
39615 | (char *) "self", NULL | |
39616 | }; | |
39617 | ||
39618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39621 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39622 | ||
2f4c0a16 | 39623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39624 | return resultobj; |
39625 | fail: | |
39626 | return NULL; | |
39627 | } | |
39628 | ||
39629 | ||
39630 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39631 | PyObject *resultobj; | |
39632 | wxLayoutConstraints *result; | |
39633 | char *kwnames[] = { | |
39634 | NULL | |
39635 | }; | |
39636 | ||
39637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39638 | { | |
39639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39640 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
39641 | ||
39642 | wxPyEndAllowThreads(__tstate); | |
39643 | if (PyErr_Occurred()) SWIG_fail; | |
39644 | } | |
2f4c0a16 | 39645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
39646 | return resultobj; |
39647 | fail: | |
39648 | return NULL; | |
39649 | } | |
39650 | ||
39651 | ||
39652 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39653 | PyObject *resultobj; | |
39654 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39655 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39656 | int *arg3 = (int *) 0 ; | |
39657 | bool result; | |
39658 | int temp3 ; | |
39659 | PyObject * obj0 = 0 ; | |
39660 | PyObject * obj1 = 0 ; | |
39661 | char *kwnames[] = { | |
39662 | (char *) "self",(char *) "win", NULL | |
39663 | }; | |
39664 | ||
39665 | arg3 = &temp3; | |
39666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39671 | { |
39672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39673 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
39674 | ||
39675 | wxPyEndAllowThreads(__tstate); | |
39676 | if (PyErr_Occurred()) SWIG_fail; | |
39677 | } | |
4f89f6a3 RD |
39678 | { |
39679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39680 | } | |
d14a1e28 RD |
39681 | { |
39682 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
39683 | resultobj = t_output_helper(resultobj,o); | |
39684 | } | |
39685 | return resultobj; | |
39686 | fail: | |
39687 | return NULL; | |
39688 | } | |
39689 | ||
39690 | ||
39691 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39692 | PyObject *resultobj; | |
39693 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39694 | bool result; | |
39695 | PyObject * obj0 = 0 ; | |
39696 | char *kwnames[] = { | |
39697 | (char *) "self", NULL | |
39698 | }; | |
39699 | ||
39700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39703 | { |
39704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39705 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
39706 | ||
39707 | wxPyEndAllowThreads(__tstate); | |
39708 | if (PyErr_Occurred()) SWIG_fail; | |
39709 | } | |
4f89f6a3 RD |
39710 | { |
39711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39712 | } | |
d14a1e28 RD |
39713 | return resultobj; |
39714 | fail: | |
39715 | return NULL; | |
39716 | } | |
39717 | ||
39718 | ||
39719 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
39720 | PyObject *obj; | |
39721 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39722 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
39723 | Py_INCREF(obj); | |
39724 | return Py_BuildValue((char *)""); | |
39725 | } | |
39726 | static PyMethodDef SwigMethods[] = { | |
39727 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 39728 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
39729 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
39730 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39731 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
39732 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39733 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39734 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39735 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39736 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
39737 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
39738 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39739 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39740 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
39741 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39742 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
39744 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39749 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39750 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
39751 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39753 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39755 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
39756 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39757 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
39758 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
39759 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
39760 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39761 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 39762 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39763 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
39764 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39765 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39766 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39767 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39768 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
39769 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
39770 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39771 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39772 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
39773 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39774 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39775 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39776 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39777 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39778 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
39779 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
39781 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39783 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39784 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
39785 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39788 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39791 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39792 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39793 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
39795 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
39796 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39799 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
39800 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
39801 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39802 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
39805 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
39806 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
39808 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
39809 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
39810 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
39813 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39814 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39825 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39826 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39828 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39829 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
39830 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
39834 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
39835 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
39836 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39837 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
39842 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
39843 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
39844 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
39849 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39851 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
39852 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39855 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39856 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39857 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39858 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39862 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39863 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39864 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39865 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39866 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39870 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39871 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39872 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39876 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39878 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39882 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39884 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39885 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39886 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39887 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39890 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39892 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39893 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39898 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39899 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39900 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39901 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39902 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39903 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39905 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39910 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39913 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39915 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39916 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39921 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39922 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39923 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39924 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39927 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39929 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39931 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39935 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39937 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39938 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39941 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39944 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39945 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39947 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
39951 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39955 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39958 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39959 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39964 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39965 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39966 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39967 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39970 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39976 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
39993 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40001 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40013 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40014 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40015 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40016 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40017 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40018 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40020 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40022 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40024 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40025 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40026 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40027 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40028 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40030 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40031 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40032 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40034 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40036 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40038 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40040 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40042 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40044 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40046 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40047 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40048 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40050 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40051 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40052 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40056 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40066 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40068 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40070 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40071 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40073 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40076 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40082 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40084 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40088 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40093 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40099 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40104 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40105 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40108 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40109 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40110 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40111 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40118 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40119 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40120 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40121 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40122 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40123 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40124 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40125 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40126 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40128 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40130 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40138 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40139 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40140 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40151 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40153 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40156 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40157 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40160 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40161 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40162 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40167 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40173 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40174 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40209 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40219 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40223 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40229 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40231 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40233 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40236 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40237 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40239 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40240 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40243 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40246 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40247 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40248 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40253 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40254 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40260 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40261 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40265 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40267 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40268 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40270 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40271 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40274 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40276 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40282 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40288 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40291 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40293 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40296 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40298 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40299 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40302 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40306 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40311 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40312 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40314 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40317 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40320 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40322 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40324 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40328 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40330 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40331 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40336 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40341 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40342 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40345 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40361 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40362 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40370 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 40371 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40372 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40373 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40375 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40379 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40385 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
40393 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40394 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
40399 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40402 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40406 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40407 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40408 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40414 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40419 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 RD |
40420 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40421 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40422 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40423 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40426 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40427 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40428 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40429 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40437 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40460 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
40461 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40466 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40472 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40475 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
40476 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40478 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40479 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40480 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40481 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40482 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
40483 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40485 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40488 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40492 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40496 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40498 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40505 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40517 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40520 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40529 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 | 40532 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40533 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
40534 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40543 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 40553 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40554 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40555 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40558 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40572 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40586 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
40592 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40606 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40609 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40622 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
40637 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
40664 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
40691 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
40734 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
40741 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
40758 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
40759 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
40794 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
40823 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
40826 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
40832 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
40837 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
40849 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40860 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40861 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40862 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40863 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40870 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40871 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40872 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40873 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40880 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40881 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40882 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40883 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
40892 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40896 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40902 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40903 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40904 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40905 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40906 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 40907 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40908 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
40909 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
40912 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
40913 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40940 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40952 | { NULL, NULL } | |
40953 | }; | |
40954 | ||
40955 | ||
40956 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40957 | ||
40958 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40959 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40960 | } | |
40961 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40962 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40963 | } | |
40964 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40965 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40966 | } | |
40967 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40968 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40969 | } | |
40970 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40971 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40972 | } | |
40973 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40974 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40975 | } | |
40976 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40977 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40978 | } | |
40979 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40980 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40981 | } | |
40982 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40983 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40984 | } | |
40985 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40986 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40987 | } | |
40988 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40989 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
40990 | } | |
40991 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
40992 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
40993 | } | |
40994 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
40995 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
40996 | } | |
40997 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
40998 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
40999 | } | |
41000 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41001 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41002 | } | |
41003 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41004 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41005 | } | |
41006 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41007 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41008 | } | |
41009 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41010 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41011 | } | |
41012 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41013 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41014 | } | |
41015 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41016 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41017 | } | |
41018 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41019 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41020 | } | |
41021 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41022 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41023 | } | |
41024 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41025 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41026 | } | |
41027 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41028 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41029 | } | |
41030 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41031 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41032 | } | |
41033 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41034 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41035 | } | |
41036 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41037 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41038 | } | |
41039 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41040 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41041 | } | |
41042 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41043 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41044 | } | |
41045 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41046 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41047 | } | |
41048 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41049 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41050 | } | |
41051 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41052 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41053 | } | |
41054 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41055 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41056 | } | |
41057 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41058 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41059 | } | |
41060 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41061 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41062 | } | |
41063 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41064 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41065 | } | |
41066 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41067 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41068 | } | |
41069 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41070 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41071 | } | |
41072 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41073 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41074 | } | |
41075 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41076 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41077 | } | |
41078 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41079 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41080 | } | |
41081 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41082 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41083 | } | |
41084 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41085 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41086 | } | |
41087 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41088 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41089 | } | |
41090 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41091 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41092 | } | |
41093 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41094 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41095 | } | |
41096 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41097 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41098 | } | |
41099 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41100 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41101 | } | |
41102 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41103 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41104 | } | |
41105 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41106 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41107 | } | |
41108 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41109 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41110 | } | |
41111 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41112 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41113 | } | |
41114 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41115 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41116 | } | |
41117 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41118 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41119 | } | |
41120 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41121 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41122 | } | |
41123 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41124 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41125 | } | |
41126 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41127 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41128 | } | |
41129 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41130 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41131 | } | |
41132 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41133 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41134 | } | |
41135 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41136 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41137 | } | |
41138 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41139 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41140 | } | |
41141 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41142 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41143 | } | |
41144 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41145 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41146 | } | |
41147 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41148 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41149 | } | |
41150 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41151 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41152 | } | |
41153 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41154 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41155 | } | |
41156 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41157 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41158 | } | |
41159 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41160 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41161 | } | |
41162 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41163 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41164 | } | |
41165 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41166 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41167 | } | |
41168 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41169 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41170 | } | |
41171 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41172 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41173 | } | |
41174 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41175 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41176 | } | |
41177 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41178 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41179 | } | |
41180 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41181 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41182 | } | |
41183 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41184 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41185 | } | |
41186 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41187 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41188 | } | |
41189 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41190 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41191 | } | |
41192 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41193 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41194 | } | |
41195 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41196 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41197 | } | |
41198 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41199 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41200 | } | |
41201 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41202 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41203 | } | |
41204 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41205 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41206 | } | |
41207 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41208 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41209 | } | |
41210 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41211 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41212 | } | |
41213 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41214 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41215 | } | |
41216 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41217 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41218 | } | |
41219 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41220 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41221 | } | |
41222 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41223 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41224 | } | |
41225 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41226 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41227 | } | |
41228 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41229 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41230 | } | |
41231 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41232 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41233 | } | |
41234 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41235 | return (void *)((wxObject *) ((wxImage *) x)); | |
41236 | } | |
41237 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41238 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41239 | } | |
41240 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41241 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41242 | } | |
41243 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41244 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41245 | } | |
41246 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41247 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41248 | } | |
41249 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41250 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41251 | } | |
41f1cec7 RD |
41252 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41253 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41254 | } | |
d14a1e28 RD |
41255 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41256 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41257 | } | |
41258 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41259 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41260 | } | |
41261 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41262 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41263 | } | |
41264 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41265 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41266 | } | |
41267 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41268 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41269 | } | |
41270 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41271 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41272 | } | |
41273 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41274 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41275 | } | |
41276 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41277 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41278 | } | |
41279 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41280 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41281 | } | |
41282 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41283 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41284 | } | |
41285 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41286 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41287 | } | |
41288 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41289 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41290 | } | |
41291 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41292 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41293 | } | |
41294 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41295 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41296 | } | |
41297 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41298 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41299 | } | |
41300 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41301 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41302 | } | |
41303 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41304 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41305 | } | |
41306 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41307 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41308 | } | |
41309 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41310 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41311 | } | |
41312 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41313 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41314 | } | |
41315 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41316 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41317 | } | |
41318 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41319 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41320 | } | |
41321 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41322 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41323 | } | |
41324 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41325 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41326 | } | |
41327 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41328 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41329 | } | |
41330 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41331 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41332 | } | |
41333 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41334 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41335 | } | |
41336 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41337 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41338 | } | |
41339 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41340 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41341 | } | |
41342 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41343 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41344 | } | |
41345 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41346 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41347 | } | |
41348 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41349 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41350 | } | |
41351 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41352 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41353 | } | |
41354 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41355 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41356 | } | |
41357 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41358 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41359 | } | |
41360 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41361 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41362 | } | |
41363 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41364 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41365 | } | |
41366 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41367 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41368 | } | |
41369 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41370 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41371 | } | |
41372 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41373 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41374 | } | |
41375 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41376 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41377 | } | |
41378 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41379 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41380 | } | |
41381 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41382 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41383 | } | |
41384 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41385 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41386 | } | |
41387 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41388 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41389 | } | |
41390 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41391 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41392 | } | |
41393 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41394 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41395 | } | |
41396 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41397 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41398 | } | |
41399 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41400 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41401 | } | |
41402 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41403 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41404 | } | |
41405 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41406 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41407 | } | |
41408 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41409 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41410 | } | |
41411 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41412 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41413 | } | |
41414 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41415 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41416 | } | |
41417 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41418 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41419 | } | |
41420 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41421 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41422 | } | |
41423 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41424 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41425 | } | |
41426 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41427 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41428 | } | |
41429 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41430 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41431 | } | |
41432 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41433 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41434 | } | |
41435 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41436 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41437 | } | |
41438 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41439 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41440 | } | |
41441 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41442 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41443 | } | |
2f4c0a16 RD |
41444 | 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}}; |
41445 | 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}}; | |
41446 | 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}}; | |
41447 | 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}}; | |
41448 | 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}}; | |
41449 | 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}}; | |
41450 | 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}}; | |
41451 | 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}}; | |
41452 | 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}}; | |
41453 | 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}}; | |
41454 | 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}}; | |
41455 | 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}}; | |
41456 | 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}}; | |
41457 | 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}}; | |
41458 | 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}}; | |
41459 | 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}}; | |
41460 | 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}}; | |
41461 | 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}}; | |
41462 | 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}}; | |
41463 | 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}}; | |
41464 | 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}}; | |
41465 | 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}}; | |
41466 | 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}}; | |
41467 | 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}}; | |
41468 | 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}}; | |
41469 | 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}}; | |
41470 | 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}}; | |
41471 | 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}}; | |
41472 | 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}}; | |
41473 | 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}}; | |
41474 | 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}}; | |
41475 | 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}}; | |
41476 | 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}}; | |
41477 | 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}}; | |
41478 | 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}}; | |
41479 | 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}}; | |
41480 | 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}}; | |
41481 | 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}}; | |
41482 | 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}}; | |
41483 | 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}}; | |
41484 | 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}}; | |
41485 | 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}}; | |
41486 | 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}}; | |
41487 | 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}}; | |
41488 | 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}}; | |
41489 | 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}}; | |
41490 | 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}}; | |
41491 | 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}}; | |
41492 | 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}}; | |
41493 | 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}}; | |
41494 | 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}}; | |
41495 | 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}}; | |
41496 | 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}}; | |
41497 | 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}}; | |
41498 | 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}}; | |
41499 | 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}}; | |
41500 | 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}}; | |
41501 | 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}}; | |
41502 | 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}}; | |
41503 | 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}}; | |
41504 | 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}}; | |
41505 | 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}}; | |
41506 | 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}}; | |
41507 | 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}}; | |
41508 | 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}}; | |
41509 | 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}}; | |
41510 | 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}}; | |
41511 | 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}}; | |
41512 | 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}}; | |
41513 | 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}}; | |
41514 | 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}}; | |
41515 | 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}}; | |
41516 | 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}}; | |
41517 | 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}}; | |
41518 | 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}}; | |
41519 | 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}}; | |
41520 | 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}}; | |
41521 | 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}}; | |
41522 | 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}}; | |
41523 | 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}}; | |
41524 | 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}}; | |
41525 | 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}}; | |
41526 | 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}}; | |
41527 | 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}}; | |
41528 | 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}}; | |
41529 | 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}}; | |
41530 | 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}}; | |
41531 | 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}}; | |
41532 | 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}}; | |
41533 | 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}}; | |
41534 | 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}}; | |
41535 | 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}}; | |
41536 | 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}}; | |
41537 | 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}}; | |
41538 | 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}}; | |
41539 | 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}}; | |
41540 | 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}}; | |
41541 | 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}}; | |
41542 | 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}}; | |
41543 | 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}}; | |
41544 | 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}}; | |
41545 | 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}}; | |
41546 | 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}}; | |
41547 | 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}}; | |
41548 | 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}}; | |
41549 | 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}}; | |
41550 | 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}}; | |
41551 | 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}}; | |
41552 | 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}}; | |
41553 | 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}}; | |
41554 | 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}}; | |
41555 | 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}}; | |
41556 | 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}}; | |
41557 | 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 |
41558 | |
41559 | static swig_type_info *swig_types_initial[] = { | |
41560 | _swigt__p_wxLayoutConstraints, | |
41561 | _swigt__p_wxRealPoint, | |
41562 | _swigt__p_wxSizerItem, | |
41563 | _swigt__p_wxGBSizerItem, | |
41564 | _swigt__p_wxScrollEvent, | |
41565 | _swigt__p_wxIndividualLayoutConstraint, | |
41566 | _swigt__p_wxSizer, | |
41567 | _swigt__p_wxBoxSizer, | |
41568 | _swigt__p_wxStaticBoxSizer, | |
41569 | _swigt__p_wxGridBagSizer, | |
41570 | _swigt__p_wxAcceleratorEntry, | |
41571 | _swigt__p_wxUpdateUIEvent, | |
41572 | _swigt__p_wxMenu, | |
41573 | _swigt__p_wxEvent, | |
41574 | _swigt__p_wxGridSizer, | |
41575 | _swigt__p_wxFlexGridSizer, | |
41576 | _swigt__p_wxInitDialogEvent, | |
41577 | _swigt__p_wxItemContainer, | |
41578 | _swigt__p_wxNcPaintEvent, | |
41579 | _swigt__p_wxPaintEvent, | |
41580 | _swigt__p_wxSysColourChangedEvent, | |
41581 | _swigt__p_wxMouseCaptureChangedEvent, | |
41582 | _swigt__p_wxDisplayChangedEvent, | |
41583 | _swigt__p_wxPaletteChangedEvent, | |
41584 | _swigt__p_wxControl, | |
41585 | _swigt__p_wxFont, | |
41586 | _swigt__p_wxMenuBarBase, | |
41587 | _swigt__p_wxSetCursorEvent, | |
41588 | _swigt__p_wxFSFile, | |
41589 | _swigt__p_wxCaret, | |
41590 | _swigt__p_wxRegion, | |
41591 | _swigt__p_wxPoint2D, | |
41592 | _swigt__p_int, | |
41593 | _swigt__p_wxSize, | |
41594 | _swigt__p_wxDC, | |
41595 | _swigt__p_wxPySizer, | |
41596 | _swigt__p_wxNotifyEvent, | |
41597 | _swigt__p_wxPyEvent, | |
41598 | _swigt__p_wxPropagationDisabler, | |
41599 | _swigt__p_wxAppTraits, | |
41600 | _swigt__p_wxArrayString, | |
41601 | _swigt__p_wxShowEvent, | |
41602 | _swigt__p_wxToolTip, | |
4e760a36 | 41603 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41604 | _swigt__p_wxIconizeEvent, |
41605 | _swigt__p_wxActivateEvent, | |
41606 | _swigt__p_wxMoveEvent, | |
41607 | _swigt__p_wxSizeEvent, | |
41608 | _swigt__p_wxQueryNewPaletteEvent, | |
41609 | _swigt__p_wxWindowCreateEvent, | |
41610 | _swigt__p_wxIdleEvent, | |
41611 | _swigt__p_wxMenuItem, | |
41612 | _swigt__p_wxStaticBox, | |
41613 | _swigt__p_long, | |
41614 | _swigt__p_wxTIFFHandler, | |
41615 | _swigt__p_wxXPMHandler, | |
41616 | _swigt__p_wxPNMHandler, | |
41617 | _swigt__p_wxJPEGHandler, | |
41618 | _swigt__p_wxPCXHandler, | |
41619 | _swigt__p_wxGIFHandler, | |
41620 | _swigt__p_wxPNGHandler, | |
41621 | _swigt__p_wxANIHandler, | |
41622 | _swigt__p_wxMemoryFSHandler, | |
41623 | _swigt__p_wxEvtHandler, | |
41624 | _swigt__p_wxCURHandler, | |
41625 | _swigt__p_wxICOHandler, | |
41626 | _swigt__p_wxBMPHandler, | |
41627 | _swigt__p_wxImageHandler, | |
41628 | _swigt__p_wxFileSystemHandler, | |
41629 | _swigt__p_wxPyFileSystemHandler, | |
41630 | _swigt__p_wxInternetFSHandler, | |
4e760a36 | 41631 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
41632 | _swigt__p_wxRect, |
41633 | _swigt__p_wxGBSpan, | |
41634 | _swigt__p_wxPropagateOnce, | |
41635 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 41636 | _swigt__p_char, |
d14a1e28 RD |
41637 | _swigt__p_wxGBPosition, |
41638 | _swigt__p_wxImage, | |
41639 | _swigt__p_wxFrame, | |
41640 | _swigt__p_wxScrollWinEvent, | |
41641 | _swigt__p_wxImageHistogram, | |
41642 | _swigt__p_byte, | |
41643 | _swigt__p_wxPoint, | |
41644 | _swigt__p_wxCursor, | |
41645 | _swigt__p_wxObject, | |
41646 | _swigt__p_wxPyInputStream, | |
41647 | _swigt__p_wxOutputStream, | |
41648 | _swigt__p_wxInputStream, | |
41649 | _swigt__p_wxDateTime, | |
41650 | _swigt__p_wxKeyEvent, | |
41651 | _swigt__p_wxNavigationKeyEvent, | |
41652 | _swigt__p_wxWindowDestroyEvent, | |
41653 | _swigt__p_wxWindow, | |
41654 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
41655 | _swigt__p_wxFileSystem, |
41656 | _swigt__p_wxBitmap, | |
41657 | _swigt__p_wxMenuEvent, | |
41658 | _swigt__p_wxContextMenuEvent, | |
41659 | _swigt__p_unsigned_char, | |
41660 | _swigt__p_wxCloseEvent, | |
41661 | _swigt__p_wxEraseEvent, | |
41662 | _swigt__p_wxMouseEvent, | |
41663 | _swigt__p_wxPyApp, | |
41664 | _swigt__p_wxCommandEvent, | |
41665 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 41666 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
41667 | _swigt__p_wxChildFocusEvent, |
41668 | _swigt__p_wxFocusEvent, | |
41669 | _swigt__p_wxDropFilesEvent, | |
41670 | _swigt__p_wxControlWithItems, | |
41671 | _swigt__p_wxColour, | |
41672 | _swigt__p_wxValidator, | |
41673 | _swigt__p_wxPyValidator, | |
41674 | 0 | |
41675 | }; | |
41676 | ||
41677 | ||
41678 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41679 | ||
41680 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
41681 | {0}}; |
41682 | ||
41683 | #ifdef __cplusplus | |
41684 | } | |
41685 | #endif | |
41686 | ||
41687 | #ifdef __cplusplus | |
41688 | extern "C" | |
41689 | #endif | |
41690 | SWIGEXPORT(void) SWIG_init(void) { | |
41691 | static PyObject *SWIG_globals = 0; | |
41692 | static int typeinit = 0; | |
41693 | PyObject *m, *d; | |
41694 | int i; | |
41695 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
41696 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41697 | d = PyModule_GetDict(m); | |
41698 | ||
41699 | if (!typeinit) { | |
41700 | for (i = 0; swig_types_initial[i]; i++) { | |
41701 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
41702 | } | |
41703 | typeinit = 1; | |
41704 | } | |
41705 | SWIG_InstallConstants(d,swig_const_table); | |
41706 | ||
41707 | ||
41708 | #ifndef wxPyUSE_EXPORT | |
41709 | // Make our API structure a CObject so other modules can import it | |
41710 | // from this module. | |
41711 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
41712 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
41713 | Py_XDECREF(cobj); | |
41714 | #endif | |
41715 | ||
2f4c0a16 RD |
41716 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
41717 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
41718 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
41719 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
41720 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
41721 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
41722 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
41723 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
41724 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
41725 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
41726 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
41727 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
41728 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
41729 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
41730 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
41731 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
41732 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
41733 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
41734 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
41735 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
41736 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
41737 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
41738 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
41739 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
41740 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
41741 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
41742 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
41743 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
41744 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
41745 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
41746 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
41747 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
41748 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
41749 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
41750 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
41751 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
41752 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
41753 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
41754 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
41755 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
41756 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
41757 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
41758 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
41759 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
41760 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
41761 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
41762 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
41763 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
41764 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
41765 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
41766 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
41767 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
41768 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
41769 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
41770 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
41771 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
41772 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
41773 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
41774 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
41775 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
41776 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
41777 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
41778 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
41779 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
41780 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
41781 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
41782 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
41783 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
41784 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
41785 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
41786 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
41787 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
41788 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
41789 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
41790 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
41791 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
41792 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
41793 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
41794 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
41795 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
41796 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
41797 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
41798 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
41799 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
41800 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
41801 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
41802 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
41803 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
41804 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
41805 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
41806 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
41807 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
41808 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
41809 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
41810 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
41811 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
41812 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
41813 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
41814 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
41815 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
41816 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
41817 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
41818 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
41819 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
41820 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
41821 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
41822 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
41823 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
41824 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
41825 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
41826 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
41827 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
41828 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
41829 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
41830 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
41831 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
41832 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
41833 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
41834 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
41835 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
41836 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
41837 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
41838 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
41839 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
41840 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
41841 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
41842 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
41843 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
41844 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
41845 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
41846 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
41847 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
41848 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
41849 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
41850 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
41851 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
41852 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
41853 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
41854 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
41855 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
41856 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
41857 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
41858 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
41859 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
41860 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
41861 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
41862 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
41863 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
41864 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
41865 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
41866 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
41867 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
41868 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
41869 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
41870 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
41871 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
41872 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
41873 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
41874 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
41875 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
41876 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
41877 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
41878 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
41879 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
41880 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41881 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41882 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
41883 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
41884 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
41885 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41886 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41887 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
41888 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
41889 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
41890 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
41891 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
41892 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
41893 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
41894 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
41895 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
41896 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
41897 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
41898 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
41899 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
41900 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
41901 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
41902 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
41903 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
41904 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
41905 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
41906 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
41907 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
41908 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
41909 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
41910 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
41911 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
41912 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
41913 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
41914 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
41915 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
41916 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
41917 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
41918 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
41919 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
41920 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
41921 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
41922 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
41923 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
41924 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
41925 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
41926 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
41927 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
41928 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
41929 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
41930 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41931 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
41932 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41933 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41934 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
41935 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
41936 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41937 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41938 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
41939 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
41940 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41941 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41942 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
41943 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41944 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41945 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41946 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
41947 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
41948 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
41949 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
41950 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
41951 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
41952 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
41953 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
41954 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
41955 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
41956 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
41957 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
41958 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
41959 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
41960 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
41961 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
41962 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
41963 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
41964 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
41965 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
41966 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
41967 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
41968 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
41969 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
41970 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
41971 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
41972 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
41973 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41974 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41975 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
41976 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
41977 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
41978 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
41979 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41980 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41981 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
41982 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
41983 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
41984 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
41985 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
41986 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
41987 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
41988 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
41989 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
41990 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
41991 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
41992 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
41993 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
41994 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
41995 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
41996 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
41997 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
41998 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
41999 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42000 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42001 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42002 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42003 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42004 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42005 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42006 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42007 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42008 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42009 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42010 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42011 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42012 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42013 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42014 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42015 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42016 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42017 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42018 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42019 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42020 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42021 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42022 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42023 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42024 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42025 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42026 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42027 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42028 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42029 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42030 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42031 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42032 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42033 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42034 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42035 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42036 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42037 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42038 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42039 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42040 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42041 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42042 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42043 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42044 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42045 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42046 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42047 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42048 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42049 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42050 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42051 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42052 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42053 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42054 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42055 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42056 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42057 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42058 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42059 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42060 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42061 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42062 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42063 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42064 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42065 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42066 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42067 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42068 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42069 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42070 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42071 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42072 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42073 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42074 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42075 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42076 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42077 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42078 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42079 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42080 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42081 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42082 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42083 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42084 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42085 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42086 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42087 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42088 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42089 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42090 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42091 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42092 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42093 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42094 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42095 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42096 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42097 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42098 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42099 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42100 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42101 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42102 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42103 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42104 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42105 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42106 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42107 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42108 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42109 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42110 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42111 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42112 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42113 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42114 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42115 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42116 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42117 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42118 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42119 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42120 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42121 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42122 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42123 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42124 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42125 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42126 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42127 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42128 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42129 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42130 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42131 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42132 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42133 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42134 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42135 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42136 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42137 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42138 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42139 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42140 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42141 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42142 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42143 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42144 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42145 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42146 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42147 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42148 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42149 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42150 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42151 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42152 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42153 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42154 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42155 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42156 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42157 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42158 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42159 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42160 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42161 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42162 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42163 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42164 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42165 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42166 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42167 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42168 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42169 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42170 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42171 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42172 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42173 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42174 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42175 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42176 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42177 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42178 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42179 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42180 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42181 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42182 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42183 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42184 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42185 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42186 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42187 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42188 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42189 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42190 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42191 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42192 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42193 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42194 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42195 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42196 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42197 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42198 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42199 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42200 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42201 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42202 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42203 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42204 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42205 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42206 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42207 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42208 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42209 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42210 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42211 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42212 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42213 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42214 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42215 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42216 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42217 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42218 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42219 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42220 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42221 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42222 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42223 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42224 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42225 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42226 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42227 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42228 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42229 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42230 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42231 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42232 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42233 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42234 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42235 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42236 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42237 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42238 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42239 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42240 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42241 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42242 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42243 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42244 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42245 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42246 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42247 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42248 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42249 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42250 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42251 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42252 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42253 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42254 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
d03fd34d | 42255 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
2f4c0a16 RD |
42256 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42257 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42258 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42259 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42260 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42261 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42262 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42263 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42264 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42265 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42266 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42267 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42268 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42269 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42270 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42271 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42272 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42273 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42274 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42275 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42276 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42277 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42278 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42279 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42280 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42281 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42282 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42283 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42284 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42285 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42286 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42287 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42288 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42289 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42290 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42291 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42292 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42293 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42294 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42295 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42296 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42297 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42298 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42299 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42300 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42301 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42302 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42303 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42304 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42305 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42306 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42307 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42308 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
2f4c0a16 RD |
42309 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42310 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42311 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42312 | |
42313 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42314 | ||
42315 | ||
42316 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42317 | ||
42318 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42319 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42320 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42321 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42322 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42323 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
2f4c0a16 RD |
42324 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42325 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42326 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42327 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42328 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42329 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42330 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42331 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42332 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42333 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42334 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42335 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42336 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42337 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42338 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42339 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42340 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42341 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42342 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42343 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42344 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42345 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42346 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42347 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42348 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42349 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42350 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42351 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42352 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42353 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42354 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42355 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42356 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42357 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42358 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42359 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42360 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42361 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42362 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42363 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42364 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42365 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42366 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42367 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42368 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42369 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42370 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42371 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42372 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42373 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42374 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42375 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42376 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42377 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42378 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42379 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42380 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42381 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42382 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42383 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42384 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42385 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42386 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42387 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42388 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42389 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42390 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42391 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42392 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42393 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42394 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42395 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42396 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42397 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42398 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42399 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42400 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42401 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42402 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42403 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42404 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42405 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42406 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42407 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42408 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42409 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42410 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42411 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42412 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42413 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42414 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42415 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42416 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42417 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42418 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42419 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42420 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42421 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42422 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42423 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42424 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42425 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42426 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42427 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42428 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42429 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42430 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42431 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42432 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42433 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42434 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42435 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42436 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42437 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42438 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42439 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42440 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42441 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42442 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42443 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42444 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42445 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42446 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42447 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42448 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42449 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42450 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
2f4c0a16 RD |
42451 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42452 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42453 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42454 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42455 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42456 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42457 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42458 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42459 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42460 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42461 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42462 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42463 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42464 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42465 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 42466 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 42467 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
fe763115 RD |
42468 | PyDict_SetItemString(d,"WINDOW_VARIANT_DEFAULT", SWIG_FromInt((int)wxWINDOW_VARIANT_DEFAULT)); |
42469 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
42470 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42471 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42472 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
d14a1e28 | 42473 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 42474 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
2f4c0a16 RD |
42475 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
42476 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42477 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 42478 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
2f4c0a16 RD |
42479 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
42480 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42481 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42482 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42483 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42484 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42485 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42486 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42487 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42488 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42489 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42490 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42491 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42492 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42493 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42494 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42495 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42496 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42497 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
42498 | |
42499 | // Initialize threading, some globals and such | |
42500 | __wxPyPreStart(d); | |
42501 | ||
42502 | ||
42503 | // Although these are defined in __version__ they need to be here too so | |
42504 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42505 | // versions match. | |
42506 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42507 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42508 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42509 | ||
42510 | } | |
42511 |