]>
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 | { | |
69223c70 RD |
635 | if (PyNumber_Check(obj)) |
636 | return PyInt_AsLong(obj); | |
637 | else { | |
638 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
639 | obj->ob_type->tp_name); | |
640 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
641 | Py_DECREF(errmsg); | |
642 | return 0; | |
643 | } | |
2f4c0a16 RD |
644 | } |
645 | ||
646 | ||
647 | #if INT_MAX != LONG_MAX | |
648 | SWIGSTATICINLINE(int) | |
649 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 650 | { |
2f4c0a16 RD |
651 | return swig_numeric_cast(int, |
652 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
653 | "int", INT_MIN, INT_MAX)); | |
654 | } | |
655 | #else | |
656 | #define SWIG_AsInt SWIG_AsLong | |
657 | #endif | |
658 | ||
659 | ||
660 | SWIGSTATICINLINE(int) | |
661 | SWIG_CheckInt(PyObject* obj) | |
662 | { | |
663 | SWIG_AsInt(obj); | |
664 | if (PyErr_Occurred()) { | |
665 | PyErr_Clear(); | |
666 | return 0; | |
667 | } else { | |
668 | return 1; | |
669 | } | |
8edf1c75 RD |
670 | } |
671 | ||
423f194a | 672 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 673 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
674 | PyObject* tup = PyTuple_New(2); |
675 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
676 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 677 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
678 | return tup; |
679 | } | |
8edf1c75 | 680 | |
2f4c0a16 RD |
681 | SWIGSTATICINLINE(double) |
682 | SWIG_AsDouble(PyObject *obj) | |
8edf1c75 | 683 | { |
69223c70 RD |
684 | if (PyNumber_Check(obj)) |
685 | return PyFloat_AsDouble(obj); | |
686 | else { | |
687 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
688 | obj->ob_type->tp_name); | |
689 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
690 | Py_DECREF(errmsg); | |
691 | return 0; | |
692 | } | |
2f4c0a16 RD |
693 | } |
694 | ||
695 | ||
696 | SWIGSTATICINLINE(int) | |
697 | SWIG_CheckDouble(PyObject* obj) | |
698 | { | |
699 | SWIG_AsDouble(obj); | |
700 | if (PyErr_Occurred()) { | |
701 | PyErr_Clear(); | |
702 | return 0; | |
703 | } else { | |
704 | return 1; | |
705 | } | |
8edf1c75 RD |
706 | } |
707 | ||
d14a1e28 RD |
708 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
709 | self->x = x; | |
710 | self->y = y; | |
711 | } | |
423f194a | 712 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 713 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
714 | PyObject* tup = PyTuple_New(2); |
715 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
716 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 717 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
718 | return tup; |
719 | } | |
8edf1c75 | 720 | |
2f4c0a16 RD |
721 | SWIGSTATICINLINE(int) |
722 | SWIG_CheckLong(PyObject* obj) | |
8edf1c75 | 723 | { |
2f4c0a16 RD |
724 | SWIG_AsLong(obj); |
725 | if (PyErr_Occurred()) { | |
726 | PyErr_Clear(); | |
727 | return 0; | |
728 | } else { | |
729 | return 1; | |
730 | } | |
8edf1c75 RD |
731 | } |
732 | ||
d14a1e28 RD |
733 | void wxPoint_Set(wxPoint *self,long x,long y){ |
734 | self->x = x; | |
735 | self->y = y; | |
736 | } | |
423f194a | 737 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 738 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
739 | PyObject* tup = PyTuple_New(2); |
740 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
741 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 742 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
743 | return tup; |
744 | } | |
745 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
746 | self->x = x; | |
747 | self->y = y; | |
748 | self->width = width; | |
749 | self->height = height; | |
750 | } | |
423f194a | 751 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 752 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
753 | PyObject* tup = PyTuple_New(4); |
754 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
755 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
756 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
757 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 758 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
759 | return tup; |
760 | } | |
761 | ||
762 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
763 | wxRegion reg1(*r1); | |
764 | wxRegion reg2(*r2); | |
765 | wxRect dest(0,0,0,0); | |
766 | PyObject* obj; | |
767 | ||
768 | reg1.Intersect(reg2); | |
769 | dest = reg1.GetBox(); | |
770 | ||
771 | if (dest != wxRect(0,0,0,0)) { | |
4f89f6a3 | 772 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 773 | wxRect* newRect = new wxRect(dest); |
423f194a | 774 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 775 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
776 | return obj; |
777 | } | |
778 | Py_INCREF(Py_None); | |
779 | return Py_None; | |
780 | } | |
781 | ||
782 | ||
783 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
784 | PyObject* o2; | |
785 | PyObject* o3; | |
786 | ||
787 | if (!target) { | |
788 | target = o; | |
789 | } else if (target == Py_None) { | |
790 | Py_DECREF(Py_None); | |
791 | target = o; | |
792 | } else { | |
793 | if (!PyTuple_Check(target)) { | |
794 | o2 = target; | |
795 | target = PyTuple_New(1); | |
796 | PyTuple_SetItem(target, 0, o2); | |
797 | } | |
798 | o3 = PyTuple_New(1); | |
799 | PyTuple_SetItem(o3, 0, o); | |
800 | ||
801 | o2 = target; | |
802 | target = PySequence_Concat(o2, o3); | |
803 | Py_DECREF(o2); | |
804 | Py_DECREF(o3); | |
805 | } | |
806 | return target; | |
807 | } | |
808 | ||
809 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
810 | self->m_x = x; | |
811 | self->m_y = y; | |
812 | } | |
423f194a | 813 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 814 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
815 | PyObject* tup = PyTuple_New(2); |
816 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
817 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 818 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
819 | return tup; |
820 | } | |
821 | ||
822 | #include "wx/wxPython/pyistream.h" | |
823 | ||
824 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
825 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
826 | if (wxis) | |
827 | return new wxPyInputStream(wxis); | |
828 | else | |
829 | return NULL; | |
830 | } | |
8edf1c75 | 831 | |
2f4c0a16 RD |
832 | SWIGSTATICINLINE(PyObject*) |
833 | SWIG_FromChar(char c) | |
8edf1c75 RD |
834 | { |
835 | return PyString_FromStringAndSize(&c,1); | |
836 | } | |
837 | ||
838 | ||
2f4c0a16 RD |
839 | SWIGSTATICINLINE(PyObject* ) |
840 | SWIG_FromUnsignedLong(unsigned long value) | |
841 | { | |
842 | return (value > LONG_MAX) ? | |
843 | PyLong_FromUnsignedLong(value) | |
844 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
845 | } | |
846 | ||
847 | ||
848 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
849 | SWIGSTATIC(int) | |
850 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
8edf1c75 | 851 | { |
2f4c0a16 RD |
852 | static swig_type_info* pchar_info = 0; |
853 | int psize = 0; | |
854 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
855 | ||
856 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
857 | PyErr_Clear(); | |
858 | PyString_AsStringAndSize(obj, cptr, &psize); | |
859 | if (PyErr_Occurred()) { | |
860 | PyErr_Clear(); | |
861 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
862 | } | |
863 | if (size) *size = psize; | |
864 | return 0; | |
865 | } else { | |
866 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
867 | return 1; | |
868 | } | |
8edf1c75 RD |
869 | } |
870 | ||
871 | ||
2f4c0a16 RD |
872 | SWIGSTATIC(void) |
873 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
874 | { | |
875 | char* cptr; size_t csize; | |
876 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
877 | if (PyErr_Occurred()) { | |
878 | PyErr_Clear(); | |
879 | PyObject *err = | |
880 | PyString_FromFormat("a char array of size %d is expected", size); | |
881 | PyErr_SetObject(PyExc_TypeError, err); | |
882 | Py_DECREF(err); | |
883 | } else { | |
884 | /* in C (but not in C++) you can do: | |
885 | ||
886 | char x[5] = "hello"; | |
887 | ||
888 | ie, assing the array using an extra '0' char. | |
889 | */ | |
890 | #ifndef __cplusplus | |
891 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
892 | #endif | |
893 | if (csize > size) { | |
894 | PyObject *err = | |
895 | PyString_FromFormat("a char array of maximum size %d is expected", | |
896 | size); | |
897 | PyErr_SetObject(PyExc_TypeError, err); | |
898 | Py_DECREF(err); | |
899 | } else { | |
900 | if (csize) memcpy(carray, cptr, csize); | |
901 | if (csize < size) memset(carray + csize, 0, size - csize); | |
902 | } | |
903 | } | |
904 | } | |
905 | ||
906 | ||
907 | SWIGSTATICINLINE(char) | |
908 | SWIG_AsChar(PyObject *obj) | |
8edf1c75 RD |
909 | { |
910 | char c = 0; | |
911 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
2f4c0a16 RD |
912 | c = swig_numeric_cast(char, |
913 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
914 | "char", CHAR_MIN, CHAR_MAX)); | |
8edf1c75 | 915 | } else { |
2f4c0a16 RD |
916 | SWIG_AsCharArray(obj, &c, 1); |
917 | if (PyErr_Occurred()) { | |
918 | PyErr_Clear(); | |
8edf1c75 RD |
919 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
920 | } | |
921 | } | |
922 | return c; | |
923 | } | |
924 | ||
2f4c0a16 RD |
925 | |
926 | SWIGSTATICINLINE(int) | |
927 | SWIG_CheckChar(PyObject* obj) | |
928 | { | |
929 | SWIG_AsChar(obj); | |
930 | if (PyErr_Occurred()) { | |
931 | PyErr_Clear(); | |
932 | return 0; | |
933 | } else { | |
934 | return 1; | |
935 | } | |
936 | } | |
937 | ||
d14a1e28 RD |
938 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
939 | // We use only strings for the streams, not unicode | |
940 | PyObject* str = PyObject_Str(obj); | |
941 | if (! str) { | |
942 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
943 | return; | |
944 | } | |
945 | self->Write(PyString_AS_STRING(str), | |
946 | PyString_GET_SIZE(str)); | |
947 | Py_DECREF(str); | |
948 | } | |
949 | ||
950 | #include "wx/wxPython/pyistream.h" | |
951 | ||
952 | ||
953 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
954 | { | |
955 | public: | |
956 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
957 | ||
958 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
959 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
960 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
961 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
962 | ||
963 | wxString GetProtocol(const wxString& location) { | |
964 | return wxFileSystemHandler::GetProtocol(location); | |
965 | } | |
966 | ||
967 | wxString GetLeftLocation(const wxString& location) { | |
968 | return wxFileSystemHandler::GetLeftLocation(location); | |
969 | } | |
970 | ||
971 | wxString GetAnchor(const wxString& location) { | |
972 | return wxFileSystemHandler::GetAnchor(location); | |
973 | } | |
974 | ||
975 | wxString GetRightLocation(const wxString& location) { | |
976 | return wxFileSystemHandler::GetRightLocation(location); | |
977 | } | |
978 | ||
979 | wxString GetMimeTypeFromExt(const wxString& location) { | |
980 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
981 | } | |
982 | ||
983 | PYPRIVATE; | |
984 | }; | |
985 | ||
986 | ||
987 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
988 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
989 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
990 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
991 | ||
992 | ||
2f4c0a16 RD |
993 | SWIGSTATICINLINE(bool) |
994 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
995 | { |
996 | return PyObject_IsTrue(obj) ? true : false; | |
997 | } | |
998 | ||
999 | ||
2f4c0a16 RD |
1000 | SWIGSTATICINLINE(int) |
1001 | SWIG_CheckBool(PyObject* obj) | |
1002 | { | |
1003 | SWIG_AsBool(obj); | |
1004 | if (PyErr_Occurred()) { | |
1005 | PyErr_Clear(); | |
1006 | return 0; | |
1007 | } else { | |
1008 | return 1; | |
1009 | } | |
1010 | } | |
1011 | ||
1012 | ||
d14a1e28 RD |
1013 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1014 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1015 | return fname.GetFullPath(); | |
1016 | } | |
1017 | ||
1018 | ||
1019 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1020 | wxImage& image, | |
1021 | long type) { | |
1022 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1023 | } | |
1024 | ||
1025 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1026 | const wxBitmap& bitmap, | |
1027 | long type) { | |
1028 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1029 | } | |
1030 | ||
1031 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1032 | PyObject* data) { | |
1033 | wxMemoryFSHandler::AddFile(filename, | |
1034 | // TODO: Verify data type | |
1035 | (void*)PyString_AsString(data), | |
1036 | (size_t)PyString_Size(data)); | |
1037 | } | |
1038 | ||
1039 | ||
1040 | #include "wx/wxPython/pyistream.h" | |
1041 | ||
8edf1c75 | 1042 | |
2f4c0a16 RD |
1043 | SWIGSTATICINLINE(unsigned long) |
1044 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1045 | unsigned long max_value) | |
1046 | { | |
1047 | if (!PyErr_Occurred()) { | |
1048 | if (value > max_value) { | |
1049 | PyObject *err = | |
1050 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1051 | value, type, max_value); | |
1052 | PyErr_SetObject(PyExc_OverflowError, err); | |
1053 | Py_DECREF(err); | |
1054 | } | |
1055 | } | |
1056 | return value; | |
1057 | } | |
1058 | ||
1059 | ||
1060 | SWIGSTATICINLINE(unsigned long) | |
1061 | SWIG_AsUnsignedLong(PyObject * obj) | |
1062 | { | |
1063 | if (PyLong_Check(obj)) { | |
1064 | return PyLong_AsUnsignedLong(obj); | |
1065 | } else { | |
69223c70 | 1066 | long i = SWIG_AsLong(obj); |
2f4c0a16 | 1067 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1068 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
2f4c0a16 RD |
1069 | } |
1070 | return i; | |
1071 | } | |
1072 | } | |
1073 | ||
1074 | ||
1075 | SWIGSTATICINLINE(unsigned char) | |
1076 | SWIG_AsUnsignedChar(PyObject *obj) | |
8edf1c75 | 1077 | { |
2f4c0a16 RD |
1078 | return swig_numeric_cast(unsigned char, |
1079 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1080 | "unsigned char", UCHAR_MAX)); | |
1081 | } | |
1082 | ||
1083 | ||
1084 | SWIGSTATICINLINE(int) | |
1085 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1086 | { | |
1087 | SWIG_AsUnsignedChar(obj); | |
1088 | if (PyErr_Occurred()) { | |
1089 | PyErr_Clear(); | |
1090 | return 0; | |
1091 | } else { | |
1092 | return 1; | |
1093 | } | |
8edf1c75 RD |
1094 | } |
1095 | ||
d14a1e28 RD |
1096 | wxImage *new_wxImage(int width,int height,bool clear){ |
1097 | if (width > 0 && height > 0) | |
1098 | return new wxImage(width, height, clear); | |
1099 | else | |
1100 | return new wxImage; | |
1101 | } | |
1102 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
1103 | return new wxImage(bitmap.ConvertToImage()); | |
1104 | } | |
1105 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1106 | // Copy the source data so the wxImage can clean it up later | |
1107 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1108 | if (copy == NULL) { | |
1109 | PyErr_NoMemory(); | |
1110 | return NULL; | |
1111 | } | |
1112 | memcpy(copy, data, width*height*3); | |
423f194a | 1113 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
1114 | } |
1115 | PyObject *wxImage_GetData(wxImage *self){ | |
1116 | unsigned char* data = self->GetData(); | |
1117 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1118 | PyObject* rv; | |
1119 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1120 | return rv; | |
1121 | } | |
1122 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1123 | unsigned char* dataPtr; | |
1124 | ||
1125 | if (! PyString_Check(data)) { | |
1126 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1127 | return /* NULL */ ; | |
1128 | } | |
1129 | ||
1130 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1131 | dataPtr = (unsigned char*) malloc(len); | |
1132 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1133 | self->SetData(dataPtr); | |
1134 | // wxImage takes ownership of dataPtr... | |
1135 | } | |
1136 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1137 | unsigned char* data = self->GetData(); | |
1138 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1139 | PyObject* rv; | |
1140 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1141 | return rv; | |
1142 | } | |
1143 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1144 | unsigned char* buffer; | |
1145 | int size; | |
1146 | ||
4f89f6a3 | 1147 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1148 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1149 | goto done; | |
1150 | ||
1151 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1152 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1153 | goto done; | |
1154 | } | |
1155 | self->SetData(buffer); | |
1156 | done: | |
4f89f6a3 | 1157 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1158 | } |
1159 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1160 | unsigned char* data = self->GetAlpha(); | |
1161 | if (! data) { | |
1162 | RETURN_NONE(); | |
1163 | } else { | |
1164 | int len = self->GetWidth() * self->GetHeight(); | |
1165 | PyObject* rv; | |
1166 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1167 | return rv; | |
1168 | } | |
1169 | } | |
1170 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1171 | unsigned char* dataPtr; | |
1172 | ||
1173 | if (! PyString_Check(data)) { | |
1174 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1175 | return /* NULL */ ; | |
1176 | } | |
1177 | ||
1178 | size_t len = self->GetWidth() * self->GetHeight(); | |
1179 | dataPtr = (unsigned char*) malloc(len); | |
1180 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1181 | self->SetAlpha(dataPtr); | |
1182 | // wxImage takes ownership of dataPtr... | |
1183 | } | |
1184 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1185 | unsigned char* data = self->GetAlpha(); | |
1186 | int len = self->GetWidth() * self->GetHeight(); | |
1187 | PyObject* rv; | |
1188 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1189 | return rv; | |
1190 | } | |
1191 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1192 | unsigned char* buffer; | |
1193 | int size; | |
1194 | ||
4f89f6a3 | 1195 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1196 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1197 | goto done; | |
1198 | ||
1199 | if (size != self->GetWidth() * self->GetHeight()) { | |
1200 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1201 | goto done; | |
1202 | } | |
1203 | self->SetAlpha(buffer); | |
1204 | done: | |
4f89f6a3 | 1205 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1206 | } |
2f4c0a16 RD |
1207 | |
1208 | SWIGSTATICINLINE(int) | |
1209 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1210 | { | |
1211 | SWIG_AsUnsignedLong(obj); | |
1212 | if (PyErr_Occurred()) { | |
1213 | PyErr_Clear(); | |
1214 | return 0; | |
1215 | } else { | |
1216 | return 1; | |
1217 | } | |
1218 | } | |
1219 | ||
d14a1e28 RD |
1220 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1221 | wxBitmap bitmap(*self); | |
1222 | return bitmap; | |
1223 | } | |
1224 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1225 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1226 | wxBitmap bitmap( mono, 1 ); | |
1227 | return bitmap; | |
1228 | } | |
1229 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1230 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1231 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1232 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1233 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1234 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1235 | if (PyCallable_Check(func)) { | |
1236 | self->Connect(id, lastId, eventType, | |
1237 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1238 | new wxPyCallback(func)); | |
1239 | } | |
1240 | else if (func == Py_None) { | |
1241 | self->Disconnect(id, lastId, eventType, | |
1242 | (wxObjectEventFunction) | |
1243 | &wxPyCallback::EventThunker); | |
1244 | } | |
1245 | else { | |
1246 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1247 | } | |
1248 | } | |
1249 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1250 | return self->Disconnect(id, lastId, eventType, | |
1251 | (wxObjectEventFunction) | |
1252 | &wxPyCallback::EventThunker); | |
1253 | } | |
1254 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1255 | if (_self && _self != Py_None) { | |
1256 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1257 | } | |
1258 | else { | |
1259 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1260 | if (data) { | |
1261 | self->SetClientObject(NULL); // This will delete it too | |
1262 | } | |
1263 | } | |
1264 | } | |
1265 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
a64def11 RD |
1266 | #if wxUSE_UNICODE |
1267 | return self->m_uniChar; | |
1268 | #else | |
d14a1e28 | 1269 | return 0; |
a64def11 | 1270 | #endif |
d14a1e28 | 1271 | } |
8edf1c75 | 1272 | |
2f4c0a16 RD |
1273 | #if UINT_MAX < LONG_MAX |
1274 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1275 | #else | |
1276 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1277 | #endif | |
8edf1c75 RD |
1278 | |
1279 | ||
2f4c0a16 RD |
1280 | #if UINT_MAX != ULONG_MAX |
1281 | SWIGSTATICINLINE(unsigned int) | |
1282 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 1283 | { |
2f4c0a16 RD |
1284 | return swig_numeric_cast(unsigned int, |
1285 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1286 | "unsigned int", UINT_MAX)); | |
1287 | } | |
1288 | #else | |
1289 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1290 | #endif | |
1291 | ||
1292 | ||
1293 | SWIGSTATICINLINE(int) | |
1294 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1295 | { | |
1296 | SWIG_AsUnsignedInt(obj); | |
1297 | if (PyErr_Occurred()) { | |
1298 | PyErr_Clear(); | |
1299 | return 0; | |
1300 | } else { | |
1301 | return 1; | |
1302 | } | |
8edf1c75 RD |
1303 | } |
1304 | ||
d14a1e28 RD |
1305 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1306 | self->m_size = size; | |
1307 | } | |
1308 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1309 | self->m_pos = pos; | |
1310 | } | |
1311 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1312 | int count = self->GetNumberOfFiles(); | |
1313 | wxString* files = self->GetFiles(); | |
1314 | PyObject* list = PyList_New(count); | |
1315 | ||
1316 | if (!list) { | |
1317 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1318 | return NULL; | |
1319 | } | |
1320 | ||
1321 | for (int i=0; i<count; i++) { | |
a64def11 | 1322 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1323 | } |
1324 | return list; | |
1325 | } | |
1326 | ||
1327 | ||
1328 | wxPyApp *new_wxPyApp(){ | |
1329 | wxPythonApp = new wxPyApp(); | |
1330 | return wxPythonApp; | |
1331 | } | |
1332 | ||
1333 | void wxApp_CleanUp() { | |
1334 | __wxPyCleanup(); | |
1335 | } | |
1336 | ||
1337 | ||
1338 | wxPyApp* wxGetApp() { | |
1339 | return (wxPyApp*)wxTheApp; | |
1340 | } | |
1341 | ||
1342 | ||
1343 | ||
423f194a | 1344 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
d14a1e28 RD |
1345 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1346 | wxWindowList& list = self->GetChildren(); | |
1347 | return wxPy_ConvertList(&list); | |
1348 | } | |
1349 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1350 | ||
1351 | ||
1352 | ||
423f194a | 1353 | return False; |
d14a1e28 RD |
1354 | |
1355 | } | |
1356 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1357 | ||
1358 | ||
1359 | ||
423f194a | 1360 | return False; |
d14a1e28 RD |
1361 | |
1362 | } | |
1363 | long wxWindow_GetHandle(wxWindow *self){ | |
1364 | return wxPyGetWinHandle(self); | |
1365 | } | |
1366 | ||
1367 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1368 | return wxWindow::FindWindowById(id, parent); | |
1369 | } | |
1370 | ||
1371 | wxWindow* wxFindWindowByName( const wxString& name, | |
1372 | const wxWindow *parent = NULL ) { | |
1373 | return wxWindow::FindWindowByName(name, parent); | |
1374 | } | |
1375 | ||
1376 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1377 | const wxWindow *parent = NULL ) { | |
1378 | return wxWindow::FindWindowByLabel(label, parent); | |
1379 | } | |
1380 | ||
1381 | ||
d14a1e28 | 1382 | #ifdef __WXMSW__ |
fe763115 RD |
1383 | #include <wx/msw/private.h> // to get wxGetWindowId |
1384 | #endif | |
1385 | ||
1386 | ||
1387 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1388 | #ifdef __WXMSW__ | |
1389 | WXHWND hWnd = (WXHWND)_hWnd; | |
1390 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1391 | wxWindow* win = new wxWindow; |
fe763115 RD |
1392 | parent->AddChild(win); |
1393 | win->SetEventHandler(win); | |
1394 | win->SetHWND(hWnd); | |
1395 | win->SetId(id); | |
1396 | win->SubclassWin(hWnd); | |
1397 | win->AdoptAttributesFromHWND(); | |
1398 | win->SetupColours(); | |
d14a1e28 RD |
1399 | return win; |
1400 | #else | |
cbd72d4f | 1401 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1402 | return NULL; |
1403 | #endif | |
1404 | } | |
1405 | ||
1406 | ||
1407 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1408 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1409 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1410 | ||
1411 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1412 | ||
1413 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1414 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1415 | wxMenuItemList& list = self->GetMenuItems(); | |
1416 | return wxPy_ConvertList(&list); | |
1417 | } | |
d03fd34d | 1418 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1419 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1420 | if (clientData) { | |
1421 | wxPyClientData* data = new wxPyClientData(clientData); | |
1422 | return self->Append(item, data); | |
1423 | } else | |
1424 | return self->Append(item); | |
1425 | } | |
1426 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1427 | if (clientData) { | |
1428 | wxPyClientData* data = new wxPyClientData(clientData); | |
1429 | return self->Insert(item, pos, data); | |
1430 | } else | |
1431 | return self->Insert(item, pos); | |
1432 | } | |
1433 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1434 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1435 | if (data) { | |
1436 | Py_INCREF(data->m_obj); | |
1437 | return data->m_obj; | |
1438 | } else { | |
1439 | Py_INCREF(Py_None); | |
1440 | return Py_None; | |
1441 | } | |
1442 | } | |
1443 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1444 | wxPyClientData* data = new wxPyClientData(clientData); | |
1445 | self->SetClientObject(n, data); | |
1446 | } | |
1447 | ||
1448 | ||
8edf1c75 | 1449 | |
2f4c0a16 RD |
1450 | #include <float.h> |
1451 | ||
8edf1c75 | 1452 | SWIGSTATIC(float) |
2f4c0a16 RD |
1453 | SWIG_FloatCast(double value) |
1454 | { | |
1455 | float f = 0; | |
1456 | if (!PyErr_Occurred()) { | |
1457 | if (value < FLT_MIN) { | |
1458 | PyObject *err = | |
1459 | PyString_FromFormat("value %g is less than float minimum %g", | |
1460 | value, FLT_MIN); | |
1461 | PyErr_SetObject(PyExc_OverflowError, err); | |
1462 | Py_DECREF(err); | |
1463 | } else if (value > FLT_MAX) { | |
1464 | PyObject *err = | |
1465 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1466 | value, FLT_MAX); | |
1467 | PyErr_SetObject(PyExc_OverflowError, err); | |
1468 | Py_DECREF(err); | |
1469 | } else { | |
1470 | f = swig_numeric_cast(float, value); | |
1471 | } | |
1472 | } | |
1473 | return f; | |
1474 | } | |
1475 | ||
1476 | ||
1477 | SWIGSTATICINLINE(float) | |
1478 | SWIG_AsFloat(PyObject *obj) | |
8edf1c75 | 1479 | { |
2f4c0a16 RD |
1480 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1481 | } | |
1482 | ||
1483 | ||
1484 | SWIGSTATICINLINE(int) | |
1485 | SWIG_CheckFloat(PyObject* obj) | |
1486 | { | |
1487 | SWIG_AsFloat(obj); | |
1488 | if (PyErr_Occurred()) { | |
1489 | PyErr_Clear(); | |
1490 | return 0; | |
1491 | } else { | |
1492 | return 1; | |
1493 | } | |
8edf1c75 RD |
1494 | } |
1495 | ||
d14a1e28 RD |
1496 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1497 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1498 | if (data) { | |
1499 | Py_INCREF(data->m_obj); | |
1500 | return data->m_obj; | |
1501 | } else { | |
1502 | Py_INCREF(Py_None); | |
1503 | return Py_None; | |
1504 | } | |
1505 | } | |
1506 | ||
1507 | // Figure out the type of the sizer item | |
1508 | ||
1509 | struct wxPySizerItemInfo { | |
1510 | wxPySizerItemInfo() | |
423f194a RD |
1511 | : window(NULL), sizer(NULL), gotSize(False), |
1512 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1513 | {} |
1514 | ||
1515 | wxWindow* window; | |
1516 | wxSizer* sizer; | |
1517 | bool gotSize; | |
1518 | wxSize size; | |
1519 | bool gotPos; | |
1520 | int pos; | |
1521 | }; | |
1522 | ||
1523 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1524 | ||
1525 | wxPySizerItemInfo info; | |
1526 | wxSize size; | |
1527 | wxSize* sizePtr = &size; | |
1528 | ||
1529 | // Find out what the type of the item is | |
1530 | // try wxWindow | |
1531 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1532 | PyErr_Clear(); | |
1533 | info.window = NULL; | |
1534 | ||
1535 | // try wxSizer | |
1536 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1537 | PyErr_Clear(); | |
1538 | info.sizer = NULL; | |
1539 | ||
1540 | // try wxSize or (w,h) | |
1541 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1542 | info.size = *sizePtr; | |
423f194a | 1543 | info.gotSize = True; |
d14a1e28 RD |
1544 | } |
1545 | ||
1546 | // or a single int | |
1547 | if (checkIdx && PyInt_Check(item)) { | |
1548 | info.pos = PyInt_AsLong(item); | |
423f194a | 1549 | info.gotPos = True; |
d14a1e28 RD |
1550 | } |
1551 | } | |
1552 | } | |
1553 | ||
1554 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1555 | // no expected type, figure out what kind of error message to generate | |
1556 | if ( !checkSize && !checkIdx ) | |
1557 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1558 | else if ( checkSize && !checkIdx ) | |
1559 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1560 | else if ( !checkSize && checkIdx) | |
1561 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1562 | else | |
1563 | // can this one happen? | |
1564 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1565 | } | |
1566 | ||
1567 | return info; | |
1568 | } | |
1569 | ||
1570 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1571 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1572 | } | |
1573 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1574 | ||
1575 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1576 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1577 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1578 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1579 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1580 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1581 | |
1582 | // Now call the real Add method if a valid item type was found | |
1583 | if ( info.window ) | |
1584 | self->Add(info.window, proportion, flag, border, data); | |
1585 | else if ( info.sizer ) | |
1586 | self->Add(info.sizer, proportion, flag, border, data); | |
1587 | else if (info.gotSize) | |
1588 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1589 | proportion, flag, border, data); | |
1590 | } | |
1591 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1592 | ||
1593 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1594 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1595 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1596 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1597 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1598 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1599 | |
1600 | // Now call the real Insert method if a valid item type was found | |
1601 | if ( info.window ) | |
1602 | self->Insert(before, info.window, proportion, flag, border, data); | |
1603 | else if ( info.sizer ) | |
1604 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1605 | else if (info.gotSize) | |
1606 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1607 | proportion, flag, border, data); | |
1608 | } | |
1609 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1610 | ||
1611 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1612 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1613 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1614 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1615 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1616 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1617 | |
1618 | // Now call the real Prepend method if a valid item type was found | |
1619 | if ( info.window ) | |
1620 | self->Prepend(info.window, proportion, flag, border, data); | |
1621 | else if ( info.sizer ) | |
1622 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1623 | else if (info.gotSize) | |
1624 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1625 | proportion, flag, border, data); | |
1626 | } | |
1627 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1628 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1629 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1630 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1631 | if ( info.window ) |
1632 | return self->Remove(info.window); | |
1633 | else if ( info.sizer ) | |
1634 | return self->Remove(info.sizer); | |
1635 | else if ( info.gotPos ) | |
1636 | return self->Remove(info.pos); | |
1637 | else | |
423f194a | 1638 | return False; |
d14a1e28 | 1639 | } |
423f194a | 1640 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1641 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1642 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1643 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1644 | if ( info.window ) |
1645 | self->SetItemMinSize(info.window, size); | |
1646 | else if ( info.sizer ) | |
1647 | self->SetItemMinSize(info.sizer, size); | |
1648 | else if ( info.gotPos ) | |
1649 | self->SetItemMinSize(info.pos, size); | |
1650 | } | |
1651 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1652 | wxSizerItemList& list = self->GetChildren(); | |
1653 | return wxPy_ConvertList(&list); | |
1654 | } | |
1655 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
423f194a | 1656 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1657 | if ( info.window ) |
1658 | self->Show(info.window, show); | |
1659 | else if ( info.sizer ) | |
1660 | self->Show(info.sizer, show); | |
1661 | } | |
1662 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
423f194a | 1663 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1664 | if ( info.window ) |
1665 | self->Hide(info.window); | |
1666 | else if ( info.sizer ) | |
1667 | self->Hide(info.sizer); | |
1668 | } | |
1669 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
423f194a | 1670 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1671 | if ( info.window ) |
1672 | return self->IsShown(info.window); | |
1673 | else if ( info.sizer ) | |
1674 | return self->IsShown(info.sizer); | |
1675 | else | |
423f194a | 1676 | return False; |
d14a1e28 RD |
1677 | } |
1678 | ||
1679 | // See pyclasses.h | |
1680 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1681 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1682 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1683 | ||
1684 | ||
1685 | ||
1686 | ||
1687 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1688 | { | |
4f89f6a3 RD |
1689 | if (source == Py_None) { |
1690 | **obj = wxGBPosition(-1,-1); | |
1691 | return True; | |
1692 | } | |
d14a1e28 RD |
1693 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1694 | } | |
1695 | ||
1696 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1697 | { | |
4f89f6a3 RD |
1698 | if (source == Py_None) { |
1699 | **obj = wxGBSpan(-1,-1); | |
1700 | return True; | |
1701 | } | |
d14a1e28 RD |
1702 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1703 | } | |
1704 | ||
1705 | ||
423f194a RD |
1706 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1707 | self->SetRow(row); | |
1708 | self->SetCol(col); | |
1709 | } | |
1710 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1711 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1712 | PyObject* tup = PyTuple_New(2); |
1713 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1714 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1715 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1716 | return tup; |
1717 | } | |
423f194a RD |
1718 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1719 | self->SetRowspan(rowspan); | |
1720 | self->SetColspan(colspan); | |
1721 | } | |
1722 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1723 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1724 | PyObject* tup = PyTuple_New(2); |
1725 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1726 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1727 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1728 | return tup; |
1729 | } | |
1730 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1731 | ||
1732 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1733 | bool blocked = wxPyBeginBlockThreads(); |
423f194a | 1734 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1735 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1736 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1737 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1738 | |
1739 | // Now call the real Add method if a valid item type was found | |
1740 | if ( info.window ) | |
1741 | return self->Add(info.window, pos, span, flag, border, data); | |
1742 | else if ( info.sizer ) | |
1743 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1744 | else if (info.gotSize) | |
1745 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1746 | pos, span, flag, border, data); | |
423f194a | 1747 | return False; |
d14a1e28 RD |
1748 | } |
1749 | ||
1750 | ||
1751 | #ifdef __cplusplus | |
1752 | extern "C" { | |
1753 | #endif | |
2f4c0a16 | 1754 | static int _wrap_EmptyString_set(PyObject *_val) { |
d03fd34d RD |
1755 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
1756 | return 1; | |
1757 | } | |
1758 | ||
1759 | ||
1760 | static PyObject *_wrap_EmptyString_get() { | |
1761 | PyObject *pyobj; | |
1762 | ||
1763 | { | |
1764 | #if wxUSE_UNICODE | |
1765 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1766 | #else | |
1767 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1768 | #endif | |
1769 | } | |
1770 | return pyobj; | |
1771 | } | |
1772 | ||
1773 | ||
d14a1e28 RD |
1774 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1775 | PyObject *resultobj; | |
1776 | wxObject *arg1 = (wxObject *) 0 ; | |
1777 | wxString result; | |
1778 | PyObject * obj0 = 0 ; | |
1779 | char *kwnames[] = { | |
1780 | (char *) "self", NULL | |
1781 | }; | |
1782 | ||
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1786 | { |
1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1788 | result = wxObject_GetClassName(arg1); | |
1789 | ||
1790 | wxPyEndAllowThreads(__tstate); | |
1791 | if (PyErr_Occurred()) SWIG_fail; | |
1792 | } | |
1793 | { | |
1794 | #if wxUSE_UNICODE | |
1795 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1796 | #else | |
1797 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1798 | #endif | |
1799 | } | |
1800 | return resultobj; | |
1801 | fail: | |
1802 | return NULL; | |
1803 | } | |
1804 | ||
1805 | ||
1806 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1807 | PyObject *resultobj; | |
1808 | wxObject *arg1 = (wxObject *) 0 ; | |
1809 | PyObject * obj0 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "self", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1817 | { |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | wxObject_Destroy(arg1); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | Py_INCREF(Py_None); resultobj = Py_None; | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1832 | PyObject *obj; | |
1833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1834 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1835 | Py_INCREF(obj); | |
1836 | return Py_BuildValue((char *)""); | |
1837 | } | |
1838 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject *resultobj; | |
1840 | wxSize *arg1 = (wxSize *) 0 ; | |
1841 | int arg2 ; | |
1842 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1844 | char *kwnames[] = { |
1845 | (char *) "self",(char *) "x", NULL | |
1846 | }; | |
1847 | ||
8edf1c75 | 1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1851 | arg2 = (int) SWIG_AsInt(obj1); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1853 | if (arg1) (arg1)->x = arg2; |
1854 | ||
1855 | Py_INCREF(Py_None); resultobj = Py_None; | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | wxSize *arg1 = (wxSize *) 0 ; | |
1865 | int result; | |
1866 | PyObject * obj0 = 0 ; | |
1867 | char *kwnames[] = { | |
1868 | (char *) "self", NULL | |
1869 | }; | |
1870 | ||
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1874 | result = (int) ((arg1)->x); |
1875 | ||
2f4c0a16 | 1876 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1877 | return resultobj; |
1878 | fail: | |
1879 | return NULL; | |
1880 | } | |
1881 | ||
1882 | ||
1883 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1884 | PyObject *resultobj; | |
1885 | wxSize *arg1 = (wxSize *) 0 ; | |
1886 | int arg2 ; | |
1887 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1889 | char *kwnames[] = { |
1890 | (char *) "self",(char *) "y", NULL | |
1891 | }; | |
1892 | ||
8edf1c75 | 1893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1896 | arg2 = (int) SWIG_AsInt(obj1); | |
1897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1898 | if (arg1) (arg1)->y = arg2; |
1899 | ||
1900 | Py_INCREF(Py_None); resultobj = Py_None; | |
1901 | return resultobj; | |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
1907 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject *resultobj; | |
1909 | wxSize *arg1 = (wxSize *) 0 ; | |
1910 | int result; | |
1911 | PyObject * obj0 = 0 ; | |
1912 | char *kwnames[] = { | |
1913 | (char *) "self", NULL | |
1914 | }; | |
1915 | ||
1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1919 | result = (int) ((arg1)->y); |
1920 | ||
2f4c0a16 | 1921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1922 | return resultobj; |
1923 | fail: | |
1924 | return NULL; | |
1925 | } | |
1926 | ||
1927 | ||
1928 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject *resultobj; | |
1930 | int arg1 = (int) 0 ; | |
1931 | int arg2 = (int) 0 ; | |
1932 | wxSize *result; | |
8edf1c75 RD |
1933 | PyObject * obj0 = 0 ; |
1934 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1935 | char *kwnames[] = { |
1936 | (char *) "w",(char *) "h", NULL | |
1937 | }; | |
1938 | ||
8edf1c75 RD |
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1940 | if (obj0) { | |
2f4c0a16 RD |
1941 | arg1 = (int) SWIG_AsInt(obj0); |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1943 | } |
1944 | if (obj1) { | |
2f4c0a16 RD |
1945 | arg2 = (int) SWIG_AsInt(obj1); |
1946 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1947 | } |
d14a1e28 RD |
1948 | { |
1949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1950 | result = (wxSize *)new wxSize(arg1,arg2); | |
1951 | ||
1952 | wxPyEndAllowThreads(__tstate); | |
1953 | if (PyErr_Occurred()) SWIG_fail; | |
1954 | } | |
2f4c0a16 | 1955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1956 | return resultobj; |
1957 | fail: | |
1958 | return NULL; | |
1959 | } | |
1960 | ||
1961 | ||
1962 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject *resultobj; | |
1964 | wxSize *arg1 = (wxSize *) 0 ; | |
1965 | PyObject * obj0 = 0 ; | |
1966 | char *kwnames[] = { | |
1967 | (char *) "self", NULL | |
1968 | }; | |
1969 | ||
1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1973 | { |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1975 | delete arg1; | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
1980 | Py_INCREF(Py_None); resultobj = Py_None; | |
1981 | return resultobj; | |
1982 | fail: | |
1983 | return NULL; | |
1984 | } | |
1985 | ||
1986 | ||
1987 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1988 | PyObject *resultobj; | |
1989 | wxSize *arg1 = (wxSize *) 0 ; | |
1990 | wxSize *arg2 = 0 ; | |
1991 | bool result; | |
1992 | wxSize temp2 ; | |
1993 | PyObject * obj0 = 0 ; | |
1994 | PyObject * obj1 = 0 ; | |
1995 | char *kwnames[] = { | |
1996 | (char *) "self",(char *) "sz", NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2002 | { |
2003 | arg2 = &temp2; | |
2004 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2005 | } | |
2006 | { | |
2007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2008 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2009 | |
2010 | wxPyEndAllowThreads(__tstate); | |
2011 | if (PyErr_Occurred()) SWIG_fail; | |
2012 | } | |
4f89f6a3 RD |
2013 | { |
2014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2015 | } | |
d14a1e28 RD |
2016 | return resultobj; |
2017 | fail: | |
2018 | return NULL; | |
2019 | } | |
2020 | ||
2021 | ||
2022 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2023 | PyObject *resultobj; | |
2024 | wxSize *arg1 = (wxSize *) 0 ; | |
2025 | wxSize *arg2 = 0 ; | |
2026 | bool result; | |
2027 | wxSize temp2 ; | |
2028 | PyObject * obj0 = 0 ; | |
2029 | PyObject * obj1 = 0 ; | |
2030 | char *kwnames[] = { | |
2031 | (char *) "self",(char *) "sz", NULL | |
2032 | }; | |
2033 | ||
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2037 | { |
2038 | arg2 = &temp2; | |
2039 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2040 | } | |
2041 | { | |
2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2043 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2044 | |
2045 | wxPyEndAllowThreads(__tstate); | |
2046 | if (PyErr_Occurred()) SWIG_fail; | |
2047 | } | |
4f89f6a3 RD |
2048 | { |
2049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2050 | } | |
d14a1e28 RD |
2051 | return resultobj; |
2052 | fail: | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject *resultobj; | |
2059 | wxSize *arg1 = (wxSize *) 0 ; | |
2060 | wxSize *arg2 = 0 ; | |
2061 | wxSize result; | |
2062 | wxSize temp2 ; | |
2063 | PyObject * obj0 = 0 ; | |
2064 | PyObject * obj1 = 0 ; | |
2065 | char *kwnames[] = { | |
2066 | (char *) "self",(char *) "sz", NULL | |
2067 | }; | |
2068 | ||
2069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2072 | { |
2073 | arg2 = &temp2; | |
2074 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2075 | } | |
2076 | { | |
2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2078 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2079 | ||
2080 | wxPyEndAllowThreads(__tstate); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
2082 | } | |
2083 | { | |
2084 | wxSize * resultptr; | |
2085 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2086 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2087 | } |
2088 | return resultobj; | |
2089 | fail: | |
2090 | return NULL; | |
2091 | } | |
2092 | ||
2093 | ||
2094 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2095 | PyObject *resultobj; | |
2096 | wxSize *arg1 = (wxSize *) 0 ; | |
2097 | wxSize *arg2 = 0 ; | |
2098 | wxSize result; | |
2099 | wxSize temp2 ; | |
2100 | PyObject * obj0 = 0 ; | |
2101 | PyObject * obj1 = 0 ; | |
2102 | char *kwnames[] = { | |
2103 | (char *) "self",(char *) "sz", NULL | |
2104 | }; | |
2105 | ||
2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2109 | { |
2110 | arg2 = &temp2; | |
2111 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2112 | } | |
2113 | { | |
2114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2115 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2116 | ||
2117 | wxPyEndAllowThreads(__tstate); | |
2118 | if (PyErr_Occurred()) SWIG_fail; | |
2119 | } | |
2120 | { | |
2121 | wxSize * resultptr; | |
2122 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 2123 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2124 | } |
2125 | return resultobj; | |
2126 | fail: | |
2127 | return NULL; | |
2128 | } | |
2129 | ||
2130 | ||
2131 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject *resultobj; | |
2133 | wxSize *arg1 = (wxSize *) 0 ; | |
2134 | wxSize *arg2 = 0 ; | |
2135 | wxSize temp2 ; | |
2136 | PyObject * obj0 = 0 ; | |
2137 | PyObject * obj1 = 0 ; | |
2138 | char *kwnames[] = { | |
2139 | (char *) "self",(char *) "sz", NULL | |
2140 | }; | |
2141 | ||
2142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2145 | { |
2146 | arg2 = &temp2; | |
2147 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2148 | } | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | (arg1)->IncTo((wxSize const &)*arg2); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | Py_INCREF(Py_None); resultobj = Py_None; | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject *resultobj; | |
2165 | wxSize *arg1 = (wxSize *) 0 ; | |
2166 | wxSize *arg2 = 0 ; | |
2167 | wxSize temp2 ; | |
2168 | PyObject * obj0 = 0 ; | |
2169 | PyObject * obj1 = 0 ; | |
2170 | char *kwnames[] = { | |
2171 | (char *) "self",(char *) "sz", NULL | |
2172 | }; | |
2173 | ||
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2177 | { |
2178 | arg2 = &temp2; | |
2179 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2180 | } | |
2181 | { | |
2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2183 | (arg1)->DecTo((wxSize const &)*arg2); | |
2184 | ||
2185 | wxPyEndAllowThreads(__tstate); | |
2186 | if (PyErr_Occurred()) SWIG_fail; | |
2187 | } | |
2188 | Py_INCREF(Py_None); resultobj = Py_None; | |
2189 | return resultobj; | |
2190 | fail: | |
2191 | return NULL; | |
2192 | } | |
2193 | ||
2194 | ||
2195 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2196 | PyObject *resultobj; | |
2197 | wxSize *arg1 = (wxSize *) 0 ; | |
2198 | int arg2 ; | |
2199 | int arg3 ; | |
2200 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2201 | PyObject * obj1 = 0 ; |
2202 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2203 | char *kwnames[] = { |
423f194a | 2204 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2205 | }; |
2206 | ||
8edf1c75 | 2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2210 | arg2 = (int) SWIG_AsInt(obj1); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | arg3 = (int) SWIG_AsInt(obj2); | |
2213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2214 | { |
2215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2216 | (arg1)->Set(arg2,arg3); | |
2217 | ||
2218 | wxPyEndAllowThreads(__tstate); | |
2219 | if (PyErr_Occurred()) SWIG_fail; | |
2220 | } | |
2221 | Py_INCREF(Py_None); resultobj = Py_None; | |
2222 | return resultobj; | |
2223 | fail: | |
2224 | return NULL; | |
2225 | } | |
2226 | ||
2227 | ||
2228 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2229 | PyObject *resultobj; | |
2230 | wxSize *arg1 = (wxSize *) 0 ; | |
2231 | int arg2 ; | |
2232 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2234 | char *kwnames[] = { |
2235 | (char *) "self",(char *) "w", NULL | |
2236 | }; | |
2237 | ||
8edf1c75 | 2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2241 | arg2 = (int) SWIG_AsInt(obj1); | |
2242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2243 | { |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | (arg1)->SetWidth(arg2); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
2250 | Py_INCREF(Py_None); resultobj = Py_None; | |
2251 | return resultobj; | |
2252 | fail: | |
2253 | return NULL; | |
2254 | } | |
2255 | ||
2256 | ||
2257 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject *resultobj; | |
2259 | wxSize *arg1 = (wxSize *) 0 ; | |
2260 | int arg2 ; | |
2261 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2263 | char *kwnames[] = { |
2264 | (char *) "self",(char *) "h", NULL | |
2265 | }; | |
2266 | ||
8edf1c75 | 2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2270 | arg2 = (int) SWIG_AsInt(obj1); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2272 | { |
2273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2274 | (arg1)->SetHeight(arg2); | |
2275 | ||
2276 | wxPyEndAllowThreads(__tstate); | |
2277 | if (PyErr_Occurred()) SWIG_fail; | |
2278 | } | |
2279 | Py_INCREF(Py_None); resultobj = Py_None; | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxSize *arg1 = (wxSize *) 0 ; | |
2289 | int result; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | char *kwnames[] = { | |
2292 | (char *) "self", NULL | |
2293 | }; | |
2294 | ||
2295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2298 | { |
2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2300 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2301 | ||
2302 | wxPyEndAllowThreads(__tstate); | |
2303 | if (PyErr_Occurred()) SWIG_fail; | |
2304 | } | |
2f4c0a16 | 2305 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2306 | return resultobj; |
2307 | fail: | |
2308 | return NULL; | |
2309 | } | |
2310 | ||
2311 | ||
2312 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2313 | PyObject *resultobj; | |
2314 | wxSize *arg1 = (wxSize *) 0 ; | |
2315 | int result; | |
2316 | PyObject * obj0 = 0 ; | |
2317 | char *kwnames[] = { | |
2318 | (char *) "self", NULL | |
2319 | }; | |
2320 | ||
2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2324 | { |
2325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2326 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2327 | ||
2328 | wxPyEndAllowThreads(__tstate); | |
2329 | if (PyErr_Occurred()) SWIG_fail; | |
2330 | } | |
2f4c0a16 | 2331 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2332 | return resultobj; |
2333 | fail: | |
2334 | return NULL; | |
2335 | } | |
2336 | ||
2337 | ||
423f194a | 2338 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2339 | PyObject *resultobj; |
2340 | wxSize *arg1 = (wxSize *) 0 ; | |
2341 | PyObject *result; | |
2342 | PyObject * obj0 = 0 ; | |
2343 | char *kwnames[] = { | |
2344 | (char *) "self", NULL | |
2345 | }; | |
2346 | ||
423f194a | 2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2350 | { |
2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2352 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2353 | |
2354 | wxPyEndAllowThreads(__tstate); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | } | |
2357 | resultobj = result; | |
2358 | return resultobj; | |
2359 | fail: | |
2360 | return NULL; | |
2361 | } | |
2362 | ||
2363 | ||
2364 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2365 | PyObject *obj; | |
2366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2367 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2368 | Py_INCREF(obj); | |
2369 | return Py_BuildValue((char *)""); | |
2370 | } | |
2371 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2372 | PyObject *resultobj; | |
2373 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2374 | double arg2 ; | |
2375 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2376 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2377 | char *kwnames[] = { |
2378 | (char *) "self",(char *) "x", NULL | |
2379 | }; | |
2380 | ||
8edf1c75 | 2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2384 | arg2 = (double) SWIG_AsDouble(obj1); | |
2385 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2386 | if (arg1) (arg1)->x = arg2; |
2387 | ||
2388 | Py_INCREF(Py_None); resultobj = Py_None; | |
2389 | return resultobj; | |
2390 | fail: | |
2391 | return NULL; | |
2392 | } | |
2393 | ||
2394 | ||
2395 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2396 | PyObject *resultobj; | |
2397 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2398 | double result; | |
2399 | PyObject * obj0 = 0 ; | |
2400 | char *kwnames[] = { | |
2401 | (char *) "self", NULL | |
2402 | }; | |
2403 | ||
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2407 | result = (double) ((arg1)->x); |
2408 | ||
2f4c0a16 | 2409 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2410 | return resultobj; |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
2416 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject *resultobj; | |
2418 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2419 | double arg2 ; | |
2420 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2422 | char *kwnames[] = { |
2423 | (char *) "self",(char *) "y", NULL | |
2424 | }; | |
2425 | ||
8edf1c75 | 2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2429 | arg2 = (double) SWIG_AsDouble(obj1); | |
2430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2431 | if (arg1) (arg1)->y = arg2; |
2432 | ||
2433 | Py_INCREF(Py_None); resultobj = Py_None; | |
2434 | return resultobj; | |
2435 | fail: | |
2436 | return NULL; | |
2437 | } | |
2438 | ||
2439 | ||
2440 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject *resultobj; | |
2442 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2443 | double result; | |
2444 | PyObject * obj0 = 0 ; | |
2445 | char *kwnames[] = { | |
2446 | (char *) "self", NULL | |
2447 | }; | |
2448 | ||
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2452 | result = (double) ((arg1)->y); |
2453 | ||
2f4c0a16 | 2454 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2455 | return resultobj; |
2456 | fail: | |
2457 | return NULL; | |
2458 | } | |
2459 | ||
2460 | ||
2461 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2462 | PyObject *resultobj; | |
2463 | double arg1 = (double) 0.0 ; | |
2464 | double arg2 = (double) 0.0 ; | |
2465 | wxRealPoint *result; | |
8edf1c75 RD |
2466 | PyObject * obj0 = 0 ; |
2467 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2468 | char *kwnames[] = { |
2469 | (char *) "x",(char *) "y", NULL | |
2470 | }; | |
2471 | ||
8edf1c75 RD |
2472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2473 | if (obj0) { | |
2f4c0a16 RD |
2474 | arg1 = (double) SWIG_AsDouble(obj0); |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2476 | } |
2477 | if (obj1) { | |
2f4c0a16 RD |
2478 | arg2 = (double) SWIG_AsDouble(obj1); |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2480 | } |
d14a1e28 RD |
2481 | { |
2482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2483 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2484 | ||
2485 | wxPyEndAllowThreads(__tstate); | |
2486 | if (PyErr_Occurred()) SWIG_fail; | |
2487 | } | |
2f4c0a16 | 2488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2489 | return resultobj; |
2490 | fail: | |
2491 | return NULL; | |
2492 | } | |
2493 | ||
2494 | ||
2495 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2496 | PyObject *resultobj; | |
2497 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2498 | PyObject * obj0 = 0 ; | |
2499 | char *kwnames[] = { | |
2500 | (char *) "self", NULL | |
2501 | }; | |
2502 | ||
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2506 | { |
2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2508 | delete arg1; | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | Py_INCREF(Py_None); resultobj = Py_None; | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
423f194a | 2520 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2521 | PyObject *resultobj; |
2522 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2523 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2524 | bool result; |
d14a1e28 RD |
2525 | wxRealPoint temp2 ; |
2526 | PyObject * obj0 = 0 ; | |
2527 | PyObject * obj1 = 0 ; | |
2528 | char *kwnames[] = { | |
2529 | (char *) "self",(char *) "pt", NULL | |
2530 | }; | |
2531 | ||
423f194a | 2532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2535 | { |
2536 | arg2 = &temp2; | |
2537 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2538 | } | |
2539 | { | |
2540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2541 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2542 | |
2543 | wxPyEndAllowThreads(__tstate); | |
2544 | if (PyErr_Occurred()) SWIG_fail; | |
2545 | } | |
4f89f6a3 RD |
2546 | { |
2547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2548 | } | |
d14a1e28 RD |
2549 | return resultobj; |
2550 | fail: | |
2551 | return NULL; | |
2552 | } | |
2553 | ||
2554 | ||
423f194a | 2555 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2556 | PyObject *resultobj; |
2557 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2558 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2559 | bool result; |
d14a1e28 RD |
2560 | wxRealPoint temp2 ; |
2561 | PyObject * obj0 = 0 ; | |
2562 | PyObject * obj1 = 0 ; | |
2563 | char *kwnames[] = { | |
2564 | (char *) "self",(char *) "pt", NULL | |
2565 | }; | |
2566 | ||
423f194a | 2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2570 | { |
2571 | arg2 = &temp2; | |
2572 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2573 | } | |
2574 | { | |
2575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2576 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2577 | |
2578 | wxPyEndAllowThreads(__tstate); | |
2579 | if (PyErr_Occurred()) SWIG_fail; | |
2580 | } | |
4f89f6a3 RD |
2581 | { |
2582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2583 | } | |
d14a1e28 RD |
2584 | return resultobj; |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
423f194a | 2590 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2591 | PyObject *resultobj; |
2592 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2593 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2594 | wxRealPoint result; |
d14a1e28 RD |
2595 | wxRealPoint temp2 ; |
2596 | PyObject * obj0 = 0 ; | |
2597 | PyObject * obj1 = 0 ; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "self",(char *) "pt", NULL | |
2600 | }; | |
2601 | ||
423f194a | 2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2605 | { |
2606 | arg2 = &temp2; | |
2607 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2608 | } | |
2609 | { | |
2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2611 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2612 | |
2613 | wxPyEndAllowThreads(__tstate); | |
2614 | if (PyErr_Occurred()) SWIG_fail; | |
2615 | } | |
423f194a RD |
2616 | { |
2617 | wxRealPoint * resultptr; | |
2618 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2620 | } |
d14a1e28 RD |
2621 | return resultobj; |
2622 | fail: | |
2623 | return NULL; | |
2624 | } | |
2625 | ||
2626 | ||
423f194a | 2627 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2628 | PyObject *resultobj; |
2629 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2630 | wxRealPoint *arg2 = 0 ; | |
423f194a | 2631 | wxRealPoint result; |
d14a1e28 RD |
2632 | wxRealPoint temp2 ; |
2633 | PyObject * obj0 = 0 ; | |
2634 | PyObject * obj1 = 0 ; | |
2635 | char *kwnames[] = { | |
2636 | (char *) "self",(char *) "pt", NULL | |
2637 | }; | |
2638 | ||
423f194a | 2639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2642 | { |
2643 | arg2 = &temp2; | |
2644 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2645 | } | |
2646 | { | |
2647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2648 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2649 | |
2650 | wxPyEndAllowThreads(__tstate); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
2652 | } | |
423f194a RD |
2653 | { |
2654 | wxRealPoint * resultptr; | |
2655 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2f4c0a16 | 2656 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
423f194a | 2657 | } |
d14a1e28 RD |
2658 | return resultobj; |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
2664 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject *resultobj; | |
2666 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2667 | double arg2 ; | |
2668 | double arg3 ; | |
2669 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2670 | PyObject * obj1 = 0 ; |
2671 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2672 | char *kwnames[] = { |
2673 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2674 | }; | |
2675 | ||
8edf1c75 | 2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2679 | arg2 = (double) SWIG_AsDouble(obj1); | |
2680 | if (PyErr_Occurred()) SWIG_fail; | |
2681 | arg3 = (double) SWIG_AsDouble(obj2); | |
2682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2683 | { |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | wxRealPoint_Set(arg1,arg2,arg3); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
2690 | Py_INCREF(Py_None); resultobj = Py_None; | |
2691 | return resultobj; | |
2692 | fail: | |
2693 | return NULL; | |
2694 | } | |
2695 | ||
2696 | ||
423f194a | 2697 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2698 | PyObject *resultobj; |
2699 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2700 | PyObject *result; | |
2701 | PyObject * obj0 = 0 ; | |
2702 | char *kwnames[] = { | |
2703 | (char *) "self", NULL | |
2704 | }; | |
2705 | ||
423f194a | 2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
2707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2709 | { |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2711 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2712 | |
2713 | wxPyEndAllowThreads(__tstate); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
2715 | } | |
2716 | resultobj = result; | |
2717 | return resultobj; | |
2718 | fail: | |
2719 | return NULL; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2724 | PyObject *obj; | |
2725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2726 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2727 | Py_INCREF(obj); | |
2728 | return Py_BuildValue((char *)""); | |
2729 | } | |
2730 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2731 | PyObject *resultobj; | |
2732 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2733 | int arg2 ; | |
2734 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2736 | char *kwnames[] = { |
2737 | (char *) "self",(char *) "x", NULL | |
2738 | }; | |
2739 | ||
8edf1c75 | 2740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2743 | arg2 = (int) SWIG_AsInt(obj1); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2745 | if (arg1) (arg1)->x = arg2; |
2746 | ||
2747 | Py_INCREF(Py_None); resultobj = Py_None; | |
2748 | return resultobj; | |
2749 | fail: | |
2750 | return NULL; | |
2751 | } | |
2752 | ||
2753 | ||
2754 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2755 | PyObject *resultobj; | |
2756 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2757 | int result; | |
2758 | PyObject * obj0 = 0 ; | |
2759 | char *kwnames[] = { | |
2760 | (char *) "self", NULL | |
2761 | }; | |
2762 | ||
2763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2766 | result = (int) ((arg1)->x); |
2767 | ||
2f4c0a16 | 2768 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2769 | return resultobj; |
2770 | fail: | |
2771 | return NULL; | |
2772 | } | |
2773 | ||
2774 | ||
2775 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject *resultobj; | |
2777 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2778 | int arg2 ; | |
2779 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2781 | char *kwnames[] = { |
2782 | (char *) "self",(char *) "y", NULL | |
2783 | }; | |
2784 | ||
8edf1c75 | 2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2788 | arg2 = (int) SWIG_AsInt(obj1); | |
2789 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2790 | if (arg1) (arg1)->y = arg2; |
2791 | ||
2792 | Py_INCREF(Py_None); resultobj = Py_None; | |
2793 | return resultobj; | |
2794 | fail: | |
2795 | return NULL; | |
2796 | } | |
2797 | ||
2798 | ||
2799 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2800 | PyObject *resultobj; | |
2801 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2802 | int result; | |
2803 | PyObject * obj0 = 0 ; | |
2804 | char *kwnames[] = { | |
2805 | (char *) "self", NULL | |
2806 | }; | |
2807 | ||
2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2811 | result = (int) ((arg1)->y); |
2812 | ||
2f4c0a16 | 2813 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2814 | return resultobj; |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
2820 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2821 | PyObject *resultobj; | |
2822 | int arg1 = (int) 0 ; | |
2823 | int arg2 = (int) 0 ; | |
2824 | wxPoint *result; | |
8edf1c75 RD |
2825 | PyObject * obj0 = 0 ; |
2826 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2827 | char *kwnames[] = { |
2828 | (char *) "x",(char *) "y", NULL | |
2829 | }; | |
2830 | ||
8edf1c75 RD |
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2832 | if (obj0) { | |
2f4c0a16 RD |
2833 | arg1 = (int) SWIG_AsInt(obj0); |
2834 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2835 | } |
2836 | if (obj1) { | |
2f4c0a16 RD |
2837 | arg2 = (int) SWIG_AsInt(obj1); |
2838 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2839 | } |
d14a1e28 RD |
2840 | { |
2841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2842 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2843 | ||
2844 | wxPyEndAllowThreads(__tstate); | |
2845 | if (PyErr_Occurred()) SWIG_fail; | |
2846 | } | |
2f4c0a16 | 2847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2848 | return resultobj; |
2849 | fail: | |
2850 | return NULL; | |
2851 | } | |
2852 | ||
2853 | ||
2854 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2855 | PyObject *resultobj; | |
2856 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | char *kwnames[] = { | |
2859 | (char *) "self", NULL | |
2860 | }; | |
2861 | ||
2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2865 | { |
2866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2867 | delete arg1; | |
2868 | ||
2869 | wxPyEndAllowThreads(__tstate); | |
2870 | if (PyErr_Occurred()) SWIG_fail; | |
2871 | } | |
2872 | Py_INCREF(Py_None); resultobj = Py_None; | |
2873 | return resultobj; | |
2874 | fail: | |
2875 | return NULL; | |
2876 | } | |
2877 | ||
2878 | ||
2879 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2880 | PyObject *resultobj; | |
2881 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2882 | wxPoint *arg2 = 0 ; | |
2883 | bool result; | |
2884 | wxPoint temp2 ; | |
2885 | PyObject * obj0 = 0 ; | |
2886 | PyObject * obj1 = 0 ; | |
2887 | char *kwnames[] = { | |
423f194a | 2888 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2889 | }; |
2890 | ||
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2894 | { |
2895 | arg2 = &temp2; | |
2896 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2897 | } | |
2898 | { | |
2899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2900 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2901 | |
2902 | wxPyEndAllowThreads(__tstate); | |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
2904 | } | |
4f89f6a3 RD |
2905 | { |
2906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2907 | } | |
d14a1e28 RD |
2908 | return resultobj; |
2909 | fail: | |
2910 | return NULL; | |
2911 | } | |
2912 | ||
2913 | ||
2914 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2915 | PyObject *resultobj; | |
2916 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2917 | wxPoint *arg2 = 0 ; | |
2918 | bool result; | |
2919 | wxPoint temp2 ; | |
2920 | PyObject * obj0 = 0 ; | |
2921 | PyObject * obj1 = 0 ; | |
2922 | char *kwnames[] = { | |
423f194a | 2923 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2924 | }; |
2925 | ||
2926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2929 | { |
2930 | arg2 = &temp2; | |
2931 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2932 | } | |
2933 | { | |
2934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2935 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
2936 | |
2937 | wxPyEndAllowThreads(__tstate); | |
2938 | if (PyErr_Occurred()) SWIG_fail; | |
2939 | } | |
4f89f6a3 RD |
2940 | { |
2941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2942 | } | |
d14a1e28 RD |
2943 | return resultobj; |
2944 | fail: | |
2945 | return NULL; | |
2946 | } | |
2947 | ||
2948 | ||
2949 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2950 | PyObject *resultobj; | |
2951 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2952 | wxPoint *arg2 = 0 ; | |
2953 | wxPoint result; | |
2954 | wxPoint temp2 ; | |
2955 | PyObject * obj0 = 0 ; | |
2956 | PyObject * obj1 = 0 ; | |
2957 | char *kwnames[] = { | |
423f194a | 2958 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2959 | }; |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2964 | { |
2965 | arg2 = &temp2; | |
2966 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2967 | } | |
2968 | { | |
2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 2970 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
2971 | |
2972 | wxPyEndAllowThreads(__tstate); | |
2973 | if (PyErr_Occurred()) SWIG_fail; | |
2974 | } | |
2975 | { | |
2976 | wxPoint * resultptr; | |
2977 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 2978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2979 | } |
2980 | return resultobj; | |
2981 | fail: | |
2982 | return NULL; | |
2983 | } | |
2984 | ||
2985 | ||
2986 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2987 | PyObject *resultobj; | |
2988 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2989 | wxPoint *arg2 = 0 ; | |
2990 | wxPoint result; | |
2991 | wxPoint temp2 ; | |
2992 | PyObject * obj0 = 0 ; | |
2993 | PyObject * obj1 = 0 ; | |
2994 | char *kwnames[] = { | |
423f194a | 2995 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2996 | }; |
2997 | ||
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3001 | { |
3002 | arg2 = &temp2; | |
3003 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3004 | } | |
3005 | { | |
3006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3007 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3008 | |
3009 | wxPyEndAllowThreads(__tstate); | |
3010 | if (PyErr_Occurred()) SWIG_fail; | |
3011 | } | |
3012 | { | |
3013 | wxPoint * resultptr; | |
3014 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3016 | } |
3017 | return resultobj; | |
3018 | fail: | |
3019 | return NULL; | |
3020 | } | |
3021 | ||
3022 | ||
3023 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3024 | PyObject *resultobj; | |
3025 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3026 | wxPoint *arg2 = 0 ; | |
3027 | wxPoint *result; | |
3028 | wxPoint temp2 ; | |
3029 | PyObject * obj0 = 0 ; | |
3030 | PyObject * obj1 = 0 ; | |
3031 | char *kwnames[] = { | |
423f194a | 3032 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3033 | }; |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3038 | { |
3039 | arg2 = &temp2; | |
3040 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3041 | } | |
3042 | { | |
3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3044 | { | |
3045 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3046 | result = (wxPoint *) &_result_ref; | |
3047 | } | |
3048 | ||
3049 | wxPyEndAllowThreads(__tstate); | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
2f4c0a16 | 3052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3053 | return resultobj; |
3054 | fail: | |
3055 | return NULL; | |
3056 | } | |
3057 | ||
3058 | ||
3059 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject *resultobj; | |
3061 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3062 | wxPoint *arg2 = 0 ; | |
3063 | wxPoint *result; | |
3064 | wxPoint temp2 ; | |
3065 | PyObject * obj0 = 0 ; | |
3066 | PyObject * obj1 = 0 ; | |
3067 | char *kwnames[] = { | |
423f194a | 3068 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3069 | }; |
3070 | ||
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3074 | { |
3075 | arg2 = &temp2; | |
3076 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3077 | } | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | { | |
3081 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3082 | result = (wxPoint *) &_result_ref; | |
3083 | } | |
3084 | ||
3085 | wxPyEndAllowThreads(__tstate); | |
3086 | if (PyErr_Occurred()) SWIG_fail; | |
3087 | } | |
2f4c0a16 | 3088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3089 | return resultobj; |
3090 | fail: | |
3091 | return NULL; | |
3092 | } | |
3093 | ||
3094 | ||
3095 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3096 | PyObject *resultobj; | |
3097 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3098 | long arg2 ; | |
3099 | long arg3 ; | |
3100 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3101 | PyObject * obj1 = 0 ; |
3102 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3103 | char *kwnames[] = { |
3104 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3105 | }; | |
3106 | ||
8edf1c75 | 3107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3110 | arg2 = (long) SWIG_AsLong(obj1); | |
3111 | if (PyErr_Occurred()) SWIG_fail; | |
3112 | arg3 = (long) SWIG_AsLong(obj2); | |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3114 | { |
3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3116 | wxPoint_Set(arg1,arg2,arg3); | |
3117 | ||
3118 | wxPyEndAllowThreads(__tstate); | |
3119 | if (PyErr_Occurred()) SWIG_fail; | |
3120 | } | |
3121 | Py_INCREF(Py_None); resultobj = Py_None; | |
3122 | return resultobj; | |
3123 | fail: | |
3124 | return NULL; | |
3125 | } | |
3126 | ||
3127 | ||
423f194a | 3128 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3129 | PyObject *resultobj; |
3130 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3131 | PyObject *result; | |
3132 | PyObject * obj0 = 0 ; | |
3133 | char *kwnames[] = { | |
3134 | (char *) "self", NULL | |
3135 | }; | |
3136 | ||
423f194a | 3137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
3138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3140 | { |
3141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 3142 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3143 | |
3144 | wxPyEndAllowThreads(__tstate); | |
3145 | if (PyErr_Occurred()) SWIG_fail; | |
3146 | } | |
3147 | resultobj = result; | |
3148 | return resultobj; | |
3149 | fail: | |
3150 | return NULL; | |
3151 | } | |
3152 | ||
3153 | ||
3154 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3155 | PyObject *obj; | |
3156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3157 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3158 | Py_INCREF(obj); | |
3159 | return Py_BuildValue((char *)""); | |
3160 | } | |
3161 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3162 | PyObject *resultobj; | |
3163 | int arg1 = (int) 0 ; | |
3164 | int arg2 = (int) 0 ; | |
3165 | int arg3 = (int) 0 ; | |
3166 | int arg4 = (int) 0 ; | |
3167 | wxRect *result; | |
8edf1c75 RD |
3168 | PyObject * obj0 = 0 ; |
3169 | PyObject * obj1 = 0 ; | |
3170 | PyObject * obj2 = 0 ; | |
3171 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3172 | char *kwnames[] = { |
3173 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3174 | }; | |
3175 | ||
8edf1c75 RD |
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3177 | if (obj0) { | |
2f4c0a16 RD |
3178 | arg1 = (int) SWIG_AsInt(obj0); |
3179 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3180 | } |
3181 | if (obj1) { | |
2f4c0a16 RD |
3182 | arg2 = (int) SWIG_AsInt(obj1); |
3183 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3184 | } |
3185 | if (obj2) { | |
2f4c0a16 RD |
3186 | arg3 = (int) SWIG_AsInt(obj2); |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3188 | } |
3189 | if (obj3) { | |
2f4c0a16 RD |
3190 | arg4 = (int) SWIG_AsInt(obj3); |
3191 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3192 | } |
d14a1e28 RD |
3193 | { |
3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3195 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3196 | ||
3197 | wxPyEndAllowThreads(__tstate); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
2f4c0a16 | 3200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3201 | return resultobj; |
3202 | fail: | |
3203 | return NULL; | |
3204 | } | |
3205 | ||
3206 | ||
3207 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject *resultobj; | |
3209 | wxPoint *arg1 = 0 ; | |
3210 | wxPoint *arg2 = 0 ; | |
3211 | wxRect *result; | |
3212 | wxPoint temp1 ; | |
3213 | wxPoint temp2 ; | |
3214 | PyObject * obj0 = 0 ; | |
3215 | PyObject * obj1 = 0 ; | |
3216 | char *kwnames[] = { | |
3217 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3218 | }; | |
3219 | ||
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3221 | { | |
3222 | arg1 = &temp1; | |
3223 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3224 | } | |
3225 | { | |
3226 | arg2 = &temp2; | |
3227 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3228 | } | |
3229 | { | |
3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3231 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3232 | ||
3233 | wxPyEndAllowThreads(__tstate); | |
3234 | if (PyErr_Occurred()) SWIG_fail; | |
3235 | } | |
2f4c0a16 | 3236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3237 | return resultobj; |
3238 | fail: | |
3239 | return NULL; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3244 | PyObject *resultobj; | |
3245 | wxPoint *arg1 = 0 ; | |
3246 | wxSize *arg2 = 0 ; | |
3247 | wxRect *result; | |
3248 | wxPoint temp1 ; | |
3249 | wxSize temp2 ; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | PyObject * obj1 = 0 ; | |
3252 | char *kwnames[] = { | |
3253 | (char *) "pos",(char *) "size", NULL | |
3254 | }; | |
3255 | ||
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3257 | { | |
3258 | arg1 = &temp1; | |
3259 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3260 | } | |
3261 | { | |
3262 | arg2 = &temp2; | |
3263 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3264 | } | |
3265 | { | |
3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3267 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3268 | ||
3269 | wxPyEndAllowThreads(__tstate); | |
3270 | if (PyErr_Occurred()) SWIG_fail; | |
3271 | } | |
2f4c0a16 | 3272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3273 | return resultobj; |
3274 | fail: | |
3275 | return NULL; | |
3276 | } | |
3277 | ||
3278 | ||
3279 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3280 | PyObject *resultobj; | |
3281 | wxRect *arg1 = (wxRect *) 0 ; | |
3282 | PyObject * obj0 = 0 ; | |
3283 | char *kwnames[] = { | |
3284 | (char *) "self", NULL | |
3285 | }; | |
3286 | ||
3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3290 | { |
3291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3292 | delete arg1; | |
3293 | ||
3294 | wxPyEndAllowThreads(__tstate); | |
3295 | if (PyErr_Occurred()) SWIG_fail; | |
3296 | } | |
3297 | Py_INCREF(Py_None); resultobj = Py_None; | |
3298 | return resultobj; | |
3299 | fail: | |
3300 | return NULL; | |
3301 | } | |
3302 | ||
3303 | ||
3304 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject *resultobj; | |
3306 | wxRect *arg1 = (wxRect *) 0 ; | |
3307 | int result; | |
3308 | PyObject * obj0 = 0 ; | |
3309 | char *kwnames[] = { | |
3310 | (char *) "self", NULL | |
3311 | }; | |
3312 | ||
3313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3316 | { |
3317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3318 | result = (int)((wxRect const *)arg1)->GetX(); | |
3319 | ||
3320 | wxPyEndAllowThreads(__tstate); | |
3321 | if (PyErr_Occurred()) SWIG_fail; | |
3322 | } | |
2f4c0a16 | 3323 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3324 | return resultobj; |
3325 | fail: | |
3326 | return NULL; | |
3327 | } | |
3328 | ||
3329 | ||
3330 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3331 | PyObject *resultobj; | |
3332 | wxRect *arg1 = (wxRect *) 0 ; | |
3333 | int arg2 ; | |
3334 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3336 | char *kwnames[] = { |
3337 | (char *) "self",(char *) "x", NULL | |
3338 | }; | |
3339 | ||
8edf1c75 | 3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3343 | arg2 = (int) SWIG_AsInt(obj1); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3345 | { |
3346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3347 | (arg1)->SetX(arg2); | |
3348 | ||
3349 | wxPyEndAllowThreads(__tstate); | |
3350 | if (PyErr_Occurred()) SWIG_fail; | |
3351 | } | |
3352 | Py_INCREF(Py_None); resultobj = Py_None; | |
3353 | return resultobj; | |
3354 | fail: | |
3355 | return NULL; | |
3356 | } | |
3357 | ||
3358 | ||
3359 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3360 | PyObject *resultobj; | |
3361 | wxRect *arg1 = (wxRect *) 0 ; | |
3362 | int result; | |
3363 | PyObject * obj0 = 0 ; | |
3364 | char *kwnames[] = { | |
3365 | (char *) "self", NULL | |
3366 | }; | |
3367 | ||
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3371 | { |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3373 | result = (int)(arg1)->GetY(); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
2f4c0a16 | 3378 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3379 | return resultobj; |
3380 | fail: | |
3381 | return NULL; | |
3382 | } | |
3383 | ||
3384 | ||
3385 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3386 | PyObject *resultobj; | |
3387 | wxRect *arg1 = (wxRect *) 0 ; | |
3388 | int arg2 ; | |
3389 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3390 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3391 | char *kwnames[] = { |
3392 | (char *) "self",(char *) "y", NULL | |
3393 | }; | |
3394 | ||
8edf1c75 | 3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3398 | arg2 = (int) SWIG_AsInt(obj1); | |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3400 | { |
3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3402 | (arg1)->SetY(arg2); | |
3403 | ||
3404 | wxPyEndAllowThreads(__tstate); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | } | |
3407 | Py_INCREF(Py_None); resultobj = Py_None; | |
3408 | return resultobj; | |
3409 | fail: | |
3410 | return NULL; | |
3411 | } | |
3412 | ||
3413 | ||
3414 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3415 | PyObject *resultobj; | |
3416 | wxRect *arg1 = (wxRect *) 0 ; | |
3417 | int result; | |
3418 | PyObject * obj0 = 0 ; | |
3419 | char *kwnames[] = { | |
3420 | (char *) "self", NULL | |
3421 | }; | |
3422 | ||
3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3426 | { |
3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3428 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3429 | ||
3430 | wxPyEndAllowThreads(__tstate); | |
3431 | if (PyErr_Occurred()) SWIG_fail; | |
3432 | } | |
2f4c0a16 | 3433 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3434 | return resultobj; |
3435 | fail: | |
3436 | return NULL; | |
3437 | } | |
3438 | ||
3439 | ||
3440 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3441 | PyObject *resultobj; | |
3442 | wxRect *arg1 = (wxRect *) 0 ; | |
3443 | int arg2 ; | |
3444 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3445 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3446 | char *kwnames[] = { |
3447 | (char *) "self",(char *) "w", NULL | |
3448 | }; | |
3449 | ||
8edf1c75 | 3450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3453 | arg2 = (int) SWIG_AsInt(obj1); | |
3454 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3455 | { |
3456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3457 | (arg1)->SetWidth(arg2); | |
3458 | ||
3459 | wxPyEndAllowThreads(__tstate); | |
3460 | if (PyErr_Occurred()) SWIG_fail; | |
3461 | } | |
3462 | Py_INCREF(Py_None); resultobj = Py_None; | |
3463 | return resultobj; | |
3464 | fail: | |
3465 | return NULL; | |
3466 | } | |
3467 | ||
3468 | ||
3469 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject *resultobj; | |
3471 | wxRect *arg1 = (wxRect *) 0 ; | |
3472 | int result; | |
3473 | PyObject * obj0 = 0 ; | |
3474 | char *kwnames[] = { | |
3475 | (char *) "self", NULL | |
3476 | }; | |
3477 | ||
3478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3481 | { |
3482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3483 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3484 | ||
3485 | wxPyEndAllowThreads(__tstate); | |
3486 | if (PyErr_Occurred()) SWIG_fail; | |
3487 | } | |
2f4c0a16 | 3488 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3489 | return resultobj; |
3490 | fail: | |
3491 | return NULL; | |
3492 | } | |
3493 | ||
3494 | ||
3495 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3496 | PyObject *resultobj; | |
3497 | wxRect *arg1 = (wxRect *) 0 ; | |
3498 | int arg2 ; | |
3499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3501 | char *kwnames[] = { |
3502 | (char *) "self",(char *) "h", NULL | |
3503 | }; | |
3504 | ||
8edf1c75 | 3505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3508 | arg2 = (int) SWIG_AsInt(obj1); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3510 | { |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3512 | (arg1)->SetHeight(arg2); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
3515 | if (PyErr_Occurred()) SWIG_fail; | |
3516 | } | |
3517 | Py_INCREF(Py_None); resultobj = Py_None; | |
3518 | return resultobj; | |
3519 | fail: | |
3520 | return NULL; | |
3521 | } | |
3522 | ||
3523 | ||
3524 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3525 | PyObject *resultobj; | |
3526 | wxRect *arg1 = (wxRect *) 0 ; | |
3527 | wxPoint result; | |
3528 | PyObject * obj0 = 0 ; | |
3529 | char *kwnames[] = { | |
3530 | (char *) "self", NULL | |
3531 | }; | |
3532 | ||
3533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3536 | { |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | result = ((wxRect const *)arg1)->GetPosition(); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | { | |
3544 | wxPoint * resultptr; | |
3545 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3546 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3547 | } |
3548 | return resultobj; | |
3549 | fail: | |
3550 | return NULL; | |
3551 | } | |
3552 | ||
3553 | ||
3554 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3555 | PyObject *resultobj; | |
3556 | wxRect *arg1 = (wxRect *) 0 ; | |
3557 | wxPoint *arg2 = 0 ; | |
3558 | wxPoint temp2 ; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "p", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3568 | { |
3569 | arg2 = &temp2; | |
3570 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3571 | } | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | return resultobj; | |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
3586 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3587 | PyObject *resultobj; | |
3588 | wxRect *arg1 = (wxRect *) 0 ; | |
3589 | wxSize result; | |
3590 | PyObject * obj0 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3598 | { |
3599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3600 | result = ((wxRect const *)arg1)->GetSize(); | |
3601 | ||
3602 | wxPyEndAllowThreads(__tstate); | |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
3604 | } | |
3605 | { | |
3606 | wxSize * resultptr; | |
3607 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 3608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3609 | } |
3610 | return resultobj; | |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
3616 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3617 | PyObject *resultobj; | |
3618 | wxRect *arg1 = (wxRect *) 0 ; | |
3619 | wxSize *arg2 = 0 ; | |
3620 | wxSize temp2 ; | |
3621 | PyObject * obj0 = 0 ; | |
3622 | PyObject * obj1 = 0 ; | |
3623 | char *kwnames[] = { | |
3624 | (char *) "self",(char *) "s", NULL | |
3625 | }; | |
3626 | ||
3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3630 | { |
3631 | arg2 = &temp2; | |
3632 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3633 | } | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | (arg1)->SetSize((wxSize const &)*arg2); | |
3637 | ||
3638 | wxPyEndAllowThreads(__tstate); | |
3639 | if (PyErr_Occurred()) SWIG_fail; | |
3640 | } | |
3641 | Py_INCREF(Py_None); resultobj = Py_None; | |
3642 | return resultobj; | |
3643 | fail: | |
3644 | return NULL; | |
3645 | } | |
3646 | ||
3647 | ||
9fd4be55 RD |
3648 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3649 | PyObject *resultobj; | |
3650 | wxRect *arg1 = (wxRect *) 0 ; | |
3651 | wxPoint result; | |
3652 | PyObject * obj0 = 0 ; | |
3653 | char *kwnames[] = { | |
3654 | (char *) "self", NULL | |
3655 | }; | |
3656 | ||
3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3660 | { |
3661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3662 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3663 | ||
3664 | wxPyEndAllowThreads(__tstate); | |
3665 | if (PyErr_Occurred()) SWIG_fail; | |
3666 | } | |
3667 | { | |
3668 | wxPoint * resultptr; | |
3669 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3670 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3671 | } |
3672 | return resultobj; | |
3673 | fail: | |
3674 | return NULL; | |
3675 | } | |
3676 | ||
3677 | ||
3678 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3679 | PyObject *resultobj; | |
3680 | wxRect *arg1 = (wxRect *) 0 ; | |
3681 | wxPoint *arg2 = 0 ; | |
3682 | wxPoint temp2 ; | |
3683 | PyObject * obj0 = 0 ; | |
3684 | PyObject * obj1 = 0 ; | |
3685 | char *kwnames[] = { | |
3686 | (char *) "self",(char *) "p", NULL | |
3687 | }; | |
3688 | ||
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3692 | { |
3693 | arg2 = &temp2; | |
3694 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3695 | } | |
3696 | { | |
3697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3698 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3699 | ||
3700 | wxPyEndAllowThreads(__tstate); | |
3701 | if (PyErr_Occurred()) SWIG_fail; | |
3702 | } | |
3703 | Py_INCREF(Py_None); resultobj = Py_None; | |
3704 | return resultobj; | |
3705 | fail: | |
3706 | return NULL; | |
3707 | } | |
3708 | ||
3709 | ||
3710 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3711 | PyObject *resultobj; | |
3712 | wxRect *arg1 = (wxRect *) 0 ; | |
3713 | wxPoint result; | |
3714 | PyObject * obj0 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3722 | { |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | { | |
3730 | wxPoint * resultptr; | |
3731 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 3732 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
9fd4be55 RD |
3733 | } |
3734 | return resultobj; | |
3735 | fail: | |
3736 | return NULL; | |
3737 | } | |
3738 | ||
3739 | ||
3740 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3741 | PyObject *resultobj; | |
3742 | wxRect *arg1 = (wxRect *) 0 ; | |
3743 | wxPoint *arg2 = 0 ; | |
3744 | wxPoint temp2 ; | |
3745 | PyObject * obj0 = 0 ; | |
3746 | PyObject * obj1 = 0 ; | |
3747 | char *kwnames[] = { | |
3748 | (char *) "self",(char *) "p", NULL | |
3749 | }; | |
3750 | ||
3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
3754 | { |
3755 | arg2 = &temp2; | |
3756 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3757 | } | |
3758 | { | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | Py_INCREF(Py_None); resultobj = Py_None; | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | return NULL; | |
3769 | } | |
3770 | ||
3771 | ||
d14a1e28 RD |
3772 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3773 | PyObject *resultobj; | |
3774 | wxRect *arg1 = (wxRect *) 0 ; | |
3775 | int result; | |
3776 | PyObject * obj0 = 0 ; | |
3777 | char *kwnames[] = { | |
3778 | (char *) "self", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3784 | { |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3787 | ||
3788 | wxPyEndAllowThreads(__tstate); | |
3789 | if (PyErr_Occurred()) SWIG_fail; | |
3790 | } | |
2f4c0a16 | 3791 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3792 | return resultobj; |
3793 | fail: | |
3794 | return NULL; | |
3795 | } | |
3796 | ||
3797 | ||
3798 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3799 | PyObject *resultobj; | |
3800 | wxRect *arg1 = (wxRect *) 0 ; | |
3801 | int result; | |
3802 | PyObject * obj0 = 0 ; | |
3803 | char *kwnames[] = { | |
3804 | (char *) "self", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3810 | { |
3811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3812 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3813 | ||
3814 | wxPyEndAllowThreads(__tstate); | |
3815 | if (PyErr_Occurred()) SWIG_fail; | |
3816 | } | |
2f4c0a16 | 3817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3818 | return resultobj; |
3819 | fail: | |
3820 | return NULL; | |
3821 | } | |
3822 | ||
3823 | ||
3824 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj; | |
3826 | wxRect *arg1 = (wxRect *) 0 ; | |
3827 | int result; | |
3828 | PyObject * obj0 = 0 ; | |
3829 | char *kwnames[] = { | |
3830 | (char *) "self", NULL | |
3831 | }; | |
3832 | ||
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3836 | { |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) SWIG_fail; | |
3842 | } | |
2f4c0a16 | 3843 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3844 | return resultobj; |
3845 | fail: | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
3850 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxRect *arg1 = (wxRect *) 0 ; | |
3853 | int result; | |
3854 | PyObject * obj0 = 0 ; | |
3855 | char *kwnames[] = { | |
3856 | (char *) "self", NULL | |
3857 | }; | |
3858 | ||
3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3862 | { |
3863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3864 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3865 | ||
3866 | wxPyEndAllowThreads(__tstate); | |
3867 | if (PyErr_Occurred()) SWIG_fail; | |
3868 | } | |
2f4c0a16 | 3869 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3870 | return resultobj; |
3871 | fail: | |
3872 | return NULL; | |
3873 | } | |
3874 | ||
3875 | ||
3876 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject *resultobj; | |
3878 | wxRect *arg1 = (wxRect *) 0 ; | |
3879 | int arg2 ; | |
3880 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3881 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3882 | char *kwnames[] = { |
3883 | (char *) "self",(char *) "left", NULL | |
3884 | }; | |
3885 | ||
8edf1c75 | 3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3889 | arg2 = (int) SWIG_AsInt(obj1); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3891 | { |
3892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3893 | (arg1)->SetLeft(arg2); | |
3894 | ||
3895 | wxPyEndAllowThreads(__tstate); | |
3896 | if (PyErr_Occurred()) SWIG_fail; | |
3897 | } | |
3898 | Py_INCREF(Py_None); resultobj = Py_None; | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | return NULL; | |
3902 | } | |
3903 | ||
3904 | ||
3905 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3906 | PyObject *resultobj; | |
3907 | wxRect *arg1 = (wxRect *) 0 ; | |
3908 | int arg2 ; | |
3909 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3911 | char *kwnames[] = { |
3912 | (char *) "self",(char *) "right", NULL | |
3913 | }; | |
3914 | ||
8edf1c75 | 3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3918 | arg2 = (int) SWIG_AsInt(obj1); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3920 | { |
3921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3922 | (arg1)->SetRight(arg2); | |
3923 | ||
3924 | wxPyEndAllowThreads(__tstate); | |
3925 | if (PyErr_Occurred()) SWIG_fail; | |
3926 | } | |
3927 | Py_INCREF(Py_None); resultobj = Py_None; | |
3928 | return resultobj; | |
3929 | fail: | |
3930 | return NULL; | |
3931 | } | |
3932 | ||
3933 | ||
3934 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3935 | PyObject *resultobj; | |
3936 | wxRect *arg1 = (wxRect *) 0 ; | |
3937 | int arg2 ; | |
3938 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3940 | char *kwnames[] = { |
3941 | (char *) "self",(char *) "top", NULL | |
3942 | }; | |
3943 | ||
8edf1c75 | 3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3947 | arg2 = (int) SWIG_AsInt(obj1); | |
3948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3949 | { |
3950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3951 | (arg1)->SetTop(arg2); | |
3952 | ||
3953 | wxPyEndAllowThreads(__tstate); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
3955 | } | |
3956 | Py_INCREF(Py_None); resultobj = Py_None; | |
3957 | return resultobj; | |
3958 | fail: | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj; | |
3965 | wxRect *arg1 = (wxRect *) 0 ; | |
3966 | int arg2 ; | |
3967 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3969 | char *kwnames[] = { |
3970 | (char *) "self",(char *) "bottom", NULL | |
3971 | }; | |
3972 | ||
8edf1c75 | 3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3976 | arg2 = (int) SWIG_AsInt(obj1); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3978 | { |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | (arg1)->SetBottom(arg2); | |
3981 | ||
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
3985 | Py_INCREF(Py_None); resultobj = Py_None; | |
3986 | return resultobj; | |
3987 | fail: | |
3988 | return NULL; | |
3989 | } | |
3990 | ||
3991 | ||
3992 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject *resultobj; | |
3994 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
3995 | int arg2 ; |
3996 | int arg3 ; | |
d14a1e28 RD |
3997 | wxRect *result; |
3998 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3999 | PyObject * obj1 = 0 ; |
4000 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4001 | char *kwnames[] = { |
4002 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4003 | }; | |
4004 | ||
8edf1c75 | 4005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4008 | arg2 = (int) SWIG_AsInt(obj1); | |
4009 | if (PyErr_Occurred()) SWIG_fail; | |
4010 | arg3 = (int) SWIG_AsInt(obj2); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4012 | { |
4013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4014 | { | |
4015 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4016 | result = (wxRect *) &_result_ref; | |
4017 | } | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
2f4c0a16 | 4022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4023 | return resultobj; |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4032 | int arg2 ; |
4033 | int arg3 ; | |
d14a1e28 RD |
4034 | wxRect *result; |
4035 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4036 | PyObject * obj1 = 0 ; |
4037 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4038 | char *kwnames[] = { |
4039 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4040 | }; | |
4041 | ||
8edf1c75 | 4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4045 | arg2 = (int) SWIG_AsInt(obj1); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | arg3 = (int) SWIG_AsInt(obj2); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4049 | { |
4050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4051 | { | |
4052 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4053 | result = (wxRect *) &_result_ref; | |
4054 | } | |
4055 | ||
4056 | wxPyEndAllowThreads(__tstate); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | } | |
2f4c0a16 | 4059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4060 | return resultobj; |
4061 | fail: | |
4062 | return NULL; | |
4063 | } | |
4064 | ||
4065 | ||
4066 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4067 | PyObject *resultobj; | |
4068 | wxRect *arg1 = (wxRect *) 0 ; | |
423f194a RD |
4069 | int arg2 ; |
4070 | int arg3 ; | |
d14a1e28 | 4071 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4072 | PyObject * obj1 = 0 ; |
4073 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4074 | char *kwnames[] = { |
4075 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4076 | }; | |
4077 | ||
8edf1c75 | 4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4081 | arg2 = (int) SWIG_AsInt(obj1); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | arg3 = (int) SWIG_AsInt(obj2); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4085 | { |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | (arg1)->Offset(arg2,arg3); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | Py_INCREF(Py_None); resultobj = Py_None; | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject *resultobj; | |
4101 | wxRect *arg1 = (wxRect *) 0 ; | |
4102 | wxPoint *arg2 = 0 ; | |
4103 | wxPoint temp2 ; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | PyObject * obj1 = 0 ; | |
4106 | char *kwnames[] = { | |
4107 | (char *) "self",(char *) "pt", NULL | |
4108 | }; | |
4109 | ||
4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4113 | { |
4114 | arg2 = &temp2; | |
4115 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4116 | } | |
4117 | { | |
4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4119 | (arg1)->Offset((wxPoint const &)*arg2); | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | } | |
4124 | Py_INCREF(Py_None); resultobj = Py_None; | |
4125 | return resultobj; | |
4126 | fail: | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
4131 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject *resultobj; | |
4133 | wxRect *arg1 = (wxRect *) 0 ; | |
4134 | wxRect *arg2 = 0 ; | |
4135 | wxRect *result; | |
4136 | wxRect temp2 ; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | PyObject * obj1 = 0 ; | |
4139 | char *kwnames[] = { | |
4140 | (char *) "self",(char *) "rect", NULL | |
4141 | }; | |
4142 | ||
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4146 | { |
4147 | arg2 = &temp2; | |
4148 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4149 | } | |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | { | |
4153 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4154 | result = (wxRect *) &_result_ref; | |
4155 | } | |
4156 | ||
4157 | wxPyEndAllowThreads(__tstate); | |
4158 | if (PyErr_Occurred()) SWIG_fail; | |
4159 | } | |
2f4c0a16 | 4160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4161 | return resultobj; |
4162 | fail: | |
4163 | return NULL; | |
4164 | } | |
4165 | ||
4166 | ||
4167 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4168 | PyObject *resultobj; | |
4169 | wxRect *arg1 = (wxRect *) 0 ; | |
4170 | wxRect *arg2 = 0 ; | |
4171 | wxRect result; | |
4172 | wxRect temp2 ; | |
4173 | PyObject * obj0 = 0 ; | |
4174 | PyObject * obj1 = 0 ; | |
4175 | char *kwnames[] = { | |
4176 | (char *) "self",(char *) "rect", NULL | |
4177 | }; | |
4178 | ||
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4182 | { |
4183 | arg2 = &temp2; | |
4184 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4185 | } | |
4186 | { | |
4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4188 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4189 | ||
4190 | wxPyEndAllowThreads(__tstate); | |
4191 | if (PyErr_Occurred()) SWIG_fail; | |
4192 | } | |
4193 | { | |
4194 | wxRect * resultptr; | |
4195 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 4196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4197 | } |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
4204 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4205 | PyObject *resultobj; | |
4206 | wxRect *arg1 = (wxRect *) 0 ; | |
4207 | wxRect *arg2 = 0 ; | |
4208 | wxRect *result; | |
4209 | wxRect temp2 ; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | PyObject * obj1 = 0 ; | |
4212 | char *kwnames[] = { | |
4213 | (char *) "self",(char *) "rect", NULL | |
4214 | }; | |
4215 | ||
4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4219 | { |
4220 | arg2 = &temp2; | |
4221 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4222 | } | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | { | |
4226 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4227 | result = (wxRect *) &_result_ref; | |
4228 | } | |
4229 | ||
4230 | wxPyEndAllowThreads(__tstate); | |
4231 | if (PyErr_Occurred()) SWIG_fail; | |
4232 | } | |
2f4c0a16 | 4233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4234 | return resultobj; |
4235 | fail: | |
4236 | return NULL; | |
4237 | } | |
4238 | ||
4239 | ||
4240 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject *resultobj; | |
4242 | wxRect *arg1 = (wxRect *) 0 ; | |
4243 | wxRect *arg2 = 0 ; | |
4244 | bool result; | |
4245 | wxRect temp2 ; | |
4246 | PyObject * obj0 = 0 ; | |
4247 | PyObject * obj1 = 0 ; | |
4248 | char *kwnames[] = { | |
4249 | (char *) "self",(char *) "rect", NULL | |
4250 | }; | |
4251 | ||
4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4255 | { |
4256 | arg2 = &temp2; | |
4257 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4258 | } | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4262 | ||
4263 | wxPyEndAllowThreads(__tstate); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4f89f6a3 RD |
4266 | { |
4267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4268 | } | |
d14a1e28 RD |
4269 | return resultobj; |
4270 | fail: | |
4271 | return NULL; | |
4272 | } | |
4273 | ||
4274 | ||
4275 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4276 | PyObject *resultobj; | |
4277 | wxRect *arg1 = (wxRect *) 0 ; | |
4278 | wxRect *arg2 = 0 ; | |
4279 | bool result; | |
4280 | wxRect temp2 ; | |
4281 | PyObject * obj0 = 0 ; | |
4282 | PyObject * obj1 = 0 ; | |
4283 | char *kwnames[] = { | |
4284 | (char *) "self",(char *) "rect", NULL | |
4285 | }; | |
4286 | ||
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4290 | { |
4291 | arg2 = &temp2; | |
4292 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4293 | } | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4297 | ||
4298 | wxPyEndAllowThreads(__tstate); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4f89f6a3 RD |
4301 | { |
4302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4303 | } | |
d14a1e28 RD |
4304 | return resultobj; |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4311 | PyObject *resultobj; | |
4312 | wxRect *arg1 = (wxRect *) 0 ; | |
4313 | int arg2 ; | |
4314 | int arg3 ; | |
4315 | bool result; | |
4316 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4317 | PyObject * obj1 = 0 ; |
4318 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4319 | char *kwnames[] = { |
4320 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4321 | }; | |
4322 | ||
8edf1c75 | 4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4326 | arg2 = (int) SWIG_AsInt(obj1); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
4328 | arg3 = (int) SWIG_AsInt(obj2); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4330 | { |
4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4332 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4333 | ||
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4f89f6a3 RD |
4337 | { |
4338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4339 | } | |
d14a1e28 RD |
4340 | return resultobj; |
4341 | fail: | |
4342 | return NULL; | |
4343 | } | |
4344 | ||
4345 | ||
4346 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4347 | PyObject *resultobj; | |
4348 | wxRect *arg1 = (wxRect *) 0 ; | |
4349 | wxPoint *arg2 = 0 ; | |
4350 | bool result; | |
4351 | wxPoint temp2 ; | |
4352 | PyObject * obj0 = 0 ; | |
4353 | PyObject * obj1 = 0 ; | |
4354 | char *kwnames[] = { | |
4355 | (char *) "self",(char *) "pt", NULL | |
4356 | }; | |
4357 | ||
4358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4361 | { |
4362 | arg2 = &temp2; | |
4363 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4364 | } | |
4365 | { | |
4366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4367 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4368 | ||
4369 | wxPyEndAllowThreads(__tstate); | |
4370 | if (PyErr_Occurred()) SWIG_fail; | |
4371 | } | |
4f89f6a3 RD |
4372 | { |
4373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4374 | } | |
d14a1e28 RD |
4375 | return resultobj; |
4376 | fail: | |
4377 | return NULL; | |
4378 | } | |
4379 | ||
4380 | ||
4381 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject *resultobj; | |
4383 | wxRect *arg1 = (wxRect *) 0 ; | |
4384 | wxRect *arg2 = 0 ; | |
4385 | bool result; | |
4386 | wxRect temp2 ; | |
4387 | PyObject * obj0 = 0 ; | |
4388 | PyObject * obj1 = 0 ; | |
4389 | char *kwnames[] = { | |
4390 | (char *) "self",(char *) "rect", NULL | |
4391 | }; | |
4392 | ||
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4396 | { |
4397 | arg2 = &temp2; | |
4398 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4399 | } | |
4400 | { | |
4401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4402 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4403 | ||
4404 | wxPyEndAllowThreads(__tstate); | |
4405 | if (PyErr_Occurred()) SWIG_fail; | |
4406 | } | |
4f89f6a3 RD |
4407 | { |
4408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4409 | } | |
d14a1e28 RD |
4410 | return resultobj; |
4411 | fail: | |
4412 | return NULL; | |
4413 | } | |
4414 | ||
4415 | ||
4416 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4417 | PyObject *resultobj; | |
4418 | wxRect *arg1 = (wxRect *) 0 ; | |
4419 | int arg2 ; | |
4420 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4421 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4422 | char *kwnames[] = { |
4423 | (char *) "self",(char *) "x", NULL | |
4424 | }; | |
4425 | ||
8edf1c75 | 4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4429 | arg2 = (int) SWIG_AsInt(obj1); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4431 | if (arg1) (arg1)->x = arg2; |
4432 | ||
4433 | Py_INCREF(Py_None); resultobj = Py_None; | |
4434 | return resultobj; | |
4435 | fail: | |
4436 | return NULL; | |
4437 | } | |
4438 | ||
4439 | ||
4440 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4441 | PyObject *resultobj; | |
4442 | wxRect *arg1 = (wxRect *) 0 ; | |
4443 | int result; | |
4444 | PyObject * obj0 = 0 ; | |
4445 | char *kwnames[] = { | |
4446 | (char *) "self", NULL | |
4447 | }; | |
4448 | ||
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4452 | result = (int) ((arg1)->x); |
4453 | ||
2f4c0a16 | 4454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4455 | return resultobj; |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxRect *arg1 = (wxRect *) 0 ; | |
4464 | int arg2 ; | |
4465 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4467 | char *kwnames[] = { |
4468 | (char *) "self",(char *) "y", NULL | |
4469 | }; | |
4470 | ||
8edf1c75 | 4471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4474 | arg2 = (int) SWIG_AsInt(obj1); | |
4475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4476 | if (arg1) (arg1)->y = arg2; |
4477 | ||
4478 | Py_INCREF(Py_None); resultobj = Py_None; | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
4485 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject *resultobj; | |
4487 | wxRect *arg1 = (wxRect *) 0 ; | |
4488 | int result; | |
4489 | PyObject * obj0 = 0 ; | |
4490 | char *kwnames[] = { | |
4491 | (char *) "self", NULL | |
4492 | }; | |
4493 | ||
4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4497 | result = (int) ((arg1)->y); |
4498 | ||
2f4c0a16 | 4499 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4500 | return resultobj; |
4501 | fail: | |
4502 | return NULL; | |
4503 | } | |
4504 | ||
4505 | ||
4506 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4507 | PyObject *resultobj; | |
4508 | wxRect *arg1 = (wxRect *) 0 ; | |
4509 | int arg2 ; | |
4510 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4512 | char *kwnames[] = { |
4513 | (char *) "self",(char *) "width", NULL | |
4514 | }; | |
4515 | ||
8edf1c75 | 4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4519 | arg2 = (int) SWIG_AsInt(obj1); | |
4520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4521 | if (arg1) (arg1)->width = arg2; |
4522 | ||
4523 | Py_INCREF(Py_None); resultobj = Py_None; | |
4524 | return resultobj; | |
4525 | fail: | |
4526 | return NULL; | |
4527 | } | |
4528 | ||
4529 | ||
4530 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4531 | PyObject *resultobj; | |
4532 | wxRect *arg1 = (wxRect *) 0 ; | |
4533 | int result; | |
4534 | PyObject * obj0 = 0 ; | |
4535 | char *kwnames[] = { | |
4536 | (char *) "self", NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4542 | result = (int) ((arg1)->width); |
4543 | ||
2f4c0a16 | 4544 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4545 | return resultobj; |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
4551 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4552 | PyObject *resultobj; | |
4553 | wxRect *arg1 = (wxRect *) 0 ; | |
4554 | int arg2 ; | |
4555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4557 | char *kwnames[] = { |
4558 | (char *) "self",(char *) "height", NULL | |
4559 | }; | |
4560 | ||
8edf1c75 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4564 | arg2 = (int) SWIG_AsInt(obj1); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4566 | if (arg1) (arg1)->height = arg2; |
4567 | ||
4568 | Py_INCREF(Py_None); resultobj = Py_None; | |
4569 | return resultobj; | |
4570 | fail: | |
4571 | return NULL; | |
4572 | } | |
4573 | ||
4574 | ||
4575 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4576 | PyObject *resultobj; | |
4577 | wxRect *arg1 = (wxRect *) 0 ; | |
4578 | int result; | |
4579 | PyObject * obj0 = 0 ; | |
4580 | char *kwnames[] = { | |
4581 | (char *) "self", NULL | |
4582 | }; | |
4583 | ||
4584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4587 | result = (int) ((arg1)->height); |
4588 | ||
2f4c0a16 | 4589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4590 | return resultobj; |
4591 | fail: | |
4592 | return NULL; | |
4593 | } | |
4594 | ||
4595 | ||
4596 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxRect *arg1 = (wxRect *) 0 ; | |
4599 | int arg2 = (int) 0 ; | |
4600 | int arg3 = (int) 0 ; | |
4601 | int arg4 = (int) 0 ; | |
4602 | int arg5 = (int) 0 ; | |
4603 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4604 | PyObject * obj1 = 0 ; |
4605 | PyObject * obj2 = 0 ; | |
4606 | PyObject * obj3 = 0 ; | |
4607 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4608 | char *kwnames[] = { |
4609 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4610 | }; | |
4611 | ||
8edf1c75 | 4612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 4615 | if (obj1) { |
2f4c0a16 RD |
4616 | arg2 = (int) SWIG_AsInt(obj1); |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4618 | } |
4619 | if (obj2) { | |
2f4c0a16 RD |
4620 | arg3 = (int) SWIG_AsInt(obj2); |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4622 | } |
4623 | if (obj3) { | |
2f4c0a16 RD |
4624 | arg4 = (int) SWIG_AsInt(obj3); |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4626 | } |
4627 | if (obj4) { | |
2f4c0a16 RD |
4628 | arg5 = (int) SWIG_AsInt(obj4); |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4630 | } |
d14a1e28 RD |
4631 | { |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
4638 | Py_INCREF(Py_None); resultobj = Py_None; | |
4639 | return resultobj; | |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
423f194a | 4645 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4646 | PyObject *resultobj; |
4647 | wxRect *arg1 = (wxRect *) 0 ; | |
4648 | PyObject *result; | |
4649 | PyObject * obj0 = 0 ; | |
4650 | char *kwnames[] = { | |
4651 | (char *) "self", NULL | |
4652 | }; | |
4653 | ||
423f194a | 4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4657 | { |
4658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 4659 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4660 | |
4661 | wxPyEndAllowThreads(__tstate); | |
4662 | if (PyErr_Occurred()) SWIG_fail; | |
4663 | } | |
4664 | resultobj = result; | |
4665 | return resultobj; | |
4666 | fail: | |
4667 | return NULL; | |
4668 | } | |
4669 | ||
4670 | ||
4671 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4672 | PyObject *obj; | |
4673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4674 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4675 | Py_INCREF(obj); | |
4676 | return Py_BuildValue((char *)""); | |
4677 | } | |
4678 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject *resultobj; | |
4680 | wxRect *arg1 = (wxRect *) 0 ; | |
4681 | wxRect *arg2 = (wxRect *) 0 ; | |
4682 | PyObject *result; | |
4683 | PyObject * obj0 = 0 ; | |
4684 | PyObject * obj1 = 0 ; | |
4685 | char *kwnames[] = { | |
4686 | (char *) "r1",(char *) "r2", NULL | |
4687 | }; | |
4688 | ||
4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4694 | { |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | resultobj = result; | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
4705 | } | |
4706 | ||
4707 | ||
4708 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4709 | PyObject *resultobj; | |
4710 | double arg1 = (double) 0.0 ; | |
4711 | double arg2 = (double) 0.0 ; | |
4712 | wxPoint2D *result; | |
8edf1c75 RD |
4713 | PyObject * obj0 = 0 ; |
4714 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4715 | char *kwnames[] = { |
4716 | (char *) "x",(char *) "y", NULL | |
4717 | }; | |
4718 | ||
8edf1c75 RD |
4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4720 | if (obj0) { | |
2f4c0a16 RD |
4721 | arg1 = (double) SWIG_AsDouble(obj0); |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4723 | } |
4724 | if (obj1) { | |
2f4c0a16 RD |
4725 | arg2 = (double) SWIG_AsDouble(obj1); |
4726 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4727 | } |
d14a1e28 RD |
4728 | { |
4729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4730 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4731 | ||
4732 | wxPyEndAllowThreads(__tstate); | |
4733 | if (PyErr_Occurred()) SWIG_fail; | |
4734 | } | |
2f4c0a16 | 4735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4736 | return resultobj; |
4737 | fail: | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
4742 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4743 | PyObject *resultobj; | |
4744 | wxPoint2D *arg1 = 0 ; | |
4745 | wxPoint2D *result; | |
4746 | wxPoint2D temp1 ; | |
4747 | PyObject * obj0 = 0 ; | |
4748 | char *kwnames[] = { | |
4749 | (char *) "pt", NULL | |
4750 | }; | |
4751 | ||
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4753 | { | |
4754 | arg1 = &temp1; | |
4755 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4756 | } | |
4757 | { | |
4758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4759 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4760 | ||
4761 | wxPyEndAllowThreads(__tstate); | |
4762 | if (PyErr_Occurred()) SWIG_fail; | |
4763 | } | |
2f4c0a16 | 4764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4765 | return resultobj; |
4766 | fail: | |
4767 | return NULL; | |
4768 | } | |
4769 | ||
4770 | ||
4771 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4772 | PyObject *resultobj; | |
4773 | wxPoint *arg1 = 0 ; | |
4774 | wxPoint2D *result; | |
4775 | wxPoint temp1 ; | |
4776 | PyObject * obj0 = 0 ; | |
4777 | char *kwnames[] = { | |
4778 | (char *) "pt", NULL | |
4779 | }; | |
4780 | ||
4781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4782 | { | |
4783 | arg1 = &temp1; | |
4784 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
2f4c0a16 | 4793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4794 | return resultobj; |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
4800 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject *resultobj; | |
4802 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4803 | int *arg2 = (int *) 0 ; | |
4804 | int *arg3 = (int *) 0 ; | |
4805 | int temp2 ; | |
4806 | int temp3 ; | |
4807 | PyObject * obj0 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self", NULL | |
4810 | }; | |
4811 | ||
4812 | arg2 = &temp2; | |
4813 | arg3 = &temp3; | |
4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4817 | { |
4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4819 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4820 | ||
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | Py_INCREF(Py_None); resultobj = Py_None; | |
4825 | { | |
4826 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4827 | resultobj = t_output_helper(resultobj,o); | |
4828 | } | |
4829 | { | |
4830 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4831 | resultobj = t_output_helper(resultobj,o); | |
4832 | } | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4842 | int *arg2 = (int *) 0 ; | |
4843 | int *arg3 = (int *) 0 ; | |
4844 | int temp2 ; | |
4845 | int temp3 ; | |
4846 | PyObject * obj0 = 0 ; | |
4847 | char *kwnames[] = { | |
4848 | (char *) "self", NULL | |
4849 | }; | |
4850 | ||
4851 | arg2 = &temp2; | |
4852 | arg3 = &temp3; | |
4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4856 | { |
4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4858 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4859 | ||
4860 | wxPyEndAllowThreads(__tstate); | |
4861 | if (PyErr_Occurred()) SWIG_fail; | |
4862 | } | |
4863 | Py_INCREF(Py_None); resultobj = Py_None; | |
4864 | { | |
4865 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4866 | resultobj = t_output_helper(resultobj,o); | |
4867 | } | |
4868 | { | |
4869 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4870 | resultobj = t_output_helper(resultobj,o); | |
4871 | } | |
4872 | return resultobj; | |
4873 | fail: | |
4874 | return NULL; | |
4875 | } | |
4876 | ||
4877 | ||
4878 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4879 | PyObject *resultobj; | |
4880 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4881 | double result; | |
4882 | PyObject * obj0 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self", NULL | |
4885 | }; | |
4886 | ||
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4890 | { |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
2f4c0a16 | 4897 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4898 | return resultobj; |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
4904 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4905 | PyObject *resultobj; | |
4906 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4907 | double result; | |
4908 | PyObject * obj0 = 0 ; | |
4909 | char *kwnames[] = { | |
4910 | (char *) "self", NULL | |
4911 | }; | |
4912 | ||
4913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4916 | { |
4917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4918 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4919 | ||
4920 | wxPyEndAllowThreads(__tstate); | |
4921 | if (PyErr_Occurred()) SWIG_fail; | |
4922 | } | |
2f4c0a16 | 4923 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4924 | return resultobj; |
4925 | fail: | |
4926 | return NULL; | |
4927 | } | |
4928 | ||
4929 | ||
4930 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4931 | PyObject *resultobj; | |
4932 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4933 | double arg2 ; | |
4934 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4936 | char *kwnames[] = { |
4937 | (char *) "self",(char *) "length", NULL | |
4938 | }; | |
4939 | ||
8edf1c75 | 4940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4943 | arg2 = (double) SWIG_AsDouble(obj1); | |
4944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4945 | { |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | (arg1)->SetVectorLength(arg2); | |
4948 | ||
4949 | wxPyEndAllowThreads(__tstate); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
4952 | Py_INCREF(Py_None); resultobj = Py_None; | |
4953 | return resultobj; | |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
4959 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4960 | PyObject *resultobj; | |
4961 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4962 | double arg2 ; | |
4963 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4964 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4965 | char *kwnames[] = { |
4966 | (char *) "self",(char *) "degrees", NULL | |
4967 | }; | |
4968 | ||
8edf1c75 | 4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4972 | arg2 = (double) SWIG_AsDouble(obj1); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4974 | { |
4975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4976 | (arg1)->SetVectorAngle(arg2); | |
4977 | ||
4978 | wxPyEndAllowThreads(__tstate); | |
4979 | if (PyErr_Occurred()) SWIG_fail; | |
4980 | } | |
4981 | Py_INCREF(Py_None); resultobj = Py_None; | |
4982 | return resultobj; | |
4983 | fail: | |
4984 | return NULL; | |
4985 | } | |
4986 | ||
4987 | ||
4988 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4989 | PyObject *resultobj; | |
4990 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4991 | wxPoint2D *arg2 = 0 ; | |
4992 | double result; | |
4993 | wxPoint2D temp2 ; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | PyObject * obj1 = 0 ; | |
4996 | char *kwnames[] = { | |
4997 | (char *) "self",(char *) "pt", NULL | |
4998 | }; | |
4999 | ||
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5003 | { |
5004 | arg2 = &temp2; | |
5005 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5006 | } | |
5007 | { | |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5010 | ||
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
2f4c0a16 | 5014 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5015 | return resultobj; |
5016 | fail: | |
5017 | return NULL; | |
5018 | } | |
5019 | ||
5020 | ||
5021 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5022 | PyObject *resultobj; | |
5023 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5024 | wxPoint2D *arg2 = 0 ; | |
5025 | double result; | |
5026 | wxPoint2D temp2 ; | |
5027 | PyObject * obj0 = 0 ; | |
5028 | PyObject * obj1 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "self",(char *) "pt", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5036 | { |
5037 | arg2 = &temp2; | |
5038 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5039 | } | |
5040 | { | |
5041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5042 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5043 | ||
5044 | wxPyEndAllowThreads(__tstate); | |
5045 | if (PyErr_Occurred()) SWIG_fail; | |
5046 | } | |
2f4c0a16 | 5047 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5048 | return resultobj; |
5049 | fail: | |
5050 | return NULL; | |
5051 | } | |
5052 | ||
5053 | ||
5054 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject *resultobj; | |
5056 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5057 | wxPoint2D *arg2 = 0 ; | |
5058 | double result; | |
5059 | wxPoint2D temp2 ; | |
5060 | PyObject * obj0 = 0 ; | |
5061 | PyObject * obj1 = 0 ; | |
5062 | char *kwnames[] = { | |
5063 | (char *) "self",(char *) "vec", NULL | |
5064 | }; | |
5065 | ||
5066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5069 | { |
5070 | arg2 = &temp2; | |
5071 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5072 | } | |
5073 | { | |
5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5075 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5076 | ||
5077 | wxPyEndAllowThreads(__tstate); | |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
2f4c0a16 | 5080 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5081 | return resultobj; |
5082 | fail: | |
5083 | return NULL; | |
5084 | } | |
5085 | ||
5086 | ||
5087 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject *resultobj; | |
5089 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5090 | wxPoint2D *arg2 = 0 ; | |
5091 | double result; | |
5092 | wxPoint2D temp2 ; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | PyObject * obj1 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "self",(char *) "vec", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5102 | { |
5103 | arg2 = &temp2; | |
5104 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5105 | } | |
5106 | { | |
5107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5108 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5109 | ||
5110 | wxPyEndAllowThreads(__tstate); | |
5111 | if (PyErr_Occurred()) SWIG_fail; | |
5112 | } | |
2f4c0a16 | 5113 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5114 | return resultobj; |
5115 | fail: | |
5116 | return NULL; | |
5117 | } | |
5118 | ||
5119 | ||
5120 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5121 | PyObject *resultobj; | |
5122 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5123 | wxPoint2D result; | |
5124 | PyObject * obj0 = 0 ; | |
5125 | char *kwnames[] = { | |
5126 | (char *) "self", NULL | |
5127 | }; | |
5128 | ||
5129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5132 | { |
5133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5134 | result = (arg1)->operator -(); | |
5135 | ||
5136 | wxPyEndAllowThreads(__tstate); | |
5137 | if (PyErr_Occurred()) SWIG_fail; | |
5138 | } | |
5139 | { | |
5140 | wxPoint2D * resultptr; | |
5141 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
2f4c0a16 | 5142 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5143 | } |
5144 | return resultobj; | |
5145 | fail: | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
5150 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject *resultobj; | |
5152 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5153 | wxPoint2D *arg2 = 0 ; | |
5154 | wxPoint2D *result; | |
5155 | wxPoint2D temp2 ; | |
5156 | PyObject * obj0 = 0 ; | |
5157 | PyObject * obj1 = 0 ; | |
5158 | char *kwnames[] = { | |
5159 | (char *) "self",(char *) "pt", NULL | |
5160 | }; | |
5161 | ||
5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5165 | { |
5166 | arg2 = &temp2; | |
5167 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5168 | } | |
5169 | { | |
5170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5171 | { | |
5172 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5173 | result = (wxPoint2D *) &_result_ref; | |
5174 | } | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
5177 | if (PyErr_Occurred()) SWIG_fail; | |
5178 | } | |
2f4c0a16 | 5179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5180 | return resultobj; |
5181 | fail: | |
5182 | return NULL; | |
5183 | } | |
5184 | ||
5185 | ||
5186 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5187 | PyObject *resultobj; | |
5188 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5189 | wxPoint2D *arg2 = 0 ; | |
5190 | wxPoint2D *result; | |
5191 | wxPoint2D temp2 ; | |
5192 | PyObject * obj0 = 0 ; | |
5193 | PyObject * obj1 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "self",(char *) "pt", NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5201 | { |
5202 | arg2 = &temp2; | |
5203 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5204 | } | |
5205 | { | |
5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5207 | { | |
5208 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5209 | result = (wxPoint2D *) &_result_ref; | |
5210 | } | |
5211 | ||
5212 | wxPyEndAllowThreads(__tstate); | |
5213 | if (PyErr_Occurred()) SWIG_fail; | |
5214 | } | |
2f4c0a16 | 5215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5216 | return resultobj; |
5217 | fail: | |
5218 | return NULL; | |
5219 | } | |
5220 | ||
5221 | ||
5222 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5223 | PyObject *resultobj; | |
5224 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5225 | wxPoint2D *arg2 = 0 ; | |
5226 | wxPoint2D *result; | |
5227 | wxPoint2D temp2 ; | |
5228 | PyObject * obj0 = 0 ; | |
5229 | PyObject * obj1 = 0 ; | |
5230 | char *kwnames[] = { | |
5231 | (char *) "self",(char *) "pt", NULL | |
5232 | }; | |
5233 | ||
5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5237 | { |
5238 | arg2 = &temp2; | |
5239 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5240 | } | |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | { | |
5244 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5245 | result = (wxPoint2D *) &_result_ref; | |
5246 | } | |
5247 | ||
5248 | wxPyEndAllowThreads(__tstate); | |
5249 | if (PyErr_Occurred()) SWIG_fail; | |
5250 | } | |
2f4c0a16 | 5251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5252 | return resultobj; |
5253 | fail: | |
5254 | return NULL; | |
5255 | } | |
5256 | ||
5257 | ||
5258 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5259 | PyObject *resultobj; | |
5260 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5261 | wxPoint2D *arg2 = 0 ; | |
5262 | wxPoint2D *result; | |
5263 | wxPoint2D temp2 ; | |
5264 | PyObject * obj0 = 0 ; | |
5265 | PyObject * obj1 = 0 ; | |
5266 | char *kwnames[] = { | |
5267 | (char *) "self",(char *) "pt", NULL | |
5268 | }; | |
5269 | ||
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5273 | { |
5274 | arg2 = &temp2; | |
5275 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5276 | } | |
5277 | { | |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5279 | { | |
5280 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5281 | result = (wxPoint2D *) &_result_ref; | |
5282 | } | |
5283 | ||
5284 | wxPyEndAllowThreads(__tstate); | |
5285 | if (PyErr_Occurred()) SWIG_fail; | |
5286 | } | |
2f4c0a16 | 5287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5288 | return resultobj; |
5289 | fail: | |
5290 | return NULL; | |
5291 | } | |
5292 | ||
5293 | ||
5294 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5295 | PyObject *resultobj; | |
5296 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5297 | wxPoint2D *arg2 = 0 ; | |
5298 | bool result; | |
5299 | wxPoint2D temp2 ; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | PyObject * obj1 = 0 ; | |
5302 | char *kwnames[] = { | |
5303 | (char *) "self",(char *) "pt", NULL | |
5304 | }; | |
5305 | ||
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5309 | { |
5310 | arg2 = &temp2; | |
5311 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5312 | } | |
5313 | { | |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5315 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5316 | ||
5317 | wxPyEndAllowThreads(__tstate); | |
5318 | if (PyErr_Occurred()) SWIG_fail; | |
5319 | } | |
4f89f6a3 RD |
5320 | { |
5321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5322 | } | |
d14a1e28 RD |
5323 | return resultobj; |
5324 | fail: | |
5325 | return NULL; | |
5326 | } | |
5327 | ||
5328 | ||
5329 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5330 | PyObject *resultobj; | |
5331 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5332 | wxPoint2D *arg2 = 0 ; | |
5333 | bool result; | |
5334 | wxPoint2D temp2 ; | |
5335 | PyObject * obj0 = 0 ; | |
5336 | PyObject * obj1 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self",(char *) "pt", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5344 | { |
5345 | arg2 = &temp2; | |
5346 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5347 | } | |
5348 | { | |
5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5350 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5351 | ||
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
4f89f6a3 RD |
5355 | { |
5356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5357 | } | |
d14a1e28 RD |
5358 | return resultobj; |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
d14a1e28 RD |
5364 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5365 | PyObject *resultobj; | |
5366 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5367 | double arg2 ; | |
5368 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5370 | char *kwnames[] = { |
5371 | (char *) "self",(char *) "m_x", NULL | |
5372 | }; | |
5373 | ||
8edf1c75 | 5374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5377 | arg2 = (double) SWIG_AsDouble(obj1); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5379 | if (arg1) (arg1)->m_x = arg2; |
5380 | ||
5381 | Py_INCREF(Py_None); resultobj = Py_None; | |
5382 | return resultobj; | |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
5388 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5389 | PyObject *resultobj; | |
5390 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5391 | double result; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | char *kwnames[] = { | |
5394 | (char *) "self", NULL | |
5395 | }; | |
5396 | ||
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5400 | result = (double) ((arg1)->m_x); |
5401 | ||
2f4c0a16 | 5402 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5403 | return resultobj; |
5404 | fail: | |
5405 | return NULL; | |
5406 | } | |
5407 | ||
5408 | ||
5409 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject *resultobj; | |
5411 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5412 | double arg2 ; | |
5413 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5415 | char *kwnames[] = { |
5416 | (char *) "self",(char *) "m_y", NULL | |
5417 | }; | |
5418 | ||
8edf1c75 | 5419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5422 | arg2 = (double) SWIG_AsDouble(obj1); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5424 | if (arg1) (arg1)->m_y = arg2; |
5425 | ||
5426 | Py_INCREF(Py_None); resultobj = Py_None; | |
5427 | return resultobj; | |
5428 | fail: | |
5429 | return NULL; | |
5430 | } | |
5431 | ||
5432 | ||
5433 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject *resultobj; | |
5435 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5436 | double result; | |
5437 | PyObject * obj0 = 0 ; | |
5438 | char *kwnames[] = { | |
5439 | (char *) "self", NULL | |
5440 | }; | |
5441 | ||
5442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5445 | result = (double) ((arg1)->m_y); |
5446 | ||
2f4c0a16 | 5447 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5448 | return resultobj; |
5449 | fail: | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
5453 | ||
5454 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5455 | PyObject *resultobj; | |
5456 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5457 | double arg2 = (double) 0 ; | |
5458 | double arg3 = (double) 0 ; | |
5459 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5460 | PyObject * obj1 = 0 ; |
5461 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5462 | char *kwnames[] = { |
5463 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5464 | }; | |
5465 | ||
8edf1c75 | 5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5469 | if (obj1) { |
2f4c0a16 RD |
5470 | arg2 = (double) SWIG_AsDouble(obj1); |
5471 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5472 | } |
5473 | if (obj2) { | |
2f4c0a16 RD |
5474 | arg3 = (double) SWIG_AsDouble(obj2); |
5475 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5476 | } |
d14a1e28 RD |
5477 | { |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | wxPoint2D_Set(arg1,arg2,arg3); | |
5480 | ||
5481 | wxPyEndAllowThreads(__tstate); | |
5482 | if (PyErr_Occurred()) SWIG_fail; | |
5483 | } | |
5484 | Py_INCREF(Py_None); resultobj = Py_None; | |
5485 | return resultobj; | |
5486 | fail: | |
5487 | return NULL; | |
5488 | } | |
5489 | ||
5490 | ||
423f194a | 5491 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5492 | PyObject *resultobj; |
5493 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5494 | PyObject *result; | |
5495 | PyObject * obj0 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self", NULL | |
5498 | }; | |
5499 | ||
423f194a | 5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5503 | { |
5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5505 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5506 | |
5507 | wxPyEndAllowThreads(__tstate); | |
5508 | if (PyErr_Occurred()) SWIG_fail; | |
5509 | } | |
5510 | resultobj = result; | |
5511 | return resultobj; | |
5512 | fail: | |
5513 | return NULL; | |
5514 | } | |
5515 | ||
5516 | ||
5517 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5518 | PyObject *obj; | |
5519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5520 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5521 | Py_INCREF(obj); | |
5522 | return Py_BuildValue((char *)""); | |
5523 | } | |
2f4c0a16 | 5524 | static int _wrap_DefaultPosition_set(PyObject *_val) { |
d14a1e28 RD |
5525 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5526 | return 1; | |
5527 | } | |
5528 | ||
5529 | ||
5530 | static PyObject *_wrap_DefaultPosition_get() { | |
5531 | PyObject *pyobj; | |
5532 | ||
2f4c0a16 | 5533 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5534 | return pyobj; |
5535 | } | |
5536 | ||
5537 | ||
2f4c0a16 | 5538 | static int _wrap_DefaultSize_set(PyObject *_val) { |
d14a1e28 RD |
5539 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5540 | return 1; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_DefaultSize_get() { | |
5545 | PyObject *pyobj; | |
5546 | ||
2f4c0a16 | 5547 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5548 | return pyobj; |
5549 | } | |
5550 | ||
5551 | ||
5552 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5553 | PyObject *resultobj; | |
5554 | PyObject *arg1 = (PyObject *) 0 ; | |
5555 | wxPyInputStream *result; | |
5556 | PyObject * obj0 = 0 ; | |
5557 | char *kwnames[] = { | |
5558 | (char *) "p", NULL | |
5559 | }; | |
5560 | ||
5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5562 | arg1 = obj0; | |
5563 | { | |
5564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5565 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5566 | ||
5567 | wxPyEndAllowThreads(__tstate); | |
5568 | if (PyErr_Occurred()) SWIG_fail; | |
5569 | } | |
2f4c0a16 | 5570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5571 | return resultobj; |
5572 | fail: | |
5573 | return NULL; | |
5574 | } | |
5575 | ||
5576 | ||
5577 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject *resultobj; | |
5579 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5580 | PyObject * obj0 = 0 ; | |
5581 | char *kwnames[] = { | |
5582 | (char *) "self", NULL | |
5583 | }; | |
5584 | ||
5585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5588 | { |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | (arg1)->close(); | |
5591 | ||
5592 | wxPyEndAllowThreads(__tstate); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
5594 | } | |
5595 | Py_INCREF(Py_None); resultobj = Py_None; | |
5596 | return resultobj; | |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject *resultobj; | |
5604 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5605 | PyObject * obj0 = 0 ; | |
5606 | char *kwnames[] = { | |
5607 | (char *) "self", NULL | |
5608 | }; | |
5609 | ||
5610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5613 | { |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | (arg1)->flush(); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | Py_INCREF(Py_None); resultobj = Py_None; | |
5621 | return resultobj; | |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
5627 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject *resultobj; | |
5629 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5630 | bool result; | |
5631 | PyObject * obj0 = 0 ; | |
5632 | char *kwnames[] = { | |
5633 | (char *) "self", NULL | |
5634 | }; | |
5635 | ||
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5639 | { |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | result = (bool)(arg1)->eof(); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
4f89f6a3 RD |
5646 | { |
5647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5648 | } | |
d14a1e28 RD |
5649 | return resultobj; |
5650 | fail: | |
5651 | return NULL; | |
5652 | } | |
5653 | ||
5654 | ||
5655 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5656 | PyObject *resultobj; | |
5657 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5658 | int arg2 = (int) -1 ; | |
5659 | PyObject *result; | |
5660 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5662 | char *kwnames[] = { |
5663 | (char *) "self",(char *) "size", NULL | |
5664 | }; | |
5665 | ||
8edf1c75 | 5666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5669 | if (obj1) { |
2f4c0a16 RD |
5670 | arg2 = (int) SWIG_AsInt(obj1); |
5671 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5672 | } |
d14a1e28 RD |
5673 | { |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | result = (PyObject *)(arg1)->read(arg2); | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | resultobj = result; | |
5681 | return resultobj; | |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
5687 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject *resultobj; | |
5689 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5690 | int arg2 = (int) -1 ; | |
5691 | PyObject *result; | |
5692 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5693 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5694 | char *kwnames[] = { |
5695 | (char *) "self",(char *) "size", NULL | |
5696 | }; | |
5697 | ||
8edf1c75 | 5698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5701 | if (obj1) { |
2f4c0a16 RD |
5702 | arg2 = (int) SWIG_AsInt(obj1); |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5704 | } |
d14a1e28 RD |
5705 | { |
5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5707 | result = (PyObject *)(arg1)->readline(arg2); | |
5708 | ||
5709 | wxPyEndAllowThreads(__tstate); | |
5710 | if (PyErr_Occurred()) SWIG_fail; | |
5711 | } | |
5712 | resultobj = result; | |
5713 | return resultobj; | |
5714 | fail: | |
5715 | return NULL; | |
5716 | } | |
5717 | ||
5718 | ||
5719 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5720 | PyObject *resultobj; | |
5721 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5722 | int arg2 = (int) -1 ; | |
5723 | PyObject *result; | |
5724 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5725 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5726 | char *kwnames[] = { |
5727 | (char *) "self",(char *) "sizehint", NULL | |
5728 | }; | |
5729 | ||
8edf1c75 | 5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5733 | if (obj1) { |
2f4c0a16 RD |
5734 | arg2 = (int) SWIG_AsInt(obj1); |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5736 | } |
d14a1e28 RD |
5737 | { |
5738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5739 | result = (PyObject *)(arg1)->readlines(arg2); | |
5740 | ||
5741 | wxPyEndAllowThreads(__tstate); | |
5742 | if (PyErr_Occurred()) SWIG_fail; | |
5743 | } | |
5744 | resultobj = result; | |
5745 | return resultobj; | |
5746 | fail: | |
5747 | return NULL; | |
5748 | } | |
5749 | ||
5750 | ||
5751 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5752 | PyObject *resultobj; | |
5753 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5754 | int arg2 ; | |
5755 | int arg3 = (int) 0 ; | |
5756 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5757 | PyObject * obj1 = 0 ; |
5758 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5759 | char *kwnames[] = { |
5760 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5761 | }; | |
5762 | ||
8edf1c75 | 5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5766 | arg2 = (int) SWIG_AsInt(obj1); | |
5767 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5768 | if (obj2) { |
2f4c0a16 RD |
5769 | arg3 = (int) SWIG_AsInt(obj2); |
5770 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5771 | } |
d14a1e28 RD |
5772 | { |
5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5774 | (arg1)->seek(arg2,arg3); | |
5775 | ||
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | Py_INCREF(Py_None); resultobj = Py_None; | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj; | |
5788 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5789 | int result; | |
5790 | PyObject * obj0 = 0 ; | |
5791 | char *kwnames[] = { | |
5792 | (char *) "self", NULL | |
5793 | }; | |
5794 | ||
5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5798 | { |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | result = (int)(arg1)->tell(); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
2f4c0a16 | 5805 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5806 | return resultobj; |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj; | |
5814 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5815 | char result; | |
5816 | PyObject * obj0 = 0 ; | |
5817 | char *kwnames[] = { | |
5818 | (char *) "self", NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5824 | { |
5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5826 | result = (char)(arg1)->Peek(); | |
5827 | ||
5828 | wxPyEndAllowThreads(__tstate); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
5830 | } | |
2f4c0a16 | 5831 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5832 | return resultobj; |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
5838 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject *resultobj; | |
5840 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5841 | char result; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | char *kwnames[] = { | |
5844 | (char *) "self", NULL | |
5845 | }; | |
5846 | ||
5847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5850 | { |
5851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5852 | result = (char)(arg1)->GetC(); | |
5853 | ||
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
2f4c0a16 | 5857 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5858 | return resultobj; |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj; | |
5866 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5867 | size_t result; | |
5868 | PyObject * obj0 = 0 ; | |
5869 | char *kwnames[] = { | |
5870 | (char *) "self", NULL | |
5871 | }; | |
5872 | ||
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5876 | { |
5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5878 | result = (size_t)(arg1)->LastRead(); | |
5879 | ||
5880 | wxPyEndAllowThreads(__tstate); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | } | |
2f4c0a16 | 5883 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5884 | return resultobj; |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj; | |
5892 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5893 | bool result; | |
5894 | PyObject * obj0 = 0 ; | |
5895 | char *kwnames[] = { | |
5896 | (char *) "self", NULL | |
5897 | }; | |
5898 | ||
5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5902 | { |
5903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5904 | result = (bool)(arg1)->CanRead(); | |
5905 | ||
5906 | wxPyEndAllowThreads(__tstate); | |
5907 | if (PyErr_Occurred()) SWIG_fail; | |
5908 | } | |
4f89f6a3 RD |
5909 | { |
5910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5911 | } | |
d14a1e28 RD |
5912 | return resultobj; |
5913 | fail: | |
5914 | return NULL; | |
5915 | } | |
5916 | ||
5917 | ||
5918 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5919 | PyObject *resultobj; | |
5920 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5921 | bool result; | |
5922 | PyObject * obj0 = 0 ; | |
5923 | char *kwnames[] = { | |
5924 | (char *) "self", NULL | |
5925 | }; | |
5926 | ||
5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5930 | { |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | result = (bool)(arg1)->Eof(); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
4f89f6a3 RD |
5937 | { |
5938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5939 | } | |
d14a1e28 RD |
5940 | return resultobj; |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
5946 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject *resultobj; | |
5948 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5949 | char arg2 ; | |
5950 | bool result; | |
5951 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5952 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5953 | char *kwnames[] = { |
5954 | (char *) "self",(char *) "c", NULL | |
5955 | }; | |
5956 | ||
8edf1c75 | 5957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5960 | arg2 = (char) SWIG_AsChar(obj1); | |
5961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5962 | { |
5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5964 | result = (bool)(arg1)->Ungetch(arg2); | |
5965 | ||
5966 | wxPyEndAllowThreads(__tstate); | |
5967 | if (PyErr_Occurred()) SWIG_fail; | |
5968 | } | |
4f89f6a3 RD |
5969 | { |
5970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5971 | } | |
d14a1e28 RD |
5972 | return resultobj; |
5973 | fail: | |
5974 | return NULL; | |
5975 | } | |
5976 | ||
5977 | ||
5978 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5979 | PyObject *resultobj; | |
5980 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5981 | long arg2 ; | |
5982 | int arg3 = (int) wxFromStart ; | |
5983 | long result; | |
5984 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5985 | PyObject * obj1 = 0 ; |
5986 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5987 | char *kwnames[] = { |
5988 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
5989 | }; | |
5990 | ||
8edf1c75 | 5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5994 | arg2 = (long) SWIG_AsLong(obj1); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5996 | if (obj2) { |
2f4c0a16 RD |
5997 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
5998 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5999 | } |
d14a1e28 RD |
6000 | { |
6001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6002 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6003 | ||
6004 | wxPyEndAllowThreads(__tstate); | |
6005 | if (PyErr_Occurred()) SWIG_fail; | |
6006 | } | |
2f4c0a16 | 6007 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6008 | return resultobj; |
6009 | fail: | |
6010 | return NULL; | |
6011 | } | |
6012 | ||
6013 | ||
6014 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6015 | PyObject *resultobj; | |
6016 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6017 | long result; | |
6018 | PyObject * obj0 = 0 ; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "self", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6026 | { |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6028 | result = (long)(arg1)->TellI(); | |
6029 | ||
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) SWIG_fail; | |
6032 | } | |
2f4c0a16 | 6033 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6034 | return resultobj; |
6035 | fail: | |
6036 | return NULL; | |
6037 | } | |
6038 | ||
6039 | ||
6040 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6041 | PyObject *obj; | |
6042 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6043 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6044 | Py_INCREF(obj); | |
6045 | return Py_BuildValue((char *)""); | |
6046 | } | |
6047 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6048 | PyObject *resultobj; | |
6049 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6050 | PyObject *arg2 = (PyObject *) 0 ; | |
6051 | PyObject * obj0 = 0 ; | |
6052 | PyObject * obj1 = 0 ; | |
6053 | char *kwnames[] = { | |
6054 | (char *) "self",(char *) "obj", NULL | |
6055 | }; | |
6056 | ||
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6060 | arg2 = obj1; |
6061 | { | |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | wxOutputStream_write(arg1,arg2); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | Py_INCREF(Py_None); resultobj = Py_None; | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6076 | PyObject *obj; | |
6077 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6078 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6079 | Py_INCREF(obj); | |
6080 | return Py_BuildValue((char *)""); | |
6081 | } | |
6082 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6083 | PyObject *resultobj; | |
6084 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6085 | wxString *arg2 = 0 ; | |
6086 | wxString *arg3 = 0 ; | |
6087 | wxString *arg4 = 0 ; | |
6088 | wxDateTime arg5 ; | |
6089 | wxFSFile *result; | |
6090 | wxPyInputStream *temp1 ; | |
6091 | bool created1 ; | |
423f194a RD |
6092 | bool temp2 = False ; |
6093 | bool temp3 = False ; | |
6094 | bool temp4 = False ; | |
d14a1e28 RD |
6095 | wxDateTime *argp5 ; |
6096 | PyObject * obj0 = 0 ; | |
6097 | PyObject * obj1 = 0 ; | |
6098 | PyObject * obj2 = 0 ; | |
6099 | PyObject * obj3 = 0 ; | |
6100 | PyObject * obj4 = 0 ; | |
6101 | char *kwnames[] = { | |
6102 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6103 | }; | |
6104 | ||
6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6106 | { | |
6107 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6108 | arg1 = temp1->m_wxis; | |
423f194a | 6109 | created1 = False; |
d14a1e28 RD |
6110 | } else { |
6111 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 6112 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6113 | if (arg1 == NULL) { |
6114 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6115 | SWIG_fail; | |
6116 | } | |
423f194a | 6117 | created1 = True; |
d14a1e28 RD |
6118 | } |
6119 | } | |
6120 | { | |
6121 | arg2 = wxString_in_helper(obj1); | |
6122 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6123 | temp2 = True; |
d14a1e28 RD |
6124 | } |
6125 | { | |
6126 | arg3 = wxString_in_helper(obj2); | |
6127 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6128 | temp3 = True; |
d14a1e28 RD |
6129 | } |
6130 | { | |
6131 | arg4 = wxString_in_helper(obj3); | |
6132 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6133 | temp4 = True; |
d14a1e28 | 6134 | } |
2f4c0a16 RD |
6135 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6136 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6137 | arg5 = *argp5; | |
d14a1e28 RD |
6138 | { |
6139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6140 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6141 | ||
6142 | wxPyEndAllowThreads(__tstate); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | } | |
6145 | { | |
6146 | resultobj = wxPyMake_wxObject(result); | |
6147 | } | |
6148 | { | |
6149 | if (created1) | |
6150 | delete arg1; | |
6151 | } | |
6152 | { | |
6153 | if (temp2) | |
6154 | delete arg2; | |
6155 | } | |
6156 | { | |
6157 | if (temp3) | |
6158 | delete arg3; | |
6159 | } | |
6160 | { | |
6161 | if (temp4) | |
6162 | delete arg4; | |
6163 | } | |
6164 | return resultobj; | |
6165 | fail: | |
6166 | { | |
6167 | if (created1) | |
6168 | delete arg1; | |
6169 | } | |
6170 | { | |
6171 | if (temp2) | |
6172 | delete arg2; | |
6173 | } | |
6174 | { | |
6175 | if (temp3) | |
6176 | delete arg3; | |
6177 | } | |
6178 | { | |
6179 | if (temp4) | |
6180 | delete arg4; | |
6181 | } | |
6182 | return NULL; | |
6183 | } | |
6184 | ||
6185 | ||
6186 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6187 | PyObject *resultobj; | |
6188 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | char *kwnames[] = { | |
6191 | (char *) "self", NULL | |
6192 | }; | |
6193 | ||
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6197 | { |
6198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6199 | delete arg1; | |
6200 | ||
6201 | wxPyEndAllowThreads(__tstate); | |
6202 | if (PyErr_Occurred()) SWIG_fail; | |
6203 | } | |
6204 | Py_INCREF(Py_None); resultobj = Py_None; | |
6205 | return resultobj; | |
6206 | fail: | |
6207 | return NULL; | |
6208 | } | |
6209 | ||
6210 | ||
6211 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6212 | PyObject *resultobj; | |
6213 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6214 | wxInputStream *result; | |
6215 | PyObject * obj0 = 0 ; | |
6216 | char *kwnames[] = { | |
6217 | (char *) "self", NULL | |
6218 | }; | |
6219 | ||
6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6223 | { |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | result = (wxInputStream *)(arg1)->GetStream(); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
6230 | { | |
6231 | wxPyInputStream * _ptr = NULL; | |
6232 | ||
6233 | if (result) { | |
6234 | _ptr = new wxPyInputStream(result); | |
6235 | } | |
423f194a | 6236 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6237 | } |
6238 | return resultobj; | |
6239 | fail: | |
6240 | return NULL; | |
6241 | } | |
6242 | ||
6243 | ||
6244 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject *resultobj; | |
6246 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6247 | wxString *result; | |
6248 | PyObject * obj0 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "self", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6256 | { |
6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6258 | { | |
6259 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6260 | result = (wxString *) &_result_ref; | |
6261 | } | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
f0983263 RD |
6266 | { |
6267 | #if wxUSE_UNICODE | |
6268 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6269 | #else | |
6270 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6271 | #endif | |
6272 | } | |
d14a1e28 RD |
6273 | return resultobj; |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
6279 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject *resultobj; | |
6281 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6282 | wxString *result; | |
6283 | PyObject * obj0 = 0 ; | |
6284 | char *kwnames[] = { | |
6285 | (char *) "self", NULL | |
6286 | }; | |
6287 | ||
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6291 | { |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | { | |
6294 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6295 | result = (wxString *) &_result_ref; | |
6296 | } | |
6297 | ||
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) SWIG_fail; | |
6300 | } | |
f0983263 RD |
6301 | { |
6302 | #if wxUSE_UNICODE | |
6303 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6304 | #else | |
6305 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6306 | #endif | |
6307 | } | |
d14a1e28 RD |
6308 | return resultobj; |
6309 | fail: | |
6310 | return NULL; | |
6311 | } | |
6312 | ||
6313 | ||
6314 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6315 | PyObject *resultobj; | |
6316 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6317 | wxString *result; | |
6318 | PyObject * obj0 = 0 ; | |
6319 | char *kwnames[] = { | |
6320 | (char *) "self", NULL | |
6321 | }; | |
6322 | ||
6323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6326 | { |
6327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6328 | { | |
6329 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6330 | result = (wxString *) &_result_ref; | |
6331 | } | |
6332 | ||
6333 | wxPyEndAllowThreads(__tstate); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | } | |
f0983263 RD |
6336 | { |
6337 | #if wxUSE_UNICODE | |
6338 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6339 | #else | |
6340 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6341 | #endif | |
6342 | } | |
d14a1e28 RD |
6343 | return resultobj; |
6344 | fail: | |
6345 | return NULL; | |
6346 | } | |
6347 | ||
6348 | ||
6349 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6350 | PyObject *resultobj; | |
6351 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6352 | wxDateTime result; | |
6353 | PyObject * obj0 = 0 ; | |
6354 | char *kwnames[] = { | |
6355 | (char *) "self", NULL | |
6356 | }; | |
6357 | ||
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6361 | { |
6362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6363 | result = (arg1)->GetModificationTime(); | |
6364 | ||
6365 | wxPyEndAllowThreads(__tstate); | |
6366 | if (PyErr_Occurred()) SWIG_fail; | |
6367 | } | |
6368 | { | |
6369 | wxDateTime * resultptr; | |
6370 | resultptr = new wxDateTime((wxDateTime &) result); | |
2f4c0a16 | 6371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6372 | } |
6373 | return resultobj; | |
6374 | fail: | |
6375 | return NULL; | |
6376 | } | |
6377 | ||
6378 | ||
6379 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6380 | PyObject *obj; | |
6381 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6382 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6383 | Py_INCREF(obj); | |
6384 | return Py_BuildValue((char *)""); | |
6385 | } | |
6386 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6387 | PyObject *obj; | |
6388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6389 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6390 | Py_INCREF(obj); | |
6391 | return Py_BuildValue((char *)""); | |
6392 | } | |
6393 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6394 | PyObject *resultobj; | |
6395 | wxPyFileSystemHandler *result; | |
6396 | char *kwnames[] = { | |
6397 | NULL | |
6398 | }; | |
6399 | ||
6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6401 | { | |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6404 | ||
6405 | wxPyEndAllowThreads(__tstate); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | } | |
2f4c0a16 | 6408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6409 | return resultobj; |
6410 | fail: | |
6411 | return NULL; | |
6412 | } | |
6413 | ||
6414 | ||
6415 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6416 | PyObject *resultobj; | |
6417 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6418 | PyObject *arg2 = (PyObject *) 0 ; | |
6419 | PyObject *arg3 = (PyObject *) 0 ; | |
6420 | PyObject * obj0 = 0 ; | |
6421 | PyObject * obj1 = 0 ; | |
6422 | PyObject * obj2 = 0 ; | |
6423 | char *kwnames[] = { | |
6424 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6425 | }; | |
6426 | ||
6427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6430 | arg2 = obj1; |
6431 | arg3 = obj2; | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
6439 | Py_INCREF(Py_None); resultobj = Py_None; | |
6440 | return resultobj; | |
6441 | fail: | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj; | |
6448 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6449 | wxString *arg2 = 0 ; | |
6450 | bool result; | |
423f194a | 6451 | bool temp2 = False ; |
d14a1e28 RD |
6452 | PyObject * obj0 = 0 ; |
6453 | PyObject * obj1 = 0 ; | |
6454 | char *kwnames[] = { | |
6455 | (char *) "self",(char *) "location", NULL | |
6456 | }; | |
6457 | ||
6458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6461 | { |
6462 | arg2 = wxString_in_helper(obj1); | |
6463 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6464 | temp2 = True; |
d14a1e28 RD |
6465 | } |
6466 | { | |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
4f89f6a3 RD |
6473 | { |
6474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6475 | } | |
d14a1e28 RD |
6476 | { |
6477 | if (temp2) | |
6478 | delete arg2; | |
6479 | } | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | { | |
6483 | if (temp2) | |
6484 | delete arg2; | |
6485 | } | |
6486 | return NULL; | |
6487 | } | |
6488 | ||
6489 | ||
6490 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject *resultobj; | |
6492 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6493 | wxFileSystem *arg2 = 0 ; | |
6494 | wxString *arg3 = 0 ; | |
6495 | wxFSFile *result; | |
423f194a | 6496 | bool temp3 = False ; |
d14a1e28 RD |
6497 | PyObject * obj0 = 0 ; |
6498 | PyObject * obj1 = 0 ; | |
6499 | PyObject * obj2 = 0 ; | |
6500 | char *kwnames[] = { | |
6501 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6507 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6508 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6509 | SWIG_fail; | |
d14a1e28 | 6510 | if (arg2 == NULL) { |
2f4c0a16 RD |
6511 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6512 | SWIG_fail; | |
d14a1e28 RD |
6513 | } |
6514 | { | |
6515 | arg3 = wxString_in_helper(obj2); | |
6516 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6517 | temp3 = True; |
d14a1e28 RD |
6518 | } |
6519 | { | |
6520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6521 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6522 | ||
6523 | wxPyEndAllowThreads(__tstate); | |
6524 | if (PyErr_Occurred()) SWIG_fail; | |
6525 | } | |
6526 | { | |
6527 | resultobj = wxPyMake_wxObject(result); | |
6528 | } | |
6529 | { | |
6530 | if (temp3) | |
6531 | delete arg3; | |
6532 | } | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | { | |
6536 | if (temp3) | |
6537 | delete arg3; | |
6538 | } | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
6543 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6544 | PyObject *resultobj; | |
6545 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6546 | wxString *arg2 = 0 ; | |
6547 | int arg3 = (int) 0 ; | |
6548 | wxString result; | |
423f194a | 6549 | bool temp2 = False ; |
d14a1e28 RD |
6550 | PyObject * obj0 = 0 ; |
6551 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6552 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6553 | char *kwnames[] = { |
6554 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6555 | }; | |
6556 | ||
8edf1c75 | 6557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6560 | { |
6561 | arg2 = wxString_in_helper(obj1); | |
6562 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6563 | temp2 = True; |
d14a1e28 | 6564 | } |
8edf1c75 | 6565 | if (obj2) { |
2f4c0a16 RD |
6566 | arg3 = (int) SWIG_AsInt(obj2); |
6567 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6568 | } |
d14a1e28 RD |
6569 | { |
6570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6571 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6572 | ||
6573 | wxPyEndAllowThreads(__tstate); | |
6574 | if (PyErr_Occurred()) SWIG_fail; | |
6575 | } | |
6576 | { | |
6577 | #if wxUSE_UNICODE | |
6578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6579 | #else | |
6580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6581 | #endif | |
6582 | } | |
6583 | { | |
6584 | if (temp2) | |
6585 | delete arg2; | |
6586 | } | |
6587 | return resultobj; | |
6588 | fail: | |
6589 | { | |
6590 | if (temp2) | |
6591 | delete arg2; | |
6592 | } | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
6597 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject *resultobj; | |
6599 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6600 | wxString result; | |
6601 | PyObject * obj0 = 0 ; | |
6602 | char *kwnames[] = { | |
6603 | (char *) "self", NULL | |
6604 | }; | |
6605 | ||
6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6609 | { |
6610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6611 | result = (arg1)->FindNext(); | |
6612 | ||
6613 | wxPyEndAllowThreads(__tstate); | |
6614 | if (PyErr_Occurred()) SWIG_fail; | |
6615 | } | |
6616 | { | |
6617 | #if wxUSE_UNICODE | |
6618 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6619 | #else | |
6620 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6621 | #endif | |
6622 | } | |
6623 | return resultobj; | |
6624 | fail: | |
6625 | return NULL; | |
6626 | } | |
6627 | ||
6628 | ||
6629 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6630 | PyObject *resultobj; | |
6631 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6632 | wxString *arg2 = 0 ; | |
6633 | wxString result; | |
423f194a | 6634 | bool temp2 = False ; |
d14a1e28 RD |
6635 | PyObject * obj0 = 0 ; |
6636 | PyObject * obj1 = 0 ; | |
6637 | char *kwnames[] = { | |
6638 | (char *) "self",(char *) "location", NULL | |
6639 | }; | |
6640 | ||
6641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6644 | { |
6645 | arg2 = wxString_in_helper(obj1); | |
6646 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6647 | temp2 = True; |
d14a1e28 RD |
6648 | } |
6649 | { | |
6650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6651 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6652 | ||
6653 | wxPyEndAllowThreads(__tstate); | |
6654 | if (PyErr_Occurred()) SWIG_fail; | |
6655 | } | |
6656 | { | |
6657 | #if wxUSE_UNICODE | |
6658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6659 | #else | |
6660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6661 | #endif | |
6662 | } | |
6663 | { | |
6664 | if (temp2) | |
6665 | delete arg2; | |
6666 | } | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | { | |
6670 | if (temp2) | |
6671 | delete arg2; | |
6672 | } | |
6673 | return NULL; | |
6674 | } | |
6675 | ||
6676 | ||
6677 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6678 | PyObject *resultobj; | |
6679 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6680 | wxString *arg2 = 0 ; | |
6681 | wxString result; | |
423f194a | 6682 | bool temp2 = False ; |
d14a1e28 RD |
6683 | PyObject * obj0 = 0 ; |
6684 | PyObject * obj1 = 0 ; | |
6685 | char *kwnames[] = { | |
6686 | (char *) "self",(char *) "location", NULL | |
6687 | }; | |
6688 | ||
6689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6692 | { |
6693 | arg2 = wxString_in_helper(obj1); | |
6694 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6695 | temp2 = True; |
d14a1e28 RD |
6696 | } |
6697 | { | |
6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6699 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6700 | ||
6701 | wxPyEndAllowThreads(__tstate); | |
6702 | if (PyErr_Occurred()) SWIG_fail; | |
6703 | } | |
6704 | { | |
6705 | #if wxUSE_UNICODE | |
6706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6707 | #else | |
6708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6709 | #endif | |
6710 | } | |
6711 | { | |
6712 | if (temp2) | |
6713 | delete arg2; | |
6714 | } | |
6715 | return resultobj; | |
6716 | fail: | |
6717 | { | |
6718 | if (temp2) | |
6719 | delete arg2; | |
6720 | } | |
6721 | return NULL; | |
6722 | } | |
6723 | ||
6724 | ||
6725 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6726 | PyObject *resultobj; | |
6727 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6728 | wxString *arg2 = 0 ; | |
6729 | wxString result; | |
423f194a | 6730 | bool temp2 = False ; |
d14a1e28 RD |
6731 | PyObject * obj0 = 0 ; |
6732 | PyObject * obj1 = 0 ; | |
6733 | char *kwnames[] = { | |
6734 | (char *) "self",(char *) "location", NULL | |
6735 | }; | |
6736 | ||
6737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6740 | { |
6741 | arg2 = wxString_in_helper(obj1); | |
6742 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6743 | temp2 = True; |
d14a1e28 RD |
6744 | } |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
6751 | } | |
6752 | { | |
6753 | #if wxUSE_UNICODE | |
6754 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6755 | #else | |
6756 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6757 | #endif | |
6758 | } | |
6759 | { | |
6760 | if (temp2) | |
6761 | delete arg2; | |
6762 | } | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | { | |
6766 | if (temp2) | |
6767 | delete arg2; | |
6768 | } | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
6773 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject *resultobj; | |
6775 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6776 | wxString *arg2 = 0 ; | |
6777 | wxString result; | |
423f194a | 6778 | bool temp2 = False ; |
d14a1e28 RD |
6779 | PyObject * obj0 = 0 ; |
6780 | PyObject * obj1 = 0 ; | |
6781 | char *kwnames[] = { | |
6782 | (char *) "self",(char *) "location", NULL | |
6783 | }; | |
6784 | ||
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6788 | { |
6789 | arg2 = wxString_in_helper(obj1); | |
6790 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6791 | temp2 = True; |
d14a1e28 RD |
6792 | } |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
6800 | { | |
6801 | #if wxUSE_UNICODE | |
6802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6803 | #else | |
6804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6805 | #endif | |
6806 | } | |
6807 | { | |
6808 | if (temp2) | |
6809 | delete arg2; | |
6810 | } | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | { | |
6814 | if (temp2) | |
6815 | delete arg2; | |
6816 | } | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
6821 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject *resultobj; | |
6823 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6824 | wxString *arg2 = 0 ; | |
6825 | wxString result; | |
423f194a | 6826 | bool temp2 = False ; |
d14a1e28 RD |
6827 | PyObject * obj0 = 0 ; |
6828 | PyObject * obj1 = 0 ; | |
6829 | char *kwnames[] = { | |
6830 | (char *) "self",(char *) "location", NULL | |
6831 | }; | |
6832 | ||
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6836 | { |
6837 | arg2 = wxString_in_helper(obj1); | |
6838 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6839 | temp2 = True; |
d14a1e28 RD |
6840 | } |
6841 | { | |
6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6843 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | { | |
6849 | #if wxUSE_UNICODE | |
6850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6851 | #else | |
6852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6853 | #endif | |
6854 | } | |
6855 | { | |
6856 | if (temp2) | |
6857 | delete arg2; | |
6858 | } | |
6859 | return resultobj; | |
6860 | fail: | |
6861 | { | |
6862 | if (temp2) | |
6863 | delete arg2; | |
6864 | } | |
6865 | return NULL; | |
6866 | } | |
6867 | ||
6868 | ||
6869 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6870 | PyObject *obj; | |
6871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6872 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6873 | Py_INCREF(obj); | |
6874 | return Py_BuildValue((char *)""); | |
6875 | } | |
6876 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6877 | PyObject *resultobj; | |
6878 | wxFileSystem *result; | |
6879 | char *kwnames[] = { | |
6880 | NULL | |
6881 | }; | |
6882 | ||
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6884 | { | |
6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6886 | result = (wxFileSystem *)new wxFileSystem(); | |
6887 | ||
6888 | wxPyEndAllowThreads(__tstate); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
6890 | } | |
6891 | { | |
6892 | resultobj = wxPyMake_wxObject(result); | |
6893 | } | |
6894 | return resultobj; | |
6895 | fail: | |
6896 | return NULL; | |
6897 | } | |
6898 | ||
6899 | ||
6900 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject *resultobj; | |
6902 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6903 | PyObject * obj0 = 0 ; | |
6904 | char *kwnames[] = { | |
6905 | (char *) "self", NULL | |
6906 | }; | |
6907 | ||
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6911 | { |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | delete arg1; | |
6914 | ||
6915 | wxPyEndAllowThreads(__tstate); | |
6916 | if (PyErr_Occurred()) SWIG_fail; | |
6917 | } | |
6918 | Py_INCREF(Py_None); resultobj = Py_None; | |
6919 | return resultobj; | |
6920 | fail: | |
6921 | return NULL; | |
6922 | } | |
6923 | ||
6924 | ||
6925 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6926 | PyObject *resultobj; | |
6927 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6928 | wxString *arg2 = 0 ; | |
423f194a RD |
6929 | bool arg3 = (bool) False ; |
6930 | bool temp2 = False ; | |
d14a1e28 RD |
6931 | PyObject * obj0 = 0 ; |
6932 | PyObject * obj1 = 0 ; | |
6933 | PyObject * obj2 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6941 | { |
6942 | arg2 = wxString_in_helper(obj1); | |
6943 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6944 | temp2 = True; |
d14a1e28 RD |
6945 | } |
6946 | if (obj2) { | |
2f4c0a16 RD |
6947 | arg3 = (bool) SWIG_AsBool(obj2); |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6949 | } |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | Py_INCREF(Py_None); resultobj = Py_None; | |
6958 | { | |
6959 | if (temp2) | |
6960 | delete arg2; | |
6961 | } | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | { | |
6965 | if (temp2) | |
6966 | delete arg2; | |
6967 | } | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6975 | wxString result; | |
6976 | PyObject * obj0 = 0 ; | |
6977 | char *kwnames[] = { | |
6978 | (char *) "self", NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6984 | { |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | result = (arg1)->GetPath(); | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) SWIG_fail; | |
6990 | } | |
6991 | { | |
6992 | #if wxUSE_UNICODE | |
6993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6994 | #else | |
6995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6996 | #endif | |
6997 | } | |
6998 | return resultobj; | |
6999 | fail: | |
7000 | return NULL; | |
7001 | } | |
7002 | ||
7003 | ||
7004 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7005 | PyObject *resultobj; | |
7006 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7007 | wxString *arg2 = 0 ; | |
7008 | wxFSFile *result; | |
423f194a | 7009 | bool temp2 = False ; |
d14a1e28 RD |
7010 | PyObject * obj0 = 0 ; |
7011 | PyObject * obj1 = 0 ; | |
7012 | char *kwnames[] = { | |
7013 | (char *) "self",(char *) "location", NULL | |
7014 | }; | |
7015 | ||
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7019 | { |
7020 | arg2 = wxString_in_helper(obj1); | |
7021 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7022 | temp2 = True; |
d14a1e28 RD |
7023 | } |
7024 | { | |
7025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7026 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7027 | ||
7028 | wxPyEndAllowThreads(__tstate); | |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
7030 | } | |
7031 | { | |
7032 | resultobj = wxPyMake_wxObject(result); | |
7033 | } | |
7034 | { | |
7035 | if (temp2) | |
7036 | delete arg2; | |
7037 | } | |
7038 | return resultobj; | |
7039 | fail: | |
7040 | { | |
7041 | if (temp2) | |
7042 | delete arg2; | |
7043 | } | |
7044 | return NULL; | |
7045 | } | |
7046 | ||
7047 | ||
7048 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7049 | PyObject *resultobj; | |
7050 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7051 | wxString *arg2 = 0 ; | |
7052 | int arg3 = (int) 0 ; | |
7053 | wxString result; | |
423f194a | 7054 | bool temp2 = False ; |
d14a1e28 RD |
7055 | PyObject * obj0 = 0 ; |
7056 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7057 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7058 | char *kwnames[] = { |
7059 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7060 | }; | |
7061 | ||
8edf1c75 | 7062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7065 | { |
7066 | arg2 = wxString_in_helper(obj1); | |
7067 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7068 | temp2 = True; |
d14a1e28 | 7069 | } |
8edf1c75 | 7070 | if (obj2) { |
2f4c0a16 RD |
7071 | arg3 = (int) SWIG_AsInt(obj2); |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7073 | } |
d14a1e28 RD |
7074 | { |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7076 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7077 | ||
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | } | |
7081 | { | |
7082 | #if wxUSE_UNICODE | |
7083 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7084 | #else | |
7085 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7086 | #endif | |
7087 | } | |
7088 | { | |
7089 | if (temp2) | |
7090 | delete arg2; | |
7091 | } | |
7092 | return resultobj; | |
7093 | fail: | |
7094 | { | |
7095 | if (temp2) | |
7096 | delete arg2; | |
7097 | } | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj; | |
7104 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7105 | wxString result; | |
7106 | PyObject * obj0 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7114 | { |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | result = (arg1)->FindNext(); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
7121 | { | |
7122 | #if wxUSE_UNICODE | |
7123 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7124 | #else | |
7125 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7126 | #endif | |
7127 | } | |
7128 | return resultobj; | |
7129 | fail: | |
7130 | return NULL; | |
7131 | } | |
7132 | ||
7133 | ||
7134 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7135 | PyObject *resultobj; | |
7136 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7137 | PyObject * obj0 = 0 ; | |
7138 | char *kwnames[] = { | |
7139 | (char *) "handler", NULL | |
7140 | }; | |
7141 | ||
7142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7145 | { |
7146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7147 | wxFileSystem::AddHandler(arg1); | |
7148 | ||
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
7152 | Py_INCREF(Py_None); resultobj = Py_None; | |
7153 | return resultobj; | |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | char *kwnames[] = { | |
7162 | NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7166 | { | |
7167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7168 | wxFileSystem::CleanUpHandlers(); | |
7169 | ||
7170 | wxPyEndAllowThreads(__tstate); | |
7171 | if (PyErr_Occurred()) SWIG_fail; | |
7172 | } | |
7173 | Py_INCREF(Py_None); resultobj = Py_None; | |
7174 | return resultobj; | |
7175 | fail: | |
7176 | return NULL; | |
7177 | } | |
7178 | ||
7179 | ||
7180 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7181 | PyObject *resultobj; | |
7182 | wxString *arg1 = 0 ; | |
7183 | wxString result; | |
423f194a | 7184 | bool temp1 = False ; |
d14a1e28 RD |
7185 | PyObject * obj0 = 0 ; |
7186 | char *kwnames[] = { | |
7187 | (char *) "filename", NULL | |
7188 | }; | |
7189 | ||
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7191 | { | |
7192 | arg1 = wxString_in_helper(obj0); | |
7193 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7194 | temp1 = True; |
d14a1e28 RD |
7195 | } |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | { | |
7204 | #if wxUSE_UNICODE | |
7205 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7206 | #else | |
7207 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7208 | #endif | |
7209 | } | |
7210 | { | |
7211 | if (temp1) | |
7212 | delete arg1; | |
7213 | } | |
7214 | return resultobj; | |
7215 | fail: | |
7216 | { | |
7217 | if (temp1) | |
7218 | delete arg1; | |
7219 | } | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7225 | PyObject *obj; | |
7226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7227 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7228 | Py_INCREF(obj); | |
7229 | return Py_BuildValue((char *)""); | |
7230 | } | |
7231 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7232 | PyObject *resultobj; | |
7233 | wxString *arg1 = 0 ; | |
7234 | wxString result; | |
423f194a | 7235 | bool temp1 = False ; |
d14a1e28 RD |
7236 | PyObject * obj0 = 0 ; |
7237 | char *kwnames[] = { | |
7238 | (char *) "url", NULL | |
7239 | }; | |
7240 | ||
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7242 | { | |
7243 | arg1 = wxString_in_helper(obj0); | |
7244 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7245 | temp1 = True; |
d14a1e28 RD |
7246 | } |
7247 | { | |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | { | |
7255 | #if wxUSE_UNICODE | |
7256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7257 | #else | |
7258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7259 | #endif | |
7260 | } | |
7261 | { | |
7262 | if (temp1) | |
7263 | delete arg1; | |
7264 | } | |
7265 | return resultobj; | |
7266 | fail: | |
7267 | { | |
7268 | if (temp1) | |
7269 | delete arg1; | |
7270 | } | |
7271 | return NULL; | |
7272 | } | |
7273 | ||
7274 | ||
7275 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7276 | PyObject *resultobj; | |
7277 | wxInternetFSHandler *result; | |
7278 | char *kwnames[] = { | |
7279 | NULL | |
7280 | }; | |
7281 | ||
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7283 | { | |
7284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7285 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7286 | ||
7287 | wxPyEndAllowThreads(__tstate); | |
7288 | if (PyErr_Occurred()) SWIG_fail; | |
7289 | } | |
2f4c0a16 | 7290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7291 | return resultobj; |
7292 | fail: | |
7293 | return NULL; | |
7294 | } | |
7295 | ||
7296 | ||
7297 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7298 | PyObject *resultobj; | |
7299 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7300 | wxString *arg2 = 0 ; | |
7301 | bool result; | |
423f194a | 7302 | bool temp2 = False ; |
d14a1e28 RD |
7303 | PyObject * obj0 = 0 ; |
7304 | PyObject * obj1 = 0 ; | |
7305 | char *kwnames[] = { | |
7306 | (char *) "self",(char *) "location", NULL | |
7307 | }; | |
7308 | ||
7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7312 | { |
7313 | arg2 = wxString_in_helper(obj1); | |
7314 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7315 | temp2 = True; |
d14a1e28 RD |
7316 | } |
7317 | { | |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7319 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7320 | ||
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
4f89f6a3 RD |
7324 | { |
7325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7326 | } | |
d14a1e28 RD |
7327 | { |
7328 | if (temp2) | |
7329 | delete arg2; | |
7330 | } | |
7331 | return resultobj; | |
7332 | fail: | |
7333 | { | |
7334 | if (temp2) | |
7335 | delete arg2; | |
7336 | } | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
7341 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj; | |
7343 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7344 | wxFileSystem *arg2 = 0 ; | |
7345 | wxString *arg3 = 0 ; | |
7346 | wxFSFile *result; | |
423f194a | 7347 | bool temp3 = False ; |
d14a1e28 RD |
7348 | PyObject * obj0 = 0 ; |
7349 | PyObject * obj1 = 0 ; | |
7350 | PyObject * obj2 = 0 ; | |
7351 | char *kwnames[] = { | |
7352 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7353 | }; | |
7354 | ||
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7360 | SWIG_fail; | |
d14a1e28 | 7361 | if (arg2 == NULL) { |
2f4c0a16 RD |
7362 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7363 | SWIG_fail; | |
d14a1e28 RD |
7364 | } |
7365 | { | |
7366 | arg3 = wxString_in_helper(obj2); | |
7367 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7368 | temp3 = True; |
d14a1e28 RD |
7369 | } |
7370 | { | |
7371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7372 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7373 | ||
7374 | wxPyEndAllowThreads(__tstate); | |
7375 | if (PyErr_Occurred()) SWIG_fail; | |
7376 | } | |
7377 | { | |
7378 | resultobj = wxPyMake_wxObject(result); | |
7379 | } | |
7380 | { | |
7381 | if (temp3) | |
7382 | delete arg3; | |
7383 | } | |
7384 | return resultobj; | |
7385 | fail: | |
7386 | { | |
7387 | if (temp3) | |
7388 | delete arg3; | |
7389 | } | |
7390 | return NULL; | |
7391 | } | |
7392 | ||
7393 | ||
7394 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7395 | PyObject *obj; | |
7396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7397 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7398 | Py_INCREF(obj); | |
7399 | return Py_BuildValue((char *)""); | |
7400 | } | |
7401 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7402 | PyObject *resultobj; | |
7403 | wxZipFSHandler *result; | |
7404 | char *kwnames[] = { | |
7405 | NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7409 | { | |
7410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7411 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7412 | ||
7413 | wxPyEndAllowThreads(__tstate); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | } | |
2f4c0a16 | 7416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7417 | return resultobj; |
7418 | fail: | |
7419 | return NULL; | |
7420 | } | |
7421 | ||
7422 | ||
7423 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7424 | PyObject *resultobj; | |
7425 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7426 | wxString *arg2 = 0 ; | |
7427 | bool result; | |
423f194a | 7428 | bool temp2 = False ; |
d14a1e28 RD |
7429 | PyObject * obj0 = 0 ; |
7430 | PyObject * obj1 = 0 ; | |
7431 | char *kwnames[] = { | |
7432 | (char *) "self",(char *) "location", NULL | |
7433 | }; | |
7434 | ||
7435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7438 | { |
7439 | arg2 = wxString_in_helper(obj1); | |
7440 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7441 | temp2 = True; |
d14a1e28 RD |
7442 | } |
7443 | { | |
7444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7445 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7446 | ||
7447 | wxPyEndAllowThreads(__tstate); | |
7448 | if (PyErr_Occurred()) SWIG_fail; | |
7449 | } | |
4f89f6a3 RD |
7450 | { |
7451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7452 | } | |
d14a1e28 RD |
7453 | { |
7454 | if (temp2) | |
7455 | delete arg2; | |
7456 | } | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | { | |
7460 | if (temp2) | |
7461 | delete arg2; | |
7462 | } | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
7467 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7468 | PyObject *resultobj; | |
7469 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7470 | wxFileSystem *arg2 = 0 ; | |
7471 | wxString *arg3 = 0 ; | |
7472 | wxFSFile *result; | |
423f194a | 7473 | bool temp3 = False ; |
d14a1e28 RD |
7474 | PyObject * obj0 = 0 ; |
7475 | PyObject * obj1 = 0 ; | |
7476 | PyObject * obj2 = 0 ; | |
7477 | char *kwnames[] = { | |
7478 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7479 | }; | |
7480 | ||
7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7486 | SWIG_fail; | |
d14a1e28 | 7487 | if (arg2 == NULL) { |
2f4c0a16 RD |
7488 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7489 | SWIG_fail; | |
d14a1e28 RD |
7490 | } |
7491 | { | |
7492 | arg3 = wxString_in_helper(obj2); | |
7493 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7494 | temp3 = True; |
d14a1e28 RD |
7495 | } |
7496 | { | |
7497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7498 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7499 | ||
7500 | wxPyEndAllowThreads(__tstate); | |
7501 | if (PyErr_Occurred()) SWIG_fail; | |
7502 | } | |
7503 | { | |
7504 | resultobj = wxPyMake_wxObject(result); | |
7505 | } | |
7506 | { | |
7507 | if (temp3) | |
7508 | delete arg3; | |
7509 | } | |
7510 | return resultobj; | |
7511 | fail: | |
7512 | { | |
7513 | if (temp3) | |
7514 | delete arg3; | |
7515 | } | |
7516 | return NULL; | |
7517 | } | |
7518 | ||
7519 | ||
7520 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7521 | PyObject *resultobj; | |
7522 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7523 | wxString *arg2 = 0 ; | |
7524 | int arg3 = (int) 0 ; | |
7525 | wxString result; | |
423f194a | 7526 | bool temp2 = False ; |
d14a1e28 RD |
7527 | PyObject * obj0 = 0 ; |
7528 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7529 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7530 | char *kwnames[] = { |
7531 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7532 | }; | |
7533 | ||
8edf1c75 | 7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7537 | { |
7538 | arg2 = wxString_in_helper(obj1); | |
7539 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7540 | temp2 = True; |
d14a1e28 | 7541 | } |
8edf1c75 | 7542 | if (obj2) { |
2f4c0a16 RD |
7543 | arg3 = (int) SWIG_AsInt(obj2); |
7544 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7545 | } |
d14a1e28 RD |
7546 | { |
7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7548 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7549 | ||
7550 | wxPyEndAllowThreads(__tstate); | |
7551 | if (PyErr_Occurred()) SWIG_fail; | |
7552 | } | |
7553 | { | |
7554 | #if wxUSE_UNICODE | |
7555 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7556 | #else | |
7557 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7558 | #endif | |
7559 | } | |
7560 | { | |
7561 | if (temp2) | |
7562 | delete arg2; | |
7563 | } | |
7564 | return resultobj; | |
7565 | fail: | |
7566 | { | |
7567 | if (temp2) | |
7568 | delete arg2; | |
7569 | } | |
7570 | return NULL; | |
7571 | } | |
7572 | ||
7573 | ||
7574 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject *resultobj; | |
7576 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7577 | wxString result; | |
7578 | PyObject * obj0 = 0 ; | |
7579 | char *kwnames[] = { | |
7580 | (char *) "self", NULL | |
7581 | }; | |
7582 | ||
7583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7586 | { |
7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7588 | result = (arg1)->FindNext(); | |
7589 | ||
7590 | wxPyEndAllowThreads(__tstate); | |
7591 | if (PyErr_Occurred()) SWIG_fail; | |
7592 | } | |
7593 | { | |
7594 | #if wxUSE_UNICODE | |
7595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7596 | #else | |
7597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7598 | #endif | |
7599 | } | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7607 | PyObject *obj; | |
7608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7609 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7610 | Py_INCREF(obj); | |
7611 | return Py_BuildValue((char *)""); | |
7612 | } | |
7613 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7614 | PyObject *resultobj; | |
7615 | wxString *arg1 = 0 ; | |
7616 | wxImage *arg2 = 0 ; | |
7617 | long arg3 ; | |
423f194a | 7618 | bool temp1 = False ; |
d14a1e28 RD |
7619 | PyObject * obj0 = 0 ; |
7620 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7621 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7622 | char *kwnames[] = { |
7623 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7624 | }; | |
7625 | ||
8edf1c75 | 7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7627 | { |
7628 | arg1 = wxString_in_helper(obj0); | |
7629 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7630 | temp1 = True; |
d14a1e28 | 7631 | } |
2f4c0a16 RD |
7632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7634 | SWIG_fail; | |
d14a1e28 | 7635 | if (arg2 == NULL) { |
2f4c0a16 RD |
7636 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7637 | SWIG_fail; | |
8edf1c75 | 7638 | } |
2f4c0a16 RD |
7639 | arg3 = (long) SWIG_AsLong(obj2); |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7641 | { |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7644 | ||
7645 | wxPyEndAllowThreads(__tstate); | |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | Py_INCREF(Py_None); resultobj = Py_None; | |
7649 | { | |
7650 | if (temp1) | |
7651 | delete arg1; | |
7652 | } | |
7653 | return resultobj; | |
7654 | fail: | |
7655 | { | |
7656 | if (temp1) | |
7657 | delete arg1; | |
7658 | } | |
7659 | return NULL; | |
7660 | } | |
7661 | ||
7662 | ||
7663 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7664 | PyObject *resultobj; | |
7665 | wxString *arg1 = 0 ; | |
7666 | wxBitmap *arg2 = 0 ; | |
7667 | long arg3 ; | |
423f194a | 7668 | bool temp1 = False ; |
d14a1e28 RD |
7669 | PyObject * obj0 = 0 ; |
7670 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7671 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7672 | char *kwnames[] = { |
7673 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7674 | }; | |
7675 | ||
8edf1c75 | 7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7677 | { |
7678 | arg1 = wxString_in_helper(obj0); | |
7679 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7680 | temp1 = True; |
d14a1e28 | 7681 | } |
2f4c0a16 RD |
7682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7684 | SWIG_fail; | |
d14a1e28 | 7685 | if (arg2 == NULL) { |
2f4c0a16 RD |
7686 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7687 | SWIG_fail; | |
8edf1c75 | 7688 | } |
2f4c0a16 RD |
7689 | arg3 = (long) SWIG_AsLong(obj2); |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7691 | { |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | Py_INCREF(Py_None); resultobj = Py_None; | |
7699 | { | |
7700 | if (temp1) | |
7701 | delete arg1; | |
7702 | } | |
7703 | return resultobj; | |
7704 | fail: | |
7705 | { | |
7706 | if (temp1) | |
7707 | delete arg1; | |
7708 | } | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxString *arg1 = 0 ; | |
7716 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 7717 | bool temp1 = False ; |
d14a1e28 RD |
7718 | PyObject * obj0 = 0 ; |
7719 | PyObject * obj1 = 0 ; | |
7720 | char *kwnames[] = { | |
7721 | (char *) "filename",(char *) "data", NULL | |
7722 | }; | |
7723 | ||
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7725 | { | |
7726 | arg1 = wxString_in_helper(obj0); | |
7727 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7728 | temp1 = True; |
d14a1e28 RD |
7729 | } |
7730 | arg2 = obj1; | |
7731 | { | |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | Py_INCREF(Py_None); resultobj = Py_None; | |
7739 | { | |
7740 | if (temp1) | |
7741 | delete arg1; | |
7742 | } | |
7743 | return resultobj; | |
7744 | fail: | |
7745 | { | |
7746 | if (temp1) | |
7747 | delete arg1; | |
7748 | } | |
7749 | return NULL; | |
7750 | } | |
7751 | ||
7752 | ||
7753 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7754 | PyObject *resultobj; | |
7755 | wxMemoryFSHandler *result; | |
7756 | char *kwnames[] = { | |
7757 | NULL | |
7758 | }; | |
7759 | ||
7760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7761 | { | |
7762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7763 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7764 | ||
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
2f4c0a16 | 7768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7769 | return resultobj; |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
7775 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7776 | PyObject *resultobj; | |
7777 | wxString *arg1 = 0 ; | |
423f194a | 7778 | bool temp1 = False ; |
d14a1e28 RD |
7779 | PyObject * obj0 = 0 ; |
7780 | char *kwnames[] = { | |
7781 | (char *) "filename", NULL | |
7782 | }; | |
7783 | ||
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7785 | { | |
7786 | arg1 = wxString_in_helper(obj0); | |
7787 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7788 | temp1 = True; |
d14a1e28 RD |
7789 | } |
7790 | { | |
7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7792 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7793 | ||
7794 | wxPyEndAllowThreads(__tstate); | |
7795 | if (PyErr_Occurred()) SWIG_fail; | |
7796 | } | |
7797 | Py_INCREF(Py_None); resultobj = Py_None; | |
7798 | { | |
7799 | if (temp1) | |
7800 | delete arg1; | |
7801 | } | |
7802 | return resultobj; | |
7803 | fail: | |
7804 | { | |
7805 | if (temp1) | |
7806 | delete arg1; | |
7807 | } | |
7808 | return NULL; | |
7809 | } | |
7810 | ||
7811 | ||
7812 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7813 | PyObject *resultobj; | |
7814 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7815 | wxString *arg2 = 0 ; | |
7816 | bool result; | |
423f194a | 7817 | bool temp2 = False ; |
d14a1e28 RD |
7818 | PyObject * obj0 = 0 ; |
7819 | PyObject * obj1 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self",(char *) "location", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7827 | { |
7828 | arg2 = wxString_in_helper(obj1); | |
7829 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7830 | temp2 = True; |
d14a1e28 RD |
7831 | } |
7832 | { | |
7833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7834 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7835 | ||
7836 | wxPyEndAllowThreads(__tstate); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
4f89f6a3 RD |
7839 | { |
7840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7841 | } | |
d14a1e28 RD |
7842 | { |
7843 | if (temp2) | |
7844 | delete arg2; | |
7845 | } | |
7846 | return resultobj; | |
7847 | fail: | |
7848 | { | |
7849 | if (temp2) | |
7850 | delete arg2; | |
7851 | } | |
7852 | return NULL; | |
7853 | } | |
7854 | ||
7855 | ||
7856 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject *resultobj; | |
7858 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7859 | wxFileSystem *arg2 = 0 ; | |
7860 | wxString *arg3 = 0 ; | |
7861 | wxFSFile *result; | |
423f194a | 7862 | bool temp3 = False ; |
d14a1e28 RD |
7863 | PyObject * obj0 = 0 ; |
7864 | PyObject * obj1 = 0 ; | |
7865 | PyObject * obj2 = 0 ; | |
7866 | char *kwnames[] = { | |
7867 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7874 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7875 | SWIG_fail; | |
d14a1e28 | 7876 | if (arg2 == NULL) { |
2f4c0a16 RD |
7877 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7878 | SWIG_fail; | |
d14a1e28 RD |
7879 | } |
7880 | { | |
7881 | arg3 = wxString_in_helper(obj2); | |
7882 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7883 | temp3 = True; |
d14a1e28 RD |
7884 | } |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | { | |
7893 | resultobj = wxPyMake_wxObject(result); | |
7894 | } | |
7895 | { | |
7896 | if (temp3) | |
7897 | delete arg3; | |
7898 | } | |
7899 | return resultobj; | |
7900 | fail: | |
7901 | { | |
7902 | if (temp3) | |
7903 | delete arg3; | |
7904 | } | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
7909 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7910 | PyObject *resultobj; | |
7911 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7912 | wxString *arg2 = 0 ; | |
7913 | int arg3 = (int) 0 ; | |
7914 | wxString result; | |
423f194a | 7915 | bool temp2 = False ; |
d14a1e28 RD |
7916 | PyObject * obj0 = 0 ; |
7917 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7918 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7919 | char *kwnames[] = { |
7920 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7921 | }; | |
7922 | ||
8edf1c75 | 7923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7926 | { |
7927 | arg2 = wxString_in_helper(obj1); | |
7928 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7929 | temp2 = True; |
d14a1e28 | 7930 | } |
8edf1c75 | 7931 | if (obj2) { |
2f4c0a16 RD |
7932 | arg3 = (int) SWIG_AsInt(obj2); |
7933 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7934 | } |
d14a1e28 RD |
7935 | { |
7936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7937 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7938 | ||
7939 | wxPyEndAllowThreads(__tstate); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | } | |
7942 | { | |
7943 | #if wxUSE_UNICODE | |
7944 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7945 | #else | |
7946 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7947 | #endif | |
7948 | } | |
7949 | { | |
7950 | if (temp2) | |
7951 | delete arg2; | |
7952 | } | |
7953 | return resultobj; | |
7954 | fail: | |
7955 | { | |
7956 | if (temp2) | |
7957 | delete arg2; | |
7958 | } | |
7959 | return NULL; | |
7960 | } | |
7961 | ||
7962 | ||
7963 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7964 | PyObject *resultobj; | |
7965 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7966 | wxString result; | |
7967 | PyObject * obj0 = 0 ; | |
7968 | char *kwnames[] = { | |
7969 | (char *) "self", NULL | |
7970 | }; | |
7971 | ||
7972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7975 | { |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | result = (arg1)->FindNext(); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) SWIG_fail; | |
7981 | } | |
7982 | { | |
7983 | #if wxUSE_UNICODE | |
7984 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7985 | #else | |
7986 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7987 | #endif | |
7988 | } | |
7989 | return resultobj; | |
7990 | fail: | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
7995 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7996 | PyObject *obj; | |
7997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7998 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
7999 | Py_INCREF(obj); | |
8000 | return Py_BuildValue((char *)""); | |
8001 | } | |
8002 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8003 | PyObject *resultobj; | |
8004 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8005 | wxString result; | |
8006 | PyObject * obj0 = 0 ; | |
8007 | char *kwnames[] = { | |
8008 | (char *) "self", NULL | |
8009 | }; | |
8010 | ||
8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8014 | { |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | result = (arg1)->GetName(); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
8021 | { | |
8022 | #if wxUSE_UNICODE | |
8023 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8024 | #else | |
8025 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8026 | #endif | |
8027 | } | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | return NULL; | |
8031 | } | |
8032 | ||
8033 | ||
8034 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8035 | PyObject *resultobj; | |
8036 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8037 | wxString result; | |
8038 | PyObject * obj0 = 0 ; | |
8039 | char *kwnames[] = { | |
8040 | (char *) "self", NULL | |
8041 | }; | |
8042 | ||
8043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8046 | { |
8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8048 | result = (arg1)->GetExtension(); | |
8049 | ||
8050 | wxPyEndAllowThreads(__tstate); | |
8051 | if (PyErr_Occurred()) SWIG_fail; | |
8052 | } | |
8053 | { | |
8054 | #if wxUSE_UNICODE | |
8055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8056 | #else | |
8057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8058 | #endif | |
8059 | } | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8069 | long result; | |
8070 | PyObject * obj0 = 0 ; | |
8071 | char *kwnames[] = { | |
8072 | (char *) "self", NULL | |
8073 | }; | |
8074 | ||
8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8078 | { |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | result = (long)(arg1)->GetType(); | |
8081 | ||
8082 | wxPyEndAllowThreads(__tstate); | |
8083 | if (PyErr_Occurred()) SWIG_fail; | |
8084 | } | |
2f4c0a16 | 8085 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8086 | return resultobj; |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
8092 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8093 | PyObject *resultobj; | |
8094 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8095 | wxString result; | |
8096 | PyObject * obj0 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8104 | { |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | result = (arg1)->GetMimeType(); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) SWIG_fail; | |
8110 | } | |
8111 | { | |
8112 | #if wxUSE_UNICODE | |
8113 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8114 | #else | |
8115 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8116 | #endif | |
8117 | } | |
8118 | return resultobj; | |
8119 | fail: | |
8120 | return NULL; | |
8121 | } | |
8122 | ||
8123 | ||
8124 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8125 | PyObject *resultobj; | |
8126 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8127 | wxString *arg2 = 0 ; | |
8128 | bool result; | |
423f194a | 8129 | bool temp2 = False ; |
d14a1e28 RD |
8130 | PyObject * obj0 = 0 ; |
8131 | PyObject * obj1 = 0 ; | |
8132 | char *kwnames[] = { | |
8133 | (char *) "self",(char *) "name", NULL | |
8134 | }; | |
8135 | ||
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8139 | { |
8140 | arg2 = wxString_in_helper(obj1); | |
8141 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8142 | temp2 = True; |
d14a1e28 RD |
8143 | } |
8144 | { | |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
8150 | } | |
4f89f6a3 RD |
8151 | { |
8152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8153 | } | |
d14a1e28 RD |
8154 | { |
8155 | if (temp2) | |
8156 | delete arg2; | |
8157 | } | |
8158 | return resultobj; | |
8159 | fail: | |
8160 | { | |
8161 | if (temp2) | |
8162 | delete arg2; | |
8163 | } | |
8164 | return NULL; | |
8165 | } | |
8166 | ||
8167 | ||
8168 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8169 | PyObject *resultobj; | |
8170 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8171 | wxString *arg2 = 0 ; | |
423f194a | 8172 | bool temp2 = False ; |
d14a1e28 RD |
8173 | PyObject * obj0 = 0 ; |
8174 | PyObject * obj1 = 0 ; | |
8175 | char *kwnames[] = { | |
8176 | (char *) "self",(char *) "name", NULL | |
8177 | }; | |
8178 | ||
8179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8182 | { |
8183 | arg2 = wxString_in_helper(obj1); | |
8184 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8185 | temp2 = True; |
d14a1e28 RD |
8186 | } |
8187 | { | |
8188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8189 | (arg1)->SetName((wxString const &)*arg2); | |
8190 | ||
8191 | wxPyEndAllowThreads(__tstate); | |
8192 | if (PyErr_Occurred()) SWIG_fail; | |
8193 | } | |
8194 | Py_INCREF(Py_None); resultobj = Py_None; | |
8195 | { | |
8196 | if (temp2) | |
8197 | delete arg2; | |
8198 | } | |
8199 | return resultobj; | |
8200 | fail: | |
8201 | { | |
8202 | if (temp2) | |
8203 | delete arg2; | |
8204 | } | |
8205 | return NULL; | |
8206 | } | |
8207 | ||
8208 | ||
8209 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8210 | PyObject *resultobj; | |
8211 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8212 | wxString *arg2 = 0 ; | |
423f194a | 8213 | bool temp2 = False ; |
d14a1e28 RD |
8214 | PyObject * obj0 = 0 ; |
8215 | PyObject * obj1 = 0 ; | |
8216 | char *kwnames[] = { | |
8217 | (char *) "self",(char *) "extension", NULL | |
8218 | }; | |
8219 | ||
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8223 | { |
8224 | arg2 = wxString_in_helper(obj1); | |
8225 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8226 | temp2 = True; |
d14a1e28 RD |
8227 | } |
8228 | { | |
8229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8230 | (arg1)->SetExtension((wxString const &)*arg2); | |
8231 | ||
8232 | wxPyEndAllowThreads(__tstate); | |
8233 | if (PyErr_Occurred()) SWIG_fail; | |
8234 | } | |
8235 | Py_INCREF(Py_None); resultobj = Py_None; | |
8236 | { | |
8237 | if (temp2) | |
8238 | delete arg2; | |
8239 | } | |
8240 | return resultobj; | |
8241 | fail: | |
8242 | { | |
8243 | if (temp2) | |
8244 | delete arg2; | |
8245 | } | |
8246 | return NULL; | |
8247 | } | |
8248 | ||
8249 | ||
8250 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8251 | PyObject *resultobj; | |
8252 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8253 | long arg2 ; | |
8254 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8256 | char *kwnames[] = { |
8257 | (char *) "self",(char *) "type", NULL | |
8258 | }; | |
8259 | ||
8edf1c75 | 8260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8263 | arg2 = (long) SWIG_AsLong(obj1); | |
8264 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8265 | { |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8267 | (arg1)->SetType(arg2); | |
8268 | ||
8269 | wxPyEndAllowThreads(__tstate); | |
8270 | if (PyErr_Occurred()) SWIG_fail; | |
8271 | } | |
8272 | Py_INCREF(Py_None); resultobj = Py_None; | |
8273 | return resultobj; | |
8274 | fail: | |
8275 | return NULL; | |
8276 | } | |
8277 | ||
8278 | ||
8279 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject *resultobj; | |
8281 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8282 | wxString *arg2 = 0 ; | |
423f194a | 8283 | bool temp2 = False ; |
d14a1e28 RD |
8284 | PyObject * obj0 = 0 ; |
8285 | PyObject * obj1 = 0 ; | |
8286 | char *kwnames[] = { | |
8287 | (char *) "self",(char *) "mimetype", NULL | |
8288 | }; | |
8289 | ||
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8293 | { |
8294 | arg2 = wxString_in_helper(obj1); | |
8295 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8296 | temp2 = True; |
d14a1e28 RD |
8297 | } |
8298 | { | |
8299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8300 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8301 | ||
8302 | wxPyEndAllowThreads(__tstate); | |
8303 | if (PyErr_Occurred()) SWIG_fail; | |
8304 | } | |
8305 | Py_INCREF(Py_None); resultobj = Py_None; | |
8306 | { | |
8307 | if (temp2) | |
8308 | delete arg2; | |
8309 | } | |
8310 | return resultobj; | |
8311 | fail: | |
8312 | { | |
8313 | if (temp2) | |
8314 | delete arg2; | |
8315 | } | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
8320 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8321 | PyObject *obj; | |
8322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8323 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8324 | Py_INCREF(obj); | |
8325 | return Py_BuildValue((char *)""); | |
8326 | } | |
8327 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8328 | PyObject *resultobj; | |
8329 | wxImageHistogram *result; | |
8330 | char *kwnames[] = { | |
8331 | NULL | |
8332 | }; | |
8333 | ||
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8335 | { | |
8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8337 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8338 | ||
8339 | wxPyEndAllowThreads(__tstate); | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
2f4c0a16 | 8342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8343 | return resultobj; |
8344 | fail: | |
8345 | return NULL; | |
8346 | } | |
8347 | ||
8348 | ||
8349 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8350 | PyObject *resultobj; | |
8351 | unsigned char arg1 ; | |
8352 | unsigned char arg2 ; | |
8353 | unsigned char arg3 ; | |
8354 | unsigned long result; | |
8355 | PyObject * obj0 = 0 ; | |
8356 | PyObject * obj1 = 0 ; | |
8357 | PyObject * obj2 = 0 ; | |
8358 | char *kwnames[] = { | |
8359 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8360 | }; | |
8361 | ||
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
8363 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8369 | { |
8370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8371 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8372 | ||
8373 | wxPyEndAllowThreads(__tstate); | |
8374 | if (PyErr_Occurred()) SWIG_fail; | |
8375 | } | |
2f4c0a16 | 8376 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8377 | return resultobj; |
8378 | fail: | |
8379 | return NULL; | |
8380 | } | |
8381 | ||
8382 | ||
8383 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8384 | PyObject *resultobj; | |
8385 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8386 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8387 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8388 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8389 | unsigned char arg5 = (unsigned char) 1 ; | |
8390 | unsigned char arg6 = (unsigned char) 0 ; | |
8391 | unsigned char arg7 = (unsigned char) 0 ; | |
8392 | bool result; | |
8393 | unsigned char temp2 ; | |
8394 | unsigned char temp3 ; | |
8395 | unsigned char temp4 ; | |
8396 | PyObject * obj0 = 0 ; | |
8397 | PyObject * obj1 = 0 ; | |
8398 | PyObject * obj2 = 0 ; | |
8399 | PyObject * obj3 = 0 ; | |
8400 | char *kwnames[] = { | |
8401 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8402 | }; | |
8403 | ||
8404 | arg2 = &temp2; | |
8405 | arg3 = &temp3; | |
8406 | arg4 = &temp4; | |
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
8408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8410 | if (obj1) { |
2f4c0a16 RD |
8411 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8413 | } |
8414 | if (obj2) { | |
2f4c0a16 RD |
8415 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8416 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8417 | } |
8418 | if (obj3) { | |
2f4c0a16 RD |
8419 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8420 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8421 | } |
8422 | { | |
8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8424 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8425 | ||
8426 | wxPyEndAllowThreads(__tstate); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
4f89f6a3 RD |
8429 | { |
8430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8431 | } | |
d14a1e28 RD |
8432 | { |
8433 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8434 | resultobj = t_output_helper(resultobj,o); | |
8435 | } | |
8436 | { | |
8437 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8438 | resultobj = t_output_helper(resultobj,o); | |
8439 | } | |
8440 | { | |
8441 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8442 | resultobj = t_output_helper(resultobj,o); | |
8443 | } | |
8444 | return resultobj; | |
8445 | fail: | |
8446 | return NULL; | |
8447 | } | |
8448 | ||
8449 | ||
8450 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8451 | PyObject *obj; | |
8452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8453 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8454 | Py_INCREF(obj); | |
8455 | return Py_BuildValue((char *)""); | |
8456 | } | |
8457 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8458 | PyObject *resultobj; | |
8459 | wxString *arg1 = 0 ; | |
8460 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8461 | int arg3 = (int) -1 ; | |
8462 | wxImage *result; | |
423f194a | 8463 | bool temp1 = False ; |
d14a1e28 | 8464 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8465 | PyObject * obj1 = 0 ; |
8466 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8467 | char *kwnames[] = { |
8468 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8469 | }; | |
8470 | ||
8edf1c75 | 8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8472 | { |
8473 | arg1 = wxString_in_helper(obj0); | |
8474 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8475 | temp1 = True; |
d14a1e28 | 8476 | } |
8edf1c75 | 8477 | if (obj1) { |
2f4c0a16 RD |
8478 | arg2 = (long) SWIG_AsLong(obj1); |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8480 | } |
8481 | if (obj2) { | |
2f4c0a16 RD |
8482 | arg3 = (int) SWIG_AsInt(obj2); |
8483 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8484 | } |
d14a1e28 RD |
8485 | { |
8486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8487 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8488 | ||
8489 | wxPyEndAllowThreads(__tstate); | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
2f4c0a16 | 8492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8493 | { |
8494 | if (temp1) | |
8495 | delete arg1; | |
8496 | } | |
8497 | return resultobj; | |
8498 | fail: | |
8499 | { | |
8500 | if (temp1) | |
8501 | delete arg1; | |
8502 | } | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
8507 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject *resultobj; | |
8509 | wxImage *arg1 = (wxImage *) 0 ; | |
8510 | PyObject * obj0 = 0 ; | |
8511 | char *kwnames[] = { | |
8512 | (char *) "self", NULL | |
8513 | }; | |
8514 | ||
8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8518 | { |
8519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8520 | delete arg1; | |
8521 | ||
8522 | wxPyEndAllowThreads(__tstate); | |
8523 | if (PyErr_Occurred()) SWIG_fail; | |
8524 | } | |
8525 | Py_INCREF(Py_None); resultobj = Py_None; | |
8526 | return resultobj; | |
8527 | fail: | |
8528 | return NULL; | |
8529 | } | |
8530 | ||
8531 | ||
8532 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8533 | PyObject *resultobj; | |
8534 | wxString *arg1 = 0 ; | |
8535 | wxString *arg2 = 0 ; | |
8536 | int arg3 = (int) -1 ; | |
8537 | wxImage *result; | |
423f194a RD |
8538 | bool temp1 = False ; |
8539 | bool temp2 = False ; | |
d14a1e28 RD |
8540 | PyObject * obj0 = 0 ; |
8541 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8542 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8543 | char *kwnames[] = { |
8544 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8545 | }; | |
8546 | ||
8edf1c75 | 8547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8548 | { |
8549 | arg1 = wxString_in_helper(obj0); | |
8550 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8551 | temp1 = True; |
d14a1e28 RD |
8552 | } |
8553 | { | |
8554 | arg2 = wxString_in_helper(obj1); | |
8555 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8556 | temp2 = True; |
d14a1e28 | 8557 | } |
8edf1c75 | 8558 | if (obj2) { |
2f4c0a16 RD |
8559 | arg3 = (int) SWIG_AsInt(obj2); |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8561 | } |
d14a1e28 RD |
8562 | { |
8563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8564 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8565 | ||
8566 | wxPyEndAllowThreads(__tstate); | |
8567 | if (PyErr_Occurred()) SWIG_fail; | |
8568 | } | |
2f4c0a16 | 8569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8570 | { |
8571 | if (temp1) | |
8572 | delete arg1; | |
8573 | } | |
8574 | { | |
8575 | if (temp2) | |
8576 | delete arg2; | |
8577 | } | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | { | |
8581 | if (temp1) | |
8582 | delete arg1; | |
8583 | } | |
8584 | { | |
8585 | if (temp2) | |
8586 | delete arg2; | |
8587 | } | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
8592 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8593 | PyObject *resultobj; | |
8594 | wxInputStream *arg1 = 0 ; | |
8595 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8596 | int arg3 = (int) -1 ; | |
8597 | wxImage *result; | |
8598 | wxPyInputStream *temp1 ; | |
8599 | bool created1 ; | |
8600 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8601 | PyObject * obj1 = 0 ; |
8602 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8603 | char *kwnames[] = { |
8604 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8605 | }; | |
8606 | ||
8edf1c75 | 8607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8608 | { |
8609 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8610 | arg1 = temp1->m_wxis; | |
423f194a | 8611 | created1 = False; |
d14a1e28 RD |
8612 | } else { |
8613 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8614 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8615 | if (arg1 == NULL) { |
8616 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8617 | SWIG_fail; | |
8618 | } | |
423f194a | 8619 | created1 = True; |
d14a1e28 RD |
8620 | } |
8621 | } | |
8edf1c75 | 8622 | if (obj1) { |
2f4c0a16 RD |
8623 | arg2 = (long) SWIG_AsLong(obj1); |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8625 | } |
8626 | if (obj2) { | |
2f4c0a16 RD |
8627 | arg3 = (int) SWIG_AsInt(obj2); |
8628 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8629 | } |
d14a1e28 RD |
8630 | { |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
2f4c0a16 | 8637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8638 | { |
8639 | if (created1) | |
8640 | delete arg1; | |
8641 | } | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | { | |
8645 | if (created1) | |
8646 | delete arg1; | |
8647 | } | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxInputStream *arg1 = 0 ; | |
8655 | wxString *arg2 = 0 ; | |
8656 | int arg3 = (int) -1 ; | |
8657 | wxImage *result; | |
8658 | wxPyInputStream *temp1 ; | |
8659 | bool created1 ; | |
423f194a | 8660 | bool temp2 = False ; |
d14a1e28 RD |
8661 | PyObject * obj0 = 0 ; |
8662 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8663 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8664 | char *kwnames[] = { |
8665 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8666 | }; | |
8667 | ||
8edf1c75 | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8669 | { |
8670 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8671 | arg1 = temp1->m_wxis; | |
423f194a | 8672 | created1 = False; |
d14a1e28 RD |
8673 | } else { |
8674 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 8675 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8676 | if (arg1 == NULL) { |
8677 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8678 | SWIG_fail; | |
8679 | } | |
423f194a | 8680 | created1 = True; |
d14a1e28 RD |
8681 | } |
8682 | } | |
8683 | { | |
8684 | arg2 = wxString_in_helper(obj1); | |
8685 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8686 | temp2 = True; |
d14a1e28 | 8687 | } |
8edf1c75 | 8688 | if (obj2) { |
2f4c0a16 RD |
8689 | arg3 = (int) SWIG_AsInt(obj2); |
8690 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8691 | } |
d14a1e28 RD |
8692 | { |
8693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8694 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8695 | ||
8696 | wxPyEndAllowThreads(__tstate); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
2f4c0a16 | 8699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8700 | { |
8701 | if (created1) | |
8702 | delete arg1; | |
8703 | } | |
8704 | { | |
8705 | if (temp2) | |
8706 | delete arg2; | |
8707 | } | |
8708 | return resultobj; | |
8709 | fail: | |
8710 | { | |
8711 | if (created1) | |
8712 | delete arg1; | |
8713 | } | |
8714 | { | |
8715 | if (temp2) | |
8716 | delete arg2; | |
8717 | } | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | int arg1 = (int) 0 ; | |
8725 | int arg2 = (int) 0 ; | |
423f194a | 8726 | bool arg3 = (bool) True ; |
d14a1e28 | 8727 | wxImage *result; |
8edf1c75 RD |
8728 | PyObject * obj0 = 0 ; |
8729 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8730 | PyObject * obj2 = 0 ; |
8731 | char *kwnames[] = { | |
8732 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8733 | }; | |
8734 | ||
8edf1c75 RD |
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8736 | if (obj0) { | |
2f4c0a16 RD |
8737 | arg1 = (int) SWIG_AsInt(obj0); |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8739 | } |
8740 | if (obj1) { | |
2f4c0a16 RD |
8741 | arg2 = (int) SWIG_AsInt(obj1); |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8743 | } |
d14a1e28 | 8744 | if (obj2) { |
2f4c0a16 RD |
8745 | arg3 = (bool) SWIG_AsBool(obj2); |
8746 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8747 | } |
8748 | { | |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8750 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8751 | ||
8752 | wxPyEndAllowThreads(__tstate); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
2f4c0a16 | 8755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8756 | return resultobj; |
8757 | fail: | |
8758 | return NULL; | |
8759 | } | |
8760 | ||
8761 | ||
8762 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8763 | PyObject *resultobj; | |
8764 | wxBitmap *arg1 = 0 ; | |
8765 | wxImage *result; | |
8766 | PyObject * obj0 = 0 ; | |
8767 | char *kwnames[] = { | |
8768 | (char *) "bitmap", NULL | |
8769 | }; | |
8770 | ||
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8774 | SWIG_fail; | |
d14a1e28 | 8775 | if (arg1 == NULL) { |
2f4c0a16 RD |
8776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8777 | SWIG_fail; | |
d14a1e28 RD |
8778 | } |
8779 | { | |
8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8781 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8782 | ||
8783 | wxPyEndAllowThreads(__tstate); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
2f4c0a16 | 8786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8787 | return resultobj; |
8788 | fail: | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
8793 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8794 | PyObject *resultobj; | |
8795 | int arg1 ; | |
8796 | int arg2 ; | |
8797 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8798 | wxImage *result; | |
8edf1c75 RD |
8799 | PyObject * obj0 = 0 ; |
8800 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8801 | PyObject * obj2 = 0 ; |
8802 | char *kwnames[] = { | |
8803 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8804 | }; | |
8805 | ||
8edf1c75 | 8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8807 | arg1 = (int) SWIG_AsInt(obj0); |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | arg2 = (int) SWIG_AsInt(obj1); | |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
8811 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8813 | { |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
2f4c0a16 | 8820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8821 | return resultobj; |
8822 | fail: | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
8827 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8828 | PyObject *resultobj; | |
8829 | wxImage *arg1 = (wxImage *) 0 ; | |
8830 | int arg2 ; | |
8831 | int arg3 ; | |
8832 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8833 | PyObject * obj1 = 0 ; |
8834 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8835 | char *kwnames[] = { |
8836 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8837 | }; | |
8838 | ||
8edf1c75 | 8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8842 | arg2 = (int) SWIG_AsInt(obj1); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | arg3 = (int) SWIG_AsInt(obj2); | |
8845 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8846 | { |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | (arg1)->Create(arg2,arg3); | |
8849 | ||
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | Py_INCREF(Py_None); resultobj = Py_None; | |
8854 | return resultobj; | |
8855 | fail: | |
8856 | return NULL; | |
8857 | } | |
8858 | ||
8859 | ||
8860 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8861 | PyObject *resultobj; | |
8862 | wxImage *arg1 = (wxImage *) 0 ; | |
8863 | PyObject * obj0 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "self", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8871 | { |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | (arg1)->Destroy(); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | Py_INCREF(Py_None); resultobj = Py_None; | |
8879 | return resultobj; | |
8880 | fail: | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
8885 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject *resultobj; | |
8887 | wxImage *arg1 = (wxImage *) 0 ; | |
8888 | int arg2 ; | |
8889 | int arg3 ; | |
8890 | SwigValueWrapper< wxImage > result; | |
8891 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8892 | PyObject * obj1 = 0 ; |
8893 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8894 | char *kwnames[] = { |
8895 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8896 | }; | |
8897 | ||
8edf1c75 | 8898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8901 | arg2 = (int) SWIG_AsInt(obj1); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | arg3 = (int) SWIG_AsInt(obj2); | |
8904 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8905 | { |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | result = (arg1)->Scale(arg2,arg3); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | { | |
8913 | wxImage * resultptr; | |
8914 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8916 | } |
8917 | return resultobj; | |
8918 | fail: | |
8919 | return NULL; | |
8920 | } | |
8921 | ||
8922 | ||
8923 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8924 | PyObject *resultobj; | |
8925 | wxImage *arg1 = (wxImage *) 0 ; | |
8926 | int arg2 ; | |
8927 | int arg3 ; | |
8928 | SwigValueWrapper< wxImage > result; | |
8929 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8930 | PyObject * obj1 = 0 ; |
8931 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8932 | char *kwnames[] = { |
8933 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8934 | }; | |
8935 | ||
8edf1c75 | 8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8939 | arg2 = (int) SWIG_AsInt(obj1); | |
8940 | if (PyErr_Occurred()) SWIG_fail; | |
8941 | arg3 = (int) SWIG_AsInt(obj2); | |
8942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8943 | { |
8944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8945 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
8946 | ||
8947 | wxPyEndAllowThreads(__tstate); | |
8948 | if (PyErr_Occurred()) SWIG_fail; | |
8949 | } | |
8950 | { | |
8951 | wxImage * resultptr; | |
8952 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 8953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8954 | } |
8955 | return resultobj; | |
8956 | fail: | |
8957 | return NULL; | |
8958 | } | |
8959 | ||
8960 | ||
8961 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject *resultobj; | |
8963 | wxImage *arg1 = (wxImage *) 0 ; | |
8964 | int arg2 ; | |
8965 | int arg3 ; | |
8966 | wxImage *result; | |
8967 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8968 | PyObject * obj1 = 0 ; |
8969 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8970 | char *kwnames[] = { |
8971 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8972 | }; | |
8973 | ||
8edf1c75 | 8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8977 | arg2 = (int) SWIG_AsInt(obj1); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | arg3 = (int) SWIG_AsInt(obj2); | |
8980 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8981 | { |
8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8983 | { | |
8984 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
8985 | result = (wxImage *) &_result_ref; | |
8986 | } | |
8987 | ||
8988 | wxPyEndAllowThreads(__tstate); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | } | |
2f4c0a16 | 8991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
8992 | return resultobj; |
8993 | fail: | |
8994 | return NULL; | |
8995 | } | |
8996 | ||
8997 | ||
8998 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8999 | PyObject *resultobj; | |
9000 | wxImage *arg1 = (wxImage *) 0 ; | |
9001 | int arg2 ; | |
9002 | int arg3 ; | |
9003 | unsigned char arg4 ; | |
9004 | unsigned char arg5 ; | |
9005 | unsigned char arg6 ; | |
9006 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9007 | PyObject * obj1 = 0 ; |
9008 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9009 | PyObject * obj3 = 0 ; |
9010 | PyObject * obj4 = 0 ; | |
9011 | PyObject * obj5 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9014 | }; | |
9015 | ||
8edf1c75 | 9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | arg2 = (int) SWIG_AsInt(obj1); | |
9020 | if (PyErr_Occurred()) SWIG_fail; | |
9021 | arg3 = (int) SWIG_AsInt(obj2); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9028 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9029 | { |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | Py_INCREF(Py_None); resultobj = Py_None; | |
9037 | return resultobj; | |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
9043 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject *resultobj; | |
9045 | wxImage *arg1 = (wxImage *) 0 ; | |
9046 | int arg2 ; | |
9047 | int arg3 ; | |
9048 | unsigned char result; | |
9049 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9050 | PyObject * obj1 = 0 ; |
9051 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9052 | char *kwnames[] = { |
9053 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9054 | }; | |
9055 | ||
8edf1c75 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9059 | arg2 = (int) SWIG_AsInt(obj1); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | arg3 = (int) SWIG_AsInt(obj2); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9063 | { |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9065 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9066 | ||
9067 | wxPyEndAllowThreads(__tstate); | |
9068 | if (PyErr_Occurred()) SWIG_fail; | |
9069 | } | |
2f4c0a16 | 9070 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9071 | return resultobj; |
9072 | fail: | |
9073 | return NULL; | |
9074 | } | |
9075 | ||
9076 | ||
9077 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject *resultobj; | |
9079 | wxImage *arg1 = (wxImage *) 0 ; | |
9080 | int arg2 ; | |
9081 | int arg3 ; | |
9082 | unsigned char result; | |
9083 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9084 | PyObject * obj1 = 0 ; |
9085 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9086 | char *kwnames[] = { |
9087 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9088 | }; | |
9089 | ||
8edf1c75 | 9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9093 | arg2 = (int) SWIG_AsInt(obj1); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | arg3 = (int) SWIG_AsInt(obj2); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9097 | { |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9100 | ||
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
2f4c0a16 | 9104 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9105 | return resultobj; |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
9111 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj; | |
9113 | wxImage *arg1 = (wxImage *) 0 ; | |
9114 | int arg2 ; | |
9115 | int arg3 ; | |
9116 | unsigned char result; | |
9117 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9118 | PyObject * obj1 = 0 ; |
9119 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9120 | char *kwnames[] = { |
9121 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9122 | }; | |
9123 | ||
8edf1c75 | 9124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9127 | arg2 = (int) SWIG_AsInt(obj1); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | arg3 = (int) SWIG_AsInt(obj2); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9131 | { |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9133 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9134 | ||
9135 | wxPyEndAllowThreads(__tstate); | |
9136 | if (PyErr_Occurred()) SWIG_fail; | |
9137 | } | |
2f4c0a16 | 9138 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9139 | return resultobj; |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
9145 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9146 | PyObject *resultobj; | |
9147 | wxImage *arg1 = (wxImage *) 0 ; | |
9148 | int arg2 ; | |
9149 | int arg3 ; | |
9150 | unsigned char arg4 ; | |
9151 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9152 | PyObject * obj1 = 0 ; |
9153 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9154 | PyObject * obj3 = 0 ; |
9155 | char *kwnames[] = { | |
9156 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9157 | }; | |
9158 | ||
8edf1c75 | 9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9162 | arg2 = (int) SWIG_AsInt(obj1); | |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
9164 | arg3 = (int) SWIG_AsInt(obj2); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9168 | { |
9169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9170 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9171 | ||
9172 | wxPyEndAllowThreads(__tstate); | |
9173 | if (PyErr_Occurred()) SWIG_fail; | |
9174 | } | |
9175 | Py_INCREF(Py_None); resultobj = Py_None; | |
9176 | return resultobj; | |
9177 | fail: | |
9178 | return NULL; | |
9179 | } | |
9180 | ||
9181 | ||
9182 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9183 | PyObject *resultobj; | |
9184 | wxImage *arg1 = (wxImage *) 0 ; | |
9185 | int arg2 ; | |
9186 | int arg3 ; | |
9187 | unsigned char result; | |
9188 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9189 | PyObject * obj1 = 0 ; |
9190 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9191 | char *kwnames[] = { |
9192 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9193 | }; | |
9194 | ||
8edf1c75 | 9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9198 | arg2 = (int) SWIG_AsInt(obj1); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | arg3 = (int) SWIG_AsInt(obj2); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9202 | { |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
2f4c0a16 | 9209 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9210 | return resultobj; |
9211 | fail: | |
9212 | return NULL; | |
9213 | } | |
9214 | ||
9215 | ||
9216 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9217 | PyObject *resultobj; | |
9218 | wxImage *arg1 = (wxImage *) 0 ; | |
9219 | bool result; | |
9220 | PyObject * obj0 = 0 ; | |
9221 | char *kwnames[] = { | |
9222 | (char *) "self", NULL | |
9223 | }; | |
9224 | ||
9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9228 | { |
9229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9230 | result = (bool)(arg1)->HasAlpha(); | |
9231 | ||
9232 | wxPyEndAllowThreads(__tstate); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | } | |
4f89f6a3 RD |
9235 | { |
9236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9237 | } | |
d14a1e28 RD |
9238 | return resultobj; |
9239 | fail: | |
9240 | return NULL; | |
9241 | } | |
9242 | ||
9243 | ||
9244 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9245 | PyObject *resultobj; | |
9246 | wxImage *arg1 = (wxImage *) 0 ; | |
9247 | byte *arg2 = (byte *) 0 ; | |
9248 | byte *arg3 = (byte *) 0 ; | |
9249 | byte *arg4 = (byte *) 0 ; | |
9250 | byte arg5 = (byte) 0 ; | |
9251 | byte arg6 = (byte) 0 ; | |
9252 | byte arg7 = (byte) 0 ; | |
9253 | bool result; | |
9254 | byte temp2 ; | |
9255 | byte temp3 ; | |
9256 | byte temp4 ; | |
9257 | PyObject * obj0 = 0 ; | |
9258 | PyObject * obj1 = 0 ; | |
9259 | PyObject * obj2 = 0 ; | |
9260 | PyObject * obj3 = 0 ; | |
9261 | char *kwnames[] = { | |
9262 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9263 | }; | |
9264 | ||
9265 | arg2 = &temp2; | |
9266 | arg3 = &temp3; | |
9267 | arg4 = &temp4; | |
9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9271 | if (obj1) { |
2f4c0a16 RD |
9272 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9274 | } |
9275 | if (obj2) { | |
2f4c0a16 RD |
9276 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9278 | } |
9279 | if (obj3) { | |
2f4c0a16 RD |
9280 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9282 | } |
9283 | { | |
9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9285 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9286 | ||
9287 | wxPyEndAllowThreads(__tstate); | |
9288 | if (PyErr_Occurred()) SWIG_fail; | |
9289 | } | |
4f89f6a3 RD |
9290 | { |
9291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9292 | } | |
d14a1e28 RD |
9293 | { |
9294 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9295 | resultobj = t_output_helper(resultobj,o); | |
9296 | } | |
9297 | { | |
9298 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9299 | resultobj = t_output_helper(resultobj,o); | |
9300 | } | |
9301 | { | |
9302 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9303 | resultobj = t_output_helper(resultobj,o); | |
9304 | } | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject *resultobj; | |
9313 | wxImage *arg1 = (wxImage *) 0 ; | |
9314 | wxImage *arg2 = 0 ; | |
9315 | byte arg3 ; | |
9316 | byte arg4 ; | |
9317 | byte arg5 ; | |
9318 | bool result; | |
9319 | PyObject * obj0 = 0 ; | |
9320 | PyObject * obj1 = 0 ; | |
9321 | PyObject * obj2 = 0 ; | |
9322 | PyObject * obj3 = 0 ; | |
9323 | PyObject * obj4 = 0 ; | |
9324 | char *kwnames[] = { | |
9325 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9326 | }; | |
9327 | ||
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
9329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9333 | SWIG_fail; | |
d14a1e28 | 9334 | if (arg2 == NULL) { |
2f4c0a16 RD |
9335 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9336 | SWIG_fail; | |
83448d71 | 9337 | } |
2f4c0a16 RD |
9338 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9344 | { |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9347 | ||
9348 | wxPyEndAllowThreads(__tstate); | |
9349 | if (PyErr_Occurred()) SWIG_fail; | |
9350 | } | |
4f89f6a3 RD |
9351 | { |
9352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9353 | } | |
d14a1e28 RD |
9354 | return resultobj; |
9355 | fail: | |
9356 | return NULL; | |
9357 | } | |
9358 | ||
9359 | ||
9360 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9361 | PyObject *resultobj; | |
9362 | wxString *arg1 = 0 ; | |
9363 | bool result; | |
423f194a | 9364 | bool temp1 = False ; |
d14a1e28 RD |
9365 | PyObject * obj0 = 0 ; |
9366 | char *kwnames[] = { | |
9367 | (char *) "name", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9371 | { | |
9372 | arg1 = wxString_in_helper(obj0); | |
9373 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9374 | temp1 = True; |
d14a1e28 RD |
9375 | } |
9376 | { | |
9377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9378 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9379 | ||
9380 | wxPyEndAllowThreads(__tstate); | |
9381 | if (PyErr_Occurred()) SWIG_fail; | |
9382 | } | |
4f89f6a3 RD |
9383 | { |
9384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9385 | } | |
d14a1e28 RD |
9386 | { |
9387 | if (temp1) | |
9388 | delete arg1; | |
9389 | } | |
9390 | return resultobj; | |
9391 | fail: | |
9392 | { | |
9393 | if (temp1) | |
9394 | delete arg1; | |
9395 | } | |
9396 | return NULL; | |
9397 | } | |
9398 | ||
9399 | ||
9400 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9401 | PyObject *resultobj; | |
9402 | wxString *arg1 = 0 ; | |
9403 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9404 | int result; | |
423f194a | 9405 | bool temp1 = False ; |
d14a1e28 | 9406 | PyObject * obj0 = 0 ; |
8edf1c75 | 9407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9408 | char *kwnames[] = { |
9409 | (char *) "name",(char *) "type", NULL | |
9410 | }; | |
9411 | ||
8edf1c75 | 9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9413 | { |
9414 | arg1 = wxString_in_helper(obj0); | |
9415 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9416 | temp1 = True; |
d14a1e28 | 9417 | } |
8edf1c75 | 9418 | if (obj1) { |
2f4c0a16 RD |
9419 | arg2 = (long) SWIG_AsLong(obj1); |
9420 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9421 | } |
d14a1e28 RD |
9422 | { |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
2f4c0a16 | 9429 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9430 | { |
9431 | if (temp1) | |
9432 | delete arg1; | |
9433 | } | |
9434 | return resultobj; | |
9435 | fail: | |
9436 | { | |
9437 | if (temp1) | |
9438 | delete arg1; | |
9439 | } | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
9444 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9445 | PyObject *resultobj; | |
9446 | wxImage *arg1 = (wxImage *) 0 ; | |
9447 | wxString *arg2 = 0 ; | |
9448 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9449 | int arg4 = (int) -1 ; | |
9450 | bool result; | |
423f194a | 9451 | bool temp2 = False ; |
d14a1e28 RD |
9452 | PyObject * obj0 = 0 ; |
9453 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9454 | PyObject * obj2 = 0 ; |
9455 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9456 | char *kwnames[] = { |
9457 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9458 | }; | |
9459 | ||
8edf1c75 | 9460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9463 | { |
9464 | arg2 = wxString_in_helper(obj1); | |
9465 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9466 | temp2 = True; |
d14a1e28 | 9467 | } |
8edf1c75 | 9468 | if (obj2) { |
2f4c0a16 RD |
9469 | arg3 = (long) SWIG_AsLong(obj2); |
9470 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9471 | } |
9472 | if (obj3) { | |
2f4c0a16 RD |
9473 | arg4 = (int) SWIG_AsInt(obj3); |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9475 | } |
d14a1e28 RD |
9476 | { |
9477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9478 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9479 | ||
9480 | wxPyEndAllowThreads(__tstate); | |
9481 | if (PyErr_Occurred()) SWIG_fail; | |
9482 | } | |
4f89f6a3 RD |
9483 | { |
9484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9485 | } | |
d14a1e28 RD |
9486 | { |
9487 | if (temp2) | |
9488 | delete arg2; | |
9489 | } | |
9490 | return resultobj; | |
9491 | fail: | |
9492 | { | |
9493 | if (temp2) | |
9494 | delete arg2; | |
9495 | } | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
9500 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject *resultobj; | |
9502 | wxImage *arg1 = (wxImage *) 0 ; | |
9503 | wxString *arg2 = 0 ; | |
9504 | wxString *arg3 = 0 ; | |
9505 | int arg4 = (int) -1 ; | |
9506 | bool result; | |
423f194a RD |
9507 | bool temp2 = False ; |
9508 | bool temp3 = False ; | |
d14a1e28 RD |
9509 | PyObject * obj0 = 0 ; |
9510 | PyObject * obj1 = 0 ; | |
9511 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9512 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9513 | char *kwnames[] = { |
9514 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9515 | }; | |
9516 | ||
8edf1c75 | 9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9520 | { |
9521 | arg2 = wxString_in_helper(obj1); | |
9522 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9523 | temp2 = True; |
d14a1e28 RD |
9524 | } |
9525 | { | |
9526 | arg3 = wxString_in_helper(obj2); | |
9527 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9528 | temp3 = True; |
d14a1e28 | 9529 | } |
8edf1c75 | 9530 | if (obj3) { |
2f4c0a16 RD |
9531 | arg4 = (int) SWIG_AsInt(obj3); |
9532 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9533 | } |
d14a1e28 RD |
9534 | { |
9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9536 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9537 | ||
9538 | wxPyEndAllowThreads(__tstate); | |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
9540 | } | |
4f89f6a3 RD |
9541 | { |
9542 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9543 | } | |
d14a1e28 RD |
9544 | { |
9545 | if (temp2) | |
9546 | delete arg2; | |
9547 | } | |
9548 | { | |
9549 | if (temp3) | |
9550 | delete arg3; | |
9551 | } | |
9552 | return resultobj; | |
9553 | fail: | |
9554 | { | |
9555 | if (temp2) | |
9556 | delete arg2; | |
9557 | } | |
9558 | { | |
9559 | if (temp3) | |
9560 | delete arg3; | |
9561 | } | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
9566 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9567 | PyObject *resultobj; | |
9568 | wxImage *arg1 = (wxImage *) 0 ; | |
9569 | wxString *arg2 = 0 ; | |
9570 | int arg3 ; | |
9571 | bool result; | |
423f194a | 9572 | bool temp2 = False ; |
d14a1e28 RD |
9573 | PyObject * obj0 = 0 ; |
9574 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9575 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9576 | char *kwnames[] = { |
9577 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9578 | }; | |
9579 | ||
8edf1c75 | 9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9583 | { |
9584 | arg2 = wxString_in_helper(obj1); | |
9585 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9586 | temp2 = True; |
d14a1e28 | 9587 | } |
2f4c0a16 RD |
9588 | arg3 = (int) SWIG_AsInt(obj2); |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9590 | { |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9593 | ||
9594 | wxPyEndAllowThreads(__tstate); | |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
9596 | } | |
4f89f6a3 RD |
9597 | { |
9598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9599 | } | |
d14a1e28 RD |
9600 | { |
9601 | if (temp2) | |
9602 | delete arg2; | |
9603 | } | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | { | |
9607 | if (temp2) | |
9608 | delete arg2; | |
9609 | } | |
9610 | return NULL; | |
9611 | } | |
9612 | ||
9613 | ||
9614 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9615 | PyObject *resultobj; | |
9616 | wxImage *arg1 = (wxImage *) 0 ; | |
9617 | wxString *arg2 = 0 ; | |
9618 | wxString *arg3 = 0 ; | |
9619 | bool result; | |
423f194a RD |
9620 | bool temp2 = False ; |
9621 | bool temp3 = False ; | |
d14a1e28 RD |
9622 | PyObject * obj0 = 0 ; |
9623 | PyObject * obj1 = 0 ; | |
9624 | PyObject * obj2 = 0 ; | |
9625 | char *kwnames[] = { | |
9626 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9627 | }; | |
9628 | ||
9629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9632 | { |
9633 | arg2 = wxString_in_helper(obj1); | |
9634 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9635 | temp2 = True; |
d14a1e28 RD |
9636 | } |
9637 | { | |
9638 | arg3 = wxString_in_helper(obj2); | |
9639 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9640 | temp3 = True; |
d14a1e28 RD |
9641 | } |
9642 | { | |
9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9644 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9645 | ||
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) SWIG_fail; | |
9648 | } | |
4f89f6a3 RD |
9649 | { |
9650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9651 | } | |
d14a1e28 RD |
9652 | { |
9653 | if (temp2) | |
9654 | delete arg2; | |
9655 | } | |
9656 | { | |
9657 | if (temp3) | |
9658 | delete arg3; | |
9659 | } | |
9660 | return resultobj; | |
9661 | fail: | |
9662 | { | |
9663 | if (temp2) | |
9664 | delete arg2; | |
9665 | } | |
9666 | { | |
9667 | if (temp3) | |
9668 | delete arg3; | |
9669 | } | |
9670 | return NULL; | |
9671 | } | |
9672 | ||
9673 | ||
9674 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9675 | PyObject *resultobj; | |
9676 | wxInputStream *arg1 = 0 ; | |
9677 | bool result; | |
9678 | wxPyInputStream *temp1 ; | |
9679 | bool created1 ; | |
9680 | PyObject * obj0 = 0 ; | |
9681 | char *kwnames[] = { | |
9682 | (char *) "stream", NULL | |
9683 | }; | |
9684 | ||
9685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9686 | { | |
9687 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9688 | arg1 = temp1->m_wxis; | |
423f194a | 9689 | created1 = False; |
d14a1e28 RD |
9690 | } else { |
9691 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9692 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9693 | if (arg1 == NULL) { |
9694 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9695 | SWIG_fail; | |
9696 | } | |
423f194a | 9697 | created1 = True; |
d14a1e28 RD |
9698 | } |
9699 | } | |
9700 | { | |
9701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9702 | result = (bool)wxImage::CanRead(*arg1); | |
9703 | ||
9704 | wxPyEndAllowThreads(__tstate); | |
9705 | if (PyErr_Occurred()) SWIG_fail; | |
9706 | } | |
4f89f6a3 RD |
9707 | { |
9708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9709 | } | |
d14a1e28 RD |
9710 | { |
9711 | if (created1) | |
9712 | delete arg1; | |
9713 | } | |
9714 | return resultobj; | |
9715 | fail: | |
9716 | { | |
9717 | if (created1) | |
9718 | delete arg1; | |
9719 | } | |
9720 | return NULL; | |
9721 | } | |
9722 | ||
9723 | ||
9724 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9725 | PyObject *resultobj; | |
9726 | wxImage *arg1 = (wxImage *) 0 ; | |
9727 | wxInputStream *arg2 = 0 ; | |
9728 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9729 | int arg4 = (int) -1 ; | |
9730 | bool result; | |
9731 | wxPyInputStream *temp2 ; | |
9732 | bool created2 ; | |
9733 | PyObject * obj0 = 0 ; | |
9734 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
9735 | PyObject * obj2 = 0 ; |
9736 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9737 | char *kwnames[] = { |
9738 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9739 | }; | |
9740 | ||
8edf1c75 | 9741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9744 | { |
9745 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9746 | arg2 = temp2->m_wxis; | |
423f194a | 9747 | created2 = False; |
d14a1e28 RD |
9748 | } else { |
9749 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9750 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9751 | if (arg2 == NULL) { |
9752 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9753 | SWIG_fail; | |
9754 | } | |
423f194a | 9755 | created2 = True; |
d14a1e28 RD |
9756 | } |
9757 | } | |
8edf1c75 | 9758 | if (obj2) { |
2f4c0a16 RD |
9759 | arg3 = (long) SWIG_AsLong(obj2); |
9760 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9761 | } |
9762 | if (obj3) { | |
2f4c0a16 RD |
9763 | arg4 = (int) SWIG_AsInt(obj3); |
9764 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9765 | } |
d14a1e28 RD |
9766 | { |
9767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9768 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9769 | ||
9770 | wxPyEndAllowThreads(__tstate); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
4f89f6a3 RD |
9773 | { |
9774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9775 | } | |
d14a1e28 RD |
9776 | { |
9777 | if (created2) | |
9778 | delete arg2; | |
9779 | } | |
9780 | return resultobj; | |
9781 | fail: | |
9782 | { | |
9783 | if (created2) | |
9784 | delete arg2; | |
9785 | } | |
9786 | return NULL; | |
9787 | } | |
9788 | ||
9789 | ||
9790 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9791 | PyObject *resultobj; | |
9792 | wxImage *arg1 = (wxImage *) 0 ; | |
9793 | wxInputStream *arg2 = 0 ; | |
9794 | wxString *arg3 = 0 ; | |
9795 | int arg4 = (int) -1 ; | |
9796 | bool result; | |
9797 | wxPyInputStream *temp2 ; | |
9798 | bool created2 ; | |
423f194a | 9799 | bool temp3 = False ; |
d14a1e28 RD |
9800 | PyObject * obj0 = 0 ; |
9801 | PyObject * obj1 = 0 ; | |
9802 | PyObject * obj2 = 0 ; | |
8edf1c75 | 9803 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9804 | char *kwnames[] = { |
9805 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9806 | }; | |
9807 | ||
8edf1c75 | 9808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9811 | { |
9812 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9813 | arg2 = temp2->m_wxis; | |
423f194a | 9814 | created2 = False; |
d14a1e28 RD |
9815 | } else { |
9816 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
423f194a | 9817 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9818 | if (arg2 == NULL) { |
9819 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9820 | SWIG_fail; | |
9821 | } | |
423f194a | 9822 | created2 = True; |
d14a1e28 RD |
9823 | } |
9824 | } | |
9825 | { | |
9826 | arg3 = wxString_in_helper(obj2); | |
9827 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9828 | temp3 = True; |
d14a1e28 | 9829 | } |
8edf1c75 | 9830 | if (obj3) { |
2f4c0a16 RD |
9831 | arg4 = (int) SWIG_AsInt(obj3); |
9832 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9833 | } |
d14a1e28 RD |
9834 | { |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
4f89f6a3 RD |
9841 | { |
9842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9843 | } | |
d14a1e28 RD |
9844 | { |
9845 | if (created2) | |
9846 | delete arg2; | |
9847 | } | |
9848 | { | |
9849 | if (temp3) | |
9850 | delete arg3; | |
9851 | } | |
9852 | return resultobj; | |
9853 | fail: | |
9854 | { | |
9855 | if (created2) | |
9856 | delete arg2; | |
9857 | } | |
9858 | { | |
9859 | if (temp3) | |
9860 | delete arg3; | |
9861 | } | |
9862 | return NULL; | |
9863 | } | |
9864 | ||
9865 | ||
9866 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9867 | PyObject *resultobj; | |
9868 | wxImage *arg1 = (wxImage *) 0 ; | |
9869 | bool result; | |
9870 | PyObject * obj0 = 0 ; | |
9871 | char *kwnames[] = { | |
9872 | (char *) "self", NULL | |
9873 | }; | |
9874 | ||
9875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9878 | { |
9879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9880 | result = (bool)(arg1)->Ok(); | |
9881 | ||
9882 | wxPyEndAllowThreads(__tstate); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
4f89f6a3 RD |
9885 | { |
9886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9887 | } | |
d14a1e28 RD |
9888 | return resultobj; |
9889 | fail: | |
9890 | return NULL; | |
9891 | } | |
9892 | ||
9893 | ||
9894 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9895 | PyObject *resultobj; | |
9896 | wxImage *arg1 = (wxImage *) 0 ; | |
9897 | int result; | |
9898 | PyObject * obj0 = 0 ; | |
9899 | char *kwnames[] = { | |
9900 | (char *) "self", NULL | |
9901 | }; | |
9902 | ||
9903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9906 | { |
9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9908 | result = (int)(arg1)->GetWidth(); | |
9909 | ||
9910 | wxPyEndAllowThreads(__tstate); | |
9911 | if (PyErr_Occurred()) SWIG_fail; | |
9912 | } | |
2f4c0a16 | 9913 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9914 | return resultobj; |
9915 | fail: | |
9916 | return NULL; | |
9917 | } | |
9918 | ||
9919 | ||
9920 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9921 | PyObject *resultobj; | |
9922 | wxImage *arg1 = (wxImage *) 0 ; | |
9923 | int result; | |
9924 | PyObject * obj0 = 0 ; | |
9925 | char *kwnames[] = { | |
9926 | (char *) "self", NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9932 | { |
9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9934 | result = (int)(arg1)->GetHeight(); | |
9935 | ||
9936 | wxPyEndAllowThreads(__tstate); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
2f4c0a16 | 9939 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9940 | return resultobj; |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
9946 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9947 | PyObject *resultobj; | |
9948 | wxImage *arg1 = (wxImage *) 0 ; | |
9949 | wxRect *arg2 = 0 ; | |
9950 | SwigValueWrapper< wxImage > result; | |
9951 | wxRect temp2 ; | |
9952 | PyObject * obj0 = 0 ; | |
9953 | PyObject * obj1 = 0 ; | |
9954 | char *kwnames[] = { | |
9955 | (char *) "self",(char *) "rect", NULL | |
9956 | }; | |
9957 | ||
9958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9961 | { |
9962 | arg2 = &temp2; | |
9963 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9964 | } | |
9965 | { | |
9966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9967 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
9968 | ||
9969 | wxPyEndAllowThreads(__tstate); | |
9970 | if (PyErr_Occurred()) SWIG_fail; | |
9971 | } | |
9972 | { | |
9973 | wxImage * resultptr; | |
9974 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 9975 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9976 | } |
9977 | return resultobj; | |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj; | |
9985 | wxImage *arg1 = (wxImage *) 0 ; | |
9986 | SwigValueWrapper< wxImage > result; | |
9987 | PyObject * obj0 = 0 ; | |
9988 | char *kwnames[] = { | |
9989 | (char *) "self", NULL | |
9990 | }; | |
9991 | ||
9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9995 | { |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | result = (arg1)->Copy(); | |
9998 | ||
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | } | |
10002 | { | |
10003 | wxImage * resultptr; | |
10004 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10006 | } |
10007 | return resultobj; | |
10008 | fail: | |
10009 | return NULL; | |
10010 | } | |
10011 | ||
10012 | ||
10013 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10014 | PyObject *resultobj; | |
10015 | wxImage *arg1 = (wxImage *) 0 ; | |
10016 | wxImage *arg2 = 0 ; | |
10017 | int arg3 ; | |
10018 | int arg4 ; | |
10019 | PyObject * obj0 = 0 ; | |
10020 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
10021 | PyObject * obj2 = 0 ; |
10022 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10023 | char *kwnames[] = { |
10024 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10025 | }; | |
10026 | ||
8edf1c75 | 10027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10030 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10032 | SWIG_fail; | |
d14a1e28 | 10033 | if (arg2 == NULL) { |
2f4c0a16 RD |
10034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10035 | SWIG_fail; | |
8edf1c75 | 10036 | } |
2f4c0a16 RD |
10037 | arg3 = (int) SWIG_AsInt(obj2); |
10038 | if (PyErr_Occurred()) SWIG_fail; | |
10039 | arg4 = (int) SWIG_AsInt(obj3); | |
10040 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10041 | { |
10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10043 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10044 | ||
10045 | wxPyEndAllowThreads(__tstate); | |
10046 | if (PyErr_Occurred()) SWIG_fail; | |
10047 | } | |
10048 | Py_INCREF(Py_None); resultobj = Py_None; | |
10049 | return resultobj; | |
10050 | fail: | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
10055 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject *resultobj; | |
10057 | wxImage *arg1 = (wxImage *) 0 ; | |
10058 | PyObject *result; | |
10059 | PyObject * obj0 = 0 ; | |
10060 | char *kwnames[] = { | |
10061 | (char *) "self", NULL | |
10062 | }; | |
10063 | ||
10064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10067 | { |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10069 | result = (PyObject *)wxImage_GetData(arg1); | |
10070 | ||
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | resultobj = result; | |
10075 | return resultobj; | |
10076 | fail: | |
10077 | return NULL; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject *resultobj; | |
10083 | wxImage *arg1 = (wxImage *) 0 ; | |
10084 | PyObject *arg2 = (PyObject *) 0 ; | |
10085 | PyObject * obj0 = 0 ; | |
10086 | PyObject * obj1 = 0 ; | |
10087 | char *kwnames[] = { | |
10088 | (char *) "self",(char *) "data", NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10094 | arg2 = obj1; |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | wxImage_SetData(arg1,arg2); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
10102 | Py_INCREF(Py_None); resultobj = Py_None; | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxImage *arg1 = (wxImage *) 0 ; | |
10112 | PyObject *result; | |
10113 | PyObject * obj0 = 0 ; | |
10114 | char *kwnames[] = { | |
10115 | (char *) "self", NULL | |
10116 | }; | |
10117 | ||
10118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10121 | { |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
10128 | resultobj = result; | |
10129 | return resultobj; | |
10130 | fail: | |
10131 | return NULL; | |
10132 | } | |
10133 | ||
10134 | ||
10135 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10136 | PyObject *resultobj; | |
10137 | wxImage *arg1 = (wxImage *) 0 ; | |
10138 | PyObject *arg2 = (PyObject *) 0 ; | |
10139 | PyObject * obj0 = 0 ; | |
10140 | PyObject * obj1 = 0 ; | |
10141 | char *kwnames[] = { | |
10142 | (char *) "self",(char *) "data", NULL | |
10143 | }; | |
10144 | ||
10145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10148 | arg2 = obj1; |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | wxImage_SetDataBuffer(arg1,arg2); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
10156 | Py_INCREF(Py_None); resultobj = Py_None; | |
10157 | return resultobj; | |
10158 | fail: | |
10159 | return NULL; | |
10160 | } | |
10161 | ||
10162 | ||
10163 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10164 | PyObject *resultobj; | |
10165 | wxImage *arg1 = (wxImage *) 0 ; | |
10166 | PyObject *result; | |
10167 | PyObject * obj0 = 0 ; | |
10168 | char *kwnames[] = { | |
10169 | (char *) "self", NULL | |
10170 | }; | |
10171 | ||
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10175 | { |
10176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10177 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10178 | ||
10179 | wxPyEndAllowThreads(__tstate); | |
10180 | if (PyErr_Occurred()) SWIG_fail; | |
10181 | } | |
10182 | resultobj = result; | |
10183 | return resultobj; | |
10184 | fail: | |
10185 | return NULL; | |
10186 | } | |
10187 | ||
10188 | ||
10189 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10190 | PyObject *resultobj; | |
10191 | wxImage *arg1 = (wxImage *) 0 ; | |
10192 | PyObject *arg2 = (PyObject *) 0 ; | |
10193 | PyObject * obj0 = 0 ; | |
10194 | PyObject * obj1 = 0 ; | |
10195 | char *kwnames[] = { | |
10196 | (char *) "self",(char *) "data", NULL | |
10197 | }; | |
10198 | ||
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10202 | arg2 = obj1; |
10203 | { | |
10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10205 | wxImage_SetAlphaData(arg1,arg2); | |
10206 | ||
10207 | wxPyEndAllowThreads(__tstate); | |
10208 | if (PyErr_Occurred()) SWIG_fail; | |
10209 | } | |
10210 | Py_INCREF(Py_None); resultobj = Py_None; | |
10211 | return resultobj; | |
10212 | fail: | |
10213 | return NULL; | |
10214 | } | |
10215 | ||
10216 | ||
10217 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10218 | PyObject *resultobj; | |
10219 | wxImage *arg1 = (wxImage *) 0 ; | |
10220 | PyObject *result; | |
10221 | PyObject * obj0 = 0 ; | |
10222 | char *kwnames[] = { | |
10223 | (char *) "self", NULL | |
10224 | }; | |
10225 | ||
10226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10229 | { |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10232 | ||
10233 | wxPyEndAllowThreads(__tstate); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | resultobj = result; | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | return NULL; | |
10240 | } | |
10241 | ||
10242 | ||
10243 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10244 | PyObject *resultobj; | |
10245 | wxImage *arg1 = (wxImage *) 0 ; | |
10246 | PyObject *arg2 = (PyObject *) 0 ; | |
10247 | PyObject * obj0 = 0 ; | |
10248 | PyObject * obj1 = 0 ; | |
10249 | char *kwnames[] = { | |
10250 | (char *) "self",(char *) "data", NULL | |
10251 | }; | |
10252 | ||
10253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10256 | arg2 = obj1; |
10257 | { | |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10260 | ||
10261 | wxPyEndAllowThreads(__tstate); | |
10262 | if (PyErr_Occurred()) SWIG_fail; | |
10263 | } | |
10264 | Py_INCREF(Py_None); resultobj = Py_None; | |
10265 | return resultobj; | |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
10271 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject *resultobj; | |
10273 | wxImage *arg1 = (wxImage *) 0 ; | |
10274 | unsigned char arg2 ; | |
10275 | unsigned char arg3 ; | |
10276 | unsigned char arg4 ; | |
10277 | PyObject * obj0 = 0 ; | |
10278 | PyObject * obj1 = 0 ; | |
10279 | PyObject * obj2 = 0 ; | |
10280 | PyObject * obj3 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10288 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10289 | if (PyErr_Occurred()) SWIG_fail; | |
10290 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10291 | if (PyErr_Occurred()) SWIG_fail; | |
10292 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10294 | { |
10295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10296 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10297 | ||
10298 | wxPyEndAllowThreads(__tstate); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | Py_INCREF(Py_None); resultobj = Py_None; | |
10302 | return resultobj; | |
10303 | fail: | |
10304 | return NULL; | |
10305 | } | |
10306 | ||
10307 | ||
10308 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10309 | PyObject *resultobj; | |
10310 | wxImage *arg1 = (wxImage *) 0 ; | |
10311 | unsigned char result; | |
10312 | PyObject * obj0 = 0 ; | |
10313 | char *kwnames[] = { | |
10314 | (char *) "self", NULL | |
10315 | }; | |
10316 | ||
10317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10320 | { |
10321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10322 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10323 | ||
10324 | wxPyEndAllowThreads(__tstate); | |
10325 | if (PyErr_Occurred()) SWIG_fail; | |
10326 | } | |
2f4c0a16 | 10327 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10328 | return resultobj; |
10329 | fail: | |
10330 | return NULL; | |
10331 | } | |
10332 | ||
10333 | ||
10334 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10335 | PyObject *resultobj; | |
10336 | wxImage *arg1 = (wxImage *) 0 ; | |
10337 | unsigned char result; | |
10338 | PyObject * obj0 = 0 ; | |
10339 | char *kwnames[] = { | |
10340 | (char *) "self", NULL | |
10341 | }; | |
10342 | ||
10343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10346 | { |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
2f4c0a16 | 10353 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10354 | return resultobj; |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
10360 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10361 | PyObject *resultobj; | |
10362 | wxImage *arg1 = (wxImage *) 0 ; | |
10363 | unsigned char result; | |
10364 | PyObject * obj0 = 0 ; | |
10365 | char *kwnames[] = { | |
10366 | (char *) "self", NULL | |
10367 | }; | |
10368 | ||
10369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10372 | { |
10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10374 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10375 | ||
10376 | wxPyEndAllowThreads(__tstate); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | } | |
2f4c0a16 | 10379 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10380 | return resultobj; |
10381 | fail: | |
10382 | return NULL; | |
10383 | } | |
10384 | ||
10385 | ||
10386 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10387 | PyObject *resultobj; | |
10388 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10389 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10390 | PyObject * obj0 = 0 ; |
10391 | PyObject * obj1 = 0 ; | |
10392 | char *kwnames[] = { | |
10393 | (char *) "self",(char *) "mask", NULL | |
10394 | }; | |
10395 | ||
10396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10399 | if (obj1) { |
2f4c0a16 RD |
10400 | arg2 = (bool) SWIG_AsBool(obj1); |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10402 | } |
10403 | { | |
10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10405 | (arg1)->SetMask(arg2); | |
10406 | ||
10407 | wxPyEndAllowThreads(__tstate); | |
10408 | if (PyErr_Occurred()) SWIG_fail; | |
10409 | } | |
10410 | Py_INCREF(Py_None); resultobj = Py_None; | |
10411 | return resultobj; | |
10412 | fail: | |
10413 | return NULL; | |
10414 | } | |
10415 | ||
10416 | ||
10417 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10418 | PyObject *resultobj; | |
10419 | wxImage *arg1 = (wxImage *) 0 ; | |
10420 | bool result; | |
10421 | PyObject * obj0 = 0 ; | |
10422 | char *kwnames[] = { | |
10423 | (char *) "self", NULL | |
10424 | }; | |
10425 | ||
10426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10429 | { |
10430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10431 | result = (bool)(arg1)->HasMask(); | |
10432 | ||
10433 | wxPyEndAllowThreads(__tstate); | |
10434 | if (PyErr_Occurred()) SWIG_fail; | |
10435 | } | |
4f89f6a3 RD |
10436 | { |
10437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10438 | } | |
d14a1e28 RD |
10439 | return resultobj; |
10440 | fail: | |
10441 | return NULL; | |
10442 | } | |
10443 | ||
10444 | ||
10445 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10446 | PyObject *resultobj; | |
10447 | wxImage *arg1 = (wxImage *) 0 ; | |
10448 | double arg2 ; | |
10449 | wxPoint *arg3 = 0 ; | |
423f194a | 10450 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10451 | wxPoint *arg5 = (wxPoint *) NULL ; |
10452 | SwigValueWrapper< wxImage > result; | |
10453 | wxPoint temp3 ; | |
10454 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10456 | PyObject * obj2 = 0 ; |
10457 | PyObject * obj3 = 0 ; | |
10458 | PyObject * obj4 = 0 ; | |
10459 | char *kwnames[] = { | |
10460 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10461 | }; | |
10462 | ||
8edf1c75 | 10463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10466 | arg2 = (double) SWIG_AsDouble(obj1); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10468 | { |
10469 | arg3 = &temp3; | |
10470 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10471 | } | |
10472 | if (obj3) { | |
2f4c0a16 RD |
10473 | arg4 = (bool) SWIG_AsBool(obj3); |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10475 | } |
10476 | if (obj4) { | |
2f4c0a16 RD |
10477 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10479 | } |
10480 | { | |
10481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10482 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10483 | ||
10484 | wxPyEndAllowThreads(__tstate); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | { | |
10488 | wxImage * resultptr; | |
10489 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10491 | } |
10492 | return resultobj; | |
10493 | fail: | |
10494 | return NULL; | |
10495 | } | |
10496 | ||
10497 | ||
10498 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10499 | PyObject *resultobj; | |
10500 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10501 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10502 | SwigValueWrapper< wxImage > result; |
10503 | PyObject * obj0 = 0 ; | |
10504 | PyObject * obj1 = 0 ; | |
10505 | char *kwnames[] = { | |
10506 | (char *) "self",(char *) "clockwise", NULL | |
10507 | }; | |
10508 | ||
10509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10512 | if (obj1) { |
2f4c0a16 RD |
10513 | arg2 = (bool) SWIG_AsBool(obj1); |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10515 | } |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | result = (arg1)->Rotate90(arg2); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | { | |
10524 | wxImage * resultptr; | |
10525 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10527 | } |
10528 | return resultobj; | |
10529 | fail: | |
10530 | return NULL; | |
10531 | } | |
10532 | ||
10533 | ||
10534 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10535 | PyObject *resultobj; | |
10536 | wxImage *arg1 = (wxImage *) 0 ; | |
423f194a | 10537 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10538 | SwigValueWrapper< wxImage > result; |
10539 | PyObject * obj0 = 0 ; | |
10540 | PyObject * obj1 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self",(char *) "horizontally", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10548 | if (obj1) { |
2f4c0a16 RD |
10549 | arg2 = (bool) SWIG_AsBool(obj1); |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10551 | } |
10552 | { | |
10553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10554 | result = (arg1)->Mirror(arg2); | |
10555 | ||
10556 | wxPyEndAllowThreads(__tstate); | |
10557 | if (PyErr_Occurred()) SWIG_fail; | |
10558 | } | |
10559 | { | |
10560 | wxImage * resultptr; | |
10561 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10562 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10563 | } |
10564 | return resultobj; | |
10565 | fail: | |
10566 | return NULL; | |
10567 | } | |
10568 | ||
10569 | ||
10570 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10571 | PyObject *resultobj; | |
10572 | wxImage *arg1 = (wxImage *) 0 ; | |
10573 | unsigned char arg2 ; | |
10574 | unsigned char arg3 ; | |
10575 | unsigned char arg4 ; | |
10576 | unsigned char arg5 ; | |
10577 | unsigned char arg6 ; | |
10578 | unsigned char arg7 ; | |
10579 | PyObject * obj0 = 0 ; | |
10580 | PyObject * obj1 = 0 ; | |
10581 | PyObject * obj2 = 0 ; | |
10582 | PyObject * obj3 = 0 ; | |
10583 | PyObject * obj4 = 0 ; | |
10584 | PyObject * obj5 = 0 ; | |
10585 | PyObject * obj6 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
2f4c0a16 RD |
10591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10593 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10594 | if (PyErr_Occurred()) SWIG_fail; | |
10595 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10598 | if (PyErr_Occurred()) SWIG_fail; | |
10599 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10600 | if (PyErr_Occurred()) SWIG_fail; | |
10601 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
10603 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | Py_INCREF(Py_None); resultobj = Py_None; | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
10619 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10620 | PyObject *resultobj; | |
10621 | wxImage *arg1 = (wxImage *) 0 ; | |
10622 | unsigned char arg2 ; | |
10623 | unsigned char arg3 ; | |
10624 | unsigned char arg4 ; | |
10625 | SwigValueWrapper< wxImage > result; | |
10626 | PyObject * obj0 = 0 ; | |
10627 | PyObject * obj1 = 0 ; | |
10628 | PyObject * obj2 = 0 ; | |
10629 | PyObject * obj3 = 0 ; | |
10630 | char *kwnames[] = { | |
10631 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10632 | }; | |
10633 | ||
10634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10637 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10638 | if (PyErr_Occurred()) SWIG_fail; | |
10639 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10643 | { |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
10650 | { | |
10651 | wxImage * resultptr; | |
10652 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 10653 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10654 | } |
10655 | return resultobj; | |
10656 | fail: | |
10657 | return NULL; | |
10658 | } | |
10659 | ||
10660 | ||
10661 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10662 | PyObject *resultobj; | |
10663 | wxImage *arg1 = (wxImage *) 0 ; | |
10664 | wxString *arg2 = 0 ; | |
10665 | wxString *arg3 = 0 ; | |
423f194a RD |
10666 | bool temp2 = False ; |
10667 | bool temp3 = False ; | |
d14a1e28 RD |
10668 | PyObject * obj0 = 0 ; |
10669 | PyObject * obj1 = 0 ; | |
10670 | PyObject * obj2 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10678 | { |
10679 | arg2 = wxString_in_helper(obj1); | |
10680 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10681 | temp2 = True; |
d14a1e28 RD |
10682 | } |
10683 | { | |
10684 | arg3 = wxString_in_helper(obj2); | |
10685 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10686 | temp3 = True; |
d14a1e28 RD |
10687 | } |
10688 | { | |
10689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10690 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10691 | ||
10692 | wxPyEndAllowThreads(__tstate); | |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
10694 | } | |
10695 | Py_INCREF(Py_None); resultobj = Py_None; | |
10696 | { | |
10697 | if (temp2) | |
10698 | delete arg2; | |
10699 | } | |
10700 | { | |
10701 | if (temp3) | |
10702 | delete arg3; | |
10703 | } | |
10704 | return resultobj; | |
10705 | fail: | |
10706 | { | |
10707 | if (temp2) | |
10708 | delete arg2; | |
10709 | } | |
10710 | { | |
10711 | if (temp3) | |
10712 | delete arg3; | |
10713 | } | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj; | |
10720 | wxImage *arg1 = (wxImage *) 0 ; | |
10721 | wxString *arg2 = 0 ; | |
10722 | int arg3 ; | |
423f194a | 10723 | bool temp2 = False ; |
d14a1e28 RD |
10724 | PyObject * obj0 = 0 ; |
10725 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10726 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10727 | char *kwnames[] = { |
10728 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10729 | }; | |
10730 | ||
8edf1c75 | 10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10734 | { |
10735 | arg2 = wxString_in_helper(obj1); | |
10736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10737 | temp2 = True; |
d14a1e28 | 10738 | } |
2f4c0a16 RD |
10739 | arg3 = (int) SWIG_AsInt(obj2); |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10741 | { |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10744 | ||
10745 | wxPyEndAllowThreads(__tstate); | |
10746 | if (PyErr_Occurred()) SWIG_fail; | |
10747 | } | |
10748 | Py_INCREF(Py_None); resultobj = Py_None; | |
10749 | { | |
10750 | if (temp2) | |
10751 | delete arg2; | |
10752 | } | |
10753 | return resultobj; | |
10754 | fail: | |
10755 | { | |
10756 | if (temp2) | |
10757 | delete arg2; | |
10758 | } | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject *resultobj; | |
10765 | wxImage *arg1 = (wxImage *) 0 ; | |
10766 | wxString *arg2 = 0 ; | |
10767 | wxString result; | |
423f194a | 10768 | bool temp2 = False ; |
d14a1e28 RD |
10769 | PyObject * obj0 = 0 ; |
10770 | PyObject * obj1 = 0 ; | |
10771 | char *kwnames[] = { | |
10772 | (char *) "self",(char *) "name", NULL | |
10773 | }; | |
10774 | ||
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10778 | { |
10779 | arg2 = wxString_in_helper(obj1); | |
10780 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10781 | temp2 = True; |
d14a1e28 RD |
10782 | } |
10783 | { | |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | { | |
10791 | #if wxUSE_UNICODE | |
10792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10793 | #else | |
10794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10795 | #endif | |
10796 | } | |
10797 | { | |
10798 | if (temp2) | |
10799 | delete arg2; | |
10800 | } | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | { | |
10804 | if (temp2) | |
10805 | delete arg2; | |
10806 | } | |
10807 | return NULL; | |
10808 | } | |
10809 | ||
10810 | ||
10811 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10812 | PyObject *resultobj; | |
10813 | wxImage *arg1 = (wxImage *) 0 ; | |
10814 | wxString *arg2 = 0 ; | |
10815 | int result; | |
423f194a | 10816 | bool temp2 = False ; |
d14a1e28 RD |
10817 | PyObject * obj0 = 0 ; |
10818 | PyObject * obj1 = 0 ; | |
10819 | char *kwnames[] = { | |
10820 | (char *) "self",(char *) "name", NULL | |
10821 | }; | |
10822 | ||
10823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10826 | { |
10827 | arg2 = wxString_in_helper(obj1); | |
10828 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10829 | temp2 = True; |
d14a1e28 RD |
10830 | } |
10831 | { | |
10832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10833 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
2f4c0a16 | 10838 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10839 | { |
10840 | if (temp2) | |
10841 | delete arg2; | |
10842 | } | |
10843 | return resultobj; | |
10844 | fail: | |
10845 | { | |
10846 | if (temp2) | |
10847 | delete arg2; | |
10848 | } | |
10849 | return NULL; | |
10850 | } | |
10851 | ||
10852 | ||
10853 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10854 | PyObject *resultobj; | |
10855 | wxImage *arg1 = (wxImage *) 0 ; | |
10856 | wxString *arg2 = 0 ; | |
10857 | bool result; | |
423f194a | 10858 | bool temp2 = False ; |
d14a1e28 RD |
10859 | PyObject * obj0 = 0 ; |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "name", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10868 | { |
10869 | arg2 = wxString_in_helper(obj1); | |
10870 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10871 | temp2 = True; |
d14a1e28 RD |
10872 | } |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
4f89f6a3 RD |
10880 | { |
10881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10882 | } | |
d14a1e28 RD |
10883 | { |
10884 | if (temp2) | |
10885 | delete arg2; | |
10886 | } | |
10887 | return resultobj; | |
10888 | fail: | |
10889 | { | |
10890 | if (temp2) | |
10891 | delete arg2; | |
10892 | } | |
10893 | return NULL; | |
10894 | } | |
10895 | ||
10896 | ||
10897 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10898 | PyObject *resultobj; | |
10899 | wxImage *arg1 = (wxImage *) 0 ; | |
10900 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10901 | unsigned long result; | |
10902 | PyObject * obj0 = 0 ; | |
10903 | PyObject * obj1 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self",(char *) "stopafter", NULL | |
10906 | }; | |
10907 | ||
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10911 | if (obj1) { |
2f4c0a16 RD |
10912 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10914 | } |
10915 | { | |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
2f4c0a16 | 10922 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10923 | return resultobj; |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
10929 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject *resultobj; | |
10931 | wxImage *arg1 = (wxImage *) 0 ; | |
10932 | wxImageHistogram *arg2 = 0 ; | |
10933 | unsigned long result; | |
10934 | PyObject * obj0 = 0 ; | |
10935 | PyObject * obj1 = 0 ; | |
10936 | char *kwnames[] = { | |
10937 | (char *) "self",(char *) "h", NULL | |
10938 | }; | |
10939 | ||
10940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
10944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10945 | SWIG_fail; | |
d14a1e28 | 10946 | if (arg2 == NULL) { |
2f4c0a16 RD |
10947 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10948 | SWIG_fail; | |
d14a1e28 RD |
10949 | } |
10950 | { | |
10951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10952 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
10953 | ||
10954 | wxPyEndAllowThreads(__tstate); | |
10955 | if (PyErr_Occurred()) SWIG_fail; | |
10956 | } | |
2f4c0a16 | 10957 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10958 | return resultobj; |
10959 | fail: | |
10960 | return NULL; | |
10961 | } | |
10962 | ||
10963 | ||
10964 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10965 | PyObject *resultobj; | |
10966 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "handler", NULL | |
10970 | }; | |
10971 | ||
10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10975 | { |
10976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10977 | wxImage::AddHandler(arg1); | |
10978 | ||
10979 | wxPyEndAllowThreads(__tstate); | |
10980 | if (PyErr_Occurred()) SWIG_fail; | |
10981 | } | |
10982 | Py_INCREF(Py_None); resultobj = Py_None; | |
10983 | return resultobj; | |
10984 | fail: | |
10985 | return NULL; | |
10986 | } | |
10987 | ||
10988 | ||
10989 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10990 | PyObject *resultobj; | |
10991 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
10992 | PyObject * obj0 = 0 ; | |
10993 | char *kwnames[] = { | |
10994 | (char *) "handler", NULL | |
10995 | }; | |
10996 | ||
10997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
10999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11000 | { |
11001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11002 | wxImage::InsertHandler(arg1); | |
11003 | ||
11004 | wxPyEndAllowThreads(__tstate); | |
11005 | if (PyErr_Occurred()) SWIG_fail; | |
11006 | } | |
11007 | Py_INCREF(Py_None); resultobj = Py_None; | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | return NULL; | |
11011 | } | |
11012 | ||
11013 | ||
11014 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11015 | PyObject *resultobj; | |
11016 | wxString *arg1 = 0 ; | |
11017 | bool result; | |
423f194a | 11018 | bool temp1 = False ; |
d14a1e28 RD |
11019 | PyObject * obj0 = 0 ; |
11020 | char *kwnames[] = { | |
11021 | (char *) "name", NULL | |
11022 | }; | |
11023 | ||
11024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11025 | { | |
11026 | arg1 = wxString_in_helper(obj0); | |
11027 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11028 | temp1 = True; |
d14a1e28 RD |
11029 | } |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
4f89f6a3 RD |
11037 | { |
11038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11039 | } | |
d14a1e28 RD |
11040 | { |
11041 | if (temp1) | |
11042 | delete arg1; | |
11043 | } | |
11044 | return resultobj; | |
11045 | fail: | |
11046 | { | |
11047 | if (temp1) | |
11048 | delete arg1; | |
11049 | } | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxString result; | |
11057 | char *kwnames[] = { | |
11058 | NULL | |
11059 | }; | |
11060 | ||
11061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11062 | { | |
11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11064 | result = wxImage::GetImageExtWildcard(); | |
11065 | ||
11066 | wxPyEndAllowThreads(__tstate); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | } | |
11069 | { | |
11070 | #if wxUSE_UNICODE | |
11071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11072 | #else | |
11073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11074 | #endif | |
11075 | } | |
11076 | return resultobj; | |
11077 | fail: | |
11078 | return NULL; | |
11079 | } | |
11080 | ||
11081 | ||
11082 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11083 | PyObject *resultobj; | |
11084 | wxImage *arg1 = (wxImage *) 0 ; | |
11085 | wxBitmap result; | |
11086 | PyObject * obj0 = 0 ; | |
11087 | char *kwnames[] = { | |
11088 | (char *) "self", NULL | |
11089 | }; | |
11090 | ||
11091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11094 | { |
11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11096 | result = wxImage_ConvertToBitmap(arg1); | |
11097 | ||
11098 | wxPyEndAllowThreads(__tstate); | |
11099 | if (PyErr_Occurred()) SWIG_fail; | |
11100 | } | |
11101 | { | |
11102 | wxBitmap * resultptr; | |
11103 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11105 | } |
11106 | return resultobj; | |
11107 | fail: | |
11108 | return NULL; | |
11109 | } | |
11110 | ||
11111 | ||
11112 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11113 | PyObject *resultobj; | |
11114 | wxImage *arg1 = (wxImage *) 0 ; | |
11115 | unsigned char arg2 ; | |
11116 | unsigned char arg3 ; | |
11117 | unsigned char arg4 ; | |
11118 | wxBitmap result; | |
11119 | PyObject * obj0 = 0 ; | |
11120 | PyObject * obj1 = 0 ; | |
11121 | PyObject * obj2 = 0 ; | |
11122 | PyObject * obj3 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11130 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11136 | { |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
11143 | { | |
11144 | wxBitmap * resultptr; | |
11145 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 11146 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11147 | } |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11155 | PyObject *obj; | |
11156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11157 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11158 | Py_INCREF(obj); | |
11159 | return Py_BuildValue((char *)""); | |
11160 | } | |
11161 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11162 | PyObject *resultobj; | |
11163 | char *kwnames[] = { | |
11164 | NULL | |
11165 | }; | |
11166 | ||
11167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11168 | { | |
11169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11170 | wxInitAllImageHandlers(); | |
11171 | ||
11172 | wxPyEndAllowThreads(__tstate); | |
11173 | if (PyErr_Occurred()) SWIG_fail; | |
11174 | } | |
11175 | Py_INCREF(Py_None); resultobj = Py_None; | |
11176 | return resultobj; | |
11177 | fail: | |
11178 | return NULL; | |
11179 | } | |
11180 | ||
11181 | ||
2f4c0a16 | 11182 | static int _wrap_NullImage_set(PyObject *_val) { |
d14a1e28 RD |
11183 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11184 | return 1; | |
11185 | } | |
11186 | ||
11187 | ||
11188 | static PyObject *_wrap_NullImage_get() { | |
11189 | PyObject *pyobj; | |
11190 | ||
2f4c0a16 | 11191 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11192 | return pyobj; |
11193 | } | |
11194 | ||
11195 | ||
2f4c0a16 | 11196 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { |
d14a1e28 RD |
11197 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11198 | return 1; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11203 | PyObject *pyobj; | |
11204 | ||
11205 | { | |
11206 | #if wxUSE_UNICODE | |
11207 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11208 | #else | |
11209 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11210 | #endif | |
11211 | } | |
11212 | return pyobj; | |
11213 | } | |
11214 | ||
11215 | ||
2f4c0a16 | 11216 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { |
d14a1e28 RD |
11217 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11218 | return 1; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11223 | PyObject *pyobj; | |
11224 | ||
11225 | { | |
11226 | #if wxUSE_UNICODE | |
11227 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11228 | #else | |
11229 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11230 | #endif | |
11231 | } | |
11232 | return pyobj; | |
11233 | } | |
11234 | ||
11235 | ||
2f4c0a16 | 11236 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { |
d14a1e28 RD |
11237 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11238 | return 1; | |
11239 | } | |
11240 | ||
11241 | ||
11242 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11243 | PyObject *pyobj; | |
11244 | ||
11245 | { | |
11246 | #if wxUSE_UNICODE | |
11247 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11248 | #else | |
11249 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11250 | #endif | |
11251 | } | |
11252 | return pyobj; | |
11253 | } | |
11254 | ||
11255 | ||
2f4c0a16 | 11256 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { |
d14a1e28 RD |
11257 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11258 | return 1; | |
11259 | } | |
11260 | ||
11261 | ||
11262 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11263 | PyObject *pyobj; | |
11264 | ||
11265 | { | |
11266 | #if wxUSE_UNICODE | |
11267 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11268 | #else | |
11269 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11270 | #endif | |
11271 | } | |
11272 | return pyobj; | |
11273 | } | |
11274 | ||
11275 | ||
2f4c0a16 | 11276 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { |
d14a1e28 RD |
11277 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11278 | return 1; | |
11279 | } | |
11280 | ||
11281 | ||
11282 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11283 | PyObject *pyobj; | |
11284 | ||
11285 | { | |
11286 | #if wxUSE_UNICODE | |
11287 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11288 | #else | |
11289 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11290 | #endif | |
11291 | } | |
11292 | return pyobj; | |
11293 | } | |
11294 | ||
11295 | ||
11296 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11297 | PyObject *resultobj; | |
11298 | wxBMPHandler *result; | |
11299 | char *kwnames[] = { | |
11300 | NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11304 | { | |
11305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11306 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11307 | ||
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
2f4c0a16 | 11311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11312 | return resultobj; |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11319 | PyObject *obj; | |
11320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11321 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11322 | Py_INCREF(obj); | |
11323 | return Py_BuildValue((char *)""); | |
11324 | } | |
11325 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11326 | PyObject *resultobj; | |
11327 | wxICOHandler *result; | |
11328 | char *kwnames[] = { | |
11329 | NULL | |
11330 | }; | |
11331 | ||
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11333 | { | |
11334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11335 | result = (wxICOHandler *)new wxICOHandler(); | |
11336 | ||
11337 | wxPyEndAllowThreads(__tstate); | |
11338 | if (PyErr_Occurred()) SWIG_fail; | |
11339 | } | |
2f4c0a16 | 11340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11341 | return resultobj; |
11342 | fail: | |
11343 | return NULL; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11348 | PyObject *obj; | |
11349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11350 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11351 | Py_INCREF(obj); | |
11352 | return Py_BuildValue((char *)""); | |
11353 | } | |
11354 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11355 | PyObject *resultobj; | |
11356 | wxCURHandler *result; | |
11357 | char *kwnames[] = { | |
11358 | NULL | |
11359 | }; | |
11360 | ||
11361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11364 | result = (wxCURHandler *)new wxCURHandler(); | |
11365 | ||
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
2f4c0a16 | 11369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11370 | return resultobj; |
11371 | fail: | |
11372 | return NULL; | |
11373 | } | |
11374 | ||
11375 | ||
11376 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11377 | PyObject *obj; | |
11378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11379 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11380 | Py_INCREF(obj); | |
11381 | return Py_BuildValue((char *)""); | |
11382 | } | |
11383 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11384 | PyObject *resultobj; | |
11385 | wxANIHandler *result; | |
11386 | char *kwnames[] = { | |
11387 | NULL | |
11388 | }; | |
11389 | ||
11390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11391 | { | |
11392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11393 | result = (wxANIHandler *)new wxANIHandler(); | |
11394 | ||
11395 | wxPyEndAllowThreads(__tstate); | |
11396 | if (PyErr_Occurred()) SWIG_fail; | |
11397 | } | |
2f4c0a16 | 11398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11399 | return resultobj; |
11400 | fail: | |
11401 | return NULL; | |
11402 | } | |
11403 | ||
11404 | ||
11405 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11406 | PyObject *obj; | |
11407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11408 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11409 | Py_INCREF(obj); | |
11410 | return Py_BuildValue((char *)""); | |
11411 | } | |
11412 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11413 | PyObject *resultobj; | |
11414 | wxPNGHandler *result; | |
11415 | char *kwnames[] = { | |
11416 | NULL | |
11417 | }; | |
11418 | ||
11419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11423 | ||
11424 | wxPyEndAllowThreads(__tstate); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
2f4c0a16 | 11427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11428 | return resultobj; |
11429 | fail: | |
11430 | return NULL; | |
11431 | } | |
11432 | ||
11433 | ||
11434 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11435 | PyObject *obj; | |
11436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11437 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11438 | Py_INCREF(obj); | |
11439 | return Py_BuildValue((char *)""); | |
11440 | } | |
11441 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11442 | PyObject *resultobj; | |
11443 | wxGIFHandler *result; | |
11444 | char *kwnames[] = { | |
11445 | NULL | |
11446 | }; | |
11447 | ||
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11449 | { | |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
2f4c0a16 | 11456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11457 | return resultobj; |
11458 | fail: | |
11459 | return NULL; | |
11460 | } | |
11461 | ||
11462 | ||
11463 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11464 | PyObject *obj; | |
11465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11466 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11467 | Py_INCREF(obj); | |
11468 | return Py_BuildValue((char *)""); | |
11469 | } | |
11470 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11471 | PyObject *resultobj; | |
11472 | wxPCXHandler *result; | |
11473 | char *kwnames[] = { | |
11474 | NULL | |
11475 | }; | |
11476 | ||
11477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
2f4c0a16 | 11485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11486 | return resultobj; |
11487 | fail: | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
11492 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11493 | PyObject *obj; | |
11494 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11495 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11496 | Py_INCREF(obj); | |
11497 | return Py_BuildValue((char *)""); | |
11498 | } | |
11499 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11500 | PyObject *resultobj; | |
11501 | wxJPEGHandler *result; | |
11502 | char *kwnames[] = { | |
11503 | NULL | |
11504 | }; | |
11505 | ||
11506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11507 | { | |
11508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11509 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11510 | ||
11511 | wxPyEndAllowThreads(__tstate); | |
11512 | if (PyErr_Occurred()) SWIG_fail; | |
11513 | } | |
2f4c0a16 | 11514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11515 | return resultobj; |
11516 | fail: | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
11521 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11522 | PyObject *obj; | |
11523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11524 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11525 | Py_INCREF(obj); | |
11526 | return Py_BuildValue((char *)""); | |
11527 | } | |
11528 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11529 | PyObject *resultobj; | |
11530 | wxPNMHandler *result; | |
11531 | char *kwnames[] = { | |
11532 | NULL | |
11533 | }; | |
11534 | ||
11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11536 | { | |
11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11538 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11539 | ||
11540 | wxPyEndAllowThreads(__tstate); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
2f4c0a16 | 11543 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11544 | return resultobj; |
11545 | fail: | |
11546 | return NULL; | |
11547 | } | |
11548 | ||
11549 | ||
11550 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11551 | PyObject *obj; | |
11552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11553 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11554 | Py_INCREF(obj); | |
11555 | return Py_BuildValue((char *)""); | |
11556 | } | |
11557 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11558 | PyObject *resultobj; | |
11559 | wxXPMHandler *result; | |
11560 | char *kwnames[] = { | |
11561 | NULL | |
11562 | }; | |
11563 | ||
11564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11565 | { | |
11566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11567 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11568 | ||
11569 | wxPyEndAllowThreads(__tstate); | |
11570 | if (PyErr_Occurred()) SWIG_fail; | |
11571 | } | |
2f4c0a16 | 11572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11573 | return resultobj; |
11574 | fail: | |
11575 | return NULL; | |
11576 | } | |
11577 | ||
11578 | ||
11579 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11580 | PyObject *obj; | |
11581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11582 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11583 | Py_INCREF(obj); | |
11584 | return Py_BuildValue((char *)""); | |
11585 | } | |
11586 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11587 | PyObject *resultobj; | |
11588 | wxTIFFHandler *result; | |
11589 | char *kwnames[] = { | |
11590 | NULL | |
11591 | }; | |
11592 | ||
11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11594 | { | |
11595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11596 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11597 | ||
11598 | wxPyEndAllowThreads(__tstate); | |
11599 | if (PyErr_Occurred()) SWIG_fail; | |
11600 | } | |
2f4c0a16 | 11601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11602 | return resultobj; |
11603 | fail: | |
11604 | return NULL; | |
11605 | } | |
11606 | ||
11607 | ||
11608 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11609 | PyObject *obj; | |
11610 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11611 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11612 | Py_INCREF(obj); | |
11613 | return Py_BuildValue((char *)""); | |
11614 | } | |
11615 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11616 | PyObject *resultobj; | |
11617 | wxEvtHandler *result; | |
11618 | char *kwnames[] = { | |
11619 | NULL | |
11620 | }; | |
11621 | ||
11622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11623 | { | |
11624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11625 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11626 | ||
11627 | wxPyEndAllowThreads(__tstate); | |
11628 | if (PyErr_Occurred()) SWIG_fail; | |
11629 | } | |
11630 | { | |
11631 | resultobj = wxPyMake_wxObject(result); | |
11632 | } | |
11633 | return resultobj; | |
11634 | fail: | |
11635 | return NULL; | |
11636 | } | |
11637 | ||
11638 | ||
11639 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11640 | PyObject *resultobj; | |
11641 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11642 | wxEvtHandler *result; | |
11643 | PyObject * obj0 = 0 ; | |
11644 | char *kwnames[] = { | |
11645 | (char *) "self", NULL | |
11646 | }; | |
11647 | ||
11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11651 | { |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11654 | ||
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
11658 | { | |
11659 | resultobj = wxPyMake_wxObject(result); | |
11660 | } | |
11661 | return resultobj; | |
11662 | fail: | |
11663 | return NULL; | |
11664 | } | |
11665 | ||
11666 | ||
11667 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11668 | PyObject *resultobj; | |
11669 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11670 | wxEvtHandler *result; | |
11671 | PyObject * obj0 = 0 ; | |
11672 | char *kwnames[] = { | |
11673 | (char *) "self", NULL | |
11674 | }; | |
11675 | ||
11676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11679 | { |
11680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11681 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11682 | ||
11683 | wxPyEndAllowThreads(__tstate); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
11686 | { | |
11687 | resultobj = wxPyMake_wxObject(result); | |
11688 | } | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11698 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | PyObject * obj1 = 0 ; | |
11701 | char *kwnames[] = { | |
11702 | (char *) "self",(char *) "handler", NULL | |
11703 | }; | |
11704 | ||
11705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11708 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11710 | { |
11711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11712 | (arg1)->SetNextHandler(arg2); | |
11713 | ||
11714 | wxPyEndAllowThreads(__tstate); | |
11715 | if (PyErr_Occurred()) SWIG_fail; | |
11716 | } | |
11717 | Py_INCREF(Py_None); resultobj = Py_None; | |
11718 | return resultobj; | |
11719 | fail: | |
11720 | return NULL; | |
11721 | } | |
11722 | ||
11723 | ||
11724 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11725 | PyObject *resultobj; | |
11726 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11727 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11728 | PyObject * obj0 = 0 ; | |
11729 | PyObject * obj1 = 0 ; | |
11730 | char *kwnames[] = { | |
11731 | (char *) "self",(char *) "handler", NULL | |
11732 | }; | |
11733 | ||
11734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11739 | { |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | (arg1)->SetPreviousHandler(arg2); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | Py_INCREF(Py_None); resultobj = Py_None; | |
11747 | return resultobj; | |
11748 | fail: | |
11749 | return NULL; | |
11750 | } | |
11751 | ||
11752 | ||
11753 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11754 | PyObject *resultobj; | |
11755 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11756 | bool result; | |
11757 | PyObject * obj0 = 0 ; | |
11758 | char *kwnames[] = { | |
11759 | (char *) "self", NULL | |
11760 | }; | |
11761 | ||
11762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11765 | { |
11766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11767 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11768 | ||
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
4f89f6a3 RD |
11772 | { |
11773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11774 | } | |
d14a1e28 RD |
11775 | return resultobj; |
11776 | fail: | |
11777 | return NULL; | |
11778 | } | |
11779 | ||
11780 | ||
11781 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11782 | PyObject *resultobj; | |
11783 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11784 | bool arg2 ; | |
11785 | PyObject * obj0 = 0 ; | |
11786 | PyObject * obj1 = 0 ; | |
11787 | char *kwnames[] = { | |
11788 | (char *) "self",(char *) "enabled", NULL | |
11789 | }; | |
11790 | ||
11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11794 | arg2 = (bool) SWIG_AsBool(obj1); | |
11795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11796 | { |
11797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11798 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11799 | ||
11800 | wxPyEndAllowThreads(__tstate); | |
11801 | if (PyErr_Occurred()) SWIG_fail; | |
11802 | } | |
11803 | Py_INCREF(Py_None); resultobj = Py_None; | |
11804 | return resultobj; | |
11805 | fail: | |
11806 | return NULL; | |
11807 | } | |
11808 | ||
11809 | ||
11810 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11811 | PyObject *resultobj; | |
11812 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11813 | wxEvent *arg2 = 0 ; | |
11814 | bool result; | |
11815 | PyObject * obj0 = 0 ; | |
11816 | PyObject * obj1 = 0 ; | |
11817 | char *kwnames[] = { | |
11818 | (char *) "self",(char *) "event", NULL | |
11819 | }; | |
11820 | ||
11821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11826 | SWIG_fail; | |
d14a1e28 | 11827 | if (arg2 == NULL) { |
2f4c0a16 RD |
11828 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11829 | SWIG_fail; | |
d14a1e28 RD |
11830 | } |
11831 | { | |
11832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11833 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11834 | ||
11835 | wxPyEndAllowThreads(__tstate); | |
11836 | if (PyErr_Occurred()) SWIG_fail; | |
11837 | } | |
4f89f6a3 RD |
11838 | { |
11839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11840 | } | |
d14a1e28 RD |
11841 | return resultobj; |
11842 | fail: | |
11843 | return NULL; | |
11844 | } | |
11845 | ||
11846 | ||
11847 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11848 | PyObject *resultobj; | |
11849 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11850 | wxEvent *arg2 = 0 ; | |
11851 | PyObject * obj0 = 0 ; | |
11852 | PyObject * obj1 = 0 ; | |
11853 | char *kwnames[] = { | |
11854 | (char *) "self",(char *) "event", NULL | |
11855 | }; | |
11856 | ||
11857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11861 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11862 | SWIG_fail; | |
d14a1e28 | 11863 | if (arg2 == NULL) { |
2f4c0a16 RD |
11864 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11865 | SWIG_fail; | |
d14a1e28 RD |
11866 | } |
11867 | { | |
11868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11869 | (arg1)->AddPendingEvent(*arg2); | |
11870 | ||
11871 | wxPyEndAllowThreads(__tstate); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
11873 | } | |
11874 | Py_INCREF(Py_None); resultobj = Py_None; | |
11875 | return resultobj; | |
11876 | fail: | |
11877 | return NULL; | |
11878 | } | |
11879 | ||
11880 | ||
11881 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11882 | PyObject *resultobj; | |
11883 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11884 | PyObject * obj0 = 0 ; | |
11885 | char *kwnames[] = { | |
11886 | (char *) "self", NULL | |
11887 | }; | |
11888 | ||
11889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11892 | { |
11893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11894 | (arg1)->ProcessPendingEvents(); | |
11895 | ||
11896 | wxPyEndAllowThreads(__tstate); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | } | |
11899 | Py_INCREF(Py_None); resultobj = Py_None; | |
11900 | return resultobj; | |
11901 | fail: | |
11902 | return NULL; | |
11903 | } | |
11904 | ||
11905 | ||
11906 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11907 | PyObject *resultobj; | |
11908 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11909 | int arg2 ; | |
11910 | int arg3 ; | |
11911 | int arg4 ; | |
11912 | PyObject *arg5 = (PyObject *) 0 ; | |
11913 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11914 | PyObject * obj1 = 0 ; |
11915 | PyObject * obj2 = 0 ; | |
11916 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11917 | PyObject * obj4 = 0 ; |
11918 | char *kwnames[] = { | |
11919 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11920 | }; | |
11921 | ||
8edf1c75 | 11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11925 | arg2 = (int) SWIG_AsInt(obj1); | |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | arg3 = (int) SWIG_AsInt(obj2); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | arg4 = (int) SWIG_AsInt(obj3); | |
11930 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11931 | arg5 = obj4; |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | Py_INCREF(Py_None); resultobj = Py_None; | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | return NULL; | |
11943 | } | |
11944 | ||
11945 | ||
11946 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11947 | PyObject *resultobj; | |
11948 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11949 | int arg2 ; | |
11950 | int arg3 = (int) -1 ; | |
11951 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
11952 | bool result; | |
11953 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11954 | PyObject * obj1 = 0 ; |
11955 | PyObject * obj2 = 0 ; | |
11956 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11957 | char *kwnames[] = { |
11958 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
11959 | }; | |
11960 | ||
8edf1c75 | 11961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11964 | arg2 = (int) SWIG_AsInt(obj1); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11966 | if (obj2) { |
2f4c0a16 RD |
11967 | arg3 = (int) SWIG_AsInt(obj2); |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11969 | } |
11970 | if (obj3) { | |
2f4c0a16 RD |
11971 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
11972 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11973 | } |
d14a1e28 RD |
11974 | { |
11975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11976 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
11977 | ||
11978 | wxPyEndAllowThreads(__tstate); | |
11979 | if (PyErr_Occurred()) SWIG_fail; | |
11980 | } | |
4f89f6a3 RD |
11981 | { |
11982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11983 | } | |
d14a1e28 RD |
11984 | return resultobj; |
11985 | fail: | |
11986 | return NULL; | |
11987 | } | |
11988 | ||
11989 | ||
11990 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11991 | PyObject *resultobj; | |
11992 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11993 | PyObject *arg2 = (PyObject *) 0 ; | |
11994 | PyObject * obj0 = 0 ; | |
11995 | PyObject * obj1 = 0 ; | |
11996 | char *kwnames[] = { | |
11997 | (char *) "self",(char *) "_self", NULL | |
11998 | }; | |
11999 | ||
12000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12003 | arg2 = obj1; |
12004 | { | |
12005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12006 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12007 | ||
12008 | wxPyEndAllowThreads(__tstate); | |
12009 | if (PyErr_Occurred()) SWIG_fail; | |
12010 | } | |
12011 | Py_INCREF(Py_None); resultobj = Py_None; | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
12018 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12019 | PyObject *obj; | |
12020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12021 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12022 | Py_INCREF(obj); | |
12023 | return Py_BuildValue((char *)""); | |
12024 | } | |
12025 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12026 | PyObject *resultobj; | |
12027 | wxEventType result; | |
12028 | char *kwnames[] = { | |
12029 | NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12033 | { | |
12034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12035 | result = (wxEventType)wxNewEventType(); | |
12036 | ||
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
2f4c0a16 | 12040 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12041 | return resultobj; |
12042 | fail: | |
12043 | return NULL; | |
12044 | } | |
12045 | ||
12046 | ||
12047 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12048 | PyObject *resultobj; | |
12049 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12050 | PyObject * obj0 = 0 ; | |
12051 | char *kwnames[] = { | |
12052 | (char *) "self", NULL | |
12053 | }; | |
12054 | ||
12055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12058 | { |
12059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12060 | delete arg1; | |
12061 | ||
12062 | wxPyEndAllowThreads(__tstate); | |
12063 | if (PyErr_Occurred()) SWIG_fail; | |
12064 | } | |
12065 | Py_INCREF(Py_None); resultobj = Py_None; | |
12066 | return resultobj; | |
12067 | fail: | |
12068 | return NULL; | |
12069 | } | |
12070 | ||
12071 | ||
12072 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12073 | PyObject *resultobj; | |
12074 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12075 | wxEventType arg2 ; | |
12076 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12078 | char *kwnames[] = { |
12079 | (char *) "self",(char *) "typ", NULL | |
12080 | }; | |
12081 | ||
8edf1c75 | 12082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12085 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12087 | { |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | (arg1)->SetEventType(arg2); | |
12090 | ||
12091 | wxPyEndAllowThreads(__tstate); | |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
12093 | } | |
12094 | Py_INCREF(Py_None); resultobj = Py_None; | |
12095 | return resultobj; | |
12096 | fail: | |
12097 | return NULL; | |
12098 | } | |
12099 | ||
12100 | ||
12101 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12102 | PyObject *resultobj; | |
12103 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12104 | wxEventType result; | |
12105 | PyObject * obj0 = 0 ; | |
12106 | char *kwnames[] = { | |
12107 | (char *) "self", NULL | |
12108 | }; | |
12109 | ||
12110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12113 | { |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
2f4c0a16 | 12120 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12121 | return resultobj; |
12122 | fail: | |
12123 | return NULL; | |
12124 | } | |
12125 | ||
12126 | ||
12127 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12128 | PyObject *resultobj; | |
12129 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12130 | wxObject *result; | |
12131 | PyObject * obj0 = 0 ; | |
12132 | char *kwnames[] = { | |
12133 | (char *) "self", NULL | |
12134 | }; | |
12135 | ||
12136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12139 | { |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12142 | ||
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | { | |
12147 | resultobj = wxPyMake_wxObject(result); | |
12148 | } | |
12149 | return resultobj; | |
12150 | fail: | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
12155 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12156 | PyObject *resultobj; | |
12157 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12158 | wxObject *arg2 = (wxObject *) 0 ; | |
12159 | PyObject * obj0 = 0 ; | |
12160 | PyObject * obj1 = 0 ; | |
12161 | char *kwnames[] = { | |
12162 | (char *) "self",(char *) "obj", NULL | |
12163 | }; | |
12164 | ||
12165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12170 | { |
12171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12172 | (arg1)->SetEventObject(arg2); | |
12173 | ||
12174 | wxPyEndAllowThreads(__tstate); | |
12175 | if (PyErr_Occurred()) SWIG_fail; | |
12176 | } | |
12177 | Py_INCREF(Py_None); resultobj = Py_None; | |
12178 | return resultobj; | |
12179 | fail: | |
12180 | return NULL; | |
12181 | } | |
12182 | ||
12183 | ||
12184 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12185 | PyObject *resultobj; | |
12186 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12187 | long result; | |
12188 | PyObject * obj0 = 0 ; | |
12189 | char *kwnames[] = { | |
12190 | (char *) "self", NULL | |
12191 | }; | |
12192 | ||
12193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12196 | { |
12197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12198 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12199 | ||
12200 | wxPyEndAllowThreads(__tstate); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | } | |
2f4c0a16 | 12203 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12204 | return resultobj; |
12205 | fail: | |
12206 | return NULL; | |
12207 | } | |
12208 | ||
12209 | ||
12210 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12211 | PyObject *resultobj; | |
12212 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12213 | long arg2 = (long) 0 ; | |
12214 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12216 | char *kwnames[] = { |
12217 | (char *) "self",(char *) "ts", NULL | |
12218 | }; | |
12219 | ||
8edf1c75 | 12220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 12223 | if (obj1) { |
2f4c0a16 RD |
12224 | arg2 = (long) SWIG_AsLong(obj1); |
12225 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12226 | } |
d14a1e28 RD |
12227 | { |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | (arg1)->SetTimestamp(arg2); | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12242 | PyObject *resultobj; | |
12243 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12244 | int result; | |
12245 | PyObject * obj0 = 0 ; | |
12246 | char *kwnames[] = { | |
12247 | (char *) "self", NULL | |
12248 | }; | |
12249 | ||
12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12253 | { |
12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12255 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12256 | ||
12257 | wxPyEndAllowThreads(__tstate); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
2f4c0a16 | 12260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12261 | return resultobj; |
12262 | fail: | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
12267 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12268 | PyObject *resultobj; | |
12269 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12270 | int arg2 ; | |
12271 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12273 | char *kwnames[] = { |
12274 | (char *) "self",(char *) "Id", NULL | |
12275 | }; | |
12276 | ||
8edf1c75 | 12277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12280 | arg2 = (int) SWIG_AsInt(obj1); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12282 | { |
12283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12284 | (arg1)->SetId(arg2); | |
12285 | ||
12286 | wxPyEndAllowThreads(__tstate); | |
12287 | if (PyErr_Occurred()) SWIG_fail; | |
12288 | } | |
12289 | Py_INCREF(Py_None); resultobj = Py_None; | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12299 | bool result; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | char *kwnames[] = { | |
12302 | (char *) "self", NULL | |
12303 | }; | |
12304 | ||
12305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12308 | { |
12309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12310 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12311 | ||
12312 | wxPyEndAllowThreads(__tstate); | |
12313 | if (PyErr_Occurred()) SWIG_fail; | |
12314 | } | |
4f89f6a3 RD |
12315 | { |
12316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12317 | } | |
d14a1e28 RD |
12318 | return resultobj; |
12319 | fail: | |
12320 | return NULL; | |
12321 | } | |
12322 | ||
12323 | ||
12324 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12325 | PyObject *resultobj; | |
12326 | wxEvent *arg1 = (wxEvent *) 0 ; | |
423f194a | 12327 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12328 | PyObject * obj0 = 0 ; |
12329 | PyObject * obj1 = 0 ; | |
12330 | char *kwnames[] = { | |
12331 | (char *) "self",(char *) "skip", NULL | |
12332 | }; | |
12333 | ||
12334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12337 | if (obj1) { |
2f4c0a16 RD |
12338 | arg2 = (bool) SWIG_AsBool(obj1); |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12340 | } |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | (arg1)->Skip(arg2); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | Py_INCREF(Py_None); resultobj = Py_None; | |
12349 | return resultobj; | |
12350 | fail: | |
12351 | return NULL; | |
12352 | } | |
12353 | ||
12354 | ||
12355 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12356 | PyObject *resultobj; | |
12357 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12358 | bool result; | |
12359 | PyObject * obj0 = 0 ; | |
12360 | char *kwnames[] = { | |
12361 | (char *) "self", NULL | |
12362 | }; | |
12363 | ||
12364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12367 | { |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
4f89f6a3 RD |
12374 | { |
12375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12376 | } | |
d14a1e28 RD |
12377 | return resultobj; |
12378 | fail: | |
12379 | return NULL; | |
12380 | } | |
12381 | ||
12382 | ||
12383 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12384 | PyObject *resultobj; | |
12385 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12386 | bool result; | |
12387 | PyObject * obj0 = 0 ; | |
12388 | char *kwnames[] = { | |
12389 | (char *) "self", NULL | |
12390 | }; | |
12391 | ||
12392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12395 | { |
12396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12397 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12398 | ||
12399 | wxPyEndAllowThreads(__tstate); | |
12400 | if (PyErr_Occurred()) SWIG_fail; | |
12401 | } | |
4f89f6a3 RD |
12402 | { |
12403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12404 | } | |
d14a1e28 RD |
12405 | return resultobj; |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12414 | int result; | |
12415 | PyObject * obj0 = 0 ; | |
12416 | char *kwnames[] = { | |
12417 | (char *) "self", NULL | |
12418 | }; | |
12419 | ||
12420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12423 | { |
12424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12425 | result = (int)(arg1)->StopPropagation(); | |
12426 | ||
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
2f4c0a16 | 12430 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12431 | return resultobj; |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12438 | PyObject *resultobj; | |
12439 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12440 | int arg2 ; | |
12441 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12443 | char *kwnames[] = { |
12444 | (char *) "self",(char *) "propagationLevel", NULL | |
12445 | }; | |
12446 | ||
8edf1c75 | 12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12450 | arg2 = (int) SWIG_AsInt(obj1); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12452 | { |
12453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12454 | (arg1)->ResumePropagation(arg2); | |
12455 | ||
12456 | wxPyEndAllowThreads(__tstate); | |
12457 | if (PyErr_Occurred()) SWIG_fail; | |
12458 | } | |
12459 | Py_INCREF(Py_None); resultobj = Py_None; | |
12460 | return resultobj; | |
12461 | fail: | |
12462 | return NULL; | |
12463 | } | |
12464 | ||
12465 | ||
12466 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12467 | PyObject *resultobj; | |
12468 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12469 | wxEvent *result; | |
12470 | PyObject * obj0 = 0 ; | |
12471 | char *kwnames[] = { | |
12472 | (char *) "self", NULL | |
12473 | }; | |
12474 | ||
12475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12478 | { |
12479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12480 | result = (wxEvent *)(arg1)->Clone(); | |
12481 | ||
12482 | wxPyEndAllowThreads(__tstate); | |
12483 | if (PyErr_Occurred()) SWIG_fail; | |
12484 | } | |
2f4c0a16 | 12485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12486 | return resultobj; |
12487 | fail: | |
12488 | return NULL; | |
12489 | } | |
12490 | ||
12491 | ||
12492 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12493 | PyObject *obj; | |
12494 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12495 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12496 | Py_INCREF(obj); | |
12497 | return Py_BuildValue((char *)""); | |
12498 | } | |
12499 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12500 | PyObject *resultobj; | |
12501 | wxEvent *arg1 = 0 ; | |
12502 | wxPropagationDisabler *result; | |
12503 | PyObject * obj0 = 0 ; | |
12504 | char *kwnames[] = { | |
12505 | (char *) "event", NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12510 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12511 | SWIG_fail; | |
d14a1e28 | 12512 | if (arg1 == NULL) { |
2f4c0a16 RD |
12513 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12514 | SWIG_fail; | |
d14a1e28 RD |
12515 | } |
12516 | { | |
12517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12518 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12519 | ||
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
2f4c0a16 | 12523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12524 | return resultobj; |
12525 | fail: | |
12526 | return NULL; | |
12527 | } | |
12528 | ||
12529 | ||
12530 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12531 | PyObject *resultobj; | |
12532 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12533 | PyObject * obj0 = 0 ; | |
12534 | char *kwnames[] = { | |
12535 | (char *) "self", NULL | |
12536 | }; | |
12537 | ||
12538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12541 | { |
12542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12543 | delete arg1; | |
12544 | ||
12545 | wxPyEndAllowThreads(__tstate); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | Py_INCREF(Py_None); resultobj = Py_None; | |
12549 | return resultobj; | |
12550 | fail: | |
12551 | return NULL; | |
12552 | } | |
12553 | ||
12554 | ||
12555 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12556 | PyObject *obj; | |
12557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12558 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12559 | Py_INCREF(obj); | |
12560 | return Py_BuildValue((char *)""); | |
12561 | } | |
12562 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12563 | PyObject *resultobj; | |
12564 | wxEvent *arg1 = 0 ; | |
12565 | wxPropagateOnce *result; | |
12566 | PyObject * obj0 = 0 ; | |
12567 | char *kwnames[] = { | |
12568 | (char *) "event", NULL | |
12569 | }; | |
12570 | ||
12571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12574 | SWIG_fail; | |
d14a1e28 | 12575 | if (arg1 == NULL) { |
2f4c0a16 RD |
12576 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12577 | SWIG_fail; | |
d14a1e28 RD |
12578 | } |
12579 | { | |
12580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12581 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12582 | ||
12583 | wxPyEndAllowThreads(__tstate); | |
12584 | if (PyErr_Occurred()) SWIG_fail; | |
12585 | } | |
2f4c0a16 | 12586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12587 | return resultobj; |
12588 | fail: | |
12589 | return NULL; | |
12590 | } | |
12591 | ||
12592 | ||
12593 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12594 | PyObject *resultobj; | |
12595 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12596 | PyObject * obj0 = 0 ; | |
12597 | char *kwnames[] = { | |
12598 | (char *) "self", NULL | |
12599 | }; | |
12600 | ||
12601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12604 | { |
12605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12606 | delete arg1; | |
12607 | ||
12608 | wxPyEndAllowThreads(__tstate); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
12611 | Py_INCREF(Py_None); resultobj = Py_None; | |
12612 | return resultobj; | |
12613 | fail: | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12619 | PyObject *obj; | |
12620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12621 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12622 | Py_INCREF(obj); | |
12623 | return Py_BuildValue((char *)""); | |
12624 | } | |
12625 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12626 | PyObject *resultobj; | |
12627 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12628 | int arg2 = (int) 0 ; | |
12629 | wxCommandEvent *result; | |
8edf1c75 RD |
12630 | PyObject * obj0 = 0 ; |
12631 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12632 | char *kwnames[] = { |
12633 | (char *) "commandType",(char *) "winid", NULL | |
12634 | }; | |
12635 | ||
8edf1c75 RD |
12636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12637 | if (obj0) { | |
2f4c0a16 RD |
12638 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12640 | } |
12641 | if (obj1) { | |
2f4c0a16 RD |
12642 | arg2 = (int) SWIG_AsInt(obj1); |
12643 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12644 | } |
d14a1e28 RD |
12645 | { |
12646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12647 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12648 | ||
12649 | wxPyEndAllowThreads(__tstate); | |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
12651 | } | |
2f4c0a16 | 12652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12653 | return resultobj; |
12654 | fail: | |
12655 | return NULL; | |
12656 | } | |
12657 | ||
12658 | ||
12659 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12660 | PyObject *resultobj; | |
12661 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12662 | int result; | |
12663 | PyObject * obj0 = 0 ; | |
12664 | char *kwnames[] = { | |
12665 | (char *) "self", NULL | |
12666 | }; | |
12667 | ||
12668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12671 | { |
12672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12673 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12674 | ||
12675 | wxPyEndAllowThreads(__tstate); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | } | |
2f4c0a16 | 12678 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12679 | return resultobj; |
12680 | fail: | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
12685 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12686 | PyObject *resultobj; | |
12687 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12688 | wxString *arg2 = 0 ; | |
423f194a | 12689 | bool temp2 = False ; |
d14a1e28 RD |
12690 | PyObject * obj0 = 0 ; |
12691 | PyObject * obj1 = 0 ; | |
12692 | char *kwnames[] = { | |
12693 | (char *) "self",(char *) "s", NULL | |
12694 | }; | |
12695 | ||
12696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12699 | { |
12700 | arg2 = wxString_in_helper(obj1); | |
12701 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12702 | temp2 = True; |
d14a1e28 RD |
12703 | } |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | (arg1)->SetString((wxString const &)*arg2); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | Py_INCREF(Py_None); resultobj = Py_None; | |
12712 | { | |
12713 | if (temp2) | |
12714 | delete arg2; | |
12715 | } | |
12716 | return resultobj; | |
12717 | fail: | |
12718 | { | |
12719 | if (temp2) | |
12720 | delete arg2; | |
12721 | } | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12727 | PyObject *resultobj; | |
12728 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12729 | wxString result; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12738 | { |
12739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12740 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | #if wxUSE_UNICODE | |
12747 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12748 | #else | |
12749 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12750 | #endif | |
12751 | } | |
12752 | return resultobj; | |
12753 | fail: | |
12754 | return NULL; | |
12755 | } | |
12756 | ||
12757 | ||
12758 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12759 | PyObject *resultobj; | |
12760 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12761 | bool result; | |
12762 | PyObject * obj0 = 0 ; | |
12763 | char *kwnames[] = { | |
12764 | (char *) "self", NULL | |
12765 | }; | |
12766 | ||
12767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12770 | { |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
4f89f6a3 RD |
12777 | { |
12778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12779 | } | |
d14a1e28 RD |
12780 | return resultobj; |
12781 | fail: | |
12782 | return NULL; | |
12783 | } | |
12784 | ||
12785 | ||
12786 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12787 | PyObject *resultobj; | |
12788 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12789 | bool result; | |
12790 | PyObject * obj0 = 0 ; | |
12791 | char *kwnames[] = { | |
12792 | (char *) "self", NULL | |
12793 | }; | |
12794 | ||
12795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12798 | { |
12799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12800 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12801 | ||
12802 | wxPyEndAllowThreads(__tstate); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | } | |
4f89f6a3 RD |
12805 | { |
12806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12807 | } | |
d14a1e28 RD |
12808 | return resultobj; |
12809 | fail: | |
12810 | return NULL; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12815 | PyObject *resultobj; | |
12816 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12817 | long arg2 ; | |
12818 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12820 | char *kwnames[] = { |
12821 | (char *) "self",(char *) "extraLong", NULL | |
12822 | }; | |
12823 | ||
8edf1c75 | 12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12827 | arg2 = (long) SWIG_AsLong(obj1); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12829 | { |
12830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12831 | (arg1)->SetExtraLong(arg2); | |
12832 | ||
12833 | wxPyEndAllowThreads(__tstate); | |
12834 | if (PyErr_Occurred()) SWIG_fail; | |
12835 | } | |
12836 | Py_INCREF(Py_None); resultobj = Py_None; | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
12843 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12844 | PyObject *resultobj; | |
12845 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12846 | long result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12855 | { |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
2f4c0a16 | 12862 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12863 | return resultobj; |
12864 | fail: | |
12865 | return NULL; | |
12866 | } | |
12867 | ||
12868 | ||
12869 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12870 | PyObject *resultobj; | |
12871 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12872 | int arg2 ; | |
12873 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12875 | char *kwnames[] = { |
12876 | (char *) "self",(char *) "i", NULL | |
12877 | }; | |
12878 | ||
8edf1c75 | 12879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12882 | arg2 = (int) SWIG_AsInt(obj1); | |
12883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12884 | { |
12885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12886 | (arg1)->SetInt(arg2); | |
12887 | ||
12888 | wxPyEndAllowThreads(__tstate); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | Py_INCREF(Py_None); resultobj = Py_None; | |
12892 | return resultobj; | |
12893 | fail: | |
12894 | return NULL; | |
12895 | } | |
12896 | ||
12897 | ||
12898 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12899 | PyObject *resultobj; | |
12900 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12901 | long result; | |
12902 | PyObject * obj0 = 0 ; | |
12903 | char *kwnames[] = { | |
12904 | (char *) "self", NULL | |
12905 | }; | |
12906 | ||
12907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12910 | { |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12913 | ||
12914 | wxPyEndAllowThreads(__tstate); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
2f4c0a16 | 12917 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12918 | return resultobj; |
12919 | fail: | |
12920 | return NULL; | |
12921 | } | |
12922 | ||
12923 | ||
12924 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12925 | PyObject *resultobj; | |
12926 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12927 | wxEvent *result; | |
12928 | PyObject * obj0 = 0 ; | |
12929 | char *kwnames[] = { | |
12930 | (char *) "self", NULL | |
12931 | }; | |
12932 | ||
12933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12936 | { |
12937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12938 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
12939 | ||
12940 | wxPyEndAllowThreads(__tstate); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
2f4c0a16 | 12943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12944 | return resultobj; |
12945 | fail: | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
12951 | PyObject *obj; | |
12952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12953 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
12954 | Py_INCREF(obj); | |
12955 | return Py_BuildValue((char *)""); | |
12956 | } | |
12957 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12958 | PyObject *resultobj; | |
12959 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12960 | int arg2 = (int) 0 ; | |
12961 | wxNotifyEvent *result; | |
8edf1c75 RD |
12962 | PyObject * obj0 = 0 ; |
12963 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12964 | char *kwnames[] = { |
12965 | (char *) "commandType",(char *) "winid", NULL | |
12966 | }; | |
12967 | ||
8edf1c75 RD |
12968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
12969 | if (obj0) { | |
2f4c0a16 RD |
12970 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12972 | } |
12973 | if (obj1) { | |
2f4c0a16 RD |
12974 | arg2 = (int) SWIG_AsInt(obj1); |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12976 | } |
d14a1e28 RD |
12977 | { |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
12980 | ||
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
2f4c0a16 | 12984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
12985 | return resultobj; |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
12994 | PyObject * obj0 = 0 ; | |
12995 | char *kwnames[] = { | |
12996 | (char *) "self", NULL | |
12997 | }; | |
12998 | ||
12999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13002 | { |
13003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13004 | (arg1)->Veto(); | |
13005 | ||
13006 | wxPyEndAllowThreads(__tstate); | |
13007 | if (PyErr_Occurred()) SWIG_fail; | |
13008 | } | |
13009 | Py_INCREF(Py_None); resultobj = Py_None; | |
13010 | return resultobj; | |
13011 | fail: | |
13012 | return NULL; | |
13013 | } | |
13014 | ||
13015 | ||
13016 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13017 | PyObject *resultobj; | |
13018 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13019 | PyObject * obj0 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "self", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13027 | { |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | (arg1)->Allow(); | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | Py_INCREF(Py_None); resultobj = Py_None; | |
13035 | return resultobj; | |
13036 | fail: | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13042 | PyObject *resultobj; | |
13043 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13044 | bool result; | |
13045 | PyObject * obj0 = 0 ; | |
13046 | char *kwnames[] = { | |
13047 | (char *) "self", NULL | |
13048 | }; | |
13049 | ||
13050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13053 | { |
13054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13055 | result = (bool)(arg1)->IsAllowed(); | |
13056 | ||
13057 | wxPyEndAllowThreads(__tstate); | |
13058 | if (PyErr_Occurred()) SWIG_fail; | |
13059 | } | |
4f89f6a3 RD |
13060 | { |
13061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13062 | } | |
d14a1e28 RD |
13063 | return resultobj; |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13070 | PyObject *obj; | |
13071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13072 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13073 | Py_INCREF(obj); | |
13074 | return Py_BuildValue((char *)""); | |
13075 | } | |
13076 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13077 | PyObject *resultobj; | |
13078 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13079 | int arg2 = (int) 0 ; | |
13080 | int arg3 = (int) 0 ; | |
13081 | int arg4 = (int) 0 ; | |
13082 | wxScrollEvent *result; | |
8edf1c75 RD |
13083 | PyObject * obj0 = 0 ; |
13084 | PyObject * obj1 = 0 ; | |
13085 | PyObject * obj2 = 0 ; | |
13086 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13087 | char *kwnames[] = { |
13088 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13089 | }; | |
13090 | ||
8edf1c75 RD |
13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13092 | if (obj0) { | |
2f4c0a16 RD |
13093 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13094 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13095 | } |
13096 | if (obj1) { | |
2f4c0a16 RD |
13097 | arg2 = (int) SWIG_AsInt(obj1); |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13099 | } |
13100 | if (obj2) { | |
2f4c0a16 RD |
13101 | arg3 = (int) SWIG_AsInt(obj2); |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13103 | } |
13104 | if (obj3) { | |
2f4c0a16 RD |
13105 | arg4 = (int) SWIG_AsInt(obj3); |
13106 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13107 | } |
d14a1e28 RD |
13108 | { |
13109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13110 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13111 | ||
13112 | wxPyEndAllowThreads(__tstate); | |
13113 | if (PyErr_Occurred()) SWIG_fail; | |
13114 | } | |
2f4c0a16 | 13115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13116 | return resultobj; |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
13122 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13123 | PyObject *resultobj; | |
13124 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13125 | int result; | |
13126 | PyObject * obj0 = 0 ; | |
13127 | char *kwnames[] = { | |
13128 | (char *) "self", NULL | |
13129 | }; | |
13130 | ||
13131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13134 | { |
13135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13136 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13137 | ||
13138 | wxPyEndAllowThreads(__tstate); | |
13139 | if (PyErr_Occurred()) SWIG_fail; | |
13140 | } | |
2f4c0a16 | 13141 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13142 | return resultobj; |
13143 | fail: | |
13144 | return NULL; | |
13145 | } | |
13146 | ||
13147 | ||
13148 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13149 | PyObject *resultobj; | |
13150 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13151 | int result; | |
13152 | PyObject * obj0 = 0 ; | |
13153 | char *kwnames[] = { | |
13154 | (char *) "self", NULL | |
13155 | }; | |
13156 | ||
13157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13160 | { |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13163 | ||
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
2f4c0a16 | 13167 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13168 | return resultobj; |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
13174 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13175 | PyObject *resultobj; | |
13176 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13177 | int arg2 ; | |
13178 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13179 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13180 | char *kwnames[] = { |
13181 | (char *) "self",(char *) "orient", NULL | |
13182 | }; | |
13183 | ||
8edf1c75 | 13184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13187 | arg2 = (int) SWIG_AsInt(obj1); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13189 | { |
13190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13191 | (arg1)->SetOrientation(arg2); | |
13192 | ||
13193 | wxPyEndAllowThreads(__tstate); | |
13194 | if (PyErr_Occurred()) SWIG_fail; | |
13195 | } | |
13196 | Py_INCREF(Py_None); resultobj = Py_None; | |
13197 | return resultobj; | |
13198 | fail: | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
13203 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13204 | PyObject *resultobj; | |
13205 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13206 | int arg2 ; | |
13207 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13208 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13209 | char *kwnames[] = { |
13210 | (char *) "self",(char *) "pos", NULL | |
13211 | }; | |
13212 | ||
8edf1c75 | 13213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13216 | arg2 = (int) SWIG_AsInt(obj1); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13218 | { |
13219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13220 | (arg1)->SetPosition(arg2); | |
13221 | ||
13222 | wxPyEndAllowThreads(__tstate); | |
13223 | if (PyErr_Occurred()) SWIG_fail; | |
13224 | } | |
13225 | Py_INCREF(Py_None); resultobj = Py_None; | |
13226 | return resultobj; | |
13227 | fail: | |
13228 | return NULL; | |
13229 | } | |
13230 | ||
13231 | ||
13232 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13233 | PyObject *obj; | |
13234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13235 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13236 | Py_INCREF(obj); | |
13237 | return Py_BuildValue((char *)""); | |
13238 | } | |
13239 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13240 | PyObject *resultobj; | |
13241 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13242 | int arg2 = (int) 0 ; | |
13243 | int arg3 = (int) 0 ; | |
13244 | wxScrollWinEvent *result; | |
8edf1c75 RD |
13245 | PyObject * obj0 = 0 ; |
13246 | PyObject * obj1 = 0 ; | |
13247 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13248 | char *kwnames[] = { |
13249 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13250 | }; | |
13251 | ||
8edf1c75 RD |
13252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13253 | if (obj0) { | |
2f4c0a16 RD |
13254 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13255 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13256 | } |
13257 | if (obj1) { | |
2f4c0a16 RD |
13258 | arg2 = (int) SWIG_AsInt(obj1); |
13259 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13260 | } |
13261 | if (obj2) { | |
2f4c0a16 RD |
13262 | arg3 = (int) SWIG_AsInt(obj2); |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13264 | } |
d14a1e28 RD |
13265 | { |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
2f4c0a16 | 13272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13273 | return resultobj; |
13274 | fail: | |
13275 | return NULL; | |
13276 | } | |
13277 | ||
13278 | ||
13279 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13280 | PyObject *resultobj; | |
13281 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13282 | int result; | |
13283 | PyObject * obj0 = 0 ; | |
13284 | char *kwnames[] = { | |
13285 | (char *) "self", NULL | |
13286 | }; | |
13287 | ||
13288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13291 | { |
13292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13293 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13294 | ||
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
2f4c0a16 | 13298 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13299 | return resultobj; |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj; | |
13307 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13308 | int result; | |
13309 | PyObject * obj0 = 0 ; | |
13310 | char *kwnames[] = { | |
13311 | (char *) "self", NULL | |
13312 | }; | |
13313 | ||
13314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13317 | { |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13319 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13320 | ||
13321 | wxPyEndAllowThreads(__tstate); | |
13322 | if (PyErr_Occurred()) SWIG_fail; | |
13323 | } | |
2f4c0a16 | 13324 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13325 | return resultobj; |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
13331 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13332 | PyObject *resultobj; | |
13333 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13334 | int arg2 ; | |
13335 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13337 | char *kwnames[] = { |
13338 | (char *) "self",(char *) "orient", NULL | |
13339 | }; | |
13340 | ||
8edf1c75 | 13341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13344 | arg2 = (int) SWIG_AsInt(obj1); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13346 | { |
13347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13348 | (arg1)->SetOrientation(arg2); | |
13349 | ||
13350 | wxPyEndAllowThreads(__tstate); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | } | |
13353 | Py_INCREF(Py_None); resultobj = Py_None; | |
13354 | return resultobj; | |
13355 | fail: | |
13356 | return NULL; | |
13357 | } | |
13358 | ||
13359 | ||
13360 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13361 | PyObject *resultobj; | |
13362 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13363 | int arg2 ; | |
13364 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13366 | char *kwnames[] = { |
13367 | (char *) "self",(char *) "pos", NULL | |
13368 | }; | |
13369 | ||
8edf1c75 | 13370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13373 | arg2 = (int) SWIG_AsInt(obj1); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13375 | { |
13376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13377 | (arg1)->SetPosition(arg2); | |
13378 | ||
13379 | wxPyEndAllowThreads(__tstate); | |
13380 | if (PyErr_Occurred()) SWIG_fail; | |
13381 | } | |
13382 | Py_INCREF(Py_None); resultobj = Py_None; | |
13383 | return resultobj; | |
13384 | fail: | |
13385 | return NULL; | |
13386 | } | |
13387 | ||
13388 | ||
13389 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13390 | PyObject *obj; | |
13391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13392 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13393 | Py_INCREF(obj); | |
13394 | return Py_BuildValue((char *)""); | |
13395 | } | |
13396 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13397 | PyObject *resultobj; | |
13398 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13399 | wxMouseEvent *result; | |
8edf1c75 | 13400 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13401 | char *kwnames[] = { |
13402 | (char *) "mouseType", NULL | |
13403 | }; | |
13404 | ||
8edf1c75 RD |
13405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13406 | if (obj0) { | |
2f4c0a16 RD |
13407 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13409 | } |
d14a1e28 RD |
13410 | { |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13413 | ||
13414 | wxPyEndAllowThreads(__tstate); | |
13415 | if (PyErr_Occurred()) SWIG_fail; | |
13416 | } | |
13417 | { | |
13418 | resultobj = wxPyMake_wxObject(result); | |
13419 | } | |
13420 | return resultobj; | |
13421 | fail: | |
13422 | return NULL; | |
13423 | } | |
13424 | ||
13425 | ||
13426 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13427 | PyObject *resultobj; | |
13428 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13429 | bool result; | |
13430 | PyObject * obj0 = 0 ; | |
13431 | char *kwnames[] = { | |
13432 | (char *) "self", NULL | |
13433 | }; | |
13434 | ||
13435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13438 | { |
13439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13440 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13441 | ||
13442 | wxPyEndAllowThreads(__tstate); | |
13443 | if (PyErr_Occurred()) SWIG_fail; | |
13444 | } | |
4f89f6a3 RD |
13445 | { |
13446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13447 | } | |
d14a1e28 RD |
13448 | return resultobj; |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13455 | PyObject *resultobj; | |
13456 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13457 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13458 | bool result; | |
13459 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13460 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13461 | char *kwnames[] = { |
13462 | (char *) "self",(char *) "but", NULL | |
13463 | }; | |
13464 | ||
8edf1c75 | 13465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13468 | if (obj1) { |
2f4c0a16 RD |
13469 | arg2 = (int) SWIG_AsInt(obj1); |
13470 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13471 | } |
d14a1e28 RD |
13472 | { |
13473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13474 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13475 | ||
13476 | wxPyEndAllowThreads(__tstate); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | } | |
4f89f6a3 RD |
13479 | { |
13480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13481 | } | |
d14a1e28 RD |
13482 | return resultobj; |
13483 | fail: | |
13484 | return NULL; | |
13485 | } | |
13486 | ||
13487 | ||
13488 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13489 | PyObject *resultobj; | |
13490 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13491 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13492 | bool result; | |
13493 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13495 | char *kwnames[] = { |
13496 | (char *) "self",(char *) "but", NULL | |
13497 | }; | |
13498 | ||
8edf1c75 | 13499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13502 | if (obj1) { |
2f4c0a16 RD |
13503 | arg2 = (int) SWIG_AsInt(obj1); |
13504 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13505 | } |
d14a1e28 RD |
13506 | { |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13509 | ||
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
4f89f6a3 RD |
13513 | { |
13514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13515 | } | |
d14a1e28 RD |
13516 | return resultobj; |
13517 | fail: | |
13518 | return NULL; | |
13519 | } | |
13520 | ||
13521 | ||
13522 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13523 | PyObject *resultobj; | |
13524 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13525 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13526 | bool result; | |
13527 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13528 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13529 | char *kwnames[] = { |
13530 | (char *) "self",(char *) "but", NULL | |
13531 | }; | |
13532 | ||
8edf1c75 | 13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 13536 | if (obj1) { |
2f4c0a16 RD |
13537 | arg2 = (int) SWIG_AsInt(obj1); |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13539 | } |
d14a1e28 RD |
13540 | { |
13541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13542 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13543 | ||
13544 | wxPyEndAllowThreads(__tstate); | |
13545 | if (PyErr_Occurred()) SWIG_fail; | |
13546 | } | |
4f89f6a3 RD |
13547 | { |
13548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13549 | } | |
d14a1e28 RD |
13550 | return resultobj; |
13551 | fail: | |
13552 | return NULL; | |
13553 | } | |
13554 | ||
13555 | ||
13556 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13557 | PyObject *resultobj; | |
13558 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13559 | int arg2 ; | |
13560 | bool result; | |
13561 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13563 | char *kwnames[] = { |
13564 | (char *) "self",(char *) "but", NULL | |
13565 | }; | |
13566 | ||
8edf1c75 | 13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13570 | arg2 = (int) SWIG_AsInt(obj1); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13572 | { |
13573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13574 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13575 | ||
13576 | wxPyEndAllowThreads(__tstate); | |
13577 | if (PyErr_Occurred()) SWIG_fail; | |
13578 | } | |
4f89f6a3 RD |
13579 | { |
13580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13581 | } | |
d14a1e28 RD |
13582 | return resultobj; |
13583 | fail: | |
13584 | return NULL; | |
13585 | } | |
13586 | ||
13587 | ||
13588 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13589 | PyObject *resultobj; | |
13590 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13591 | int arg2 ; | |
13592 | bool result; | |
13593 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13595 | char *kwnames[] = { |
13596 | (char *) "self",(char *) "but", NULL | |
13597 | }; | |
13598 | ||
8edf1c75 | 13599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13602 | arg2 = (int) SWIG_AsInt(obj1); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13604 | { |
13605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13606 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13607 | ||
13608 | wxPyEndAllowThreads(__tstate); | |
13609 | if (PyErr_Occurred()) SWIG_fail; | |
13610 | } | |
4f89f6a3 RD |
13611 | { |
13612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13613 | } | |
d14a1e28 RD |
13614 | return resultobj; |
13615 | fail: | |
13616 | return NULL; | |
13617 | } | |
13618 | ||
13619 | ||
13620 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13621 | PyObject *resultobj; | |
13622 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13623 | int result; | |
13624 | PyObject * obj0 = 0 ; | |
13625 | char *kwnames[] = { | |
13626 | (char *) "self", NULL | |
13627 | }; | |
13628 | ||
13629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13632 | { |
13633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13634 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13635 | ||
13636 | wxPyEndAllowThreads(__tstate); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | } | |
2f4c0a16 | 13639 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13640 | return resultobj; |
13641 | fail: | |
13642 | return NULL; | |
13643 | } | |
13644 | ||
13645 | ||
13646 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13647 | PyObject *resultobj; | |
13648 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13649 | bool result; | |
13650 | PyObject * obj0 = 0 ; | |
13651 | char *kwnames[] = { | |
13652 | (char *) "self", NULL | |
13653 | }; | |
13654 | ||
13655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13658 | { |
13659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13660 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13661 | ||
13662 | wxPyEndAllowThreads(__tstate); | |
13663 | if (PyErr_Occurred()) SWIG_fail; | |
13664 | } | |
4f89f6a3 RD |
13665 | { |
13666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13667 | } | |
d14a1e28 RD |
13668 | return resultobj; |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13675 | PyObject *resultobj; | |
13676 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13677 | bool result; | |
13678 | PyObject * obj0 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "self", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13686 | { |
13687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13688 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13689 | ||
13690 | wxPyEndAllowThreads(__tstate); | |
13691 | if (PyErr_Occurred()) SWIG_fail; | |
13692 | } | |
4f89f6a3 RD |
13693 | { |
13694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13695 | } | |
d14a1e28 RD |
13696 | return resultobj; |
13697 | fail: | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
13702 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13703 | PyObject *resultobj; | |
13704 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13705 | bool result; | |
13706 | PyObject * obj0 = 0 ; | |
13707 | char *kwnames[] = { | |
13708 | (char *) "self", NULL | |
13709 | }; | |
13710 | ||
13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13714 | { |
13715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13716 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13717 | ||
13718 | wxPyEndAllowThreads(__tstate); | |
13719 | if (PyErr_Occurred()) SWIG_fail; | |
13720 | } | |
4f89f6a3 RD |
13721 | { |
13722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13723 | } | |
d14a1e28 RD |
13724 | return resultobj; |
13725 | fail: | |
13726 | return NULL; | |
13727 | } | |
13728 | ||
13729 | ||
13730 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13731 | PyObject *resultobj; | |
13732 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13733 | bool result; | |
13734 | PyObject * obj0 = 0 ; | |
13735 | char *kwnames[] = { | |
13736 | (char *) "self", NULL | |
13737 | }; | |
13738 | ||
13739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13742 | { |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13745 | ||
13746 | wxPyEndAllowThreads(__tstate); | |
13747 | if (PyErr_Occurred()) SWIG_fail; | |
13748 | } | |
4f89f6a3 RD |
13749 | { |
13750 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13751 | } | |
d14a1e28 RD |
13752 | return resultobj; |
13753 | fail: | |
13754 | return NULL; | |
13755 | } | |
13756 | ||
13757 | ||
13758 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13759 | PyObject *resultobj; | |
13760 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13761 | bool result; | |
13762 | PyObject * obj0 = 0 ; | |
13763 | char *kwnames[] = { | |
13764 | (char *) "self", NULL | |
13765 | }; | |
13766 | ||
13767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13770 | { |
13771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13772 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13773 | ||
13774 | wxPyEndAllowThreads(__tstate); | |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
13776 | } | |
4f89f6a3 RD |
13777 | { |
13778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13779 | } | |
d14a1e28 RD |
13780 | return resultobj; |
13781 | fail: | |
13782 | return NULL; | |
13783 | } | |
13784 | ||
13785 | ||
13786 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13787 | PyObject *resultobj; | |
13788 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13789 | bool result; | |
13790 | PyObject * obj0 = 0 ; | |
13791 | char *kwnames[] = { | |
13792 | (char *) "self", NULL | |
13793 | }; | |
13794 | ||
13795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13798 | { |
13799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13800 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13801 | ||
13802 | wxPyEndAllowThreads(__tstate); | |
13803 | if (PyErr_Occurred()) SWIG_fail; | |
13804 | } | |
4f89f6a3 RD |
13805 | { |
13806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13807 | } | |
d14a1e28 RD |
13808 | return resultobj; |
13809 | fail: | |
13810 | return NULL; | |
13811 | } | |
13812 | ||
13813 | ||
13814 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13815 | PyObject *resultobj; | |
13816 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13817 | bool result; | |
13818 | PyObject * obj0 = 0 ; | |
13819 | char *kwnames[] = { | |
13820 | (char *) "self", NULL | |
13821 | }; | |
13822 | ||
13823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13826 | { |
13827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13828 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13829 | ||
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
4f89f6a3 RD |
13833 | { |
13834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13835 | } | |
d14a1e28 RD |
13836 | return resultobj; |
13837 | fail: | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
13842 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13845 | bool result; | |
13846 | PyObject * obj0 = 0 ; | |
13847 | char *kwnames[] = { | |
13848 | (char *) "self", NULL | |
13849 | }; | |
13850 | ||
13851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13854 | { |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
4f89f6a3 RD |
13861 | { |
13862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13863 | } | |
d14a1e28 RD |
13864 | return resultobj; |
13865 | fail: | |
13866 | return NULL; | |
13867 | } | |
13868 | ||
13869 | ||
13870 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13871 | PyObject *resultobj; | |
13872 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13873 | bool result; | |
13874 | PyObject * obj0 = 0 ; | |
13875 | char *kwnames[] = { | |
13876 | (char *) "self", NULL | |
13877 | }; | |
13878 | ||
13879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13882 | { |
13883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13884 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13885 | ||
13886 | wxPyEndAllowThreads(__tstate); | |
13887 | if (PyErr_Occurred()) SWIG_fail; | |
13888 | } | |
4f89f6a3 RD |
13889 | { |
13890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13891 | } | |
d14a1e28 RD |
13892 | return resultobj; |
13893 | fail: | |
13894 | return NULL; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13899 | PyObject *resultobj; | |
13900 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13901 | bool result; | |
13902 | PyObject * obj0 = 0 ; | |
13903 | char *kwnames[] = { | |
13904 | (char *) "self", NULL | |
13905 | }; | |
13906 | ||
13907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13910 | { |
13911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13912 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13913 | ||
13914 | wxPyEndAllowThreads(__tstate); | |
13915 | if (PyErr_Occurred()) SWIG_fail; | |
13916 | } | |
4f89f6a3 RD |
13917 | { |
13918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13919 | } | |
d14a1e28 RD |
13920 | return resultobj; |
13921 | fail: | |
13922 | return NULL; | |
13923 | } | |
13924 | ||
13925 | ||
13926 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13927 | PyObject *resultobj; | |
13928 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13929 | bool result; | |
13930 | PyObject * obj0 = 0 ; | |
13931 | char *kwnames[] = { | |
13932 | (char *) "self", NULL | |
13933 | }; | |
13934 | ||
13935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13938 | { |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
4f89f6a3 RD |
13945 | { |
13946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13947 | } | |
d14a1e28 RD |
13948 | return resultobj; |
13949 | fail: | |
13950 | return NULL; | |
13951 | } | |
13952 | ||
13953 | ||
13954 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13955 | PyObject *resultobj; | |
13956 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13957 | bool result; | |
13958 | PyObject * obj0 = 0 ; | |
13959 | char *kwnames[] = { | |
13960 | (char *) "self", NULL | |
13961 | }; | |
13962 | ||
13963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13966 | { |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
4f89f6a3 RD |
13973 | { |
13974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13975 | } | |
d14a1e28 RD |
13976 | return resultobj; |
13977 | fail: | |
13978 | return NULL; | |
13979 | } | |
13980 | ||
13981 | ||
13982 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13983 | PyObject *resultobj; | |
13984 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13985 | bool result; | |
13986 | PyObject * obj0 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13994 | { |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
4f89f6a3 RD |
14001 | { |
14002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14003 | } | |
d14a1e28 RD |
14004 | return resultobj; |
14005 | fail: | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14011 | PyObject *resultobj; | |
14012 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14013 | bool result; | |
14014 | PyObject * obj0 = 0 ; | |
14015 | char *kwnames[] = { | |
14016 | (char *) "self", NULL | |
14017 | }; | |
14018 | ||
14019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14022 | { |
14023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14024 | result = (bool)(arg1)->LeftIsDown(); | |
14025 | ||
14026 | wxPyEndAllowThreads(__tstate); | |
14027 | if (PyErr_Occurred()) SWIG_fail; | |
14028 | } | |
4f89f6a3 RD |
14029 | { |
14030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14031 | } | |
d14a1e28 RD |
14032 | return resultobj; |
14033 | fail: | |
14034 | return NULL; | |
14035 | } | |
14036 | ||
14037 | ||
14038 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14039 | PyObject *resultobj; | |
14040 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14041 | bool result; | |
14042 | PyObject * obj0 = 0 ; | |
14043 | char *kwnames[] = { | |
14044 | (char *) "self", NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14050 | { |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (bool)(arg1)->MiddleIsDown(); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
4f89f6a3 RD |
14057 | { |
14058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14059 | } | |
d14a1e28 RD |
14060 | return resultobj; |
14061 | fail: | |
14062 | return NULL; | |
14063 | } | |
14064 | ||
14065 | ||
14066 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14067 | PyObject *resultobj; | |
14068 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14069 | bool result; | |
14070 | PyObject * obj0 = 0 ; | |
14071 | char *kwnames[] = { | |
14072 | (char *) "self", NULL | |
14073 | }; | |
14074 | ||
14075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14078 | { |
14079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14080 | result = (bool)(arg1)->RightIsDown(); | |
14081 | ||
14082 | wxPyEndAllowThreads(__tstate); | |
14083 | if (PyErr_Occurred()) SWIG_fail; | |
14084 | } | |
4f89f6a3 RD |
14085 | { |
14086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14087 | } | |
d14a1e28 RD |
14088 | return resultobj; |
14089 | fail: | |
14090 | return NULL; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14095 | PyObject *resultobj; | |
14096 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14097 | bool result; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | char *kwnames[] = { | |
14100 | (char *) "self", NULL | |
14101 | }; | |
14102 | ||
14103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14106 | { |
14107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14108 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14109 | ||
14110 | wxPyEndAllowThreads(__tstate); | |
14111 | if (PyErr_Occurred()) SWIG_fail; | |
14112 | } | |
4f89f6a3 RD |
14113 | { |
14114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14115 | } | |
d14a1e28 RD |
14116 | return resultobj; |
14117 | fail: | |
14118 | return NULL; | |
14119 | } | |
14120 | ||
14121 | ||
14122 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14123 | PyObject *resultobj; | |
14124 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14125 | bool result; | |
14126 | PyObject * obj0 = 0 ; | |
14127 | char *kwnames[] = { | |
14128 | (char *) "self", NULL | |
14129 | }; | |
14130 | ||
14131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14134 | { |
14135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14136 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14137 | ||
14138 | wxPyEndAllowThreads(__tstate); | |
14139 | if (PyErr_Occurred()) SWIG_fail; | |
14140 | } | |
4f89f6a3 RD |
14141 | { |
14142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14143 | } | |
d14a1e28 RD |
14144 | return resultobj; |
14145 | fail: | |
14146 | return NULL; | |
14147 | } | |
14148 | ||
14149 | ||
14150 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14151 | PyObject *resultobj; | |
14152 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14153 | bool result; | |
14154 | PyObject * obj0 = 0 ; | |
14155 | char *kwnames[] = { | |
14156 | (char *) "self", NULL | |
14157 | }; | |
14158 | ||
14159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14162 | { |
14163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14164 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14165 | ||
14166 | wxPyEndAllowThreads(__tstate); | |
14167 | if (PyErr_Occurred()) SWIG_fail; | |
14168 | } | |
4f89f6a3 RD |
14169 | { |
14170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14171 | } | |
d14a1e28 RD |
14172 | return resultobj; |
14173 | fail: | |
14174 | return NULL; | |
14175 | } | |
14176 | ||
14177 | ||
14178 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14179 | PyObject *resultobj; | |
14180 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14181 | bool result; | |
14182 | PyObject * obj0 = 0 ; | |
14183 | char *kwnames[] = { | |
14184 | (char *) "self", NULL | |
14185 | }; | |
14186 | ||
14187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14190 | { |
14191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14192 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14193 | ||
14194 | wxPyEndAllowThreads(__tstate); | |
14195 | if (PyErr_Occurred()) SWIG_fail; | |
14196 | } | |
4f89f6a3 RD |
14197 | { |
14198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14199 | } | |
d14a1e28 RD |
14200 | return resultobj; |
14201 | fail: | |
14202 | return NULL; | |
14203 | } | |
14204 | ||
14205 | ||
14206 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14207 | PyObject *resultobj; | |
14208 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14209 | wxPoint result; | |
14210 | PyObject * obj0 = 0 ; | |
14211 | char *kwnames[] = { | |
14212 | (char *) "self", NULL | |
14213 | }; | |
14214 | ||
14215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14218 | { |
14219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14220 | result = (arg1)->GetPosition(); | |
14221 | ||
14222 | wxPyEndAllowThreads(__tstate); | |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | } | |
14225 | { | |
14226 | wxPoint * resultptr; | |
14227 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14228 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14229 | } |
14230 | return resultobj; | |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
14236 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14237 | PyObject *resultobj; | |
14238 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14239 | long *arg2 = (long *) 0 ; | |
14240 | long *arg3 = (long *) 0 ; | |
14241 | long temp2 ; | |
14242 | long temp3 ; | |
14243 | PyObject * obj0 = 0 ; | |
14244 | char *kwnames[] = { | |
14245 | (char *) "self", NULL | |
14246 | }; | |
14247 | ||
14248 | arg2 = &temp2; | |
14249 | arg3 = &temp3; | |
14250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14253 | { |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | (arg1)->GetPosition(arg2,arg3); | |
14256 | ||
14257 | wxPyEndAllowThreads(__tstate); | |
14258 | if (PyErr_Occurred()) SWIG_fail; | |
14259 | } | |
14260 | Py_INCREF(Py_None); resultobj = Py_None; | |
14261 | { | |
14262 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14263 | resultobj = t_output_helper(resultobj,o); | |
14264 | } | |
14265 | { | |
14266 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14267 | resultobj = t_output_helper(resultobj,o); | |
14268 | } | |
14269 | return resultobj; | |
14270 | fail: | |
14271 | return NULL; | |
14272 | } | |
14273 | ||
14274 | ||
14275 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14276 | PyObject *resultobj; | |
14277 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14278 | wxDC *arg2 = 0 ; | |
14279 | wxPoint result; | |
14280 | PyObject * obj0 = 0 ; | |
14281 | PyObject * obj1 = 0 ; | |
14282 | char *kwnames[] = { | |
14283 | (char *) "self",(char *) "dc", NULL | |
14284 | }; | |
14285 | ||
14286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14290 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14291 | SWIG_fail; | |
d14a1e28 | 14292 | if (arg2 == NULL) { |
2f4c0a16 RD |
14293 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14294 | SWIG_fail; | |
d14a1e28 RD |
14295 | } |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | { | |
14304 | wxPoint * resultptr; | |
14305 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14307 | } |
14308 | return resultobj; | |
14309 | fail: | |
14310 | return NULL; | |
14311 | } | |
14312 | ||
14313 | ||
14314 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14315 | PyObject *resultobj; | |
14316 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14317 | int result; |
d14a1e28 RD |
14318 | PyObject * obj0 = 0 ; |
14319 | char *kwnames[] = { | |
14320 | (char *) "self", NULL | |
14321 | }; | |
14322 | ||
14323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14326 | { |
14327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14328 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14329 | |
14330 | wxPyEndAllowThreads(__tstate); | |
14331 | if (PyErr_Occurred()) SWIG_fail; | |
14332 | } | |
2f4c0a16 | 14333 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14334 | return resultobj; |
14335 | fail: | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj; | |
14342 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14343 | int result; |
d14a1e28 RD |
14344 | PyObject * obj0 = 0 ; |
14345 | char *kwnames[] = { | |
14346 | (char *) "self", NULL | |
14347 | }; | |
14348 | ||
14349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14352 | { |
14353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14354 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14355 | |
14356 | wxPyEndAllowThreads(__tstate); | |
14357 | if (PyErr_Occurred()) SWIG_fail; | |
14358 | } | |
2f4c0a16 | 14359 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14360 | return resultobj; |
14361 | fail: | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14369 | int result; | |
14370 | PyObject * obj0 = 0 ; | |
14371 | char *kwnames[] = { | |
14372 | (char *) "self", NULL | |
14373 | }; | |
14374 | ||
14375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14378 | { |
14379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14380 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14381 | ||
14382 | wxPyEndAllowThreads(__tstate); | |
14383 | if (PyErr_Occurred()) SWIG_fail; | |
14384 | } | |
2f4c0a16 | 14385 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14386 | return resultobj; |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14395 | int result; | |
14396 | PyObject * obj0 = 0 ; | |
14397 | char *kwnames[] = { | |
14398 | (char *) "self", NULL | |
14399 | }; | |
14400 | ||
14401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14404 | { |
14405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14406 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14407 | ||
14408 | wxPyEndAllowThreads(__tstate); | |
14409 | if (PyErr_Occurred()) SWIG_fail; | |
14410 | } | |
2f4c0a16 | 14411 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14412 | return resultobj; |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14421 | int result; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "self", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14430 | { |
14431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14432 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14433 | ||
14434 | wxPyEndAllowThreads(__tstate); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
2f4c0a16 | 14437 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14438 | return resultobj; |
14439 | fail: | |
14440 | return NULL; | |
14441 | } | |
14442 | ||
14443 | ||
14444 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14445 | PyObject *resultobj; | |
14446 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14447 | bool result; | |
14448 | PyObject * obj0 = 0 ; | |
14449 | char *kwnames[] = { | |
14450 | (char *) "self", NULL | |
14451 | }; | |
14452 | ||
14453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14456 | { |
14457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14458 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14459 | ||
14460 | wxPyEndAllowThreads(__tstate); | |
14461 | if (PyErr_Occurred()) SWIG_fail; | |
14462 | } | |
4f89f6a3 RD |
14463 | { |
14464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14465 | } | |
d14a1e28 RD |
14466 | return resultobj; |
14467 | fail: | |
14468 | return NULL; | |
14469 | } | |
14470 | ||
14471 | ||
14472 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14473 | PyObject *resultobj; | |
14474 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14475 | int arg2 ; |
d14a1e28 | 14476 | PyObject * obj0 = 0 ; |
8edf1c75 | 14477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14478 | char *kwnames[] = { |
14479 | (char *) "self",(char *) "m_x", NULL | |
14480 | }; | |
14481 | ||
8edf1c75 | 14482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14485 | arg2 = (int) SWIG_AsInt(obj1); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14487 | if (arg1) (arg1)->m_x = arg2; |
14488 | ||
14489 | Py_INCREF(Py_None); resultobj = Py_None; | |
14490 | return resultobj; | |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
14496 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14497 | PyObject *resultobj; | |
14498 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14499 | int result; |
d14a1e28 RD |
14500 | PyObject * obj0 = 0 ; |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14508 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14509 | |
2f4c0a16 | 14510 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14511 | return resultobj; |
14512 | fail: | |
14513 | return NULL; | |
14514 | } | |
14515 | ||
14516 | ||
14517 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14518 | PyObject *resultobj; | |
14519 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14520 | int arg2 ; |
d14a1e28 | 14521 | PyObject * obj0 = 0 ; |
8edf1c75 | 14522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14523 | char *kwnames[] = { |
14524 | (char *) "self",(char *) "m_y", NULL | |
14525 | }; | |
14526 | ||
8edf1c75 | 14527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14530 | arg2 = (int) SWIG_AsInt(obj1); | |
14531 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14532 | if (arg1) (arg1)->m_y = arg2; |
14533 | ||
14534 | Py_INCREF(Py_None); resultobj = Py_None; | |
14535 | return resultobj; | |
14536 | fail: | |
14537 | return NULL; | |
14538 | } | |
14539 | ||
14540 | ||
14541 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14542 | PyObject *resultobj; | |
14543 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
423f194a | 14544 | int result; |
d14a1e28 RD |
14545 | PyObject * obj0 = 0 ; |
14546 | char *kwnames[] = { | |
14547 | (char *) "self", NULL | |
14548 | }; | |
14549 | ||
14550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 14553 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14554 | |
2f4c0a16 | 14555 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14556 | return resultobj; |
14557 | fail: | |
14558 | return NULL; | |
14559 | } | |
14560 | ||
14561 | ||
14562 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14563 | PyObject *resultobj; | |
14564 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14565 | bool arg2 ; | |
14566 | PyObject * obj0 = 0 ; | |
14567 | PyObject * obj1 = 0 ; | |
14568 | char *kwnames[] = { | |
14569 | (char *) "self",(char *) "m_leftDown", NULL | |
14570 | }; | |
14571 | ||
14572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14575 | arg2 = (bool) SWIG_AsBool(obj1); | |
14576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14577 | if (arg1) (arg1)->m_leftDown = arg2; |
14578 | ||
14579 | Py_INCREF(Py_None); resultobj = Py_None; | |
14580 | return resultobj; | |
14581 | fail: | |
14582 | return NULL; | |
14583 | } | |
14584 | ||
14585 | ||
14586 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14587 | PyObject *resultobj; | |
14588 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14589 | bool result; | |
14590 | PyObject * obj0 = 0 ; | |
14591 | char *kwnames[] = { | |
14592 | (char *) "self", NULL | |
14593 | }; | |
14594 | ||
14595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14598 | result = (bool) ((arg1)->m_leftDown); |
14599 | ||
4f89f6a3 RD |
14600 | { |
14601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14602 | } | |
d14a1e28 RD |
14603 | return resultobj; |
14604 | fail: | |
14605 | return NULL; | |
14606 | } | |
14607 | ||
14608 | ||
14609 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14610 | PyObject *resultobj; | |
14611 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14612 | bool arg2 ; | |
14613 | PyObject * obj0 = 0 ; | |
14614 | PyObject * obj1 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self",(char *) "m_middleDown", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14622 | arg2 = (bool) SWIG_AsBool(obj1); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14624 | if (arg1) (arg1)->m_middleDown = arg2; |
14625 | ||
14626 | Py_INCREF(Py_None); resultobj = Py_None; | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14634 | PyObject *resultobj; | |
14635 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14636 | bool result; | |
14637 | PyObject * obj0 = 0 ; | |
14638 | char *kwnames[] = { | |
14639 | (char *) "self", NULL | |
14640 | }; | |
14641 | ||
14642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14645 | result = (bool) ((arg1)->m_middleDown); |
14646 | ||
4f89f6a3 RD |
14647 | { |
14648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14649 | } | |
d14a1e28 RD |
14650 | return resultobj; |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
14656 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14657 | PyObject *resultobj; | |
14658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14659 | bool arg2 ; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | PyObject * obj1 = 0 ; | |
14662 | char *kwnames[] = { | |
14663 | (char *) "self",(char *) "m_rightDown", NULL | |
14664 | }; | |
14665 | ||
14666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14669 | arg2 = (bool) SWIG_AsBool(obj1); | |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14671 | if (arg1) (arg1)->m_rightDown = arg2; |
14672 | ||
14673 | Py_INCREF(Py_None); resultobj = Py_None; | |
14674 | return resultobj; | |
14675 | fail: | |
14676 | return NULL; | |
14677 | } | |
14678 | ||
14679 | ||
14680 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14681 | PyObject *resultobj; | |
14682 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14683 | bool result; | |
14684 | PyObject * obj0 = 0 ; | |
14685 | char *kwnames[] = { | |
14686 | (char *) "self", NULL | |
14687 | }; | |
14688 | ||
14689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14692 | result = (bool) ((arg1)->m_rightDown); |
14693 | ||
4f89f6a3 RD |
14694 | { |
14695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14696 | } | |
d14a1e28 RD |
14697 | return resultobj; |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14704 | PyObject *resultobj; | |
14705 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14706 | bool arg2 ; | |
14707 | PyObject * obj0 = 0 ; | |
14708 | PyObject * obj1 = 0 ; | |
14709 | char *kwnames[] = { | |
14710 | (char *) "self",(char *) "m_controlDown", NULL | |
14711 | }; | |
14712 | ||
14713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14716 | arg2 = (bool) SWIG_AsBool(obj1); | |
14717 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14718 | if (arg1) (arg1)->m_controlDown = arg2; |
14719 | ||
14720 | Py_INCREF(Py_None); resultobj = Py_None; | |
14721 | return resultobj; | |
14722 | fail: | |
14723 | return NULL; | |
14724 | } | |
14725 | ||
14726 | ||
14727 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14728 | PyObject *resultobj; | |
14729 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14730 | bool result; | |
14731 | PyObject * obj0 = 0 ; | |
14732 | char *kwnames[] = { | |
14733 | (char *) "self", NULL | |
14734 | }; | |
14735 | ||
14736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14739 | result = (bool) ((arg1)->m_controlDown); |
14740 | ||
4f89f6a3 RD |
14741 | { |
14742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14743 | } | |
d14a1e28 RD |
14744 | return resultobj; |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
14750 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14751 | PyObject *resultobj; | |
14752 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14753 | bool arg2 ; | |
14754 | PyObject * obj0 = 0 ; | |
14755 | PyObject * obj1 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "self",(char *) "m_shiftDown", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14763 | arg2 = (bool) SWIG_AsBool(obj1); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14765 | if (arg1) (arg1)->m_shiftDown = arg2; |
14766 | ||
14767 | Py_INCREF(Py_None); resultobj = Py_None; | |
14768 | return resultobj; | |
14769 | fail: | |
14770 | return NULL; | |
14771 | } | |
14772 | ||
14773 | ||
14774 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14775 | PyObject *resultobj; | |
14776 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14777 | bool result; | |
14778 | PyObject * obj0 = 0 ; | |
14779 | char *kwnames[] = { | |
14780 | (char *) "self", NULL | |
14781 | }; | |
14782 | ||
14783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14786 | result = (bool) ((arg1)->m_shiftDown); |
14787 | ||
4f89f6a3 RD |
14788 | { |
14789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14790 | } | |
d14a1e28 RD |
14791 | return resultobj; |
14792 | fail: | |
14793 | return NULL; | |
14794 | } | |
14795 | ||
14796 | ||
14797 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14798 | PyObject *resultobj; | |
14799 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14800 | bool arg2 ; | |
14801 | PyObject * obj0 = 0 ; | |
14802 | PyObject * obj1 = 0 ; | |
14803 | char *kwnames[] = { | |
14804 | (char *) "self",(char *) "m_altDown", NULL | |
14805 | }; | |
14806 | ||
14807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14810 | arg2 = (bool) SWIG_AsBool(obj1); | |
14811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14812 | if (arg1) (arg1)->m_altDown = arg2; |
14813 | ||
14814 | Py_INCREF(Py_None); resultobj = Py_None; | |
14815 | return resultobj; | |
14816 | fail: | |
14817 | return NULL; | |
14818 | } | |
14819 | ||
14820 | ||
14821 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14822 | PyObject *resultobj; | |
14823 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14824 | bool result; | |
14825 | PyObject * obj0 = 0 ; | |
14826 | char *kwnames[] = { | |
14827 | (char *) "self", NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14833 | result = (bool) ((arg1)->m_altDown); |
14834 | ||
4f89f6a3 RD |
14835 | { |
14836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14837 | } | |
d14a1e28 RD |
14838 | return resultobj; |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
14844 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14845 | PyObject *resultobj; | |
14846 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14847 | bool arg2 ; | |
14848 | PyObject * obj0 = 0 ; | |
14849 | PyObject * obj1 = 0 ; | |
14850 | char *kwnames[] = { | |
14851 | (char *) "self",(char *) "m_metaDown", NULL | |
14852 | }; | |
14853 | ||
14854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14857 | arg2 = (bool) SWIG_AsBool(obj1); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14859 | if (arg1) (arg1)->m_metaDown = arg2; |
14860 | ||
14861 | Py_INCREF(Py_None); resultobj = Py_None; | |
14862 | return resultobj; | |
14863 | fail: | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
14868 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14869 | PyObject *resultobj; | |
14870 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14871 | bool result; | |
14872 | PyObject * obj0 = 0 ; | |
14873 | char *kwnames[] = { | |
14874 | (char *) "self", NULL | |
14875 | }; | |
14876 | ||
14877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14880 | result = (bool) ((arg1)->m_metaDown); |
14881 | ||
4f89f6a3 RD |
14882 | { |
14883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14884 | } | |
d14a1e28 RD |
14885 | return resultobj; |
14886 | fail: | |
14887 | return NULL; | |
14888 | } | |
14889 | ||
14890 | ||
14891 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14892 | PyObject *resultobj; | |
14893 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14894 | int arg2 ; | |
14895 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14897 | char *kwnames[] = { |
14898 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14899 | }; | |
14900 | ||
8edf1c75 | 14901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14904 | arg2 = (int) SWIG_AsInt(obj1); | |
14905 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14906 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14907 | ||
14908 | Py_INCREF(Py_None); resultobj = Py_None; | |
14909 | return resultobj; | |
14910 | fail: | |
14911 | return NULL; | |
14912 | } | |
14913 | ||
14914 | ||
14915 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14916 | PyObject *resultobj; | |
14917 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14918 | int result; | |
14919 | PyObject * obj0 = 0 ; | |
14920 | char *kwnames[] = { | |
14921 | (char *) "self", NULL | |
14922 | }; | |
14923 | ||
14924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14927 | result = (int) ((arg1)->m_wheelRotation); |
14928 | ||
2f4c0a16 | 14929 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14930 | return resultobj; |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
14936 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14937 | PyObject *resultobj; | |
14938 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14939 | int arg2 ; | |
14940 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14942 | char *kwnames[] = { |
14943 | (char *) "self",(char *) "m_wheelDelta", NULL | |
14944 | }; | |
14945 | ||
8edf1c75 | 14946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14949 | arg2 = (int) SWIG_AsInt(obj1); | |
14950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14951 | if (arg1) (arg1)->m_wheelDelta = arg2; |
14952 | ||
14953 | Py_INCREF(Py_None); resultobj = Py_None; | |
14954 | return resultobj; | |
14955 | fail: | |
14956 | return NULL; | |
14957 | } | |
14958 | ||
14959 | ||
14960 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14961 | PyObject *resultobj; | |
14962 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14963 | int result; | |
14964 | PyObject * obj0 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14972 | result = (int) ((arg1)->m_wheelDelta); |
14973 | ||
2f4c0a16 | 14974 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14975 | return resultobj; |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
14981 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14982 | PyObject *resultobj; | |
14983 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14984 | int arg2 ; | |
14985 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14986 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14987 | char *kwnames[] = { |
14988 | (char *) "self",(char *) "m_linesPerAction", NULL | |
14989 | }; | |
14990 | ||
8edf1c75 | 14991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14994 | arg2 = (int) SWIG_AsInt(obj1); | |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14996 | if (arg1) (arg1)->m_linesPerAction = arg2; |
14997 | ||
14998 | Py_INCREF(Py_None); resultobj = Py_None; | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj; | |
15007 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15008 | int result; | |
15009 | PyObject * obj0 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15017 | result = (int) ((arg1)->m_linesPerAction); |
15018 | ||
2f4c0a16 | 15019 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15020 | return resultobj; |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
15026 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15027 | PyObject *obj; | |
15028 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15029 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15030 | Py_INCREF(obj); | |
15031 | return Py_BuildValue((char *)""); | |
15032 | } | |
15033 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15034 | PyObject *resultobj; | |
423f194a RD |
15035 | int arg1 = (int) 0 ; |
15036 | int arg2 = (int) 0 ; | |
d14a1e28 | 15037 | wxSetCursorEvent *result; |
8edf1c75 RD |
15038 | PyObject * obj0 = 0 ; |
15039 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15040 | char *kwnames[] = { |
15041 | (char *) "x",(char *) "y", NULL | |
15042 | }; | |
15043 | ||
8edf1c75 RD |
15044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15045 | if (obj0) { | |
2f4c0a16 RD |
15046 | arg1 = (int) SWIG_AsInt(obj0); |
15047 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
15048 | } |
15049 | if (obj1) { | |
2f4c0a16 RD |
15050 | arg2 = (int) SWIG_AsInt(obj1); |
15051 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15052 | } |
d14a1e28 RD |
15053 | { |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
2f4c0a16 | 15060 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15061 | return resultobj; |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 15070 | int result; |
d14a1e28 RD |
15071 | PyObject * obj0 = 0 ; |
15072 | char *kwnames[] = { | |
15073 | (char *) "self", NULL | |
15074 | }; | |
15075 | ||
15076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15079 | { |
15080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15081 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15082 | |
15083 | wxPyEndAllowThreads(__tstate); | |
15084 | if (PyErr_Occurred()) SWIG_fail; | |
15085 | } | |
2f4c0a16 | 15086 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15087 | return resultobj; |
15088 | fail: | |
15089 | return NULL; | |
15090 | } | |
15091 | ||
15092 | ||
15093 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15094 | PyObject *resultobj; | |
15095 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
423f194a | 15096 | int result; |
d14a1e28 RD |
15097 | PyObject * obj0 = 0 ; |
15098 | char *kwnames[] = { | |
15099 | (char *) "self", NULL | |
15100 | }; | |
15101 | ||
15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15105 | { |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15107 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15108 | |
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
2f4c0a16 | 15112 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15113 | return resultobj; |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15122 | wxCursor *arg2 = 0 ; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | PyObject * obj1 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self",(char *) "cursor", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15134 | SWIG_fail; | |
d14a1e28 | 15135 | if (arg2 == NULL) { |
2f4c0a16 RD |
15136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15137 | SWIG_fail; | |
d14a1e28 RD |
15138 | } |
15139 | { | |
15140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15141 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15142 | ||
15143 | wxPyEndAllowThreads(__tstate); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
15146 | Py_INCREF(Py_None); resultobj = Py_None; | |
15147 | return resultobj; | |
15148 | fail: | |
15149 | return NULL; | |
15150 | } | |
15151 | ||
15152 | ||
15153 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15154 | PyObject *resultobj; | |
15155 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15156 | wxCursor *result; | |
15157 | PyObject * obj0 = 0 ; | |
15158 | char *kwnames[] = { | |
15159 | (char *) "self", NULL | |
15160 | }; | |
15161 | ||
15162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15165 | { |
15166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15167 | { | |
15168 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15169 | result = (wxCursor *) &_result_ref; | |
15170 | } | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
fe763115 RD |
15175 | { |
15176 | wxCursor* resultptr = new wxCursor(*result); | |
15177 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15178 | } | |
d14a1e28 RD |
15179 | return resultobj; |
15180 | fail: | |
15181 | return NULL; | |
15182 | } | |
15183 | ||
15184 | ||
15185 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15186 | PyObject *resultobj; | |
15187 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15188 | bool result; | |
15189 | PyObject * obj0 = 0 ; | |
15190 | char *kwnames[] = { | |
15191 | (char *) "self", NULL | |
15192 | }; | |
15193 | ||
15194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15197 | { |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
4f89f6a3 RD |
15204 | { |
15205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15206 | } | |
d14a1e28 RD |
15207 | return resultobj; |
15208 | fail: | |
15209 | return NULL; | |
15210 | } | |
15211 | ||
15212 | ||
15213 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15214 | PyObject *obj; | |
15215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15216 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15217 | Py_INCREF(obj); | |
15218 | return Py_BuildValue((char *)""); | |
15219 | } | |
15220 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15221 | PyObject *resultobj; | |
15222 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15223 | wxKeyEvent *result; | |
8edf1c75 | 15224 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15225 | char *kwnames[] = { |
15226 | (char *) "keyType", NULL | |
15227 | }; | |
15228 | ||
8edf1c75 RD |
15229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15230 | if (obj0) { | |
2f4c0a16 RD |
15231 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15233 | } |
d14a1e28 RD |
15234 | { |
15235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15236 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15237 | ||
15238 | wxPyEndAllowThreads(__tstate); | |
15239 | if (PyErr_Occurred()) SWIG_fail; | |
15240 | } | |
2f4c0a16 | 15241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15242 | return resultobj; |
15243 | fail: | |
15244 | return NULL; | |
15245 | } | |
15246 | ||
15247 | ||
15248 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15249 | PyObject *resultobj; | |
15250 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15251 | bool result; | |
15252 | PyObject * obj0 = 0 ; | |
15253 | char *kwnames[] = { | |
15254 | (char *) "self", NULL | |
15255 | }; | |
15256 | ||
15257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15260 | { |
15261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15262 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15263 | ||
15264 | wxPyEndAllowThreads(__tstate); | |
15265 | if (PyErr_Occurred()) SWIG_fail; | |
15266 | } | |
4f89f6a3 RD |
15267 | { |
15268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15269 | } | |
d14a1e28 RD |
15270 | return resultobj; |
15271 | fail: | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj; | |
15278 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15279 | bool result; | |
15280 | PyObject * obj0 = 0 ; | |
15281 | char *kwnames[] = { | |
15282 | (char *) "self", NULL | |
15283 | }; | |
15284 | ||
15285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15290 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15291 | ||
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
4f89f6a3 RD |
15295 | { |
15296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15297 | } | |
d14a1e28 RD |
15298 | return resultobj; |
15299 | fail: | |
15300 | return NULL; | |
15301 | } | |
15302 | ||
15303 | ||
15304 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15305 | PyObject *resultobj; | |
15306 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15307 | bool result; | |
15308 | PyObject * obj0 = 0 ; | |
15309 | char *kwnames[] = { | |
15310 | (char *) "self", NULL | |
15311 | }; | |
15312 | ||
15313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15316 | { |
15317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15318 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15319 | ||
15320 | wxPyEndAllowThreads(__tstate); | |
15321 | if (PyErr_Occurred()) SWIG_fail; | |
15322 | } | |
4f89f6a3 RD |
15323 | { |
15324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15325 | } | |
d14a1e28 RD |
15326 | return resultobj; |
15327 | fail: | |
15328 | return NULL; | |
15329 | } | |
15330 | ||
15331 | ||
15332 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15333 | PyObject *resultobj; | |
15334 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15335 | bool result; | |
15336 | PyObject * obj0 = 0 ; | |
15337 | char *kwnames[] = { | |
15338 | (char *) "self", NULL | |
15339 | }; | |
15340 | ||
15341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15344 | { |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15347 | ||
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
4f89f6a3 RD |
15351 | { |
15352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15353 | } | |
d14a1e28 RD |
15354 | return resultobj; |
15355 | fail: | |
15356 | return NULL; | |
15357 | } | |
15358 | ||
15359 | ||
15360 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15361 | PyObject *resultobj; | |
15362 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15363 | bool result; | |
15364 | PyObject * obj0 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self", NULL | |
15367 | }; | |
15368 | ||
15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15372 | { |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
4f89f6a3 RD |
15379 | { |
15380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15381 | } | |
d14a1e28 RD |
15382 | return resultobj; |
15383 | fail: | |
15384 | return NULL; | |
15385 | } | |
15386 | ||
15387 | ||
15388 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15389 | PyObject *resultobj; | |
15390 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15391 | int result; | |
15392 | PyObject * obj0 = 0 ; | |
15393 | char *kwnames[] = { | |
15394 | (char *) "self", NULL | |
15395 | }; | |
15396 | ||
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15400 | { |
15401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15402 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15403 | ||
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
2f4c0a16 | 15407 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15408 | return resultobj; |
15409 | fail: | |
15410 | return NULL; | |
15411 | } | |
15412 | ||
15413 | ||
15414 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15415 | PyObject *resultobj; | |
15416 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15417 | int result; | |
15418 | PyObject * obj0 = 0 ; | |
15419 | char *kwnames[] = { | |
15420 | (char *) "self", NULL | |
15421 | }; | |
15422 | ||
15423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15426 | { |
15427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15428 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15429 | ||
15430 | wxPyEndAllowThreads(__tstate); | |
15431 | if (PyErr_Occurred()) SWIG_fail; | |
15432 | } | |
2f4c0a16 | 15433 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15434 | return resultobj; |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
15440 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15441 | PyObject *resultobj; | |
15442 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15443 | unsigned int result; |
d14a1e28 RD |
15444 | PyObject * obj0 = 0 ; |
15445 | char *kwnames[] = { | |
15446 | (char *) "self", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15452 | { |
15453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15454 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15455 | |
15456 | wxPyEndAllowThreads(__tstate); | |
15457 | if (PyErr_Occurred()) SWIG_fail; | |
15458 | } | |
2f4c0a16 | 15459 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15460 | return resultobj; |
15461 | fail: | |
15462 | return NULL; | |
15463 | } | |
15464 | ||
15465 | ||
15466 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15467 | PyObject *resultobj; | |
15468 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15469 | unsigned int result; |
d14a1e28 RD |
15470 | PyObject * obj0 = 0 ; |
15471 | char *kwnames[] = { | |
15472 | (char *) "self", NULL | |
15473 | }; | |
15474 | ||
15475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15478 | { |
15479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15480 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15481 | |
15482 | wxPyEndAllowThreads(__tstate); | |
15483 | if (PyErr_Occurred()) SWIG_fail; | |
15484 | } | |
2f4c0a16 | 15485 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15486 | return resultobj; |
15487 | fail: | |
15488 | return NULL; | |
15489 | } | |
15490 | ||
15491 | ||
15492 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15493 | PyObject *resultobj; | |
15494 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15495 | wxPoint result; | |
15496 | PyObject * obj0 = 0 ; | |
15497 | char *kwnames[] = { | |
15498 | (char *) "self", NULL | |
15499 | }; | |
15500 | ||
15501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15504 | { |
15505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15506 | result = (arg1)->GetPosition(); | |
15507 | ||
15508 | wxPyEndAllowThreads(__tstate); | |
15509 | if (PyErr_Occurred()) SWIG_fail; | |
15510 | } | |
15511 | { | |
15512 | wxPoint * resultptr; | |
15513 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 15514 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15515 | } |
15516 | return resultobj; | |
15517 | fail: | |
15518 | return NULL; | |
15519 | } | |
15520 | ||
15521 | ||
15522 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15523 | PyObject *resultobj; | |
15524 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15525 | long *arg2 = (long *) 0 ; | |
15526 | long *arg3 = (long *) 0 ; | |
15527 | long temp2 ; | |
15528 | long temp3 ; | |
15529 | PyObject * obj0 = 0 ; | |
15530 | char *kwnames[] = { | |
15531 | (char *) "self", NULL | |
15532 | }; | |
15533 | ||
15534 | arg2 = &temp2; | |
15535 | arg3 = &temp3; | |
15536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15539 | { |
15540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15541 | (arg1)->GetPosition(arg2,arg3); | |
15542 | ||
15543 | wxPyEndAllowThreads(__tstate); | |
15544 | if (PyErr_Occurred()) SWIG_fail; | |
15545 | } | |
15546 | Py_INCREF(Py_None); resultobj = Py_None; | |
15547 | { | |
15548 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15549 | resultobj = t_output_helper(resultobj,o); | |
15550 | } | |
15551 | { | |
15552 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15553 | resultobj = t_output_helper(resultobj,o); | |
15554 | } | |
15555 | return resultobj; | |
15556 | fail: | |
15557 | return NULL; | |
15558 | } | |
15559 | ||
15560 | ||
15561 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15562 | PyObject *resultobj; | |
15563 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15564 | int result; |
d14a1e28 RD |
15565 | PyObject * obj0 = 0 ; |
15566 | char *kwnames[] = { | |
15567 | (char *) "self", NULL | |
15568 | }; | |
15569 | ||
15570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15573 | { |
15574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15575 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15576 | |
15577 | wxPyEndAllowThreads(__tstate); | |
15578 | if (PyErr_Occurred()) SWIG_fail; | |
15579 | } | |
2f4c0a16 | 15580 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15581 | return resultobj; |
15582 | fail: | |
15583 | return NULL; | |
15584 | } | |
15585 | ||
15586 | ||
15587 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15588 | PyObject *resultobj; | |
15589 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15590 | int result; |
d14a1e28 RD |
15591 | PyObject * obj0 = 0 ; |
15592 | char *kwnames[] = { | |
15593 | (char *) "self", NULL | |
15594 | }; | |
15595 | ||
15596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15599 | { |
15600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15601 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15602 | |
15603 | wxPyEndAllowThreads(__tstate); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | } | |
2f4c0a16 | 15606 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15607 | return resultobj; |
15608 | fail: | |
15609 | return NULL; | |
15610 | } | |
15611 | ||
15612 | ||
15613 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15614 | PyObject *resultobj; | |
15615 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15616 | int arg2 ; |
d14a1e28 | 15617 | PyObject * obj0 = 0 ; |
8edf1c75 | 15618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15619 | char *kwnames[] = { |
15620 | (char *) "self",(char *) "m_x", NULL | |
15621 | }; | |
15622 | ||
8edf1c75 | 15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15626 | arg2 = (int) SWIG_AsInt(obj1); | |
15627 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15628 | if (arg1) (arg1)->m_x = arg2; |
15629 | ||
15630 | Py_INCREF(Py_None); resultobj = Py_None; | |
15631 | return resultobj; | |
15632 | fail: | |
15633 | return NULL; | |
15634 | } | |
15635 | ||
15636 | ||
15637 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15638 | PyObject *resultobj; | |
15639 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15640 | int result; |
d14a1e28 RD |
15641 | PyObject * obj0 = 0 ; |
15642 | char *kwnames[] = { | |
15643 | (char *) "self", NULL | |
15644 | }; | |
15645 | ||
15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15649 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15650 | |
2f4c0a16 | 15651 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15652 | return resultobj; |
15653 | fail: | |
15654 | return NULL; | |
15655 | } | |
15656 | ||
15657 | ||
15658 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15659 | PyObject *resultobj; | |
15660 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15661 | int arg2 ; |
d14a1e28 | 15662 | PyObject * obj0 = 0 ; |
8edf1c75 | 15663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15664 | char *kwnames[] = { |
15665 | (char *) "self",(char *) "m_y", NULL | |
15666 | }; | |
15667 | ||
8edf1c75 | 15668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15671 | arg2 = (int) SWIG_AsInt(obj1); | |
15672 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15673 | if (arg1) (arg1)->m_y = arg2; |
15674 | ||
15675 | Py_INCREF(Py_None); resultobj = Py_None; | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | return NULL; | |
15679 | } | |
15680 | ||
15681 | ||
15682 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15683 | PyObject *resultobj; | |
15684 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15685 | int result; |
d14a1e28 RD |
15686 | PyObject * obj0 = 0 ; |
15687 | char *kwnames[] = { | |
15688 | (char *) "self", NULL | |
15689 | }; | |
15690 | ||
15691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 15694 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15695 | |
2f4c0a16 | 15696 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15697 | return resultobj; |
15698 | fail: | |
15699 | return NULL; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15704 | PyObject *resultobj; | |
15705 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15706 | long arg2 ; | |
15707 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15708 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15709 | char *kwnames[] = { |
15710 | (char *) "self",(char *) "m_keyCode", NULL | |
15711 | }; | |
15712 | ||
8edf1c75 | 15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15716 | arg2 = (long) SWIG_AsLong(obj1); | |
15717 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15718 | if (arg1) (arg1)->m_keyCode = arg2; |
15719 | ||
15720 | Py_INCREF(Py_None); resultobj = Py_None; | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
15727 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15728 | PyObject *resultobj; | |
15729 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15730 | long result; | |
15731 | PyObject * obj0 = 0 ; | |
15732 | char *kwnames[] = { | |
15733 | (char *) "self", NULL | |
15734 | }; | |
15735 | ||
15736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15739 | result = (long) ((arg1)->m_keyCode); |
15740 | ||
2f4c0a16 | 15741 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15742 | return resultobj; |
15743 | fail: | |
15744 | return NULL; | |
15745 | } | |
15746 | ||
15747 | ||
15748 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15749 | PyObject *resultobj; | |
15750 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15751 | bool arg2 ; | |
15752 | PyObject * obj0 = 0 ; | |
15753 | PyObject * obj1 = 0 ; | |
15754 | char *kwnames[] = { | |
15755 | (char *) "self",(char *) "m_controlDown", NULL | |
15756 | }; | |
15757 | ||
15758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15761 | arg2 = (bool) SWIG_AsBool(obj1); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15763 | if (arg1) (arg1)->m_controlDown = arg2; |
15764 | ||
15765 | Py_INCREF(Py_None); resultobj = Py_None; | |
15766 | return resultobj; | |
15767 | fail: | |
15768 | return NULL; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15773 | PyObject *resultobj; | |
15774 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15775 | bool result; | |
15776 | PyObject * obj0 = 0 ; | |
15777 | char *kwnames[] = { | |
15778 | (char *) "self", NULL | |
15779 | }; | |
15780 | ||
15781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15784 | result = (bool) ((arg1)->m_controlDown); |
15785 | ||
4f89f6a3 RD |
15786 | { |
15787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15788 | } | |
d14a1e28 RD |
15789 | return resultobj; |
15790 | fail: | |
15791 | return NULL; | |
15792 | } | |
15793 | ||
15794 | ||
15795 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15796 | PyObject *resultobj; | |
15797 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15798 | bool arg2 ; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | PyObject * obj1 = 0 ; | |
15801 | char *kwnames[] = { | |
15802 | (char *) "self",(char *) "m_shiftDown", NULL | |
15803 | }; | |
15804 | ||
15805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15808 | arg2 = (bool) SWIG_AsBool(obj1); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15810 | if (arg1) (arg1)->m_shiftDown = arg2; |
15811 | ||
15812 | Py_INCREF(Py_None); resultobj = Py_None; | |
15813 | return resultobj; | |
15814 | fail: | |
15815 | return NULL; | |
15816 | } | |
15817 | ||
15818 | ||
15819 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15820 | PyObject *resultobj; | |
15821 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15822 | bool result; | |
15823 | PyObject * obj0 = 0 ; | |
15824 | char *kwnames[] = { | |
15825 | (char *) "self", NULL | |
15826 | }; | |
15827 | ||
15828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15831 | result = (bool) ((arg1)->m_shiftDown); |
15832 | ||
4f89f6a3 RD |
15833 | { |
15834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15835 | } | |
d14a1e28 RD |
15836 | return resultobj; |
15837 | fail: | |
15838 | return NULL; | |
15839 | } | |
15840 | ||
15841 | ||
15842 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15843 | PyObject *resultobj; | |
15844 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15845 | bool arg2 ; | |
15846 | PyObject * obj0 = 0 ; | |
15847 | PyObject * obj1 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self",(char *) "m_altDown", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15855 | arg2 = (bool) SWIG_AsBool(obj1); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15857 | if (arg1) (arg1)->m_altDown = arg2; |
15858 | ||
15859 | Py_INCREF(Py_None); resultobj = Py_None; | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15867 | PyObject *resultobj; | |
15868 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15869 | bool result; | |
15870 | PyObject * obj0 = 0 ; | |
15871 | char *kwnames[] = { | |
15872 | (char *) "self", NULL | |
15873 | }; | |
15874 | ||
15875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15878 | result = (bool) ((arg1)->m_altDown); |
15879 | ||
4f89f6a3 RD |
15880 | { |
15881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15882 | } | |
d14a1e28 RD |
15883 | return resultobj; |
15884 | fail: | |
15885 | return NULL; | |
15886 | } | |
15887 | ||
15888 | ||
15889 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15890 | PyObject *resultobj; | |
15891 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15892 | bool arg2 ; | |
15893 | PyObject * obj0 = 0 ; | |
15894 | PyObject * obj1 = 0 ; | |
15895 | char *kwnames[] = { | |
15896 | (char *) "self",(char *) "m_metaDown", NULL | |
15897 | }; | |
15898 | ||
15899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15902 | arg2 = (bool) SWIG_AsBool(obj1); | |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15904 | if (arg1) (arg1)->m_metaDown = arg2; |
15905 | ||
15906 | Py_INCREF(Py_None); resultobj = Py_None; | |
15907 | return resultobj; | |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15914 | PyObject *resultobj; | |
15915 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15916 | bool result; | |
15917 | PyObject * obj0 = 0 ; | |
15918 | char *kwnames[] = { | |
15919 | (char *) "self", NULL | |
15920 | }; | |
15921 | ||
15922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15925 | result = (bool) ((arg1)->m_metaDown); |
15926 | ||
4f89f6a3 RD |
15927 | { |
15928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15929 | } | |
d14a1e28 RD |
15930 | return resultobj; |
15931 | fail: | |
15932 | return NULL; | |
15933 | } | |
15934 | ||
15935 | ||
15936 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15937 | PyObject *resultobj; | |
15938 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15939 | bool arg2 ; | |
15940 | PyObject * obj0 = 0 ; | |
15941 | PyObject * obj1 = 0 ; | |
15942 | char *kwnames[] = { | |
15943 | (char *) "self",(char *) "m_scanCode", NULL | |
15944 | }; | |
15945 | ||
15946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15949 | arg2 = (bool) SWIG_AsBool(obj1); | |
15950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15951 | if (arg1) (arg1)->m_scanCode = arg2; |
15952 | ||
15953 | Py_INCREF(Py_None); resultobj = Py_None; | |
15954 | return resultobj; | |
15955 | fail: | |
15956 | return NULL; | |
15957 | } | |
15958 | ||
15959 | ||
15960 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15961 | PyObject *resultobj; | |
15962 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15963 | bool result; | |
15964 | PyObject * obj0 = 0 ; | |
15965 | char *kwnames[] = { | |
15966 | (char *) "self", NULL | |
15967 | }; | |
15968 | ||
15969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15972 | result = (bool) ((arg1)->m_scanCode); |
15973 | ||
4f89f6a3 RD |
15974 | { |
15975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15976 | } | |
d14a1e28 RD |
15977 | return resultobj; |
15978 | fail: | |
15979 | return NULL; | |
15980 | } | |
15981 | ||
15982 | ||
15983 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15984 | PyObject *resultobj; | |
15985 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 15986 | unsigned int arg2 ; |
d14a1e28 RD |
15987 | PyObject * obj0 = 0 ; |
15988 | PyObject * obj1 = 0 ; | |
15989 | char *kwnames[] = { | |
15990 | (char *) "self",(char *) "m_rawCode", NULL | |
15991 | }; | |
15992 | ||
15993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15996 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15998 | if (arg1) (arg1)->m_rawCode = arg2; |
15999 | ||
16000 | Py_INCREF(Py_None); resultobj = Py_None; | |
16001 | return resultobj; | |
16002 | fail: | |
16003 | return NULL; | |
16004 | } | |
16005 | ||
16006 | ||
16007 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16008 | PyObject *resultobj; | |
16009 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16010 | unsigned int result; |
d14a1e28 RD |
16011 | PyObject * obj0 = 0 ; |
16012 | char *kwnames[] = { | |
16013 | (char *) "self", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 16019 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16020 | |
2f4c0a16 | 16021 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16022 | return resultobj; |
16023 | fail: | |
16024 | return NULL; | |
16025 | } | |
16026 | ||
16027 | ||
16028 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16029 | PyObject *resultobj; | |
16030 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16031 | unsigned int arg2 ; |
d14a1e28 RD |
16032 | PyObject * obj0 = 0 ; |
16033 | PyObject * obj1 = 0 ; | |
16034 | char *kwnames[] = { | |
16035 | (char *) "self",(char *) "m_rawFlags", NULL | |
16036 | }; | |
16037 | ||
16038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16041 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16043 | if (arg1) (arg1)->m_rawFlags = arg2; |
16044 | ||
16045 | Py_INCREF(Py_None); resultobj = Py_None; | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16053 | PyObject *resultobj; | |
16054 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
423f194a | 16055 | unsigned int result; |
d14a1e28 RD |
16056 | PyObject * obj0 = 0 ; |
16057 | char *kwnames[] = { | |
16058 | (char *) "self", NULL | |
16059 | }; | |
16060 | ||
16061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 16064 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16065 | |
2f4c0a16 | 16066 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16067 | return resultobj; |
16068 | fail: | |
16069 | return NULL; | |
16070 | } | |
16071 | ||
16072 | ||
16073 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16074 | PyObject *obj; | |
16075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16076 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16077 | Py_INCREF(obj); | |
16078 | return Py_BuildValue((char *)""); | |
16079 | } | |
16080 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16081 | PyObject *resultobj; | |
16082 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16083 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16084 | int arg2 = (int) 0 ; | |
16085 | wxSizeEvent *result; | |
16086 | wxSize temp1 ; | |
16087 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16088 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16089 | char *kwnames[] = { |
16090 | (char *) "sz",(char *) "winid", NULL | |
16091 | }; | |
16092 | ||
8edf1c75 | 16093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16094 | if (obj0) { |
16095 | { | |
16096 | arg1 = &temp1; | |
16097 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16098 | } | |
16099 | } | |
8edf1c75 | 16100 | if (obj1) { |
2f4c0a16 RD |
16101 | arg2 = (int) SWIG_AsInt(obj1); |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16103 | } |
d14a1e28 RD |
16104 | { |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
2f4c0a16 | 16111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16112 | return resultobj; |
16113 | fail: | |
16114 | return NULL; | |
16115 | } | |
16116 | ||
16117 | ||
16118 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16119 | PyObject *resultobj; | |
16120 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16121 | wxSize result; | |
16122 | PyObject * obj0 = 0 ; | |
16123 | char *kwnames[] = { | |
16124 | (char *) "self", NULL | |
16125 | }; | |
16126 | ||
16127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16130 | { |
16131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16132 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16133 | ||
16134 | wxPyEndAllowThreads(__tstate); | |
16135 | if (PyErr_Occurred()) SWIG_fail; | |
16136 | } | |
16137 | { | |
16138 | wxSize * resultptr; | |
16139 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 16140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16141 | } |
16142 | return resultobj; | |
16143 | fail: | |
16144 | return NULL; | |
16145 | } | |
16146 | ||
16147 | ||
16148 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16149 | PyObject *resultobj; | |
16150 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16151 | wxRect result; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "self", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16160 | { |
16161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16162 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16163 | ||
16164 | wxPyEndAllowThreads(__tstate); | |
16165 | if (PyErr_Occurred()) SWIG_fail; | |
16166 | } | |
16167 | { | |
16168 | wxRect * resultptr; | |
16169 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16170 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16171 | } |
16172 | return resultobj; | |
16173 | fail: | |
16174 | return NULL; | |
16175 | } | |
16176 | ||
16177 | ||
16178 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16179 | PyObject *resultobj; | |
16180 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16181 | wxRect arg2 ; | |
16182 | wxRect *argp2 ; | |
16183 | PyObject * obj0 = 0 ; | |
16184 | PyObject * obj1 = 0 ; | |
16185 | char *kwnames[] = { | |
16186 | (char *) "self",(char *) "rect", NULL | |
16187 | }; | |
16188 | ||
16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16192 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16193 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16194 | arg2 = *argp2; | |
d14a1e28 RD |
16195 | { |
16196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16197 | (arg1)->SetRect(arg2); | |
16198 | ||
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | Py_INCREF(Py_None); resultobj = Py_None; | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16210 | PyObject *resultobj; | |
16211 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16212 | wxSize arg2 ; | |
16213 | wxSize *argp2 ; | |
16214 | PyObject * obj0 = 0 ; | |
16215 | PyObject * obj1 = 0 ; | |
16216 | char *kwnames[] = { | |
16217 | (char *) "self",(char *) "size", NULL | |
16218 | }; | |
16219 | ||
16220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16223 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16224 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16225 | arg2 = *argp2; | |
d14a1e28 RD |
16226 | { |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | wxSizeEvent_SetSize(arg1,arg2); | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | Py_INCREF(Py_None); resultobj = Py_None; | |
16234 | return resultobj; | |
16235 | fail: | |
16236 | return NULL; | |
16237 | } | |
16238 | ||
16239 | ||
16240 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16241 | PyObject *resultobj; | |
16242 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16243 | wxSize *arg2 = (wxSize *) 0 ; | |
16244 | PyObject * obj0 = 0 ; | |
16245 | PyObject * obj1 = 0 ; | |
16246 | char *kwnames[] = { | |
16247 | (char *) "self",(char *) "m_size", NULL | |
16248 | }; | |
16249 | ||
16250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16255 | if (arg1) (arg1)->m_size = *arg2; |
16256 | ||
16257 | Py_INCREF(Py_None); resultobj = Py_None; | |
16258 | return resultobj; | |
16259 | fail: | |
16260 | return NULL; | |
16261 | } | |
16262 | ||
16263 | ||
16264 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16265 | PyObject *resultobj; | |
16266 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16267 | wxSize *result; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | char *kwnames[] = { | |
16270 | (char *) "self", NULL | |
16271 | }; | |
16272 | ||
16273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16276 | result = (wxSize *)& ((arg1)->m_size); |
16277 | ||
2f4c0a16 | 16278 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16279 | return resultobj; |
16280 | fail: | |
16281 | return NULL; | |
16282 | } | |
16283 | ||
16284 | ||
16285 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16286 | PyObject *resultobj; | |
16287 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16288 | wxRect *arg2 = (wxRect *) 0 ; | |
16289 | PyObject * obj0 = 0 ; | |
16290 | PyObject * obj1 = 0 ; | |
16291 | char *kwnames[] = { | |
16292 | (char *) "self",(char *) "m_rect", NULL | |
16293 | }; | |
16294 | ||
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16300 | if (arg1) (arg1)->m_rect = *arg2; |
16301 | ||
16302 | Py_INCREF(Py_None); resultobj = Py_None; | |
16303 | return resultobj; | |
16304 | fail: | |
16305 | return NULL; | |
16306 | } | |
16307 | ||
16308 | ||
16309 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16310 | PyObject *resultobj; | |
16311 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16312 | wxRect *result; | |
16313 | PyObject * obj0 = 0 ; | |
16314 | char *kwnames[] = { | |
16315 | (char *) "self", NULL | |
16316 | }; | |
16317 | ||
16318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16321 | result = (wxRect *)& ((arg1)->m_rect); |
16322 | ||
2f4c0a16 | 16323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16324 | return resultobj; |
16325 | fail: | |
16326 | return NULL; | |
16327 | } | |
16328 | ||
16329 | ||
16330 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16331 | PyObject *obj; | |
16332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16333 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16334 | Py_INCREF(obj); | |
16335 | return Py_BuildValue((char *)""); | |
16336 | } | |
16337 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16338 | PyObject *resultobj; | |
16339 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16340 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16341 | int arg2 = (int) 0 ; | |
16342 | wxMoveEvent *result; | |
16343 | wxPoint temp1 ; | |
16344 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16345 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16346 | char *kwnames[] = { |
16347 | (char *) "pos",(char *) "winid", NULL | |
16348 | }; | |
16349 | ||
8edf1c75 | 16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16351 | if (obj0) { |
16352 | { | |
16353 | arg1 = &temp1; | |
16354 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16355 | } | |
16356 | } | |
8edf1c75 | 16357 | if (obj1) { |
2f4c0a16 RD |
16358 | arg2 = (int) SWIG_AsInt(obj1); |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16360 | } |
d14a1e28 RD |
16361 | { |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
2f4c0a16 | 16368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16369 | return resultobj; |
16370 | fail: | |
16371 | return NULL; | |
16372 | } | |
16373 | ||
16374 | ||
16375 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16376 | PyObject *resultobj; | |
16377 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16378 | wxPoint result; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | char *kwnames[] = { | |
16381 | (char *) "self", NULL | |
16382 | }; | |
16383 | ||
16384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16387 | { |
16388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16389 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16390 | ||
16391 | wxPyEndAllowThreads(__tstate); | |
16392 | if (PyErr_Occurred()) SWIG_fail; | |
16393 | } | |
16394 | { | |
16395 | wxPoint * resultptr; | |
16396 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 16397 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16398 | } |
16399 | return resultobj; | |
16400 | fail: | |
16401 | return NULL; | |
16402 | } | |
16403 | ||
16404 | ||
16405 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16406 | PyObject *resultobj; | |
16407 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16408 | wxRect result; | |
16409 | PyObject * obj0 = 0 ; | |
16410 | char *kwnames[] = { | |
16411 | (char *) "self", NULL | |
16412 | }; | |
16413 | ||
16414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16417 | { |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | { | |
16425 | wxRect * resultptr; | |
16426 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 16427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16428 | } |
16429 | return resultobj; | |
16430 | fail: | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
16435 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16436 | PyObject *resultobj; | |
16437 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16438 | wxRect arg2 ; | |
16439 | wxRect *argp2 ; | |
16440 | PyObject * obj0 = 0 ; | |
16441 | PyObject * obj1 = 0 ; | |
16442 | char *kwnames[] = { | |
16443 | (char *) "self",(char *) "rect", NULL | |
16444 | }; | |
16445 | ||
16446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16449 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16450 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16451 | arg2 = *argp2; | |
d14a1e28 RD |
16452 | { |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | (arg1)->SetRect(arg2); | |
16455 | ||
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | Py_INCREF(Py_None); resultobj = Py_None; | |
16460 | return resultobj; | |
16461 | fail: | |
16462 | return NULL; | |
16463 | } | |
16464 | ||
16465 | ||
16466 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16467 | PyObject *resultobj; | |
16468 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16469 | wxPoint arg2 ; | |
16470 | wxPoint *argp2 ; | |
16471 | PyObject * obj0 = 0 ; | |
16472 | PyObject * obj1 = 0 ; | |
16473 | char *kwnames[] = { | |
16474 | (char *) "self",(char *) "pos", NULL | |
16475 | }; | |
16476 | ||
16477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16480 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16481 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16482 | arg2 = *argp2; | |
d14a1e28 RD |
16483 | { |
16484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16485 | wxMoveEvent_SetPosition(arg1,arg2); | |
16486 | ||
16487 | wxPyEndAllowThreads(__tstate); | |
16488 | if (PyErr_Occurred()) SWIG_fail; | |
16489 | } | |
16490 | Py_INCREF(Py_None); resultobj = Py_None; | |
16491 | return resultobj; | |
16492 | fail: | |
16493 | return NULL; | |
16494 | } | |
16495 | ||
16496 | ||
16497 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16498 | PyObject *resultobj; | |
16499 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16500 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16501 | PyObject * obj0 = 0 ; | |
16502 | PyObject * obj1 = 0 ; | |
16503 | char *kwnames[] = { | |
16504 | (char *) "self",(char *) "m_pos", NULL | |
16505 | }; | |
16506 | ||
16507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16512 | if (arg1) (arg1)->m_pos = *arg2; |
16513 | ||
16514 | Py_INCREF(Py_None); resultobj = Py_None; | |
16515 | return resultobj; | |
16516 | fail: | |
16517 | return NULL; | |
16518 | } | |
16519 | ||
16520 | ||
16521 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16522 | PyObject *resultobj; | |
16523 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16524 | wxPoint *result; | |
16525 | PyObject * obj0 = 0 ; | |
16526 | char *kwnames[] = { | |
16527 | (char *) "self", NULL | |
16528 | }; | |
16529 | ||
16530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16533 | result = (wxPoint *)& ((arg1)->m_pos); |
16534 | ||
2f4c0a16 | 16535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16536 | return resultobj; |
16537 | fail: | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
16542 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16543 | PyObject *resultobj; | |
16544 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16545 | wxRect *arg2 = (wxRect *) 0 ; | |
16546 | PyObject * obj0 = 0 ; | |
16547 | PyObject * obj1 = 0 ; | |
16548 | char *kwnames[] = { | |
16549 | (char *) "self",(char *) "m_rect", NULL | |
16550 | }; | |
16551 | ||
16552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16557 | if (arg1) (arg1)->m_rect = *arg2; |
16558 | ||
16559 | Py_INCREF(Py_None); resultobj = Py_None; | |
16560 | return resultobj; | |
16561 | fail: | |
16562 | return NULL; | |
16563 | } | |
16564 | ||
16565 | ||
16566 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16567 | PyObject *resultobj; | |
16568 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16569 | wxRect *result; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | char *kwnames[] = { | |
16572 | (char *) "self", NULL | |
16573 | }; | |
16574 | ||
16575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16578 | result = (wxRect *)& ((arg1)->m_rect); |
16579 | ||
2f4c0a16 | 16580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16581 | return resultobj; |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16588 | PyObject *obj; | |
16589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16590 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16591 | Py_INCREF(obj); | |
16592 | return Py_BuildValue((char *)""); | |
16593 | } | |
16594 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16595 | PyObject *resultobj; | |
16596 | int arg1 = (int) 0 ; | |
16597 | wxPaintEvent *result; | |
8edf1c75 | 16598 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16599 | char *kwnames[] = { |
16600 | (char *) "Id", NULL | |
16601 | }; | |
16602 | ||
8edf1c75 RD |
16603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16604 | if (obj0) { | |
2f4c0a16 RD |
16605 | arg1 = (int) SWIG_AsInt(obj0); |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16607 | } |
d14a1e28 RD |
16608 | { |
16609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16610 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16611 | ||
16612 | wxPyEndAllowThreads(__tstate); | |
16613 | if (PyErr_Occurred()) SWIG_fail; | |
16614 | } | |
2f4c0a16 | 16615 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16616 | return resultobj; |
16617 | fail: | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
16622 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16623 | PyObject *obj; | |
16624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16625 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16626 | Py_INCREF(obj); | |
16627 | return Py_BuildValue((char *)""); | |
16628 | } | |
16629 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16630 | PyObject *resultobj; | |
16631 | int arg1 = (int) 0 ; | |
16632 | wxNcPaintEvent *result; | |
8edf1c75 | 16633 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16634 | char *kwnames[] = { |
16635 | (char *) "winid", NULL | |
16636 | }; | |
16637 | ||
8edf1c75 RD |
16638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16639 | if (obj0) { | |
2f4c0a16 RD |
16640 | arg1 = (int) SWIG_AsInt(obj0); |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16642 | } |
d14a1e28 RD |
16643 | { |
16644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16645 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16646 | ||
16647 | wxPyEndAllowThreads(__tstate); | |
16648 | if (PyErr_Occurred()) SWIG_fail; | |
16649 | } | |
2f4c0a16 | 16650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16651 | return resultobj; |
16652 | fail: | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
16657 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16658 | PyObject *obj; | |
16659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16660 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16661 | Py_INCREF(obj); | |
16662 | return Py_BuildValue((char *)""); | |
16663 | } | |
16664 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16665 | PyObject *resultobj; | |
16666 | int arg1 = (int) 0 ; | |
16667 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16668 | wxEraseEvent *result; | |
8edf1c75 | 16669 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16670 | PyObject * obj1 = 0 ; |
16671 | char *kwnames[] = { | |
16672 | (char *) "Id",(char *) "dc", NULL | |
16673 | }; | |
16674 | ||
8edf1c75 RD |
16675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16676 | if (obj0) { | |
2f4c0a16 RD |
16677 | arg1 = (int) SWIG_AsInt(obj0); |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16679 | } |
d14a1e28 | 16680 | if (obj1) { |
2f4c0a16 RD |
16681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16683 | } |
16684 | { | |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16687 | ||
16688 | wxPyEndAllowThreads(__tstate); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
2f4c0a16 | 16691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16692 | return resultobj; |
16693 | fail: | |
16694 | return NULL; | |
16695 | } | |
16696 | ||
16697 | ||
16698 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16699 | PyObject *resultobj; | |
16700 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16701 | wxDC *result; | |
16702 | PyObject * obj0 = 0 ; | |
16703 | char *kwnames[] = { | |
16704 | (char *) "self", NULL | |
16705 | }; | |
16706 | ||
16707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16710 | { |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | { | |
16718 | resultobj = wxPyMake_wxObject(result); | |
16719 | } | |
16720 | return resultobj; | |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
16726 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16727 | PyObject *obj; | |
16728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16729 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16730 | Py_INCREF(obj); | |
16731 | return Py_BuildValue((char *)""); | |
16732 | } | |
16733 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16734 | PyObject *resultobj; | |
16735 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16736 | int arg2 = (int) 0 ; | |
16737 | wxFocusEvent *result; | |
8edf1c75 RD |
16738 | PyObject * obj0 = 0 ; |
16739 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16740 | char *kwnames[] = { |
16741 | (char *) "type",(char *) "winid", NULL | |
16742 | }; | |
16743 | ||
8edf1c75 RD |
16744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16745 | if (obj0) { | |
2f4c0a16 RD |
16746 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16748 | } |
16749 | if (obj1) { | |
2f4c0a16 RD |
16750 | arg2 = (int) SWIG_AsInt(obj1); |
16751 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16752 | } |
d14a1e28 RD |
16753 | { |
16754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16755 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16756 | ||
16757 | wxPyEndAllowThreads(__tstate); | |
16758 | if (PyErr_Occurred()) SWIG_fail; | |
16759 | } | |
2f4c0a16 | 16760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16761 | return resultobj; |
16762 | fail: | |
16763 | return NULL; | |
16764 | } | |
16765 | ||
16766 | ||
16767 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16768 | PyObject *resultobj; | |
16769 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16770 | wxWindow *result; | |
16771 | PyObject * obj0 = 0 ; | |
16772 | char *kwnames[] = { | |
16773 | (char *) "self", NULL | |
16774 | }; | |
16775 | ||
16776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16779 | { |
16780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16781 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16782 | ||
16783 | wxPyEndAllowThreads(__tstate); | |
16784 | if (PyErr_Occurred()) SWIG_fail; | |
16785 | } | |
16786 | { | |
16787 | resultobj = wxPyMake_wxObject(result); | |
16788 | } | |
16789 | return resultobj; | |
16790 | fail: | |
16791 | return NULL; | |
16792 | } | |
16793 | ||
16794 | ||
16795 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16796 | PyObject *resultobj; | |
16797 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16798 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16799 | PyObject * obj0 = 0 ; | |
16800 | PyObject * obj1 = 0 ; | |
16801 | char *kwnames[] = { | |
16802 | (char *) "self",(char *) "win", NULL | |
16803 | }; | |
16804 | ||
16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16808 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16810 | { |
16811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16812 | (arg1)->SetWindow(arg2); | |
16813 | ||
16814 | wxPyEndAllowThreads(__tstate); | |
16815 | if (PyErr_Occurred()) SWIG_fail; | |
16816 | } | |
16817 | Py_INCREF(Py_None); resultobj = Py_None; | |
16818 | return resultobj; | |
16819 | fail: | |
16820 | return NULL; | |
16821 | } | |
16822 | ||
16823 | ||
16824 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16825 | PyObject *obj; | |
16826 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16827 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16828 | Py_INCREF(obj); | |
16829 | return Py_BuildValue((char *)""); | |
16830 | } | |
16831 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16832 | PyObject *resultobj; | |
16833 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16834 | wxChildFocusEvent *result; | |
16835 | PyObject * obj0 = 0 ; | |
16836 | char *kwnames[] = { | |
16837 | (char *) "win", NULL | |
16838 | }; | |
16839 | ||
16840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16841 | if (obj0) { | |
2f4c0a16 RD |
16842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16844 | } |
16845 | { | |
16846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16847 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16848 | ||
16849 | wxPyEndAllowThreads(__tstate); | |
16850 | if (PyErr_Occurred()) SWIG_fail; | |
16851 | } | |
2f4c0a16 | 16852 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
16853 | return resultobj; |
16854 | fail: | |
16855 | return NULL; | |
16856 | } | |
16857 | ||
16858 | ||
16859 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16860 | PyObject *resultobj; | |
16861 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16862 | wxWindow *result; | |
16863 | PyObject * obj0 = 0 ; | |
16864 | char *kwnames[] = { | |
16865 | (char *) "self", NULL | |
16866 | }; | |
16867 | ||
16868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
16870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16871 | { |
16872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16873 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16874 | ||
16875 | wxPyEndAllowThreads(__tstate); | |
16876 | if (PyErr_Occurred()) SWIG_fail; | |
16877 | } | |
16878 | { | |
16879 | resultobj = wxPyMake_wxObject(result); | |
16880 | } | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
16887 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16888 | PyObject *obj; | |
16889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16890 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16891 | Py_INCREF(obj); | |
16892 | return Py_BuildValue((char *)""); | |
16893 | } | |
16894 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16895 | PyObject *resultobj; | |
16896 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 16897 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16898 | int arg3 = (int) 0 ; |
16899 | wxActivateEvent *result; | |
8edf1c75 | 16900 | PyObject * obj0 = 0 ; |
d14a1e28 | 16901 | PyObject * obj1 = 0 ; |
8edf1c75 | 16902 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16903 | char *kwnames[] = { |
16904 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16905 | }; | |
16906 | ||
8edf1c75 RD |
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16908 | if (obj0) { | |
2f4c0a16 RD |
16909 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16911 | } |
d14a1e28 | 16912 | if (obj1) { |
2f4c0a16 RD |
16913 | arg2 = (bool) SWIG_AsBool(obj1); |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16915 | } |
16916 | if (obj2) { | |
2f4c0a16 RD |
16917 | arg3 = (int) SWIG_AsInt(obj2); |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16919 | } |
16920 | { | |
16921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16922 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16923 | ||
16924 | wxPyEndAllowThreads(__tstate); | |
16925 | if (PyErr_Occurred()) SWIG_fail; | |
16926 | } | |
2f4c0a16 | 16927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
16928 | return resultobj; |
16929 | fail: | |
16930 | return NULL; | |
16931 | } | |
16932 | ||
16933 | ||
16934 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16935 | PyObject *resultobj; | |
16936 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
16937 | bool result; | |
16938 | PyObject * obj0 = 0 ; | |
16939 | char *kwnames[] = { | |
16940 | (char *) "self", NULL | |
16941 | }; | |
16942 | ||
16943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
16945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16946 | { |
16947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16948 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
16949 | ||
16950 | wxPyEndAllowThreads(__tstate); | |
16951 | if (PyErr_Occurred()) SWIG_fail; | |
16952 | } | |
4f89f6a3 RD |
16953 | { |
16954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16955 | } | |
d14a1e28 RD |
16956 | return resultobj; |
16957 | fail: | |
16958 | return NULL; | |
16959 | } | |
16960 | ||
16961 | ||
16962 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
16963 | PyObject *obj; | |
16964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16965 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
16966 | Py_INCREF(obj); | |
16967 | return Py_BuildValue((char *)""); | |
16968 | } | |
16969 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16970 | PyObject *resultobj; | |
16971 | int arg1 = (int) 0 ; | |
16972 | wxInitDialogEvent *result; | |
8edf1c75 | 16973 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16974 | char *kwnames[] = { |
16975 | (char *) "Id", NULL | |
16976 | }; | |
16977 | ||
8edf1c75 RD |
16978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
16979 | if (obj0) { | |
2f4c0a16 RD |
16980 | arg1 = (int) SWIG_AsInt(obj0); |
16981 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16982 | } |
d14a1e28 RD |
16983 | { |
16984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16985 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
16986 | ||
16987 | wxPyEndAllowThreads(__tstate); | |
16988 | if (PyErr_Occurred()) SWIG_fail; | |
16989 | } | |
2f4c0a16 | 16990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
16991 | return resultobj; |
16992 | fail: | |
16993 | return NULL; | |
16994 | } | |
16995 | ||
16996 | ||
16997 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
16998 | PyObject *obj; | |
16999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17000 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17001 | Py_INCREF(obj); | |
17002 | return Py_BuildValue((char *)""); | |
17003 | } | |
17004 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17005 | PyObject *resultobj; | |
17006 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17007 | int arg2 = (int) 0 ; | |
17008 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17009 | wxMenuEvent *result; | |
8edf1c75 RD |
17010 | PyObject * obj0 = 0 ; |
17011 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17012 | PyObject * obj2 = 0 ; |
17013 | char *kwnames[] = { | |
17014 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17015 | }; | |
17016 | ||
8edf1c75 RD |
17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17018 | if (obj0) { | |
2f4c0a16 RD |
17019 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17021 | } |
17022 | if (obj1) { | |
2f4c0a16 RD |
17023 | arg2 = (int) SWIG_AsInt(obj1); |
17024 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17025 | } |
d14a1e28 | 17026 | if (obj2) { |
2f4c0a16 RD |
17027 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17029 | } |
17030 | { | |
17031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17032 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17033 | ||
17034 | wxPyEndAllowThreads(__tstate); | |
17035 | if (PyErr_Occurred()) SWIG_fail; | |
17036 | } | |
2f4c0a16 | 17037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17038 | return resultobj; |
17039 | fail: | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
17044 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17045 | PyObject *resultobj; | |
17046 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17047 | int result; | |
17048 | PyObject * obj0 = 0 ; | |
17049 | char *kwnames[] = { | |
17050 | (char *) "self", NULL | |
17051 | }; | |
17052 | ||
17053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17056 | { |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17059 | ||
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
2f4c0a16 | 17063 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17064 | return resultobj; |
17065 | fail: | |
17066 | return NULL; | |
17067 | } | |
17068 | ||
17069 | ||
17070 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17071 | PyObject *resultobj; | |
17072 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17073 | bool result; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | char *kwnames[] = { | |
17076 | (char *) "self", NULL | |
17077 | }; | |
17078 | ||
17079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17082 | { |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
4f89f6a3 RD |
17089 | { |
17090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17091 | } | |
d14a1e28 RD |
17092 | return resultobj; |
17093 | fail: | |
17094 | return NULL; | |
17095 | } | |
17096 | ||
17097 | ||
17098 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17099 | PyObject *resultobj; | |
17100 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17101 | wxMenu *result; | |
17102 | PyObject * obj0 = 0 ; | |
17103 | char *kwnames[] = { | |
17104 | (char *) "self", NULL | |
17105 | }; | |
17106 | ||
17107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17110 | { |
17111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17112 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17113 | ||
17114 | wxPyEndAllowThreads(__tstate); | |
17115 | if (PyErr_Occurred()) SWIG_fail; | |
17116 | } | |
17117 | { | |
17118 | resultobj = wxPyMake_wxObject(result); | |
17119 | } | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17127 | PyObject *obj; | |
17128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17129 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17130 | Py_INCREF(obj); | |
17131 | return Py_BuildValue((char *)""); | |
17132 | } | |
17133 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17134 | PyObject *resultobj; | |
17135 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17136 | int arg2 = (int) 0 ; | |
17137 | wxCloseEvent *result; | |
8edf1c75 RD |
17138 | PyObject * obj0 = 0 ; |
17139 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17140 | char *kwnames[] = { |
17141 | (char *) "type",(char *) "winid", NULL | |
17142 | }; | |
17143 | ||
8edf1c75 RD |
17144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17145 | if (obj0) { | |
2f4c0a16 RD |
17146 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17147 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17148 | } |
17149 | if (obj1) { | |
2f4c0a16 RD |
17150 | arg2 = (int) SWIG_AsInt(obj1); |
17151 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17152 | } |
d14a1e28 RD |
17153 | { |
17154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17155 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17156 | ||
17157 | wxPyEndAllowThreads(__tstate); | |
17158 | if (PyErr_Occurred()) SWIG_fail; | |
17159 | } | |
2f4c0a16 | 17160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17161 | return resultobj; |
17162 | fail: | |
17163 | return NULL; | |
17164 | } | |
17165 | ||
17166 | ||
17167 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17168 | PyObject *resultobj; | |
17169 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17170 | bool arg2 ; | |
17171 | PyObject * obj0 = 0 ; | |
17172 | PyObject * obj1 = 0 ; | |
17173 | char *kwnames[] = { | |
17174 | (char *) "self",(char *) "logOff", NULL | |
17175 | }; | |
17176 | ||
17177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17180 | arg2 = (bool) SWIG_AsBool(obj1); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17182 | { |
17183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17184 | (arg1)->SetLoggingOff(arg2); | |
17185 | ||
17186 | wxPyEndAllowThreads(__tstate); | |
17187 | if (PyErr_Occurred()) SWIG_fail; | |
17188 | } | |
17189 | Py_INCREF(Py_None); resultobj = Py_None; | |
17190 | return resultobj; | |
17191 | fail: | |
17192 | return NULL; | |
17193 | } | |
17194 | ||
17195 | ||
17196 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17197 | PyObject *resultobj; | |
17198 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17199 | bool result; | |
17200 | PyObject * obj0 = 0 ; | |
17201 | char *kwnames[] = { | |
17202 | (char *) "self", NULL | |
17203 | }; | |
17204 | ||
17205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17208 | { |
17209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17210 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17211 | ||
17212 | wxPyEndAllowThreads(__tstate); | |
17213 | if (PyErr_Occurred()) SWIG_fail; | |
17214 | } | |
4f89f6a3 RD |
17215 | { |
17216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17217 | } | |
d14a1e28 RD |
17218 | return resultobj; |
17219 | fail: | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
423f194a | 17227 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17228 | PyObject * obj0 = 0 ; |
17229 | PyObject * obj1 = 0 ; | |
17230 | char *kwnames[] = { | |
17231 | (char *) "self",(char *) "veto", NULL | |
17232 | }; | |
17233 | ||
17234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17237 | if (obj1) { |
2f4c0a16 RD |
17238 | arg2 = (bool) SWIG_AsBool(obj1); |
17239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17240 | } |
17241 | { | |
17242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17243 | (arg1)->Veto(arg2); | |
17244 | ||
17245 | wxPyEndAllowThreads(__tstate); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | } | |
17248 | Py_INCREF(Py_None); resultobj = Py_None; | |
17249 | return resultobj; | |
17250 | fail: | |
17251 | return NULL; | |
17252 | } | |
17253 | ||
17254 | ||
17255 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17256 | PyObject *resultobj; | |
17257 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17258 | bool arg2 ; | |
17259 | PyObject * obj0 = 0 ; | |
17260 | PyObject * obj1 = 0 ; | |
17261 | char *kwnames[] = { | |
17262 | (char *) "self",(char *) "canVeto", NULL | |
17263 | }; | |
17264 | ||
17265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17268 | arg2 = (bool) SWIG_AsBool(obj1); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17270 | { |
17271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17272 | (arg1)->SetCanVeto(arg2); | |
17273 | ||
17274 | wxPyEndAllowThreads(__tstate); | |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
17276 | } | |
17277 | Py_INCREF(Py_None); resultobj = Py_None; | |
17278 | return resultobj; | |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17285 | PyObject *resultobj; | |
17286 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17287 | bool result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "self", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17296 | { |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17299 | ||
17300 | wxPyEndAllowThreads(__tstate); | |
17301 | if (PyErr_Occurred()) SWIG_fail; | |
17302 | } | |
4f89f6a3 RD |
17303 | { |
17304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17305 | } | |
d14a1e28 RD |
17306 | return resultobj; |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17313 | PyObject *resultobj; | |
17314 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17315 | bool result; | |
17316 | PyObject * obj0 = 0 ; | |
17317 | char *kwnames[] = { | |
17318 | (char *) "self", NULL | |
17319 | }; | |
17320 | ||
17321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17324 | { |
17325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17326 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17327 | ||
17328 | wxPyEndAllowThreads(__tstate); | |
17329 | if (PyErr_Occurred()) SWIG_fail; | |
17330 | } | |
4f89f6a3 RD |
17331 | { |
17332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17333 | } | |
d14a1e28 RD |
17334 | return resultobj; |
17335 | fail: | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17341 | PyObject *obj; | |
17342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17343 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17344 | Py_INCREF(obj); | |
17345 | return Py_BuildValue((char *)""); | |
17346 | } | |
17347 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17348 | PyObject *resultobj; | |
17349 | int arg1 = (int) 0 ; | |
423f194a | 17350 | bool arg2 = (bool) False ; |
d14a1e28 | 17351 | wxShowEvent *result; |
8edf1c75 | 17352 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17353 | PyObject * obj1 = 0 ; |
17354 | char *kwnames[] = { | |
17355 | (char *) "winid",(char *) "show", NULL | |
17356 | }; | |
17357 | ||
8edf1c75 RD |
17358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17359 | if (obj0) { | |
2f4c0a16 RD |
17360 | arg1 = (int) SWIG_AsInt(obj0); |
17361 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17362 | } |
d14a1e28 | 17363 | if (obj1) { |
2f4c0a16 RD |
17364 | arg2 = (bool) SWIG_AsBool(obj1); |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17366 | } |
17367 | { | |
17368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17369 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17370 | ||
17371 | wxPyEndAllowThreads(__tstate); | |
17372 | if (PyErr_Occurred()) SWIG_fail; | |
17373 | } | |
2f4c0a16 | 17374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17375 | return resultobj; |
17376 | fail: | |
17377 | return NULL; | |
17378 | } | |
17379 | ||
17380 | ||
17381 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17382 | PyObject *resultobj; | |
17383 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17384 | bool arg2 ; | |
17385 | PyObject * obj0 = 0 ; | |
17386 | PyObject * obj1 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self",(char *) "show", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17394 | arg2 = (bool) SWIG_AsBool(obj1); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17396 | { |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17398 | (arg1)->SetShow(arg2); | |
17399 | ||
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | Py_INCREF(Py_None); resultobj = Py_None; | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
17410 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17411 | PyObject *resultobj; | |
17412 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17413 | bool result; | |
17414 | PyObject * obj0 = 0 ; | |
17415 | char *kwnames[] = { | |
17416 | (char *) "self", NULL | |
17417 | }; | |
17418 | ||
17419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17422 | { |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
4f89f6a3 RD |
17429 | { |
17430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17431 | } | |
d14a1e28 RD |
17432 | return resultobj; |
17433 | fail: | |
17434 | return NULL; | |
17435 | } | |
17436 | ||
17437 | ||
17438 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17439 | PyObject *obj; | |
17440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17441 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17442 | Py_INCREF(obj); | |
17443 | return Py_BuildValue((char *)""); | |
17444 | } | |
17445 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17446 | PyObject *resultobj; | |
17447 | int arg1 = (int) 0 ; | |
423f194a | 17448 | bool arg2 = (bool) True ; |
d14a1e28 | 17449 | wxIconizeEvent *result; |
8edf1c75 | 17450 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17451 | PyObject * obj1 = 0 ; |
17452 | char *kwnames[] = { | |
17453 | (char *) "id",(char *) "iconized", NULL | |
17454 | }; | |
17455 | ||
8edf1c75 RD |
17456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17457 | if (obj0) { | |
2f4c0a16 RD |
17458 | arg1 = (int) SWIG_AsInt(obj0); |
17459 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17460 | } |
d14a1e28 | 17461 | if (obj1) { |
2f4c0a16 RD |
17462 | arg2 = (bool) SWIG_AsBool(obj1); |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17464 | } |
17465 | { | |
17466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17467 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17468 | ||
17469 | wxPyEndAllowThreads(__tstate); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
2f4c0a16 | 17472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17473 | return resultobj; |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17480 | PyObject *resultobj; | |
17481 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17482 | bool result; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | char *kwnames[] = { | |
17485 | (char *) "self", NULL | |
17486 | }; | |
17487 | ||
17488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17491 | { |
17492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17493 | result = (bool)(arg1)->Iconized(); | |
17494 | ||
17495 | wxPyEndAllowThreads(__tstate); | |
17496 | if (PyErr_Occurred()) SWIG_fail; | |
17497 | } | |
4f89f6a3 RD |
17498 | { |
17499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17500 | } | |
d14a1e28 RD |
17501 | return resultobj; |
17502 | fail: | |
17503 | return NULL; | |
17504 | } | |
17505 | ||
17506 | ||
17507 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17508 | PyObject *obj; | |
17509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17510 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17511 | Py_INCREF(obj); | |
17512 | return Py_BuildValue((char *)""); | |
17513 | } | |
17514 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17515 | PyObject *resultobj; | |
17516 | int arg1 = (int) 0 ; | |
17517 | wxMaximizeEvent *result; | |
8edf1c75 | 17518 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17519 | char *kwnames[] = { |
17520 | (char *) "id", NULL | |
17521 | }; | |
17522 | ||
8edf1c75 RD |
17523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17524 | if (obj0) { | |
2f4c0a16 RD |
17525 | arg1 = (int) SWIG_AsInt(obj0); |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17527 | } |
d14a1e28 RD |
17528 | { |
17529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17530 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17531 | ||
17532 | wxPyEndAllowThreads(__tstate); | |
17533 | if (PyErr_Occurred()) SWIG_fail; | |
17534 | } | |
2f4c0a16 | 17535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17536 | return resultobj; |
17537 | fail: | |
17538 | return NULL; | |
17539 | } | |
17540 | ||
17541 | ||
17542 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17543 | PyObject *obj; | |
17544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17545 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17546 | Py_INCREF(obj); | |
17547 | return Py_BuildValue((char *)""); | |
17548 | } | |
17549 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17550 | PyObject *resultobj; | |
17551 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17552 | wxPoint result; | |
17553 | PyObject * obj0 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "self", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17561 | { |
17562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17563 | result = (arg1)->GetPosition(); | |
17564 | ||
17565 | wxPyEndAllowThreads(__tstate); | |
17566 | if (PyErr_Occurred()) SWIG_fail; | |
17567 | } | |
17568 | { | |
17569 | wxPoint * resultptr; | |
17570 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 17571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17572 | } |
17573 | return resultobj; | |
17574 | fail: | |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17582 | int result; | |
17583 | PyObject * obj0 = 0 ; | |
17584 | char *kwnames[] = { | |
17585 | (char *) "self", NULL | |
17586 | }; | |
17587 | ||
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17591 | { |
17592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17593 | result = (int)(arg1)->GetNumberOfFiles(); | |
17594 | ||
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
2f4c0a16 | 17598 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17599 | return resultobj; |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj; | |
17607 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17608 | PyObject *result; | |
17609 | PyObject * obj0 = 0 ; | |
17610 | char *kwnames[] = { | |
17611 | (char *) "self", NULL | |
17612 | }; | |
17613 | ||
17614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17617 | { |
17618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17619 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17620 | ||
17621 | wxPyEndAllowThreads(__tstate); | |
17622 | if (PyErr_Occurred()) SWIG_fail; | |
17623 | } | |
17624 | resultobj = result; | |
17625 | return resultobj; | |
17626 | fail: | |
17627 | return NULL; | |
17628 | } | |
17629 | ||
17630 | ||
17631 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17632 | PyObject *obj; | |
17633 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17634 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17635 | Py_INCREF(obj); | |
17636 | return Py_BuildValue((char *)""); | |
17637 | } | |
17638 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17639 | PyObject *resultobj; | |
423f194a | 17640 | int arg1 = (int) 0 ; |
d14a1e28 | 17641 | wxUpdateUIEvent *result; |
8edf1c75 | 17642 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17643 | char *kwnames[] = { |
17644 | (char *) "commandId", NULL | |
17645 | }; | |
17646 | ||
8edf1c75 RD |
17647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17648 | if (obj0) { | |
2f4c0a16 RD |
17649 | arg1 = (int) SWIG_AsInt(obj0); |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17651 | } |
d14a1e28 RD |
17652 | { |
17653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17654 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17655 | ||
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
2f4c0a16 | 17659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17660 | return resultobj; |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj; | |
17668 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17669 | bool result; | |
17670 | PyObject * obj0 = 0 ; | |
17671 | char *kwnames[] = { | |
17672 | (char *) "self", NULL | |
17673 | }; | |
17674 | ||
17675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17678 | { |
17679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17680 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17681 | ||
17682 | wxPyEndAllowThreads(__tstate); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
4f89f6a3 RD |
17685 | { |
17686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17687 | } | |
d14a1e28 RD |
17688 | return resultobj; |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17695 | PyObject *resultobj; | |
17696 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17697 | bool result; | |
17698 | PyObject * obj0 = 0 ; | |
17699 | char *kwnames[] = { | |
17700 | (char *) "self", NULL | |
17701 | }; | |
17702 | ||
17703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17706 | { |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17709 | ||
17710 | wxPyEndAllowThreads(__tstate); | |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
17712 | } | |
4f89f6a3 RD |
17713 | { |
17714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17715 | } | |
d14a1e28 RD |
17716 | return resultobj; |
17717 | fail: | |
17718 | return NULL; | |
17719 | } | |
17720 | ||
17721 | ||
17722 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17723 | PyObject *resultobj; | |
17724 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17725 | wxString result; | |
17726 | PyObject * obj0 = 0 ; | |
17727 | char *kwnames[] = { | |
17728 | (char *) "self", NULL | |
17729 | }; | |
17730 | ||
17731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17734 | { |
17735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17736 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17737 | ||
17738 | wxPyEndAllowThreads(__tstate); | |
17739 | if (PyErr_Occurred()) SWIG_fail; | |
17740 | } | |
17741 | { | |
17742 | #if wxUSE_UNICODE | |
17743 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17744 | #else | |
17745 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17746 | #endif | |
17747 | } | |
17748 | return resultobj; | |
17749 | fail: | |
17750 | return NULL; | |
17751 | } | |
17752 | ||
17753 | ||
17754 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17755 | PyObject *resultobj; | |
17756 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17757 | bool result; | |
17758 | PyObject * obj0 = 0 ; | |
17759 | char *kwnames[] = { | |
17760 | (char *) "self", NULL | |
17761 | }; | |
17762 | ||
17763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17766 | { |
17767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17768 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17769 | ||
17770 | wxPyEndAllowThreads(__tstate); | |
17771 | if (PyErr_Occurred()) SWIG_fail; | |
17772 | } | |
4f89f6a3 RD |
17773 | { |
17774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17775 | } | |
d14a1e28 RD |
17776 | return resultobj; |
17777 | fail: | |
17778 | return NULL; | |
17779 | } | |
17780 | ||
17781 | ||
17782 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17783 | PyObject *resultobj; | |
17784 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17785 | bool result; | |
17786 | PyObject * obj0 = 0 ; | |
17787 | char *kwnames[] = { | |
17788 | (char *) "self", NULL | |
17789 | }; | |
17790 | ||
17791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17794 | { |
17795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17796 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17797 | ||
17798 | wxPyEndAllowThreads(__tstate); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | } | |
4f89f6a3 RD |
17801 | { |
17802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17803 | } | |
d14a1e28 RD |
17804 | return resultobj; |
17805 | fail: | |
17806 | return NULL; | |
17807 | } | |
17808 | ||
17809 | ||
17810 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17811 | PyObject *resultobj; | |
17812 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17813 | bool result; | |
17814 | PyObject * obj0 = 0 ; | |
17815 | char *kwnames[] = { | |
17816 | (char *) "self", NULL | |
17817 | }; | |
17818 | ||
17819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17822 | { |
17823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17824 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17825 | ||
17826 | wxPyEndAllowThreads(__tstate); | |
17827 | if (PyErr_Occurred()) SWIG_fail; | |
17828 | } | |
4f89f6a3 RD |
17829 | { |
17830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17831 | } | |
d14a1e28 RD |
17832 | return resultobj; |
17833 | fail: | |
17834 | return NULL; | |
17835 | } | |
17836 | ||
17837 | ||
17838 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17839 | PyObject *resultobj; | |
17840 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17841 | bool arg2 ; | |
17842 | PyObject * obj0 = 0 ; | |
17843 | PyObject * obj1 = 0 ; | |
17844 | char *kwnames[] = { | |
17845 | (char *) "self",(char *) "check", NULL | |
17846 | }; | |
17847 | ||
17848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17851 | arg2 = (bool) SWIG_AsBool(obj1); | |
17852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17853 | { |
17854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17855 | (arg1)->Check(arg2); | |
17856 | ||
17857 | wxPyEndAllowThreads(__tstate); | |
17858 | if (PyErr_Occurred()) SWIG_fail; | |
17859 | } | |
17860 | Py_INCREF(Py_None); resultobj = Py_None; | |
17861 | return resultobj; | |
17862 | fail: | |
17863 | return NULL; | |
17864 | } | |
17865 | ||
17866 | ||
17867 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17868 | PyObject *resultobj; | |
17869 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17870 | bool arg2 ; | |
17871 | PyObject * obj0 = 0 ; | |
17872 | PyObject * obj1 = 0 ; | |
17873 | char *kwnames[] = { | |
17874 | (char *) "self",(char *) "enable", NULL | |
17875 | }; | |
17876 | ||
17877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17880 | arg2 = (bool) SWIG_AsBool(obj1); | |
17881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17882 | { |
17883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17884 | (arg1)->Enable(arg2); | |
17885 | ||
17886 | wxPyEndAllowThreads(__tstate); | |
17887 | if (PyErr_Occurred()) SWIG_fail; | |
17888 | } | |
17889 | Py_INCREF(Py_None); resultobj = Py_None; | |
17890 | return resultobj; | |
17891 | fail: | |
17892 | return NULL; | |
17893 | } | |
17894 | ||
17895 | ||
17896 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17897 | PyObject *resultobj; | |
17898 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17899 | wxString *arg2 = 0 ; | |
423f194a | 17900 | bool temp2 = False ; |
d14a1e28 RD |
17901 | PyObject * obj0 = 0 ; |
17902 | PyObject * obj1 = 0 ; | |
17903 | char *kwnames[] = { | |
17904 | (char *) "self",(char *) "text", NULL | |
17905 | }; | |
17906 | ||
17907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17910 | { |
17911 | arg2 = wxString_in_helper(obj1); | |
17912 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17913 | temp2 = True; |
d14a1e28 RD |
17914 | } |
17915 | { | |
17916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17917 | (arg1)->SetText((wxString const &)*arg2); | |
17918 | ||
17919 | wxPyEndAllowThreads(__tstate); | |
17920 | if (PyErr_Occurred()) SWIG_fail; | |
17921 | } | |
17922 | Py_INCREF(Py_None); resultobj = Py_None; | |
17923 | { | |
17924 | if (temp2) | |
17925 | delete arg2; | |
17926 | } | |
17927 | return resultobj; | |
17928 | fail: | |
17929 | { | |
17930 | if (temp2) | |
17931 | delete arg2; | |
17932 | } | |
17933 | return NULL; | |
17934 | } | |
17935 | ||
17936 | ||
17937 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17938 | PyObject *resultobj; | |
17939 | long arg1 ; | |
8edf1c75 | 17940 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17941 | char *kwnames[] = { |
17942 | (char *) "updateInterval", NULL | |
17943 | }; | |
17944 | ||
8edf1c75 | 17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17946 | arg1 = (long) SWIG_AsLong(obj0); |
17947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17948 | { |
17949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17950 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
17951 | ||
17952 | wxPyEndAllowThreads(__tstate); | |
17953 | if (PyErr_Occurred()) SWIG_fail; | |
17954 | } | |
17955 | Py_INCREF(Py_None); resultobj = Py_None; | |
17956 | return resultobj; | |
17957 | fail: | |
17958 | return NULL; | |
17959 | } | |
17960 | ||
17961 | ||
17962 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17963 | PyObject *resultobj; | |
17964 | long result; | |
17965 | char *kwnames[] = { | |
17966 | NULL | |
17967 | }; | |
17968 | ||
17969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
17970 | { | |
17971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17972 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
17973 | ||
17974 | wxPyEndAllowThreads(__tstate); | |
17975 | if (PyErr_Occurred()) SWIG_fail; | |
17976 | } | |
2f4c0a16 | 17977 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
17978 | return resultobj; |
17979 | fail: | |
17980 | return NULL; | |
17981 | } | |
17982 | ||
17983 | ||
17984 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17985 | PyObject *resultobj; | |
17986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17987 | bool result; | |
17988 | PyObject * obj0 = 0 ; | |
17989 | char *kwnames[] = { | |
17990 | (char *) "win", NULL | |
17991 | }; | |
17992 | ||
17993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17996 | { |
17997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17998 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
17999 | ||
18000 | wxPyEndAllowThreads(__tstate); | |
18001 | if (PyErr_Occurred()) SWIG_fail; | |
18002 | } | |
4f89f6a3 RD |
18003 | { |
18004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18005 | } | |
d14a1e28 RD |
18006 | return resultobj; |
18007 | fail: | |
18008 | return NULL; | |
18009 | } | |
18010 | ||
18011 | ||
18012 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18013 | PyObject *resultobj; | |
18014 | char *kwnames[] = { | |
18015 | NULL | |
18016 | }; | |
18017 | ||
18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | wxUpdateUIEvent::ResetUpdateTime(); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | int arg1 ; | |
8edf1c75 | 18036 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18037 | char *kwnames[] = { |
18038 | (char *) "mode", NULL | |
18039 | }; | |
18040 | ||
8edf1c75 | 18041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18042 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18044 | { |
18045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18046 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18047 | ||
18048 | wxPyEndAllowThreads(__tstate); | |
18049 | if (PyErr_Occurred()) SWIG_fail; | |
18050 | } | |
18051 | Py_INCREF(Py_None); resultobj = Py_None; | |
18052 | return resultobj; | |
18053 | fail: | |
18054 | return NULL; | |
18055 | } | |
18056 | ||
18057 | ||
18058 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18059 | PyObject *resultobj; | |
18060 | int result; | |
18061 | char *kwnames[] = { | |
18062 | NULL | |
18063 | }; | |
18064 | ||
18065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18066 | { | |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | result = (int)wxUpdateUIEvent::GetMode(); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
2f4c0a16 | 18073 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18074 | return resultobj; |
18075 | fail: | |
18076 | return NULL; | |
18077 | } | |
18078 | ||
18079 | ||
18080 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18081 | PyObject *obj; | |
18082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18083 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18084 | Py_INCREF(obj); | |
18085 | return Py_BuildValue((char *)""); | |
18086 | } | |
18087 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj; | |
18089 | wxSysColourChangedEvent *result; | |
18090 | char *kwnames[] = { | |
18091 | NULL | |
18092 | }; | |
18093 | ||
18094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18095 | { | |
18096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18097 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18098 | ||
18099 | wxPyEndAllowThreads(__tstate); | |
18100 | if (PyErr_Occurred()) SWIG_fail; | |
18101 | } | |
2f4c0a16 | 18102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18103 | return resultobj; |
18104 | fail: | |
18105 | return NULL; | |
18106 | } | |
18107 | ||
18108 | ||
18109 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18110 | PyObject *obj; | |
18111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18112 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18113 | Py_INCREF(obj); | |
18114 | return Py_BuildValue((char *)""); | |
18115 | } | |
18116 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18117 | PyObject *resultobj; | |
423f194a | 18118 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18119 | wxWindow *arg2 = (wxWindow *) NULL ; |
18120 | wxMouseCaptureChangedEvent *result; | |
8edf1c75 | 18121 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18122 | PyObject * obj1 = 0 ; |
18123 | char *kwnames[] = { | |
18124 | (char *) "winid",(char *) "gainedCapture", NULL | |
18125 | }; | |
18126 | ||
8edf1c75 RD |
18127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18128 | if (obj0) { | |
2f4c0a16 RD |
18129 | arg1 = (int) SWIG_AsInt(obj0); |
18130 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18131 | } |
d14a1e28 | 18132 | if (obj1) { |
2f4c0a16 RD |
18133 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18135 | } |
18136 | { | |
18137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18138 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18139 | ||
18140 | wxPyEndAllowThreads(__tstate); | |
18141 | if (PyErr_Occurred()) SWIG_fail; | |
18142 | } | |
2f4c0a16 | 18143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18144 | return resultobj; |
18145 | fail: | |
18146 | return NULL; | |
18147 | } | |
18148 | ||
18149 | ||
18150 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18151 | PyObject *resultobj; | |
18152 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18153 | wxWindow *result; | |
18154 | PyObject * obj0 = 0 ; | |
18155 | char *kwnames[] = { | |
18156 | (char *) "self", NULL | |
18157 | }; | |
18158 | ||
18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18162 | { |
18163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18164 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18165 | ||
18166 | wxPyEndAllowThreads(__tstate); | |
18167 | if (PyErr_Occurred()) SWIG_fail; | |
18168 | } | |
18169 | { | |
18170 | resultobj = wxPyMake_wxObject(result); | |
18171 | } | |
18172 | return resultobj; | |
18173 | fail: | |
18174 | return NULL; | |
18175 | } | |
18176 | ||
18177 | ||
18178 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18179 | PyObject *obj; | |
18180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18181 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18182 | Py_INCREF(obj); | |
18183 | return Py_BuildValue((char *)""); | |
18184 | } | |
18185 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18186 | PyObject *resultobj; | |
18187 | wxDisplayChangedEvent *result; | |
18188 | char *kwnames[] = { | |
18189 | NULL | |
18190 | }; | |
18191 | ||
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18193 | { | |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18196 | ||
18197 | wxPyEndAllowThreads(__tstate); | |
18198 | if (PyErr_Occurred()) SWIG_fail; | |
18199 | } | |
2f4c0a16 | 18200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18201 | return resultobj; |
18202 | fail: | |
18203 | return NULL; | |
18204 | } | |
18205 | ||
18206 | ||
18207 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18208 | PyObject *obj; | |
18209 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18210 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18211 | Py_INCREF(obj); | |
18212 | return Py_BuildValue((char *)""); | |
18213 | } | |
18214 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj; | |
423f194a | 18216 | int arg1 = (int) 0 ; |
d14a1e28 | 18217 | wxPaletteChangedEvent *result; |
8edf1c75 | 18218 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18219 | char *kwnames[] = { |
18220 | (char *) "id", NULL | |
18221 | }; | |
18222 | ||
8edf1c75 RD |
18223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18224 | if (obj0) { | |
2f4c0a16 RD |
18225 | arg1 = (int) SWIG_AsInt(obj0); |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18227 | } |
d14a1e28 RD |
18228 | { |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18231 | ||
18232 | wxPyEndAllowThreads(__tstate); | |
18233 | if (PyErr_Occurred()) SWIG_fail; | |
18234 | } | |
2f4c0a16 | 18235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18236 | return resultobj; |
18237 | fail: | |
18238 | return NULL; | |
18239 | } | |
18240 | ||
18241 | ||
18242 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18243 | PyObject *resultobj; | |
18244 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18245 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18246 | PyObject * obj0 = 0 ; | |
18247 | PyObject * obj1 = 0 ; | |
18248 | char *kwnames[] = { | |
18249 | (char *) "self",(char *) "win", NULL | |
18250 | }; | |
18251 | ||
18252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18255 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18257 | { |
18258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18259 | (arg1)->SetChangedWindow(arg2); | |
18260 | ||
18261 | wxPyEndAllowThreads(__tstate); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | } | |
18264 | Py_INCREF(Py_None); resultobj = Py_None; | |
18265 | return resultobj; | |
18266 | fail: | |
18267 | return NULL; | |
18268 | } | |
18269 | ||
18270 | ||
18271 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18272 | PyObject *resultobj; | |
18273 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18274 | wxWindow *result; | |
18275 | PyObject * obj0 = 0 ; | |
18276 | char *kwnames[] = { | |
18277 | (char *) "self", NULL | |
18278 | }; | |
18279 | ||
18280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18283 | { |
18284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18285 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18286 | ||
18287 | wxPyEndAllowThreads(__tstate); | |
18288 | if (PyErr_Occurred()) SWIG_fail; | |
18289 | } | |
18290 | { | |
18291 | resultobj = wxPyMake_wxObject(result); | |
18292 | } | |
18293 | return resultobj; | |
18294 | fail: | |
18295 | return NULL; | |
18296 | } | |
18297 | ||
18298 | ||
18299 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18300 | PyObject *obj; | |
18301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18302 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18303 | Py_INCREF(obj); | |
18304 | return Py_BuildValue((char *)""); | |
18305 | } | |
18306 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18307 | PyObject *resultobj; | |
423f194a | 18308 | int arg1 = (int) 0 ; |
d14a1e28 | 18309 | wxQueryNewPaletteEvent *result; |
8edf1c75 | 18310 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18311 | char *kwnames[] = { |
18312 | (char *) "winid", NULL | |
18313 | }; | |
18314 | ||
8edf1c75 RD |
18315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18316 | if (obj0) { | |
2f4c0a16 RD |
18317 | arg1 = (int) SWIG_AsInt(obj0); |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18319 | } |
d14a1e28 RD |
18320 | { |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
2f4c0a16 | 18327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18328 | return resultobj; |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18335 | PyObject *resultobj; | |
18336 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18337 | bool arg2 ; | |
18338 | PyObject * obj0 = 0 ; | |
18339 | PyObject * obj1 = 0 ; | |
18340 | char *kwnames[] = { | |
18341 | (char *) "self",(char *) "realized", NULL | |
18342 | }; | |
18343 | ||
18344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18347 | arg2 = (bool) SWIG_AsBool(obj1); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18349 | { |
18350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18351 | (arg1)->SetPaletteRealized(arg2); | |
18352 | ||
18353 | wxPyEndAllowThreads(__tstate); | |
18354 | if (PyErr_Occurred()) SWIG_fail; | |
18355 | } | |
18356 | Py_INCREF(Py_None); resultobj = Py_None; | |
18357 | return resultobj; | |
18358 | fail: | |
18359 | return NULL; | |
18360 | } | |
18361 | ||
18362 | ||
18363 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18364 | PyObject *resultobj; | |
18365 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18366 | bool result; | |
18367 | PyObject * obj0 = 0 ; | |
18368 | char *kwnames[] = { | |
18369 | (char *) "self", NULL | |
18370 | }; | |
18371 | ||
18372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18375 | { |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
4f89f6a3 RD |
18382 | { |
18383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18384 | } | |
d14a1e28 RD |
18385 | return resultobj; |
18386 | fail: | |
18387 | return NULL; | |
18388 | } | |
18389 | ||
18390 | ||
18391 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18392 | PyObject *obj; | |
18393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18394 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18395 | Py_INCREF(obj); | |
18396 | return Py_BuildValue((char *)""); | |
18397 | } | |
18398 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18399 | PyObject *resultobj; | |
18400 | wxNavigationKeyEvent *result; | |
18401 | char *kwnames[] = { | |
18402 | NULL | |
18403 | }; | |
18404 | ||
18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18406 | { | |
18407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18408 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18409 | ||
18410 | wxPyEndAllowThreads(__tstate); | |
18411 | if (PyErr_Occurred()) SWIG_fail; | |
18412 | } | |
2f4c0a16 | 18413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18414 | return resultobj; |
18415 | fail: | |
18416 | return NULL; | |
18417 | } | |
18418 | ||
18419 | ||
18420 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18421 | PyObject *resultobj; | |
18422 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18423 | bool result; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "self", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18432 | { |
18433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18434 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18435 | ||
18436 | wxPyEndAllowThreads(__tstate); | |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
18438 | } | |
4f89f6a3 RD |
18439 | { |
18440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18441 | } | |
d14a1e28 RD |
18442 | return resultobj; |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
18448 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18449 | PyObject *resultobj; | |
18450 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18451 | bool arg2 ; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | PyObject * obj1 = 0 ; | |
18454 | char *kwnames[] = { | |
18455 | (char *) "self",(char *) "bForward", NULL | |
18456 | }; | |
18457 | ||
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18461 | arg2 = (bool) SWIG_AsBool(obj1); | |
18462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18463 | { |
18464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18465 | (arg1)->SetDirection(arg2); | |
18466 | ||
18467 | wxPyEndAllowThreads(__tstate); | |
18468 | if (PyErr_Occurred()) SWIG_fail; | |
18469 | } | |
18470 | Py_INCREF(Py_None); resultobj = Py_None; | |
18471 | return resultobj; | |
18472 | fail: | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
18477 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18478 | PyObject *resultobj; | |
18479 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18480 | bool result; | |
18481 | PyObject * obj0 = 0 ; | |
18482 | char *kwnames[] = { | |
18483 | (char *) "self", NULL | |
18484 | }; | |
18485 | ||
18486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18489 | { |
18490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18491 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18492 | ||
18493 | wxPyEndAllowThreads(__tstate); | |
18494 | if (PyErr_Occurred()) SWIG_fail; | |
18495 | } | |
4f89f6a3 RD |
18496 | { |
18497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18498 | } | |
d14a1e28 RD |
18499 | return resultobj; |
18500 | fail: | |
18501 | return NULL; | |
18502 | } | |
18503 | ||
18504 | ||
18505 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18506 | PyObject *resultobj; | |
18507 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18508 | bool arg2 ; | |
18509 | PyObject * obj0 = 0 ; | |
18510 | PyObject * obj1 = 0 ; | |
18511 | char *kwnames[] = { | |
18512 | (char *) "self",(char *) "bIs", NULL | |
18513 | }; | |
18514 | ||
18515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18518 | arg2 = (bool) SWIG_AsBool(obj1); | |
18519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18520 | { |
18521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18522 | (arg1)->SetWindowChange(arg2); | |
18523 | ||
18524 | wxPyEndAllowThreads(__tstate); | |
18525 | if (PyErr_Occurred()) SWIG_fail; | |
18526 | } | |
18527 | Py_INCREF(Py_None); resultobj = Py_None; | |
18528 | return resultobj; | |
18529 | fail: | |
18530 | return NULL; | |
18531 | } | |
18532 | ||
18533 | ||
18534 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18535 | PyObject *resultobj; | |
18536 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18537 | wxWindow *result; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | char *kwnames[] = { | |
18540 | (char *) "self", NULL | |
18541 | }; | |
18542 | ||
18543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18546 | { |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18549 | ||
18550 | wxPyEndAllowThreads(__tstate); | |
18551 | if (PyErr_Occurred()) SWIG_fail; | |
18552 | } | |
18553 | { | |
18554 | resultobj = wxPyMake_wxObject(result); | |
18555 | } | |
18556 | return resultobj; | |
18557 | fail: | |
18558 | return NULL; | |
18559 | } | |
18560 | ||
18561 | ||
18562 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18563 | PyObject *resultobj; | |
18564 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18565 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | char *kwnames[] = { | |
18569 | (char *) "self",(char *) "win", NULL | |
18570 | }; | |
18571 | ||
18572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18575 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18577 | { |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | (arg1)->SetCurrentFocus(arg2); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | Py_INCREF(Py_None); resultobj = Py_None; | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | return NULL; | |
18588 | } | |
18589 | ||
18590 | ||
18591 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18592 | PyObject *obj; | |
18593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18594 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18595 | Py_INCREF(obj); | |
18596 | return Py_BuildValue((char *)""); | |
18597 | } | |
18598 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18599 | PyObject *resultobj; | |
18600 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18601 | wxWindowCreateEvent *result; | |
18602 | PyObject * obj0 = 0 ; | |
18603 | char *kwnames[] = { | |
18604 | (char *) "win", NULL | |
18605 | }; | |
18606 | ||
18607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18608 | if (obj0) { | |
2f4c0a16 RD |
18609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18611 | } |
18612 | { | |
18613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18614 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18615 | ||
18616 | wxPyEndAllowThreads(__tstate); | |
18617 | if (PyErr_Occurred()) SWIG_fail; | |
18618 | } | |
2f4c0a16 | 18619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18620 | return resultobj; |
18621 | fail: | |
18622 | return NULL; | |
18623 | } | |
18624 | ||
18625 | ||
18626 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18627 | PyObject *resultobj; | |
18628 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18629 | wxWindow *result; | |
18630 | PyObject * obj0 = 0 ; | |
18631 | char *kwnames[] = { | |
18632 | (char *) "self", NULL | |
18633 | }; | |
18634 | ||
18635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18638 | { |
18639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18640 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18641 | ||
18642 | wxPyEndAllowThreads(__tstate); | |
18643 | if (PyErr_Occurred()) SWIG_fail; | |
18644 | } | |
18645 | { | |
18646 | resultobj = wxPyMake_wxObject(result); | |
18647 | } | |
18648 | return resultobj; | |
18649 | fail: | |
18650 | return NULL; | |
18651 | } | |
18652 | ||
18653 | ||
18654 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18655 | PyObject *obj; | |
18656 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18657 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18658 | Py_INCREF(obj); | |
18659 | return Py_BuildValue((char *)""); | |
18660 | } | |
18661 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18662 | PyObject *resultobj; | |
18663 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18664 | wxWindowDestroyEvent *result; | |
18665 | PyObject * obj0 = 0 ; | |
18666 | char *kwnames[] = { | |
18667 | (char *) "win", NULL | |
18668 | }; | |
18669 | ||
18670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18671 | if (obj0) { | |
2f4c0a16 RD |
18672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18674 | } |
18675 | { | |
18676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18677 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18678 | ||
18679 | wxPyEndAllowThreads(__tstate); | |
18680 | if (PyErr_Occurred()) SWIG_fail; | |
18681 | } | |
2f4c0a16 | 18682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18683 | return resultobj; |
18684 | fail: | |
18685 | return NULL; | |
18686 | } | |
18687 | ||
18688 | ||
18689 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18690 | PyObject *resultobj; | |
18691 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18692 | wxWindow *result; | |
18693 | PyObject * obj0 = 0 ; | |
18694 | char *kwnames[] = { | |
18695 | (char *) "self", NULL | |
18696 | }; | |
18697 | ||
18698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18701 | { |
18702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18703 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18704 | ||
18705 | wxPyEndAllowThreads(__tstate); | |
18706 | if (PyErr_Occurred()) SWIG_fail; | |
18707 | } | |
18708 | { | |
18709 | resultobj = wxPyMake_wxObject(result); | |
18710 | } | |
18711 | return resultobj; | |
18712 | fail: | |
18713 | return NULL; | |
18714 | } | |
18715 | ||
18716 | ||
18717 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18718 | PyObject *obj; | |
18719 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18720 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18721 | Py_INCREF(obj); | |
18722 | return Py_BuildValue((char *)""); | |
18723 | } | |
18724 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18725 | PyObject *resultobj; | |
18726 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 18727 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18728 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18729 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18730 | wxContextMenuEvent *result; | |
18731 | wxPoint temp3 ; | |
8edf1c75 RD |
18732 | PyObject * obj0 = 0 ; |
18733 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18734 | PyObject * obj2 = 0 ; |
18735 | char *kwnames[] = { | |
18736 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18737 | }; | |
18738 | ||
8edf1c75 RD |
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18740 | if (obj0) { | |
2f4c0a16 RD |
18741 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18742 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18743 | } |
18744 | if (obj1) { | |
2f4c0a16 RD |
18745 | arg2 = (int) SWIG_AsInt(obj1); |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18747 | } |
d14a1e28 RD |
18748 | if (obj2) { |
18749 | { | |
18750 | arg3 = &temp3; | |
18751 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18752 | } | |
18753 | } | |
18754 | { | |
18755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18756 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18757 | ||
18758 | wxPyEndAllowThreads(__tstate); | |
18759 | if (PyErr_Occurred()) SWIG_fail; | |
18760 | } | |
2f4c0a16 | 18761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18762 | return resultobj; |
18763 | fail: | |
18764 | return NULL; | |
18765 | } | |
18766 | ||
18767 | ||
18768 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18769 | PyObject *resultobj; | |
18770 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18771 | wxPoint *result; | |
18772 | PyObject * obj0 = 0 ; | |
18773 | char *kwnames[] = { | |
18774 | (char *) "self", NULL | |
18775 | }; | |
18776 | ||
18777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18780 | { |
18781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18782 | { | |
18783 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18784 | result = (wxPoint *) &_result_ref; | |
18785 | } | |
18786 | ||
18787 | wxPyEndAllowThreads(__tstate); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
18789 | } | |
2f4c0a16 | 18790 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18791 | return resultobj; |
18792 | fail: | |
18793 | return NULL; | |
18794 | } | |
18795 | ||
18796 | ||
18797 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18798 | PyObject *resultobj; | |
18799 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18800 | wxPoint *arg2 = 0 ; | |
18801 | wxPoint temp2 ; | |
18802 | PyObject * obj0 = 0 ; | |
18803 | PyObject * obj1 = 0 ; | |
18804 | char *kwnames[] = { | |
18805 | (char *) "self",(char *) "pos", NULL | |
18806 | }; | |
18807 | ||
18808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18811 | { |
18812 | arg2 = &temp2; | |
18813 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18814 | } | |
18815 | { | |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | Py_INCREF(Py_None); resultobj = Py_None; | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
18829 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18830 | PyObject *obj; | |
18831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18832 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18833 | Py_INCREF(obj); | |
18834 | return Py_BuildValue((char *)""); | |
18835 | } | |
18836 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18837 | PyObject *resultobj; | |
18838 | wxIdleEvent *result; | |
18839 | char *kwnames[] = { | |
18840 | NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
2f4c0a16 | 18851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
18852 | return resultobj; |
18853 | fail: | |
18854 | return NULL; | |
18855 | } | |
18856 | ||
18857 | ||
18858 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18859 | PyObject *resultobj; | |
18860 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
423f194a | 18861 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18862 | PyObject * obj0 = 0 ; |
18863 | PyObject * obj1 = 0 ; | |
18864 | char *kwnames[] = { | |
18865 | (char *) "self",(char *) "needMore", NULL | |
18866 | }; | |
18867 | ||
18868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18871 | if (obj1) { |
2f4c0a16 RD |
18872 | arg2 = (bool) SWIG_AsBool(obj1); |
18873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18874 | } |
18875 | { | |
18876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18877 | (arg1)->RequestMore(arg2); | |
18878 | ||
18879 | wxPyEndAllowThreads(__tstate); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
18882 | Py_INCREF(Py_None); resultobj = Py_None; | |
18883 | return resultobj; | |
18884 | fail: | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
18889 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18890 | PyObject *resultobj; | |
18891 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18892 | bool result; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18901 | { |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
4f89f6a3 RD |
18908 | { |
18909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18910 | } | |
d14a1e28 RD |
18911 | return resultobj; |
18912 | fail: | |
18913 | return NULL; | |
18914 | } | |
18915 | ||
18916 | ||
18917 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18918 | PyObject *resultobj; | |
18919 | int arg1 ; | |
8edf1c75 | 18920 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18921 | char *kwnames[] = { |
18922 | (char *) "mode", NULL | |
18923 | }; | |
18924 | ||
8edf1c75 | 18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18926 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18928 | { |
18929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18930 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18931 | ||
18932 | wxPyEndAllowThreads(__tstate); | |
18933 | if (PyErr_Occurred()) SWIG_fail; | |
18934 | } | |
18935 | Py_INCREF(Py_None); resultobj = Py_None; | |
18936 | return resultobj; | |
18937 | fail: | |
18938 | return NULL; | |
18939 | } | |
18940 | ||
18941 | ||
18942 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | int result; | |
18945 | char *kwnames[] = { | |
18946 | NULL | |
18947 | }; | |
18948 | ||
18949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | result = (int)wxIdleEvent::GetMode(); | |
18953 | ||
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
2f4c0a16 | 18957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18958 | return resultobj; |
18959 | fail: | |
18960 | return NULL; | |
18961 | } | |
18962 | ||
18963 | ||
18964 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18965 | PyObject *resultobj; | |
18966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18967 | bool result; | |
18968 | PyObject * obj0 = 0 ; | |
18969 | char *kwnames[] = { | |
18970 | (char *) "win", NULL | |
18971 | }; | |
18972 | ||
18973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18976 | { |
18977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18978 | result = (bool)wxIdleEvent::CanSend(arg1); | |
18979 | ||
18980 | wxPyEndAllowThreads(__tstate); | |
18981 | if (PyErr_Occurred()) SWIG_fail; | |
18982 | } | |
4f89f6a3 RD |
18983 | { |
18984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18985 | } | |
d14a1e28 RD |
18986 | return resultobj; |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
18992 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
18993 | PyObject *obj; | |
18994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18995 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
18996 | Py_INCREF(obj); | |
18997 | return Py_BuildValue((char *)""); | |
18998 | } | |
18999 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19000 | PyObject *resultobj; | |
19001 | int arg1 = (int) 0 ; | |
19002 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19003 | wxPyEvent *result; | |
8edf1c75 RD |
19004 | PyObject * obj0 = 0 ; |
19005 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19006 | char *kwnames[] = { |
19007 | (char *) "winid",(char *) "commandType", NULL | |
19008 | }; | |
19009 | ||
8edf1c75 RD |
19010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19011 | if (obj0) { | |
2f4c0a16 RD |
19012 | arg1 = (int) SWIG_AsInt(obj0); |
19013 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19014 | } |
19015 | if (obj1) { | |
2f4c0a16 RD |
19016 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19017 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19018 | } |
d14a1e28 RD |
19019 | { |
19020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19021 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19022 | ||
19023 | wxPyEndAllowThreads(__tstate); | |
19024 | if (PyErr_Occurred()) SWIG_fail; | |
19025 | } | |
2f4c0a16 | 19026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19027 | return resultobj; |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19036 | PyObject * obj0 = 0 ; | |
19037 | char *kwnames[] = { | |
19038 | (char *) "self", NULL | |
19039 | }; | |
19040 | ||
19041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19044 | { |
19045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19046 | delete arg1; | |
19047 | ||
19048 | wxPyEndAllowThreads(__tstate); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
19050 | } | |
19051 | Py_INCREF(Py_None); resultobj = Py_None; | |
19052 | return resultobj; | |
19053 | fail: | |
19054 | return NULL; | |
19055 | } | |
19056 | ||
19057 | ||
19058 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19059 | PyObject *resultobj; | |
19060 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19061 | PyObject *arg2 = (PyObject *) 0 ; | |
19062 | PyObject * obj0 = 0 ; | |
19063 | PyObject * obj1 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self",(char *) "self", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19071 | arg2 = obj1; |
19072 | { | |
19073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19074 | (arg1)->SetSelf(arg2); | |
19075 | ||
19076 | wxPyEndAllowThreads(__tstate); | |
19077 | if (PyErr_Occurred()) SWIG_fail; | |
19078 | } | |
19079 | Py_INCREF(Py_None); resultobj = Py_None; | |
19080 | return resultobj; | |
19081 | fail: | |
19082 | return NULL; | |
19083 | } | |
19084 | ||
19085 | ||
19086 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19087 | PyObject *resultobj; | |
19088 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19089 | PyObject *result; | |
19090 | PyObject * obj0 = 0 ; | |
19091 | char *kwnames[] = { | |
19092 | (char *) "self", NULL | |
19093 | }; | |
19094 | ||
19095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19098 | { |
19099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19100 | result = (PyObject *)(arg1)->GetSelf(); | |
19101 | ||
19102 | wxPyEndAllowThreads(__tstate); | |
19103 | if (PyErr_Occurred()) SWIG_fail; | |
19104 | } | |
19105 | resultobj = result; | |
19106 | return resultobj; | |
19107 | fail: | |
19108 | return NULL; | |
19109 | } | |
19110 | ||
19111 | ||
19112 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19113 | PyObject *obj; | |
19114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19115 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19116 | Py_INCREF(obj); | |
19117 | return Py_BuildValue((char *)""); | |
19118 | } | |
19119 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19120 | PyObject *resultobj; | |
19121 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19122 | int arg2 = (int) 0 ; | |
19123 | wxPyCommandEvent *result; | |
8edf1c75 RD |
19124 | PyObject * obj0 = 0 ; |
19125 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19126 | char *kwnames[] = { |
19127 | (char *) "commandType",(char *) "id", NULL | |
19128 | }; | |
19129 | ||
8edf1c75 RD |
19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19131 | if (obj0) { | |
2f4c0a16 RD |
19132 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19133 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19134 | } |
19135 | if (obj1) { | |
2f4c0a16 RD |
19136 | arg2 = (int) SWIG_AsInt(obj1); |
19137 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19138 | } |
d14a1e28 RD |
19139 | { |
19140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19141 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19142 | ||
19143 | wxPyEndAllowThreads(__tstate); | |
19144 | if (PyErr_Occurred()) SWIG_fail; | |
19145 | } | |
2f4c0a16 | 19146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19147 | return resultobj; |
19148 | fail: | |
19149 | return NULL; | |
19150 | } | |
19151 | ||
19152 | ||
19153 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19154 | PyObject *resultobj; | |
19155 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19156 | PyObject * obj0 = 0 ; | |
19157 | char *kwnames[] = { | |
19158 | (char *) "self", NULL | |
19159 | }; | |
19160 | ||
19161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19164 | { |
19165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19166 | delete arg1; | |
19167 | ||
19168 | wxPyEndAllowThreads(__tstate); | |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
19170 | } | |
19171 | Py_INCREF(Py_None); resultobj = Py_None; | |
19172 | return resultobj; | |
19173 | fail: | |
19174 | return NULL; | |
19175 | } | |
19176 | ||
19177 | ||
19178 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19179 | PyObject *resultobj; | |
19180 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19181 | PyObject *arg2 = (PyObject *) 0 ; | |
19182 | PyObject * obj0 = 0 ; | |
19183 | PyObject * obj1 = 0 ; | |
19184 | char *kwnames[] = { | |
19185 | (char *) "self",(char *) "self", NULL | |
19186 | }; | |
19187 | ||
19188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19191 | arg2 = obj1; |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | (arg1)->SetSelf(arg2); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | Py_INCREF(Py_None); resultobj = Py_None; | |
19200 | return resultobj; | |
19201 | fail: | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
19206 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19207 | PyObject *resultobj; | |
19208 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19209 | PyObject *result; | |
19210 | PyObject * obj0 = 0 ; | |
19211 | char *kwnames[] = { | |
19212 | (char *) "self", NULL | |
19213 | }; | |
19214 | ||
19215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19218 | { |
19219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19220 | result = (PyObject *)(arg1)->GetSelf(); | |
19221 | ||
19222 | wxPyEndAllowThreads(__tstate); | |
19223 | if (PyErr_Occurred()) SWIG_fail; | |
19224 | } | |
19225 | resultobj = result; | |
19226 | return resultobj; | |
19227 | fail: | |
19228 | return NULL; | |
19229 | } | |
19230 | ||
19231 | ||
19232 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19233 | PyObject *obj; | |
19234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19235 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19236 | Py_INCREF(obj); | |
19237 | return Py_BuildValue((char *)""); | |
19238 | } | |
19239 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19240 | PyObject *resultobj; | |
19241 | wxPyApp *result; | |
19242 | char *kwnames[] = { | |
19243 | NULL | |
19244 | }; | |
19245 | ||
19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19247 | { | |
19248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19249 | result = (wxPyApp *)new_wxPyApp(); | |
19250 | ||
19251 | wxPyEndAllowThreads(__tstate); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | } | |
19254 | { | |
19255 | resultobj = wxPyMake_wxObject(result); | |
19256 | } | |
19257 | return resultobj; | |
19258 | fail: | |
19259 | return NULL; | |
19260 | } | |
19261 | ||
19262 | ||
19263 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19264 | PyObject *resultobj; | |
19265 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19266 | PyObject * obj0 = 0 ; | |
19267 | char *kwnames[] = { | |
19268 | (char *) "self", NULL | |
19269 | }; | |
19270 | ||
19271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19274 | { |
19275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19276 | delete arg1; | |
19277 | ||
19278 | wxPyEndAllowThreads(__tstate); | |
19279 | if (PyErr_Occurred()) SWIG_fail; | |
19280 | } | |
19281 | Py_INCREF(Py_None); resultobj = Py_None; | |
19282 | return resultobj; | |
19283 | fail: | |
19284 | return NULL; | |
19285 | } | |
19286 | ||
19287 | ||
19288 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19289 | PyObject *resultobj; | |
19290 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19291 | PyObject *arg2 = (PyObject *) 0 ; | |
19292 | PyObject *arg3 = (PyObject *) 0 ; | |
19293 | PyObject * obj0 = 0 ; | |
19294 | PyObject * obj1 = 0 ; | |
19295 | PyObject * obj2 = 0 ; | |
19296 | char *kwnames[] = { | |
19297 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19298 | }; | |
19299 | ||
19300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19303 | arg2 = obj1; |
19304 | arg3 = obj2; | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | Py_INCREF(Py_None); resultobj = Py_None; | |
19313 | return resultobj; | |
19314 | fail: | |
19315 | return NULL; | |
19316 | } | |
19317 | ||
19318 | ||
19319 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19320 | PyObject *resultobj; | |
19321 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19322 | wxString result; | |
19323 | PyObject * obj0 = 0 ; | |
19324 | char *kwnames[] = { | |
19325 | (char *) "self", NULL | |
19326 | }; | |
19327 | ||
19328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19331 | { |
19332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19333 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19334 | ||
19335 | wxPyEndAllowThreads(__tstate); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
19337 | } | |
19338 | { | |
19339 | #if wxUSE_UNICODE | |
19340 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19341 | #else | |
19342 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19343 | #endif | |
19344 | } | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | return NULL; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19354 | wxString *arg2 = 0 ; | |
423f194a | 19355 | bool temp2 = False ; |
d14a1e28 RD |
19356 | PyObject * obj0 = 0 ; |
19357 | PyObject * obj1 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self",(char *) "name", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19365 | { |
19366 | arg2 = wxString_in_helper(obj1); | |
19367 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19368 | temp2 = True; |
d14a1e28 RD |
19369 | } |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | (arg1)->SetAppName((wxString const &)*arg2); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | Py_INCREF(Py_None); resultobj = Py_None; | |
19378 | { | |
19379 | if (temp2) | |
19380 | delete arg2; | |
19381 | } | |
19382 | return resultobj; | |
19383 | fail: | |
19384 | { | |
19385 | if (temp2) | |
19386 | delete arg2; | |
19387 | } | |
19388 | return NULL; | |
19389 | } | |
19390 | ||
19391 | ||
19392 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19393 | PyObject *resultobj; | |
19394 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19395 | wxString result; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "self", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19404 | { |
19405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19406 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19407 | ||
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | { | |
19412 | #if wxUSE_UNICODE | |
19413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19414 | #else | |
19415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19416 | #endif | |
19417 | } | |
19418 | return resultobj; | |
19419 | fail: | |
19420 | return NULL; | |
19421 | } | |
19422 | ||
19423 | ||
19424 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19425 | PyObject *resultobj; | |
19426 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19427 | wxString *arg2 = 0 ; | |
423f194a | 19428 | bool temp2 = False ; |
d14a1e28 RD |
19429 | PyObject * obj0 = 0 ; |
19430 | PyObject * obj1 = 0 ; | |
19431 | char *kwnames[] = { | |
19432 | (char *) "self",(char *) "name", NULL | |
19433 | }; | |
19434 | ||
19435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19438 | { |
19439 | arg2 = wxString_in_helper(obj1); | |
19440 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19441 | temp2 = True; |
d14a1e28 RD |
19442 | } |
19443 | { | |
19444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19445 | (arg1)->SetClassName((wxString const &)*arg2); | |
19446 | ||
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | Py_INCREF(Py_None); resultobj = Py_None; | |
19451 | { | |
19452 | if (temp2) | |
19453 | delete arg2; | |
19454 | } | |
19455 | return resultobj; | |
19456 | fail: | |
19457 | { | |
19458 | if (temp2) | |
19459 | delete arg2; | |
19460 | } | |
19461 | return NULL; | |
19462 | } | |
19463 | ||
19464 | ||
19465 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19466 | PyObject *resultobj; | |
19467 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19468 | wxString *result; | |
19469 | PyObject * obj0 = 0 ; | |
19470 | char *kwnames[] = { | |
19471 | (char *) "self", NULL | |
19472 | }; | |
19473 | ||
19474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19477 | { |
19478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19479 | { | |
19480 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19481 | result = (wxString *) &_result_ref; | |
19482 | } | |
19483 | ||
19484 | wxPyEndAllowThreads(__tstate); | |
19485 | if (PyErr_Occurred()) SWIG_fail; | |
19486 | } | |
f0983263 RD |
19487 | { |
19488 | #if wxUSE_UNICODE | |
19489 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19490 | #else | |
19491 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19492 | #endif | |
19493 | } | |
d14a1e28 RD |
19494 | return resultobj; |
19495 | fail: | |
19496 | return NULL; | |
19497 | } | |
19498 | ||
19499 | ||
19500 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19501 | PyObject *resultobj; | |
19502 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19503 | wxString *arg2 = 0 ; | |
423f194a | 19504 | bool temp2 = False ; |
d14a1e28 RD |
19505 | PyObject * obj0 = 0 ; |
19506 | PyObject * obj1 = 0 ; | |
19507 | char *kwnames[] = { | |
19508 | (char *) "self",(char *) "name", NULL | |
19509 | }; | |
19510 | ||
19511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19514 | { |
19515 | arg2 = wxString_in_helper(obj1); | |
19516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19517 | temp2 = True; |
d14a1e28 RD |
19518 | } |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19521 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
19526 | Py_INCREF(Py_None); resultobj = Py_None; | |
19527 | { | |
19528 | if (temp2) | |
19529 | delete arg2; | |
19530 | } | |
19531 | return resultobj; | |
19532 | fail: | |
19533 | { | |
19534 | if (temp2) | |
19535 | delete arg2; | |
19536 | } | |
19537 | return NULL; | |
19538 | } | |
19539 | ||
19540 | ||
19541 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19542 | PyObject *resultobj; | |
19543 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19544 | wxAppTraits *result; | |
19545 | PyObject * obj0 = 0 ; | |
19546 | char *kwnames[] = { | |
19547 | (char *) "self", NULL | |
19548 | }; | |
19549 | ||
19550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19553 | { |
19554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19555 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19556 | ||
19557 | wxPyEndAllowThreads(__tstate); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
19559 | } | |
2f4c0a16 | 19560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19561 | return resultobj; |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19570 | PyObject * obj0 = 0 ; | |
19571 | char *kwnames[] = { | |
19572 | (char *) "self", NULL | |
19573 | }; | |
19574 | ||
19575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19578 | { |
19579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19580 | (arg1)->ProcessPendingEvents(); | |
19581 | ||
19582 | wxPyEndAllowThreads(__tstate); | |
19583 | if (PyErr_Occurred()) SWIG_fail; | |
19584 | } | |
19585 | Py_INCREF(Py_None); resultobj = Py_None; | |
19586 | return resultobj; | |
19587 | fail: | |
19588 | return NULL; | |
19589 | } | |
19590 | ||
19591 | ||
19592 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19593 | PyObject *resultobj; | |
19594 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
423f194a | 19595 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19596 | bool result; |
19597 | PyObject * obj0 = 0 ; | |
19598 | PyObject * obj1 = 0 ; | |
19599 | char *kwnames[] = { | |
19600 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19601 | }; | |
19602 | ||
19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19606 | if (obj1) { |
2f4c0a16 RD |
19607 | arg2 = (bool) SWIG_AsBool(obj1); |
19608 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19609 | } |
19610 | { | |
19611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19612 | result = (bool)(arg1)->Yield(arg2); | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
4f89f6a3 RD |
19617 | { |
19618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19619 | } | |
d14a1e28 RD |
19620 | return resultobj; |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
19626 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19627 | PyObject *resultobj; | |
19628 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19629 | PyObject * obj0 = 0 ; | |
19630 | char *kwnames[] = { | |
19631 | (char *) "self", NULL | |
19632 | }; | |
19633 | ||
19634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19637 | { |
19638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19639 | (arg1)->WakeUpIdle(); | |
19640 | ||
19641 | wxPyEndAllowThreads(__tstate); | |
19642 | if (PyErr_Occurred()) SWIG_fail; | |
19643 | } | |
19644 | Py_INCREF(Py_None); resultobj = Py_None; | |
19645 | return resultobj; | |
19646 | fail: | |
19647 | return NULL; | |
19648 | } | |
19649 | ||
19650 | ||
19651 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19652 | PyObject *resultobj; | |
19653 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19654 | int result; | |
19655 | PyObject * obj0 = 0 ; | |
19656 | char *kwnames[] = { | |
19657 | (char *) "self", NULL | |
19658 | }; | |
19659 | ||
19660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19663 | { |
19664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19665 | result = (int)(arg1)->MainLoop(); | |
19666 | ||
19667 | wxPyEndAllowThreads(__tstate); | |
19668 | if (PyErr_Occurred()) SWIG_fail; | |
19669 | } | |
2f4c0a16 | 19670 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19671 | return resultobj; |
19672 | fail: | |
19673 | return NULL; | |
19674 | } | |
19675 | ||
19676 | ||
19677 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19678 | PyObject *resultobj; | |
19679 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19680 | PyObject * obj0 = 0 ; | |
19681 | char *kwnames[] = { | |
19682 | (char *) "self", NULL | |
19683 | }; | |
19684 | ||
19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19688 | { |
19689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19690 | (arg1)->Exit(); | |
19691 | ||
19692 | wxPyEndAllowThreads(__tstate); | |
19693 | if (PyErr_Occurred()) SWIG_fail; | |
19694 | } | |
19695 | Py_INCREF(Py_None); resultobj = Py_None; | |
19696 | return resultobj; | |
19697 | fail: | |
19698 | return NULL; | |
19699 | } | |
19700 | ||
19701 | ||
19702 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19703 | PyObject *resultobj; | |
19704 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19713 | { |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | (arg1)->ExitMainLoop(); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | Py_INCREF(Py_None); resultobj = Py_None; | |
19721 | return resultobj; | |
19722 | fail: | |
19723 | return NULL; | |
19724 | } | |
19725 | ||
19726 | ||
19727 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19728 | PyObject *resultobj; | |
19729 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19730 | bool result; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "self", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19739 | { |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | result = (bool)(arg1)->Pending(); | |
19742 | ||
19743 | wxPyEndAllowThreads(__tstate); | |
19744 | if (PyErr_Occurred()) SWIG_fail; | |
19745 | } | |
4f89f6a3 RD |
19746 | { |
19747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19748 | } | |
d14a1e28 RD |
19749 | return resultobj; |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19758 | bool result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | char *kwnames[] = { | |
19761 | (char *) "self", NULL | |
19762 | }; | |
19763 | ||
19764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19767 | { |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | result = (bool)(arg1)->Dispatch(); | |
19770 | ||
19771 | wxPyEndAllowThreads(__tstate); | |
19772 | if (PyErr_Occurred()) SWIG_fail; | |
19773 | } | |
4f89f6a3 RD |
19774 | { |
19775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19776 | } | |
d14a1e28 RD |
19777 | return resultobj; |
19778 | fail: | |
19779 | return NULL; | |
19780 | } | |
19781 | ||
19782 | ||
19783 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19784 | PyObject *resultobj; | |
19785 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19786 | bool result; | |
19787 | PyObject * obj0 = 0 ; | |
19788 | char *kwnames[] = { | |
19789 | (char *) "self", NULL | |
19790 | }; | |
19791 | ||
19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19795 | { |
19796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19797 | result = (bool)(arg1)->ProcessIdle(); | |
19798 | ||
19799 | wxPyEndAllowThreads(__tstate); | |
19800 | if (PyErr_Occurred()) SWIG_fail; | |
19801 | } | |
4f89f6a3 RD |
19802 | { |
19803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19804 | } | |
d14a1e28 RD |
19805 | return resultobj; |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
19811 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19812 | PyObject *resultobj; | |
19813 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19814 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19815 | wxIdleEvent *arg3 = 0 ; | |
19816 | bool result; | |
19817 | PyObject * obj0 = 0 ; | |
19818 | PyObject * obj1 = 0 ; | |
19819 | PyObject * obj2 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
19825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19829 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19830 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19831 | SWIG_fail; | |
d14a1e28 | 19832 | if (arg3 == NULL) { |
2f4c0a16 RD |
19833 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19834 | SWIG_fail; | |
d14a1e28 RD |
19835 | } |
19836 | { | |
19837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19838 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19839 | ||
19840 | wxPyEndAllowThreads(__tstate); | |
19841 | if (PyErr_Occurred()) SWIG_fail; | |
19842 | } | |
4f89f6a3 RD |
19843 | { |
19844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19845 | } | |
d14a1e28 RD |
19846 | return resultobj; |
19847 | fail: | |
19848 | return NULL; | |
19849 | } | |
19850 | ||
19851 | ||
d14a1e28 RD |
19852 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19853 | PyObject *resultobj; | |
19854 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19855 | bool result; | |
19856 | PyObject * obj0 = 0 ; | |
19857 | char *kwnames[] = { | |
19858 | (char *) "self", NULL | |
19859 | }; | |
19860 | ||
19861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19864 | { |
19865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19866 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19867 | ||
19868 | wxPyEndAllowThreads(__tstate); | |
19869 | if (PyErr_Occurred()) SWIG_fail; | |
19870 | } | |
4f89f6a3 RD |
19871 | { |
19872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19873 | } | |
d14a1e28 RD |
19874 | return resultobj; |
19875 | fail: | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
19880 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19881 | PyObject *resultobj; | |
19882 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19883 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19884 | PyObject * obj0 = 0 ; | |
19885 | PyObject * obj1 = 0 ; | |
19886 | char *kwnames[] = { | |
19887 | (char *) "self",(char *) "win", NULL | |
19888 | }; | |
19889 | ||
19890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19895 | { |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | (arg1)->SetTopWindow(arg2); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
19902 | Py_INCREF(Py_None); resultobj = Py_None; | |
19903 | return resultobj; | |
19904 | fail: | |
19905 | return NULL; | |
19906 | } | |
19907 | ||
19908 | ||
19909 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19910 | PyObject *resultobj; | |
19911 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19912 | wxWindow *result; | |
19913 | PyObject * obj0 = 0 ; | |
19914 | char *kwnames[] = { | |
19915 | (char *) "self", NULL | |
19916 | }; | |
19917 | ||
19918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19921 | { |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19924 | ||
19925 | wxPyEndAllowThreads(__tstate); | |
19926 | if (PyErr_Occurred()) SWIG_fail; | |
19927 | } | |
19928 | { | |
19929 | resultobj = wxPyMake_wxObject(result); | |
19930 | } | |
19931 | return resultobj; | |
19932 | fail: | |
19933 | return NULL; | |
19934 | } | |
19935 | ||
19936 | ||
19937 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19938 | PyObject *resultobj; | |
19939 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19940 | bool arg2 ; | |
19941 | PyObject * obj0 = 0 ; | |
19942 | PyObject * obj1 = 0 ; | |
19943 | char *kwnames[] = { | |
19944 | (char *) "self",(char *) "flag", NULL | |
19945 | }; | |
19946 | ||
19947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19950 | arg2 = (bool) SWIG_AsBool(obj1); | |
19951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19952 | { |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | (arg1)->SetExitOnFrameDelete(arg2); | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | Py_INCREF(Py_None); resultobj = Py_None; | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19967 | PyObject *resultobj; | |
19968 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19969 | bool result; | |
19970 | PyObject * obj0 = 0 ; | |
19971 | char *kwnames[] = { | |
19972 | (char *) "self", NULL | |
19973 | }; | |
19974 | ||
19975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19978 | { |
19979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19980 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
19981 | ||
19982 | wxPyEndAllowThreads(__tstate); | |
19983 | if (PyErr_Occurred()) SWIG_fail; | |
19984 | } | |
4f89f6a3 RD |
19985 | { |
19986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19987 | } | |
d14a1e28 RD |
19988 | return resultobj; |
19989 | fail: | |
19990 | return NULL; | |
19991 | } | |
19992 | ||
19993 | ||
19994 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19995 | PyObject *resultobj; | |
19996 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19997 | bool arg2 ; | |
19998 | PyObject * obj0 = 0 ; | |
19999 | PyObject * obj1 = 0 ; | |
20000 | char *kwnames[] = { | |
20001 | (char *) "self",(char *) "flag", NULL | |
20002 | }; | |
20003 | ||
20004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20007 | arg2 = (bool) SWIG_AsBool(obj1); | |
20008 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20009 | { |
20010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20011 | (arg1)->SetUseBestVisual(arg2); | |
20012 | ||
20013 | wxPyEndAllowThreads(__tstate); | |
20014 | if (PyErr_Occurred()) SWIG_fail; | |
20015 | } | |
20016 | Py_INCREF(Py_None); resultobj = Py_None; | |
20017 | return resultobj; | |
20018 | fail: | |
20019 | return NULL; | |
20020 | } | |
20021 | ||
20022 | ||
20023 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20024 | PyObject *resultobj; | |
20025 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20026 | bool result; | |
20027 | PyObject * obj0 = 0 ; | |
20028 | char *kwnames[] = { | |
20029 | (char *) "self", NULL | |
20030 | }; | |
20031 | ||
20032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20035 | { |
20036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20037 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20038 | ||
20039 | wxPyEndAllowThreads(__tstate); | |
20040 | if (PyErr_Occurred()) SWIG_fail; | |
20041 | } | |
4f89f6a3 RD |
20042 | { |
20043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20044 | } | |
d14a1e28 RD |
20045 | return resultobj; |
20046 | fail: | |
20047 | return NULL; | |
20048 | } | |
20049 | ||
20050 | ||
20051 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20052 | PyObject *resultobj; | |
20053 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20054 | int arg2 ; | |
20055 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20057 | char *kwnames[] = { |
20058 | (char *) "self",(char *) "mode", NULL | |
20059 | }; | |
20060 | ||
8edf1c75 | 20061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20064 | arg2 = (int) SWIG_AsInt(obj1); | |
20065 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20066 | { |
20067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20068 | (arg1)->SetPrintMode(arg2); | |
20069 | ||
20070 | wxPyEndAllowThreads(__tstate); | |
20071 | if (PyErr_Occurred()) SWIG_fail; | |
20072 | } | |
20073 | Py_INCREF(Py_None); resultobj = Py_None; | |
20074 | return resultobj; | |
20075 | fail: | |
20076 | return NULL; | |
20077 | } | |
20078 | ||
20079 | ||
20080 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20081 | PyObject *resultobj; | |
20082 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20083 | int result; | |
20084 | PyObject * obj0 = 0 ; | |
20085 | char *kwnames[] = { | |
20086 | (char *) "self", NULL | |
20087 | }; | |
20088 | ||
20089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20092 | { |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
2f4c0a16 | 20099 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20100 | return resultobj; |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
44127b65 | 20106 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20107 | PyObject *resultobj; |
20108 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 20109 | int arg2 ; |
d14a1e28 | 20110 | PyObject * obj0 = 0 ; |
8edf1c75 | 20111 | PyObject * obj1 = 0 ; |
d14a1e28 | 20112 | char *kwnames[] = { |
44127b65 | 20113 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20114 | }; |
20115 | ||
8edf1c75 | 20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20119 | arg2 = (int) SWIG_AsInt(obj1); | |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20121 | { |
20122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20123 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20124 | |
20125 | wxPyEndAllowThreads(__tstate); | |
20126 | if (PyErr_Occurred()) SWIG_fail; | |
20127 | } | |
44127b65 | 20128 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20129 | return resultobj; |
20130 | fail: | |
20131 | return NULL; | |
20132 | } | |
20133 | ||
20134 | ||
44127b65 | 20135 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20136 | PyObject *resultobj; |
20137 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
44127b65 | 20138 | int result; |
d14a1e28 RD |
20139 | PyObject * obj0 = 0 ; |
20140 | char *kwnames[] = { | |
44127b65 | 20141 | (char *) "self", NULL |
d14a1e28 RD |
20142 | }; |
20143 | ||
44127b65 | 20144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20147 | { |
20148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20149 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20150 | |
20151 | wxPyEndAllowThreads(__tstate); | |
20152 | if (PyErr_Occurred()) SWIG_fail; | |
20153 | } | |
2f4c0a16 | 20154 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20155 | return resultobj; |
20156 | fail: | |
20157 | return NULL; | |
20158 | } | |
20159 | ||
20160 | ||
20161 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20162 | PyObject *resultobj; | |
20163 | bool result; | |
20164 | char *kwnames[] = { | |
20165 | NULL | |
20166 | }; | |
20167 | ||
20168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20169 | { | |
20170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20171 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20172 | ||
20173 | wxPyEndAllowThreads(__tstate); | |
20174 | if (PyErr_Occurred()) SWIG_fail; | |
20175 | } | |
4f89f6a3 RD |
20176 | { |
20177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20178 | } | |
d14a1e28 RD |
20179 | return resultobj; |
20180 | fail: | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj; | |
20187 | long result; | |
20188 | char *kwnames[] = { | |
20189 | NULL | |
20190 | }; | |
20191 | ||
20192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20193 | { | |
20194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20195 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20196 | ||
20197 | wxPyEndAllowThreads(__tstate); | |
20198 | if (PyErr_Occurred()) SWIG_fail; | |
20199 | } | |
2f4c0a16 | 20200 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20201 | return resultobj; |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20208 | PyObject *resultobj; | |
20209 | long result; | |
20210 | char *kwnames[] = { | |
20211 | NULL | |
20212 | }; | |
20213 | ||
20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20215 | { | |
20216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20217 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20218 | ||
20219 | wxPyEndAllowThreads(__tstate); | |
20220 | if (PyErr_Occurred()) SWIG_fail; | |
20221 | } | |
2f4c0a16 | 20222 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20223 | return resultobj; |
20224 | fail: | |
20225 | return NULL; | |
20226 | } | |
20227 | ||
20228 | ||
20229 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20230 | PyObject *resultobj; | |
20231 | long result; | |
20232 | char *kwnames[] = { | |
20233 | NULL | |
20234 | }; | |
20235 | ||
20236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20240 | ||
20241 | wxPyEndAllowThreads(__tstate); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | } | |
2f4c0a16 | 20244 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20245 | return resultobj; |
20246 | fail: | |
20247 | return NULL; | |
20248 | } | |
20249 | ||
20250 | ||
20251 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20252 | PyObject *resultobj; | |
20253 | wxString result; | |
20254 | char *kwnames[] = { | |
20255 | NULL | |
20256 | }; | |
20257 | ||
20258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20259 | { | |
20260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20261 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20262 | ||
20263 | wxPyEndAllowThreads(__tstate); | |
20264 | if (PyErr_Occurred()) SWIG_fail; | |
20265 | } | |
20266 | { | |
20267 | #if wxUSE_UNICODE | |
20268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20269 | #else | |
20270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20271 | #endif | |
20272 | } | |
20273 | return resultobj; | |
20274 | fail: | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj; | |
20281 | bool arg1 ; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | char *kwnames[] = { | |
20284 | (char *) "val", NULL | |
20285 | }; | |
20286 | ||
20287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20288 | arg1 = (bool) SWIG_AsBool(obj0); |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20290 | { |
20291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20292 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20293 | ||
20294 | wxPyEndAllowThreads(__tstate); | |
20295 | if (PyErr_Occurred()) SWIG_fail; | |
20296 | } | |
20297 | Py_INCREF(Py_None); resultobj = Py_None; | |
20298 | return resultobj; | |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
20304 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20305 | PyObject *resultobj; | |
20306 | long arg1 ; | |
8edf1c75 | 20307 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20308 | char *kwnames[] = { |
20309 | (char *) "val", NULL | |
20310 | }; | |
20311 | ||
8edf1c75 | 20312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20313 | arg1 = (long) SWIG_AsLong(obj0); |
20314 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20315 | { |
20316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20317 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20318 | ||
20319 | wxPyEndAllowThreads(__tstate); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
20322 | Py_INCREF(Py_None); resultobj = Py_None; | |
20323 | return resultobj; | |
20324 | fail: | |
20325 | return NULL; | |
20326 | } | |
20327 | ||
20328 | ||
20329 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20330 | PyObject *resultobj; | |
20331 | long arg1 ; | |
8edf1c75 | 20332 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20333 | char *kwnames[] = { |
20334 | (char *) "val", NULL | |
20335 | }; | |
20336 | ||
8edf1c75 | 20337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20338 | arg1 = (long) SWIG_AsLong(obj0); |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20340 | { |
20341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20342 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20343 | ||
20344 | wxPyEndAllowThreads(__tstate); | |
20345 | if (PyErr_Occurred()) SWIG_fail; | |
20346 | } | |
20347 | Py_INCREF(Py_None); resultobj = Py_None; | |
20348 | return resultobj; | |
20349 | fail: | |
20350 | return NULL; | |
20351 | } | |
20352 | ||
20353 | ||
20354 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20355 | PyObject *resultobj; | |
20356 | long arg1 ; | |
8edf1c75 | 20357 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20358 | char *kwnames[] = { |
20359 | (char *) "val", NULL | |
20360 | }; | |
20361 | ||
8edf1c75 | 20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
20363 | arg1 = (long) SWIG_AsLong(obj0); |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20365 | { |
20366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20367 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20368 | ||
20369 | wxPyEndAllowThreads(__tstate); | |
20370 | if (PyErr_Occurred()) SWIG_fail; | |
20371 | } | |
20372 | Py_INCREF(Py_None); resultobj = Py_None; | |
20373 | return resultobj; | |
20374 | fail: | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
20379 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20380 | PyObject *resultobj; | |
20381 | wxString *arg1 = 0 ; | |
423f194a | 20382 | bool temp1 = False ; |
d14a1e28 RD |
20383 | PyObject * obj0 = 0 ; |
20384 | char *kwnames[] = { | |
20385 | (char *) "val", NULL | |
20386 | }; | |
20387 | ||
20388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20389 | { | |
20390 | arg1 = wxString_in_helper(obj0); | |
20391 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 20392 | temp1 = True; |
d14a1e28 RD |
20393 | } |
20394 | { | |
20395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20396 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20397 | ||
20398 | wxPyEndAllowThreads(__tstate); | |
20399 | if (PyErr_Occurred()) SWIG_fail; | |
20400 | } | |
20401 | Py_INCREF(Py_None); resultobj = Py_None; | |
20402 | { | |
20403 | if (temp1) | |
20404 | delete arg1; | |
20405 | } | |
20406 | return resultobj; | |
20407 | fail: | |
20408 | { | |
20409 | if (temp1) | |
20410 | delete arg1; | |
20411 | } | |
20412 | return NULL; | |
20413 | } | |
20414 | ||
20415 | ||
20416 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20417 | PyObject *resultobj; | |
20418 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20419 | PyObject * obj0 = 0 ; | |
20420 | char *kwnames[] = { | |
20421 | (char *) "self", NULL | |
20422 | }; | |
20423 | ||
20424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20427 | { |
20428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20429 | (arg1)->_BootstrapApp(); | |
20430 | ||
20431 | wxPyEndAllowThreads(__tstate); | |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
20433 | } | |
20434 | Py_INCREF(Py_None); resultobj = Py_None; | |
20435 | return resultobj; | |
20436 | fail: | |
20437 | return NULL; | |
20438 | } | |
20439 | ||
20440 | ||
20441 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20442 | PyObject *resultobj; | |
20443 | int result; | |
20444 | char *kwnames[] = { | |
20445 | NULL | |
20446 | }; | |
20447 | ||
20448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | result = (int)wxPyApp::GetComCtl32Version(); | |
20452 | ||
20453 | wxPyEndAllowThreads(__tstate); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
2f4c0a16 | 20456 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20457 | return resultobj; |
20458 | fail: | |
20459 | return NULL; | |
20460 | } | |
20461 | ||
20462 | ||
20463 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20464 | PyObject *obj; | |
20465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20466 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20467 | Py_INCREF(obj); | |
20468 | return Py_BuildValue((char *)""); | |
20469 | } | |
20470 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20471 | PyObject *resultobj; | |
20472 | char *kwnames[] = { | |
20473 | NULL | |
20474 | }; | |
20475 | ||
20476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20477 | { | |
20478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20479 | wxExit(); | |
20480 | ||
20481 | wxPyEndAllowThreads(__tstate); | |
20482 | if (PyErr_Occurred()) SWIG_fail; | |
20483 | } | |
20484 | Py_INCREF(Py_None); resultobj = Py_None; | |
20485 | return resultobj; | |
20486 | fail: | |
20487 | return NULL; | |
20488 | } | |
20489 | ||
20490 | ||
20491 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20492 | PyObject *resultobj; | |
20493 | bool result; | |
20494 | char *kwnames[] = { | |
20495 | NULL | |
20496 | }; | |
20497 | ||
20498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20499 | { | |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20501 | result = (bool)wxYield(); | |
20502 | ||
20503 | wxPyEndAllowThreads(__tstate); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | } | |
4f89f6a3 RD |
20506 | { |
20507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20508 | } | |
d14a1e28 RD |
20509 | return resultobj; |
20510 | fail: | |
20511 | return NULL; | |
20512 | } | |
20513 | ||
20514 | ||
20515 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20516 | PyObject *resultobj; | |
20517 | bool result; | |
20518 | char *kwnames[] = { | |
20519 | NULL | |
20520 | }; | |
20521 | ||
20522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20523 | { | |
20524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20525 | result = (bool)wxYieldIfNeeded(); | |
20526 | ||
20527 | wxPyEndAllowThreads(__tstate); | |
20528 | if (PyErr_Occurred()) SWIG_fail; | |
20529 | } | |
4f89f6a3 RD |
20530 | { |
20531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20532 | } | |
d14a1e28 RD |
20533 | return resultobj; |
20534 | fail: | |
20535 | return NULL; | |
20536 | } | |
20537 | ||
20538 | ||
20539 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20540 | PyObject *resultobj; | |
20541 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 20542 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20543 | bool result; |
20544 | PyObject * obj0 = 0 ; | |
20545 | PyObject * obj1 = 0 ; | |
20546 | char *kwnames[] = { | |
20547 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20548 | }; | |
20549 | ||
20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20551 | if (obj0) { | |
2f4c0a16 RD |
20552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20554 | } |
20555 | if (obj1) { | |
2f4c0a16 RD |
20556 | arg2 = (bool) SWIG_AsBool(obj1); |
20557 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20558 | } |
20559 | { | |
20560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20561 | result = (bool)wxSafeYield(arg1,arg2); | |
20562 | ||
20563 | wxPyEndAllowThreads(__tstate); | |
20564 | if (PyErr_Occurred()) SWIG_fail; | |
20565 | } | |
4f89f6a3 RD |
20566 | { |
20567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20568 | } | |
d14a1e28 RD |
20569 | return resultobj; |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj; | |
20577 | char *kwnames[] = { | |
20578 | NULL | |
20579 | }; | |
20580 | ||
20581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20582 | { | |
20583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20584 | wxWakeUpIdle(); | |
20585 | ||
20586 | wxPyEndAllowThreads(__tstate); | |
20587 | if (PyErr_Occurred()) SWIG_fail; | |
20588 | } | |
20589 | Py_INCREF(Py_None); resultobj = Py_None; | |
20590 | return resultobj; | |
20591 | fail: | |
20592 | return NULL; | |
20593 | } | |
20594 | ||
20595 | ||
20596 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20597 | PyObject *resultobj; | |
20598 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20599 | wxEvent *arg2 = 0 ; | |
20600 | PyObject * obj0 = 0 ; | |
20601 | PyObject * obj1 = 0 ; | |
20602 | char *kwnames[] = { | |
20603 | (char *) "dest",(char *) "event", NULL | |
20604 | }; | |
20605 | ||
20606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20611 | SWIG_fail; | |
d14a1e28 | 20612 | if (arg2 == NULL) { |
2f4c0a16 RD |
20613 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20614 | SWIG_fail; | |
d14a1e28 RD |
20615 | } |
20616 | { | |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | wxPostEvent(arg1,*arg2); | |
20619 | ||
20620 | wxPyEndAllowThreads(__tstate); | |
20621 | if (PyErr_Occurred()) SWIG_fail; | |
20622 | } | |
20623 | Py_INCREF(Py_None); resultobj = Py_None; | |
20624 | return resultobj; | |
20625 | fail: | |
20626 | return NULL; | |
20627 | } | |
20628 | ||
20629 | ||
20630 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20631 | PyObject *resultobj; | |
20632 | char *kwnames[] = { | |
20633 | NULL | |
20634 | }; | |
20635 | ||
20636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20637 | { | |
20638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20639 | wxApp_CleanUp(); | |
20640 | ||
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | Py_INCREF(Py_None); resultobj = Py_None; | |
20645 | return resultobj; | |
20646 | fail: | |
20647 | return NULL; | |
20648 | } | |
20649 | ||
20650 | ||
20651 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20652 | PyObject *resultobj; | |
20653 | wxPyApp *result; | |
20654 | char *kwnames[] = { | |
20655 | NULL | |
20656 | }; | |
20657 | ||
20658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20659 | { | |
20660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20661 | result = (wxPyApp *)wxGetApp(); | |
20662 | ||
20663 | wxPyEndAllowThreads(__tstate); | |
20664 | if (PyErr_Occurred()) SWIG_fail; | |
20665 | } | |
20666 | { | |
20667 | resultobj = wxPyMake_wxObject(result); | |
20668 | } | |
20669 | return resultobj; | |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
41f1cec7 RD |
20675 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20676 | PyObject *resultobj; | |
20677 | int arg1 = (int) 0 ; | |
20678 | int arg2 = (int) 0 ; | |
20679 | int arg3 = (int) 0 ; | |
20680 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20681 | wxAcceleratorEntry *result; | |
8edf1c75 RD |
20682 | PyObject * obj0 = 0 ; |
20683 | PyObject * obj1 = 0 ; | |
20684 | PyObject * obj2 = 0 ; | |
41f1cec7 RD |
20685 | PyObject * obj3 = 0 ; |
20686 | char *kwnames[] = { | |
20687 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20688 | }; | |
20689 | ||
8edf1c75 RD |
20690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20691 | if (obj0) { | |
2f4c0a16 RD |
20692 | arg1 = (int) SWIG_AsInt(obj0); |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20694 | } |
20695 | if (obj1) { | |
2f4c0a16 RD |
20696 | arg2 = (int) SWIG_AsInt(obj1); |
20697 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
20698 | } |
20699 | if (obj2) { | |
2f4c0a16 RD |
20700 | arg3 = (int) SWIG_AsInt(obj2); |
20701 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20702 | } |
41f1cec7 | 20703 | if (obj3) { |
2f4c0a16 RD |
20704 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20706 | } |
20707 | { | |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
2f4c0a16 | 20714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
41f1cec7 RD |
20715 | return resultobj; |
20716 | fail: | |
20717 | return NULL; | |
20718 | } | |
20719 | ||
20720 | ||
20721 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20722 | PyObject *resultobj; | |
20723 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20724 | PyObject * obj0 = 0 ; | |
20725 | char *kwnames[] = { | |
20726 | (char *) "self", NULL | |
20727 | }; | |
20728 | ||
20729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20732 | { |
20733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20734 | delete arg1; | |
20735 | ||
20736 | wxPyEndAllowThreads(__tstate); | |
20737 | if (PyErr_Occurred()) SWIG_fail; | |
20738 | } | |
20739 | Py_INCREF(Py_None); resultobj = Py_None; | |
20740 | return resultobj; | |
20741 | fail: | |
20742 | return NULL; | |
20743 | } | |
20744 | ||
20745 | ||
20746 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20747 | PyObject *resultobj; | |
20748 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20749 | int arg2 ; | |
20750 | int arg3 ; | |
20751 | int arg4 ; | |
20752 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20753 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20754 | PyObject * obj1 = 0 ; |
20755 | PyObject * obj2 = 0 ; | |
20756 | PyObject * obj3 = 0 ; | |
41f1cec7 RD |
20757 | PyObject * obj4 = 0 ; |
20758 | char *kwnames[] = { | |
20759 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20760 | }; | |
20761 | ||
8edf1c75 | 20762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20765 | arg2 = (int) SWIG_AsInt(obj1); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | arg3 = (int) SWIG_AsInt(obj2); | |
20768 | if (PyErr_Occurred()) SWIG_fail; | |
20769 | arg4 = (int) SWIG_AsInt(obj3); | |
20770 | if (PyErr_Occurred()) SWIG_fail; | |
41f1cec7 | 20771 | if (obj4) { |
2f4c0a16 RD |
20772 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20774 | } |
20775 | { | |
20776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20777 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20778 | ||
20779 | wxPyEndAllowThreads(__tstate); | |
20780 | if (PyErr_Occurred()) SWIG_fail; | |
20781 | } | |
20782 | Py_INCREF(Py_None); resultobj = Py_None; | |
20783 | return resultobj; | |
20784 | fail: | |
20785 | return NULL; | |
20786 | } | |
20787 | ||
20788 | ||
20789 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20790 | PyObject *resultobj; | |
20791 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20792 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20793 | PyObject * obj0 = 0 ; | |
20794 | PyObject * obj1 = 0 ; | |
20795 | char *kwnames[] = { | |
20796 | (char *) "self",(char *) "item", NULL | |
20797 | }; | |
20798 | ||
20799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20804 | { |
20805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20806 | (arg1)->SetMenuItem(arg2); | |
20807 | ||
20808 | wxPyEndAllowThreads(__tstate); | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
20811 | Py_INCREF(Py_None); resultobj = Py_None; | |
20812 | return resultobj; | |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
20818 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20819 | PyObject *resultobj; | |
20820 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20821 | wxMenuItem *result; | |
20822 | PyObject * obj0 = 0 ; | |
20823 | char *kwnames[] = { | |
20824 | (char *) "self", NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20830 | { |
20831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20832 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20833 | ||
20834 | wxPyEndAllowThreads(__tstate); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
20836 | } | |
20837 | { | |
20838 | resultobj = wxPyMake_wxObject(result); | |
20839 | } | |
20840 | return resultobj; | |
20841 | fail: | |
20842 | return NULL; | |
20843 | } | |
20844 | ||
20845 | ||
20846 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20847 | PyObject *resultobj; | |
20848 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20849 | int result; | |
20850 | PyObject * obj0 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20858 | { |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | result = (int)(arg1)->GetFlags(); | |
20861 | ||
20862 | wxPyEndAllowThreads(__tstate); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
2f4c0a16 | 20865 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20866 | return resultobj; |
20867 | fail: | |
20868 | return NULL; | |
20869 | } | |
20870 | ||
20871 | ||
20872 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20873 | PyObject *resultobj; | |
20874 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20875 | int result; | |
20876 | PyObject * obj0 = 0 ; | |
20877 | char *kwnames[] = { | |
20878 | (char *) "self", NULL | |
20879 | }; | |
20880 | ||
20881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20884 | { |
20885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20886 | result = (int)(arg1)->GetKeyCode(); | |
20887 | ||
20888 | wxPyEndAllowThreads(__tstate); | |
20889 | if (PyErr_Occurred()) SWIG_fail; | |
20890 | } | |
2f4c0a16 | 20891 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20892 | return resultobj; |
20893 | fail: | |
20894 | return NULL; | |
20895 | } | |
20896 | ||
20897 | ||
20898 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20899 | PyObject *resultobj; | |
20900 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20901 | int result; | |
20902 | PyObject * obj0 = 0 ; | |
20903 | char *kwnames[] = { | |
20904 | (char *) "self", NULL | |
20905 | }; | |
20906 | ||
20907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20910 | { |
20911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20912 | result = (int)(arg1)->GetCommand(); | |
20913 | ||
20914 | wxPyEndAllowThreads(__tstate); | |
20915 | if (PyErr_Occurred()) SWIG_fail; | |
20916 | } | |
2f4c0a16 | 20917 | resultobj = SWIG_FromInt((int)result); |
41f1cec7 RD |
20918 | return resultobj; |
20919 | fail: | |
20920 | return NULL; | |
20921 | } | |
20922 | ||
20923 | ||
20924 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20925 | PyObject *obj; | |
20926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20927 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20928 | Py_INCREF(obj); | |
20929 | return Py_BuildValue((char *)""); | |
20930 | } | |
20931 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20932 | PyObject *resultobj; | |
20933 | int arg1 ; | |
20934 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20935 | wxAcceleratorTable *result; | |
20936 | PyObject * obj0 = 0 ; | |
20937 | char *kwnames[] = { | |
20938 | (char *) "n", NULL | |
20939 | }; | |
20940 | ||
20941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20942 | { | |
20943 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20944 | if (arg2) arg1 = PyList_Size(obj0); | |
20945 | else arg1 = 0; | |
20946 | } | |
20947 | { | |
20948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20949 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20950 | ||
20951 | wxPyEndAllowThreads(__tstate); | |
20952 | if (PyErr_Occurred()) SWIG_fail; | |
20953 | } | |
2f4c0a16 | 20954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
41f1cec7 RD |
20955 | { |
20956 | delete [] arg2; | |
20957 | } | |
20958 | return resultobj; | |
20959 | fail: | |
20960 | { | |
20961 | delete [] arg2; | |
20962 | } | |
20963 | return NULL; | |
20964 | } | |
20965 | ||
20966 | ||
20967 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20968 | PyObject *resultobj; | |
20969 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20970 | PyObject * obj0 = 0 ; | |
20971 | char *kwnames[] = { | |
20972 | (char *) "self", NULL | |
20973 | }; | |
20974 | ||
20975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
20977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
20978 | { |
20979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20980 | delete arg1; | |
20981 | ||
20982 | wxPyEndAllowThreads(__tstate); | |
20983 | if (PyErr_Occurred()) SWIG_fail; | |
20984 | } | |
20985 | Py_INCREF(Py_None); resultobj = Py_None; | |
20986 | return resultobj; | |
20987 | fail: | |
20988 | return NULL; | |
20989 | } | |
20990 | ||
20991 | ||
20992 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20993 | PyObject *resultobj; | |
20994 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
20995 | bool result; | |
20996 | PyObject * obj0 = 0 ; | |
20997 | char *kwnames[] = { | |
20998 | (char *) "self", NULL | |
20999 | }; | |
21000 | ||
21001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41f1cec7 RD |
21004 | { |
21005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21006 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21007 | ||
21008 | wxPyEndAllowThreads(__tstate); | |
21009 | if (PyErr_Occurred()) SWIG_fail; | |
21010 | } | |
4f89f6a3 RD |
21011 | { |
21012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21013 | } | |
41f1cec7 RD |
21014 | return resultobj; |
21015 | fail: | |
21016 | return NULL; | |
21017 | } | |
21018 | ||
21019 | ||
21020 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21021 | PyObject *obj; | |
21022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21023 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21024 | Py_INCREF(obj); | |
21025 | return Py_BuildValue((char *)""); | |
21026 | } | |
2f4c0a16 | 21027 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { |
41f1cec7 RD |
21028 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21029 | return 1; | |
21030 | } | |
21031 | ||
21032 | ||
21033 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21034 | PyObject *pyobj; | |
21035 | ||
2f4c0a16 | 21036 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
41f1cec7 RD |
21037 | return pyobj; |
21038 | } | |
21039 | ||
21040 | ||
21041 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21042 | PyObject *resultobj; | |
21043 | wxString *arg1 = 0 ; | |
21044 | wxAcceleratorEntry *result; | |
21045 | bool temp1 = False ; | |
21046 | PyObject * obj0 = 0 ; | |
21047 | char *kwnames[] = { | |
21048 | (char *) "label", NULL | |
21049 | }; | |
21050 | ||
21051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21052 | { | |
21053 | arg1 = wxString_in_helper(obj0); | |
21054 | if (arg1 == NULL) SWIG_fail; | |
21055 | temp1 = True; | |
21056 | } | |
21057 | { | |
21058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21059 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21060 | ||
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
2f4c0a16 | 21064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
41f1cec7 RD |
21065 | { |
21066 | if (temp1) | |
21067 | delete arg1; | |
21068 | } | |
21069 | return resultobj; | |
21070 | fail: | |
21071 | { | |
21072 | if (temp1) | |
21073 | delete arg1; | |
21074 | } | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
2f4c0a16 | 21079 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
423f194a RD |
21080 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21081 | return 1; | |
21082 | } | |
21083 | ||
21084 | ||
21085 | static PyObject *_wrap_PanelNameStr_get() { | |
21086 | PyObject *pyobj; | |
21087 | ||
21088 | { | |
21089 | #if wxUSE_UNICODE | |
21090 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21091 | #else | |
21092 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21093 | #endif | |
21094 | } | |
21095 | return pyobj; | |
21096 | } | |
21097 | ||
21098 | ||
d14a1e28 RD |
21099 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21100 | PyObject *resultobj; | |
21101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21102 | int arg2 ; |
d14a1e28 RD |
21103 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21104 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21105 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21106 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21107 | long arg5 = (long) 0 ; | |
21108 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21109 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21110 | wxWindow *result; | |
21111 | wxPoint temp3 ; | |
21112 | wxSize temp4 ; | |
423f194a | 21113 | bool temp6 = False ; |
d14a1e28 | 21114 | PyObject * obj0 = 0 ; |
8edf1c75 | 21115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21116 | PyObject * obj2 = 0 ; |
21117 | PyObject * obj3 = 0 ; | |
8edf1c75 | 21118 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21119 | PyObject * obj5 = 0 ; |
21120 | char *kwnames[] = { | |
21121 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21122 | }; | |
21123 | ||
8edf1c75 | 21124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21127 | arg2 = (int const) SWIG_AsInt(obj1); | |
21128 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21129 | if (obj2) { |
21130 | { | |
21131 | arg3 = &temp3; | |
21132 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21133 | } | |
21134 | } | |
21135 | if (obj3) { | |
21136 | { | |
21137 | arg4 = &temp4; | |
21138 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21139 | } | |
21140 | } | |
8edf1c75 | 21141 | if (obj4) { |
2f4c0a16 RD |
21142 | arg5 = (long) SWIG_AsLong(obj4); |
21143 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21144 | } |
d14a1e28 RD |
21145 | if (obj5) { |
21146 | { | |
21147 | arg6 = wxString_in_helper(obj5); | |
21148 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 21149 | temp6 = True; |
d14a1e28 RD |
21150 | } |
21151 | } | |
21152 | { | |
21153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21154 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21155 | ||
21156 | wxPyEndAllowThreads(__tstate); | |
21157 | if (PyErr_Occurred()) SWIG_fail; | |
21158 | } | |
21159 | { | |
21160 | resultobj = wxPyMake_wxObject(result); | |
21161 | } | |
21162 | { | |
21163 | if (temp6) | |
21164 | delete arg6; | |
21165 | } | |
21166 | return resultobj; | |
21167 | fail: | |
21168 | { | |
21169 | if (temp6) | |
21170 | delete arg6; | |
21171 | } | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxWindow *result; | |
21179 | char *kwnames[] = { | |
21180 | NULL | |
21181 | }; | |
21182 | ||
21183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21184 | { | |
21185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21186 | result = (wxWindow *)new wxWindow(); | |
21187 | ||
21188 | wxPyEndAllowThreads(__tstate); | |
21189 | if (PyErr_Occurred()) SWIG_fail; | |
21190 | } | |
21191 | { | |
21192 | resultobj = wxPyMake_wxObject(result); | |
21193 | } | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | return NULL; | |
21197 | } | |
21198 | ||
21199 | ||
21200 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21201 | PyObject *resultobj; | |
21202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21203 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 21204 | int arg3 ; |
d14a1e28 RD |
21205 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21206 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21207 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21208 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21209 | long arg6 = (long) 0 ; | |
21210 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21211 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21212 | bool result; | |
21213 | wxPoint temp4 ; | |
21214 | wxSize temp5 ; | |
423f194a | 21215 | bool temp7 = False ; |
d14a1e28 RD |
21216 | PyObject * obj0 = 0 ; |
21217 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21218 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21219 | PyObject * obj3 = 0 ; |
21220 | PyObject * obj4 = 0 ; | |
8edf1c75 | 21221 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21222 | PyObject * obj6 = 0 ; |
21223 | char *kwnames[] = { | |
21224 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21225 | }; | |
21226 | ||
8edf1c75 | 21227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
21228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21230 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21232 | arg3 = (int const) SWIG_AsInt(obj2); | |
21233 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21234 | if (obj3) { |
21235 | { | |
21236 | arg4 = &temp4; | |
21237 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21238 | } | |
21239 | } | |
21240 | if (obj4) { | |
21241 | { | |
21242 | arg5 = &temp5; | |
21243 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21244 | } | |
21245 | } | |
8edf1c75 | 21246 | if (obj5) { |
2f4c0a16 RD |
21247 | arg6 = (long) SWIG_AsLong(obj5); |
21248 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21249 | } |
d14a1e28 RD |
21250 | if (obj6) { |
21251 | { | |
21252 | arg7 = wxString_in_helper(obj6); | |
21253 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 21254 | temp7 = True; |
d14a1e28 RD |
21255 | } |
21256 | } | |
21257 | { | |
21258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21259 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21260 | ||
21261 | wxPyEndAllowThreads(__tstate); | |
21262 | if (PyErr_Occurred()) SWIG_fail; | |
21263 | } | |
4f89f6a3 RD |
21264 | { |
21265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21266 | } | |
d14a1e28 RD |
21267 | { |
21268 | if (temp7) | |
21269 | delete arg7; | |
21270 | } | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | { | |
21274 | if (temp7) | |
21275 | delete arg7; | |
21276 | } | |
21277 | return NULL; | |
21278 | } | |
21279 | ||
21280 | ||
21281 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21282 | PyObject *resultobj; | |
21283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21284 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21285 | bool result; |
21286 | PyObject * obj0 = 0 ; | |
21287 | PyObject * obj1 = 0 ; | |
21288 | char *kwnames[] = { | |
21289 | (char *) "self",(char *) "force", NULL | |
21290 | }; | |
21291 | ||
21292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21295 | if (obj1) { |
2f4c0a16 RD |
21296 | arg2 = (bool) SWIG_AsBool(obj1); |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21298 | } |
21299 | { | |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | result = (bool)(arg1)->Close(arg2); | |
21302 | ||
21303 | wxPyEndAllowThreads(__tstate); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
4f89f6a3 RD |
21306 | { |
21307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21308 | } | |
d14a1e28 RD |
21309 | return resultobj; |
21310 | fail: | |
21311 | return NULL; | |
21312 | } | |
21313 | ||
21314 | ||
21315 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21316 | PyObject *resultobj; | |
21317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21318 | bool result; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | char *kwnames[] = { | |
21321 | (char *) "self", NULL | |
21322 | }; | |
21323 | ||
21324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21327 | { |
21328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21329 | result = (bool)(arg1)->Destroy(); | |
21330 | ||
21331 | wxPyEndAllowThreads(__tstate); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | } | |
4f89f6a3 RD |
21334 | { |
21335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21336 | } | |
d14a1e28 RD |
21337 | return resultobj; |
21338 | fail: | |
21339 | return NULL; | |
21340 | } | |
21341 | ||
21342 | ||
21343 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21344 | PyObject *resultobj; | |
21345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21346 | bool result; | |
21347 | PyObject * obj0 = 0 ; | |
21348 | char *kwnames[] = { | |
21349 | (char *) "self", NULL | |
21350 | }; | |
21351 | ||
21352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21355 | { |
21356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21357 | result = (bool)(arg1)->DestroyChildren(); | |
21358 | ||
21359 | wxPyEndAllowThreads(__tstate); | |
21360 | if (PyErr_Occurred()) SWIG_fail; | |
21361 | } | |
4f89f6a3 RD |
21362 | { |
21363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21364 | } | |
d14a1e28 RD |
21365 | return resultobj; |
21366 | fail: | |
21367 | return NULL; | |
21368 | } | |
21369 | ||
21370 | ||
21371 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21372 | PyObject *resultobj; | |
21373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21374 | bool result; | |
21375 | PyObject * obj0 = 0 ; | |
21376 | char *kwnames[] = { | |
21377 | (char *) "self", NULL | |
21378 | }; | |
21379 | ||
21380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21383 | { |
21384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21385 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21386 | ||
21387 | wxPyEndAllowThreads(__tstate); | |
21388 | if (PyErr_Occurred()) SWIG_fail; | |
21389 | } | |
4f89f6a3 RD |
21390 | { |
21391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21392 | } | |
d14a1e28 RD |
21393 | return resultobj; |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj; | |
21401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21402 | wxString *arg2 = 0 ; | |
423f194a | 21403 | bool temp2 = False ; |
d14a1e28 RD |
21404 | PyObject * obj0 = 0 ; |
21405 | PyObject * obj1 = 0 ; | |
21406 | char *kwnames[] = { | |
21407 | (char *) "self",(char *) "title", NULL | |
21408 | }; | |
21409 | ||
21410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21413 | { |
21414 | arg2 = wxString_in_helper(obj1); | |
21415 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21416 | temp2 = True; |
d14a1e28 RD |
21417 | } |
21418 | { | |
21419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21420 | (arg1)->SetTitle((wxString const &)*arg2); | |
21421 | ||
21422 | wxPyEndAllowThreads(__tstate); | |
21423 | if (PyErr_Occurred()) SWIG_fail; | |
21424 | } | |
21425 | Py_INCREF(Py_None); resultobj = Py_None; | |
21426 | { | |
21427 | if (temp2) | |
21428 | delete arg2; | |
21429 | } | |
21430 | return resultobj; | |
21431 | fail: | |
21432 | { | |
21433 | if (temp2) | |
21434 | delete arg2; | |
21435 | } | |
21436 | return NULL; | |
21437 | } | |
21438 | ||
21439 | ||
21440 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21441 | PyObject *resultobj; | |
21442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21443 | wxString result; | |
21444 | PyObject * obj0 = 0 ; | |
21445 | char *kwnames[] = { | |
21446 | (char *) "self", NULL | |
21447 | }; | |
21448 | ||
21449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21452 | { |
21453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21454 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21455 | ||
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
21459 | { | |
21460 | #if wxUSE_UNICODE | |
21461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21462 | #else | |
21463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21464 | #endif | |
21465 | } | |
21466 | return resultobj; | |
21467 | fail: | |
21468 | return NULL; | |
21469 | } | |
21470 | ||
21471 | ||
21472 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21473 | PyObject *resultobj; | |
21474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21475 | wxString *arg2 = 0 ; | |
423f194a | 21476 | bool temp2 = False ; |
d14a1e28 RD |
21477 | PyObject * obj0 = 0 ; |
21478 | PyObject * obj1 = 0 ; | |
21479 | char *kwnames[] = { | |
21480 | (char *) "self",(char *) "label", NULL | |
21481 | }; | |
21482 | ||
21483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21486 | { |
21487 | arg2 = wxString_in_helper(obj1); | |
21488 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21489 | temp2 = True; |
d14a1e28 RD |
21490 | } |
21491 | { | |
21492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21493 | (arg1)->SetLabel((wxString const &)*arg2); | |
21494 | ||
21495 | wxPyEndAllowThreads(__tstate); | |
21496 | if (PyErr_Occurred()) SWIG_fail; | |
21497 | } | |
21498 | Py_INCREF(Py_None); resultobj = Py_None; | |
21499 | { | |
21500 | if (temp2) | |
21501 | delete arg2; | |
21502 | } | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | { | |
21506 | if (temp2) | |
21507 | delete arg2; | |
21508 | } | |
21509 | return NULL; | |
21510 | } | |
21511 | ||
21512 | ||
21513 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21514 | PyObject *resultobj; | |
21515 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21516 | wxString result; | |
21517 | PyObject * obj0 = 0 ; | |
21518 | char *kwnames[] = { | |
21519 | (char *) "self", NULL | |
21520 | }; | |
21521 | ||
21522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21525 | { |
21526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21527 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21528 | ||
21529 | wxPyEndAllowThreads(__tstate); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
21532 | { | |
21533 | #if wxUSE_UNICODE | |
21534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21535 | #else | |
21536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21537 | #endif | |
21538 | } | |
21539 | return resultobj; | |
21540 | fail: | |
21541 | return NULL; | |
21542 | } | |
21543 | ||
21544 | ||
21545 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21546 | PyObject *resultobj; | |
21547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21548 | wxString *arg2 = 0 ; | |
423f194a | 21549 | bool temp2 = False ; |
d14a1e28 RD |
21550 | PyObject * obj0 = 0 ; |
21551 | PyObject * obj1 = 0 ; | |
21552 | char *kwnames[] = { | |
21553 | (char *) "self",(char *) "name", NULL | |
21554 | }; | |
21555 | ||
21556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21559 | { |
21560 | arg2 = wxString_in_helper(obj1); | |
21561 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21562 | temp2 = True; |
d14a1e28 RD |
21563 | } |
21564 | { | |
21565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21566 | (arg1)->SetName((wxString const &)*arg2); | |
21567 | ||
21568 | wxPyEndAllowThreads(__tstate); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | } | |
21571 | Py_INCREF(Py_None); resultobj = Py_None; | |
21572 | { | |
21573 | if (temp2) | |
21574 | delete arg2; | |
21575 | } | |
21576 | return resultobj; | |
21577 | fail: | |
21578 | { | |
21579 | if (temp2) | |
21580 | delete arg2; | |
21581 | } | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
21586 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21587 | PyObject *resultobj; | |
21588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21589 | wxString result; | |
21590 | PyObject * obj0 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "self", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21598 | { |
21599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21600 | result = ((wxWindow const *)arg1)->GetName(); | |
21601 | ||
21602 | wxPyEndAllowThreads(__tstate); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
21604 | } | |
21605 | { | |
21606 | #if wxUSE_UNICODE | |
21607 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21608 | #else | |
21609 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21610 | #endif | |
21611 | } | |
21612 | return resultobj; | |
21613 | fail: | |
21614 | return NULL; | |
21615 | } | |
21616 | ||
21617 | ||
fe763115 RD |
21618 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21619 | PyObject *resultobj; | |
21620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21621 | int arg2 ; | |
21622 | PyObject * obj0 = 0 ; | |
21623 | PyObject * obj1 = 0 ; | |
21624 | char *kwnames[] = { | |
21625 | (char *) "self",(char *) "variant", NULL | |
21626 | }; | |
21627 | ||
21628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21631 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | { | |
21634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21635 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21636 | ||
21637 | wxPyEndAllowThreads(__tstate); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | Py_INCREF(Py_None); resultobj = Py_None; | |
21641 | return resultobj; | |
21642 | fail: | |
21643 | return NULL; | |
21644 | } | |
21645 | ||
21646 | ||
21647 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21648 | PyObject *resultobj; | |
21649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21650 | int result; | |
21651 | PyObject * obj0 = 0 ; | |
21652 | char *kwnames[] = { | |
21653 | (char *) "self", NULL | |
21654 | }; | |
21655 | ||
21656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
21666 | resultobj = SWIG_FromInt((int)result); | |
21667 | return resultobj; | |
21668 | fail: | |
21669 | return NULL; | |
21670 | } | |
21671 | ||
21672 | ||
d14a1e28 RD |
21673 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
21674 | PyObject *resultobj; | |
21675 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21676 | int arg2 ; |
d14a1e28 | 21677 | PyObject * obj0 = 0 ; |
8edf1c75 | 21678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21679 | char *kwnames[] = { |
21680 | (char *) "self",(char *) "winid", NULL | |
21681 | }; | |
21682 | ||
8edf1c75 | 21683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21686 | arg2 = (int) SWIG_AsInt(obj1); | |
21687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21688 | { |
21689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21690 | (arg1)->SetId(arg2); | |
21691 | ||
21692 | wxPyEndAllowThreads(__tstate); | |
21693 | if (PyErr_Occurred()) SWIG_fail; | |
21694 | } | |
21695 | Py_INCREF(Py_None); resultobj = Py_None; | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | return NULL; | |
21699 | } | |
21700 | ||
21701 | ||
21702 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21703 | PyObject *resultobj; | |
21704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 21705 | int result; |
d14a1e28 RD |
21706 | PyObject * obj0 = 0 ; |
21707 | char *kwnames[] = { | |
21708 | (char *) "self", NULL | |
21709 | }; | |
21710 | ||
21711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21714 | { |
21715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 21716 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21717 | |
21718 | wxPyEndAllowThreads(__tstate); | |
21719 | if (PyErr_Occurred()) SWIG_fail; | |
21720 | } | |
2f4c0a16 | 21721 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21722 | return resultobj; |
21723 | fail: | |
21724 | return NULL; | |
21725 | } | |
21726 | ||
21727 | ||
21728 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21729 | PyObject *resultobj; | |
21730 | int result; | |
21731 | char *kwnames[] = { | |
21732 | NULL | |
21733 | }; | |
21734 | ||
21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21736 | { | |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | result = (int)wxWindow::NewControlId(); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
2f4c0a16 | 21743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21744 | return resultobj; |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21751 | PyObject *resultobj; | |
21752 | int arg1 ; | |
21753 | int result; | |
8edf1c75 | 21754 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21755 | char *kwnames[] = { |
21756 | (char *) "winid", NULL | |
21757 | }; | |
21758 | ||
8edf1c75 | 21759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21760 | arg1 = (int) SWIG_AsInt(obj0); |
21761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21762 | { |
21763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21764 | result = (int)wxWindow::NextControlId(arg1); | |
21765 | ||
21766 | wxPyEndAllowThreads(__tstate); | |
21767 | if (PyErr_Occurred()) SWIG_fail; | |
21768 | } | |
2f4c0a16 | 21769 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21770 | return resultobj; |
21771 | fail: | |
21772 | return NULL; | |
21773 | } | |
21774 | ||
21775 | ||
21776 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21777 | PyObject *resultobj; | |
21778 | int arg1 ; | |
21779 | int result; | |
8edf1c75 | 21780 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
21781 | char *kwnames[] = { |
21782 | (char *) "winid", NULL | |
21783 | }; | |
21784 | ||
8edf1c75 | 21785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
21786 | arg1 = (int) SWIG_AsInt(obj0); |
21787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21788 | { |
21789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21790 | result = (int)wxWindow::PrevControlId(arg1); | |
21791 | ||
21792 | wxPyEndAllowThreads(__tstate); | |
21793 | if (PyErr_Occurred()) SWIG_fail; | |
21794 | } | |
2f4c0a16 | 21795 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21796 | return resultobj; |
21797 | fail: | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21803 | PyObject *resultobj; | |
21804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21805 | wxSize *arg2 = 0 ; | |
21806 | wxSize temp2 ; | |
21807 | PyObject * obj0 = 0 ; | |
21808 | PyObject * obj1 = 0 ; | |
21809 | char *kwnames[] = { | |
21810 | (char *) "self",(char *) "size", NULL | |
21811 | }; | |
21812 | ||
21813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21816 | { |
21817 | arg2 = &temp2; | |
21818 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21819 | } | |
21820 | { | |
21821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21822 | (arg1)->SetSize((wxSize const &)*arg2); | |
21823 | ||
21824 | wxPyEndAllowThreads(__tstate); | |
21825 | if (PyErr_Occurred()) SWIG_fail; | |
21826 | } | |
21827 | Py_INCREF(Py_None); resultobj = Py_None; | |
21828 | return resultobj; | |
21829 | fail: | |
21830 | return NULL; | |
21831 | } | |
21832 | ||
21833 | ||
21834 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21835 | PyObject *resultobj; | |
21836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21837 | int arg2 ; | |
21838 | int arg3 ; | |
21839 | int arg4 ; | |
21840 | int arg5 ; | |
21841 | int arg6 = (int) wxSIZE_AUTO ; | |
21842 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21843 | PyObject * obj1 = 0 ; |
21844 | PyObject * obj2 = 0 ; | |
21845 | PyObject * obj3 = 0 ; | |
21846 | PyObject * obj4 = 0 ; | |
21847 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
21848 | char *kwnames[] = { |
21849 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
21850 | }; | |
21851 | ||
8edf1c75 | 21852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
21853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21855 | arg2 = (int) SWIG_AsInt(obj1); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | arg3 = (int) SWIG_AsInt(obj2); | |
21858 | if (PyErr_Occurred()) SWIG_fail; | |
21859 | arg4 = (int) SWIG_AsInt(obj3); | |
21860 | if (PyErr_Occurred()) SWIG_fail; | |
21861 | arg5 = (int) SWIG_AsInt(obj4); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21863 | if (obj5) { |
2f4c0a16 RD |
21864 | arg6 = (int) SWIG_AsInt(obj5); |
21865 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21866 | } |
d14a1e28 RD |
21867 | { |
21868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21869 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
21870 | ||
21871 | wxPyEndAllowThreads(__tstate); | |
21872 | if (PyErr_Occurred()) SWIG_fail; | |
21873 | } | |
21874 | Py_INCREF(Py_None); resultobj = Py_None; | |
21875 | return resultobj; | |
21876 | fail: | |
21877 | return NULL; | |
21878 | } | |
21879 | ||
21880 | ||
21881 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21882 | PyObject *resultobj; | |
21883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21884 | wxRect *arg2 = 0 ; | |
21885 | int arg3 = (int) wxSIZE_AUTO ; | |
21886 | wxRect temp2 ; | |
21887 | PyObject * obj0 = 0 ; | |
21888 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21889 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21890 | char *kwnames[] = { |
21891 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
21892 | }; | |
21893 | ||
8edf1c75 | 21894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21897 | { |
21898 | arg2 = &temp2; | |
21899 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
21900 | } | |
8edf1c75 | 21901 | if (obj2) { |
2f4c0a16 RD |
21902 | arg3 = (int) SWIG_AsInt(obj2); |
21903 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21904 | } |
d14a1e28 RD |
21905 | { |
21906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21907 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
21908 | ||
21909 | wxPyEndAllowThreads(__tstate); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
21911 | } | |
21912 | Py_INCREF(Py_None); resultobj = Py_None; | |
21913 | return resultobj; | |
21914 | fail: | |
21915 | return NULL; | |
21916 | } | |
21917 | ||
21918 | ||
21919 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21920 | PyObject *resultobj; | |
21921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21922 | int arg2 ; | |
21923 | int arg3 ; | |
21924 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21925 | PyObject * obj1 = 0 ; |
21926 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21927 | char *kwnames[] = { |
21928 | (char *) "self",(char *) "width",(char *) "height", NULL | |
21929 | }; | |
21930 | ||
8edf1c75 | 21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21934 | arg2 = (int) SWIG_AsInt(obj1); | |
21935 | if (PyErr_Occurred()) SWIG_fail; | |
21936 | arg3 = (int) SWIG_AsInt(obj2); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21938 | { |
21939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21940 | (arg1)->SetSize(arg2,arg3); | |
21941 | ||
21942 | wxPyEndAllowThreads(__tstate); | |
21943 | if (PyErr_Occurred()) SWIG_fail; | |
21944 | } | |
21945 | Py_INCREF(Py_None); resultobj = Py_None; | |
21946 | return resultobj; | |
21947 | fail: | |
21948 | return NULL; | |
21949 | } | |
21950 | ||
21951 | ||
21952 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21953 | PyObject *resultobj; | |
21954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21955 | wxPoint *arg2 = 0 ; | |
21956 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
21957 | wxPoint temp2 ; | |
21958 | PyObject * obj0 = 0 ; | |
21959 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21960 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21961 | char *kwnames[] = { |
21962 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
21963 | }; | |
21964 | ||
8edf1c75 | 21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21968 | { |
21969 | arg2 = &temp2; | |
21970 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21971 | } | |
8edf1c75 | 21972 | if (obj2) { |
2f4c0a16 RD |
21973 | arg3 = (int) SWIG_AsInt(obj2); |
21974 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21975 | } |
d14a1e28 RD |
21976 | { |
21977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21978 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
21979 | ||
21980 | wxPyEndAllowThreads(__tstate); | |
21981 | if (PyErr_Occurred()) SWIG_fail; | |
21982 | } | |
21983 | Py_INCREF(Py_None); resultobj = Py_None; | |
21984 | return resultobj; | |
21985 | fail: | |
21986 | return NULL; | |
21987 | } | |
21988 | ||
21989 | ||
21990 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21991 | PyObject *resultobj; | |
21992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21993 | int arg2 ; | |
21994 | int arg3 ; | |
21995 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
21996 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21997 | PyObject * obj1 = 0 ; |
21998 | PyObject * obj2 = 0 ; | |
21999 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22000 | char *kwnames[] = { |
22001 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22002 | }; | |
22003 | ||
8edf1c75 | 22004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22007 | arg2 = (int) SWIG_AsInt(obj1); | |
22008 | if (PyErr_Occurred()) SWIG_fail; | |
22009 | arg3 = (int) SWIG_AsInt(obj2); | |
22010 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22011 | if (obj3) { |
2f4c0a16 RD |
22012 | arg4 = (int) SWIG_AsInt(obj3); |
22013 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22014 | } |
d14a1e28 RD |
22015 | { |
22016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22017 | (arg1)->Move(arg2,arg3,arg4); | |
22018 | ||
22019 | wxPyEndAllowThreads(__tstate); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | } | |
22022 | Py_INCREF(Py_None); resultobj = Py_None; | |
22023 | return resultobj; | |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
22029 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22030 | PyObject *resultobj; | |
22031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22032 | PyObject * obj0 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "self", NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22040 | { |
22041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22042 | (arg1)->Raise(); | |
22043 | ||
22044 | wxPyEndAllowThreads(__tstate); | |
22045 | if (PyErr_Occurred()) SWIG_fail; | |
22046 | } | |
22047 | Py_INCREF(Py_None); resultobj = Py_None; | |
22048 | return resultobj; | |
22049 | fail: | |
22050 | return NULL; | |
22051 | } | |
22052 | ||
22053 | ||
22054 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22055 | PyObject *resultobj; | |
22056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22057 | PyObject * obj0 = 0 ; | |
22058 | char *kwnames[] = { | |
22059 | (char *) "self", NULL | |
22060 | }; | |
22061 | ||
22062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22065 | { |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | (arg1)->Lower(); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | Py_INCREF(Py_None); resultobj = Py_None; | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22082 | wxSize *arg2 = 0 ; | |
22083 | wxSize temp2 ; | |
22084 | PyObject * obj0 = 0 ; | |
22085 | PyObject * obj1 = 0 ; | |
22086 | char *kwnames[] = { | |
22087 | (char *) "self",(char *) "size", NULL | |
22088 | }; | |
22089 | ||
22090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22093 | { |
22094 | arg2 = &temp2; | |
22095 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22096 | } | |
22097 | { | |
22098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22099 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22100 | ||
22101 | wxPyEndAllowThreads(__tstate); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
22103 | } | |
22104 | Py_INCREF(Py_None); resultobj = Py_None; | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
22111 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22112 | PyObject *resultobj; | |
22113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22114 | int arg2 ; | |
22115 | int arg3 ; | |
22116 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22117 | PyObject * obj1 = 0 ; |
22118 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22119 | char *kwnames[] = { |
22120 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22121 | }; | |
22122 | ||
8edf1c75 | 22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | arg2 = (int) SWIG_AsInt(obj1); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | arg3 = (int) SWIG_AsInt(obj2); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22130 | { |
22131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22132 | (arg1)->SetClientSize(arg2,arg3); | |
22133 | ||
22134 | wxPyEndAllowThreads(__tstate); | |
22135 | if (PyErr_Occurred()) SWIG_fail; | |
22136 | } | |
22137 | Py_INCREF(Py_None); resultobj = Py_None; | |
22138 | return resultobj; | |
22139 | fail: | |
22140 | return NULL; | |
22141 | } | |
22142 | ||
22143 | ||
22144 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22145 | PyObject *resultobj; | |
22146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22147 | wxRect *arg2 = 0 ; | |
22148 | wxRect temp2 ; | |
22149 | PyObject * obj0 = 0 ; | |
22150 | PyObject * obj1 = 0 ; | |
22151 | char *kwnames[] = { | |
22152 | (char *) "self",(char *) "rect", NULL | |
22153 | }; | |
22154 | ||
22155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22158 | { |
22159 | arg2 = &temp2; | |
22160 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22161 | } | |
22162 | { | |
22163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22164 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22165 | ||
22166 | wxPyEndAllowThreads(__tstate); | |
22167 | if (PyErr_Occurred()) SWIG_fail; | |
22168 | } | |
22169 | Py_INCREF(Py_None); resultobj = Py_None; | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
22176 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22177 | PyObject *resultobj; | |
22178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22179 | wxPoint result; | |
22180 | PyObject * obj0 = 0 ; | |
22181 | char *kwnames[] = { | |
22182 | (char *) "self", NULL | |
22183 | }; | |
22184 | ||
22185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22188 | { |
22189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 22190 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22191 | |
22192 | wxPyEndAllowThreads(__tstate); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | { | |
22196 | wxPoint * resultptr; | |
22197 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22198 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22199 | } |
22200 | return resultobj; | |
22201 | fail: | |
22202 | return NULL; | |
22203 | } | |
22204 | ||
22205 | ||
22206 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22207 | PyObject *resultobj; | |
22208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22209 | int *arg2 = (int *) 0 ; | |
22210 | int *arg3 = (int *) 0 ; | |
22211 | int temp2 ; | |
22212 | int temp3 ; | |
22213 | PyObject * obj0 = 0 ; | |
22214 | char *kwnames[] = { | |
22215 | (char *) "self", NULL | |
22216 | }; | |
22217 | ||
22218 | arg2 = &temp2; | |
22219 | arg3 = &temp3; | |
22220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22223 | { |
22224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 22225 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22226 | |
22227 | wxPyEndAllowThreads(__tstate); | |
22228 | if (PyErr_Occurred()) SWIG_fail; | |
22229 | } | |
22230 | Py_INCREF(Py_None); resultobj = Py_None; | |
22231 | { | |
22232 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22233 | resultobj = t_output_helper(resultobj,o); | |
22234 | } | |
22235 | { | |
22236 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22237 | resultobj = t_output_helper(resultobj,o); | |
22238 | } | |
22239 | return resultobj; | |
22240 | fail: | |
22241 | return NULL; | |
22242 | } | |
22243 | ||
22244 | ||
22245 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22246 | PyObject *resultobj; | |
22247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22248 | wxSize result; | |
22249 | PyObject * obj0 = 0 ; | |
22250 | char *kwnames[] = { | |
22251 | (char *) "self", NULL | |
22252 | }; | |
22253 | ||
22254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22257 | { |
22258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22259 | result = ((wxWindow const *)arg1)->GetSize(); | |
22260 | ||
22261 | wxPyEndAllowThreads(__tstate); | |
22262 | if (PyErr_Occurred()) SWIG_fail; | |
22263 | } | |
22264 | { | |
22265 | wxSize * resultptr; | |
22266 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22267 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22268 | } |
22269 | return resultobj; | |
22270 | fail: | |
22271 | return NULL; | |
22272 | } | |
22273 | ||
22274 | ||
22275 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22276 | PyObject *resultobj; | |
22277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22278 | int *arg2 = (int *) 0 ; | |
22279 | int *arg3 = (int *) 0 ; | |
22280 | int temp2 ; | |
22281 | int temp3 ; | |
22282 | PyObject * obj0 = 0 ; | |
22283 | char *kwnames[] = { | |
22284 | (char *) "self", NULL | |
22285 | }; | |
22286 | ||
22287 | arg2 = &temp2; | |
22288 | arg3 = &temp3; | |
22289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22292 | { |
22293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22294 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22295 | ||
22296 | wxPyEndAllowThreads(__tstate); | |
22297 | if (PyErr_Occurred()) SWIG_fail; | |
22298 | } | |
22299 | Py_INCREF(Py_None); resultobj = Py_None; | |
22300 | { | |
22301 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22302 | resultobj = t_output_helper(resultobj,o); | |
22303 | } | |
22304 | { | |
22305 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22306 | resultobj = t_output_helper(resultobj,o); | |
22307 | } | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22315 | PyObject *resultobj; | |
22316 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22317 | wxRect result; | |
22318 | PyObject * obj0 = 0 ; | |
22319 | char *kwnames[] = { | |
22320 | (char *) "self", NULL | |
22321 | }; | |
22322 | ||
22323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22326 | { |
22327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22328 | result = ((wxWindow const *)arg1)->GetRect(); | |
22329 | ||
22330 | wxPyEndAllowThreads(__tstate); | |
22331 | if (PyErr_Occurred()) SWIG_fail; | |
22332 | } | |
22333 | { | |
22334 | wxRect * resultptr; | |
22335 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22336 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22337 | } |
22338 | return resultobj; | |
22339 | fail: | |
22340 | return NULL; | |
22341 | } | |
22342 | ||
22343 | ||
22344 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22345 | PyObject *resultobj; | |
22346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22347 | wxSize result; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | char *kwnames[] = { | |
22350 | (char *) "self", NULL | |
22351 | }; | |
22352 | ||
22353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22356 | { |
22357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22358 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22359 | ||
22360 | wxPyEndAllowThreads(__tstate); | |
22361 | if (PyErr_Occurred()) SWIG_fail; | |
22362 | } | |
22363 | { | |
22364 | wxSize * resultptr; | |
22365 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22367 | } |
22368 | return resultobj; | |
22369 | fail: | |
22370 | return NULL; | |
22371 | } | |
22372 | ||
22373 | ||
22374 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22375 | PyObject *resultobj; | |
22376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22377 | int *arg2 = (int *) 0 ; | |
22378 | int *arg3 = (int *) 0 ; | |
22379 | int temp2 ; | |
22380 | int temp3 ; | |
22381 | PyObject * obj0 = 0 ; | |
22382 | char *kwnames[] = { | |
22383 | (char *) "self", NULL | |
22384 | }; | |
22385 | ||
22386 | arg2 = &temp2; | |
22387 | arg3 = &temp3; | |
22388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22391 | { |
22392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22393 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22394 | ||
22395 | wxPyEndAllowThreads(__tstate); | |
22396 | if (PyErr_Occurred()) SWIG_fail; | |
22397 | } | |
22398 | Py_INCREF(Py_None); resultobj = Py_None; | |
22399 | { | |
22400 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22401 | resultobj = t_output_helper(resultobj,o); | |
22402 | } | |
22403 | { | |
22404 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22405 | resultobj = t_output_helper(resultobj,o); | |
22406 | } | |
22407 | return resultobj; | |
22408 | fail: | |
22409 | return NULL; | |
22410 | } | |
22411 | ||
22412 | ||
22413 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22414 | PyObject *resultobj; | |
22415 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22416 | wxPoint result; | |
22417 | PyObject * obj0 = 0 ; | |
22418 | char *kwnames[] = { | |
22419 | (char *) "self", NULL | |
22420 | }; | |
22421 | ||
22422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22425 | { |
22426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22427 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22428 | ||
22429 | wxPyEndAllowThreads(__tstate); | |
22430 | if (PyErr_Occurred()) SWIG_fail; | |
22431 | } | |
22432 | { | |
22433 | wxPoint * resultptr; | |
22434 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 22435 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22436 | } |
22437 | return resultobj; | |
22438 | fail: | |
22439 | return NULL; | |
22440 | } | |
22441 | ||
22442 | ||
22443 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22444 | PyObject *resultobj; | |
22445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22446 | wxRect result; | |
22447 | PyObject * obj0 = 0 ; | |
22448 | char *kwnames[] = { | |
22449 | (char *) "self", NULL | |
22450 | }; | |
22451 | ||
22452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22455 | { |
22456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22457 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22458 | ||
22459 | wxPyEndAllowThreads(__tstate); | |
22460 | if (PyErr_Occurred()) SWIG_fail; | |
22461 | } | |
22462 | { | |
22463 | wxRect * resultptr; | |
22464 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 22465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22466 | } |
22467 | return resultobj; | |
22468 | fail: | |
22469 | return NULL; | |
22470 | } | |
22471 | ||
22472 | ||
22473 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22474 | PyObject *resultobj; | |
22475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22476 | wxSize result; | |
22477 | PyObject * obj0 = 0 ; | |
22478 | char *kwnames[] = { | |
22479 | (char *) "self", NULL | |
22480 | }; | |
22481 | ||
22482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22485 | { |
22486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22487 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22488 | ||
22489 | wxPyEndAllowThreads(__tstate); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | } | |
22492 | { | |
22493 | wxSize * resultptr; | |
22494 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22495 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22496 | } |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
22503 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22504 | PyObject *resultobj; | |
22505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22506 | int *arg2 = (int *) 0 ; | |
22507 | int *arg3 = (int *) 0 ; | |
22508 | int temp2 ; | |
22509 | int temp3 ; | |
22510 | PyObject * obj0 = 0 ; | |
22511 | char *kwnames[] = { | |
22512 | (char *) "self", NULL | |
22513 | }; | |
22514 | ||
22515 | arg2 = &temp2; | |
22516 | arg3 = &temp3; | |
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22520 | { |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
22527 | Py_INCREF(Py_None); resultobj = Py_None; | |
22528 | { | |
22529 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22530 | resultobj = t_output_helper(resultobj,o); | |
22531 | } | |
22532 | { | |
22533 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22534 | resultobj = t_output_helper(resultobj,o); | |
22535 | } | |
22536 | return resultobj; | |
22537 | fail: | |
22538 | return NULL; | |
22539 | } | |
22540 | ||
22541 | ||
22542 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22543 | PyObject *resultobj; | |
22544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22545 | wxSize result; | |
22546 | PyObject * obj0 = 0 ; | |
22547 | char *kwnames[] = { | |
22548 | (char *) "self", NULL | |
22549 | }; | |
22550 | ||
22551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22554 | { |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
22561 | { | |
22562 | wxSize * resultptr; | |
22563 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22565 | } |
22566 | return resultobj; | |
22567 | fail: | |
22568 | return NULL; | |
22569 | } | |
22570 | ||
22571 | ||
22572 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22573 | PyObject *resultobj; | |
22574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22575 | int arg2 = (int) wxBOTH ; | |
22576 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22578 | char *kwnames[] = { |
22579 | (char *) "self",(char *) "direction", NULL | |
22580 | }; | |
22581 | ||
8edf1c75 | 22582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22585 | if (obj1) { |
2f4c0a16 RD |
22586 | arg2 = (int) SWIG_AsInt(obj1); |
22587 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22588 | } |
d14a1e28 RD |
22589 | { |
22590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22591 | (arg1)->Center(arg2); | |
22592 | ||
22593 | wxPyEndAllowThreads(__tstate); | |
22594 | if (PyErr_Occurred()) SWIG_fail; | |
22595 | } | |
22596 | Py_INCREF(Py_None); resultobj = Py_None; | |
22597 | return resultobj; | |
22598 | fail: | |
22599 | return NULL; | |
22600 | } | |
22601 | ||
22602 | ||
22603 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22604 | PyObject *resultobj; | |
22605 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22606 | int arg2 = (int) wxBOTH ; | |
22607 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22608 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22609 | char *kwnames[] = { |
22610 | (char *) "self",(char *) "dir", NULL | |
22611 | }; | |
22612 | ||
8edf1c75 | 22613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22616 | if (obj1) { |
2f4c0a16 RD |
22617 | arg2 = (int) SWIG_AsInt(obj1); |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22619 | } |
d14a1e28 RD |
22620 | { |
22621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22622 | (arg1)->CenterOnScreen(arg2); | |
22623 | ||
22624 | wxPyEndAllowThreads(__tstate); | |
22625 | if (PyErr_Occurred()) SWIG_fail; | |
22626 | } | |
22627 | Py_INCREF(Py_None); resultobj = Py_None; | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22637 | int arg2 = (int) wxBOTH ; | |
22638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22640 | char *kwnames[] = { |
22641 | (char *) "self",(char *) "dir", NULL | |
22642 | }; | |
22643 | ||
8edf1c75 | 22644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22647 | if (obj1) { |
2f4c0a16 RD |
22648 | arg2 = (int) SWIG_AsInt(obj1); |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22650 | } |
d14a1e28 RD |
22651 | { |
22652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22653 | (arg1)->CenterOnParent(arg2); | |
22654 | ||
22655 | wxPyEndAllowThreads(__tstate); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
22658 | Py_INCREF(Py_None); resultobj = Py_None; | |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
22665 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22666 | PyObject *resultobj; | |
22667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22668 | PyObject * obj0 = 0 ; | |
22669 | char *kwnames[] = { | |
22670 | (char *) "self", NULL | |
22671 | }; | |
22672 | ||
22673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22676 | { |
22677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22678 | (arg1)->Fit(); | |
22679 | ||
22680 | wxPyEndAllowThreads(__tstate); | |
22681 | if (PyErr_Occurred()) SWIG_fail; | |
22682 | } | |
22683 | Py_INCREF(Py_None); resultobj = Py_None; | |
22684 | return resultobj; | |
22685 | fail: | |
22686 | return NULL; | |
22687 | } | |
22688 | ||
22689 | ||
22690 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22691 | PyObject *resultobj; | |
22692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22693 | PyObject * obj0 = 0 ; | |
22694 | char *kwnames[] = { | |
22695 | (char *) "self", NULL | |
22696 | }; | |
22697 | ||
22698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22701 | { |
22702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22703 | (arg1)->FitInside(); | |
22704 | ||
22705 | wxPyEndAllowThreads(__tstate); | |
22706 | if (PyErr_Occurred()) SWIG_fail; | |
22707 | } | |
22708 | Py_INCREF(Py_None); resultobj = Py_None; | |
22709 | return resultobj; | |
22710 | fail: | |
22711 | return NULL; | |
22712 | } | |
22713 | ||
22714 | ||
22715 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22716 | PyObject *resultobj; | |
22717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22718 | int arg2 ; | |
22719 | int arg3 ; | |
22720 | int arg4 = (int) -1 ; | |
22721 | int arg5 = (int) -1 ; | |
22722 | int arg6 = (int) -1 ; | |
22723 | int arg7 = (int) -1 ; | |
22724 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22725 | PyObject * obj1 = 0 ; |
22726 | PyObject * obj2 = 0 ; | |
22727 | PyObject * obj3 = 0 ; | |
22728 | PyObject * obj4 = 0 ; | |
22729 | PyObject * obj5 = 0 ; | |
22730 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
22731 | char *kwnames[] = { |
22732 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
22733 | }; | |
22734 | ||
8edf1c75 | 22735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22738 | arg2 = (int) SWIG_AsInt(obj1); | |
22739 | if (PyErr_Occurred()) SWIG_fail; | |
22740 | arg3 = (int) SWIG_AsInt(obj2); | |
22741 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22742 | if (obj3) { |
2f4c0a16 RD |
22743 | arg4 = (int) SWIG_AsInt(obj3); |
22744 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22745 | } |
22746 | if (obj4) { | |
2f4c0a16 RD |
22747 | arg5 = (int) SWIG_AsInt(obj4); |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22749 | } |
22750 | if (obj5) { | |
2f4c0a16 RD |
22751 | arg6 = (int) SWIG_AsInt(obj5); |
22752 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22753 | } |
22754 | if (obj6) { | |
2f4c0a16 RD |
22755 | arg7 = (int) SWIG_AsInt(obj6); |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22757 | } |
d14a1e28 RD |
22758 | { |
22759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22760 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22761 | ||
22762 | wxPyEndAllowThreads(__tstate); | |
22763 | if (PyErr_Occurred()) SWIG_fail; | |
22764 | } | |
22765 | Py_INCREF(Py_None); resultobj = Py_None; | |
22766 | return resultobj; | |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22773 | PyObject *resultobj; | |
22774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22775 | int arg2 ; | |
22776 | int arg3 ; | |
22777 | int arg4 = (int) -1 ; | |
22778 | int arg5 = (int) -1 ; | |
22779 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22780 | PyObject * obj1 = 0 ; |
22781 | PyObject * obj2 = 0 ; | |
22782 | PyObject * obj3 = 0 ; | |
22783 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22784 | char *kwnames[] = { |
22785 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
22786 | }; | |
22787 | ||
8edf1c75 | 22788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22791 | arg2 = (int) SWIG_AsInt(obj1); | |
22792 | if (PyErr_Occurred()) SWIG_fail; | |
22793 | arg3 = (int) SWIG_AsInt(obj2); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22795 | if (obj3) { |
2f4c0a16 RD |
22796 | arg4 = (int) SWIG_AsInt(obj3); |
22797 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22798 | } |
22799 | if (obj4) { | |
2f4c0a16 RD |
22800 | arg5 = (int) SWIG_AsInt(obj4); |
22801 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22802 | } |
d14a1e28 RD |
22803 | { |
22804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22805 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
22806 | ||
22807 | wxPyEndAllowThreads(__tstate); | |
22808 | if (PyErr_Occurred()) SWIG_fail; | |
22809 | } | |
22810 | Py_INCREF(Py_None); resultobj = Py_None; | |
22811 | return resultobj; | |
22812 | fail: | |
22813 | return NULL; | |
22814 | } | |
22815 | ||
22816 | ||
22817 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22818 | PyObject *resultobj; | |
22819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22820 | int result; | |
22821 | PyObject * obj0 = 0 ; | |
22822 | char *kwnames[] = { | |
22823 | (char *) "self", NULL | |
22824 | }; | |
22825 | ||
22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22829 | { |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
22832 | ||
22833 | wxPyEndAllowThreads(__tstate); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
2f4c0a16 | 22836 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22837 | return resultobj; |
22838 | fail: | |
22839 | return NULL; | |
22840 | } | |
22841 | ||
22842 | ||
22843 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22844 | PyObject *resultobj; | |
22845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22846 | int result; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | char *kwnames[] = { | |
22849 | (char *) "self", NULL | |
22850 | }; | |
22851 | ||
22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22855 | { |
22856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22857 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
22858 | ||
22859 | wxPyEndAllowThreads(__tstate); | |
22860 | if (PyErr_Occurred()) SWIG_fail; | |
22861 | } | |
2f4c0a16 | 22862 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22863 | return resultobj; |
22864 | fail: | |
22865 | return NULL; | |
22866 | } | |
22867 | ||
22868 | ||
22869 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22870 | PyObject *resultobj; | |
22871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22872 | int result; | |
22873 | PyObject * obj0 = 0 ; | |
22874 | char *kwnames[] = { | |
22875 | (char *) "self", NULL | |
22876 | }; | |
22877 | ||
22878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22881 | { |
22882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22883 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
22884 | ||
22885 | wxPyEndAllowThreads(__tstate); | |
22886 | if (PyErr_Occurred()) SWIG_fail; | |
22887 | } | |
2f4c0a16 | 22888 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22889 | return resultobj; |
22890 | fail: | |
22891 | return NULL; | |
22892 | } | |
22893 | ||
22894 | ||
22895 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22896 | PyObject *resultobj; | |
22897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22898 | int result; | |
22899 | PyObject * obj0 = 0 ; | |
22900 | char *kwnames[] = { | |
22901 | (char *) "self", NULL | |
22902 | }; | |
22903 | ||
22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22907 | { |
22908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22909 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
22910 | ||
22911 | wxPyEndAllowThreads(__tstate); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
2f4c0a16 | 22914 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22915 | return resultobj; |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22922 | PyObject *resultobj; | |
22923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22924 | wxSize result; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | char *kwnames[] = { | |
22927 | (char *) "self", NULL | |
22928 | }; | |
22929 | ||
22930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22933 | { |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | { | |
22941 | wxSize * resultptr; | |
22942 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 22943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22944 | } |
22945 | return resultobj; | |
22946 | fail: | |
22947 | return NULL; | |
22948 | } | |
22949 | ||
22950 | ||
22951 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22952 | PyObject *resultobj; | |
22953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22954 | wxSize *arg2 = 0 ; | |
22955 | wxSize temp2 ; | |
22956 | PyObject * obj0 = 0 ; | |
22957 | PyObject * obj1 = 0 ; | |
22958 | char *kwnames[] = { | |
22959 | (char *) "self",(char *) "size", NULL | |
22960 | }; | |
22961 | ||
22962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22965 | { |
22966 | arg2 = &temp2; | |
22967 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22968 | } | |
22969 | { | |
22970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22971 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
22972 | ||
22973 | wxPyEndAllowThreads(__tstate); | |
22974 | if (PyErr_Occurred()) SWIG_fail; | |
22975 | } | |
22976 | Py_INCREF(Py_None); resultobj = Py_None; | |
22977 | return resultobj; | |
22978 | fail: | |
22979 | return NULL; | |
22980 | } | |
22981 | ||
22982 | ||
22983 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22984 | PyObject *resultobj; | |
22985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22986 | int arg2 ; | |
22987 | int arg3 ; | |
22988 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22989 | PyObject * obj1 = 0 ; |
22990 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22991 | char *kwnames[] = { |
22992 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22993 | }; | |
22994 | ||
8edf1c75 | 22995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22998 | arg2 = (int) SWIG_AsInt(obj1); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | arg3 = (int) SWIG_AsInt(obj2); | |
23001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23002 | { |
23003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23004 | (arg1)->SetVirtualSize(arg2,arg3); | |
23005 | ||
23006 | wxPyEndAllowThreads(__tstate); | |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
23008 | } | |
23009 | Py_INCREF(Py_None); resultobj = Py_None; | |
23010 | return resultobj; | |
23011 | fail: | |
23012 | return NULL; | |
23013 | } | |
23014 | ||
23015 | ||
23016 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23017 | PyObject *resultobj; | |
23018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23019 | wxSize result; | |
23020 | PyObject * obj0 = 0 ; | |
23021 | char *kwnames[] = { | |
23022 | (char *) "self", NULL | |
23023 | }; | |
23024 | ||
23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23028 | { |
23029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23030 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23031 | ||
23032 | wxPyEndAllowThreads(__tstate); | |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
23034 | } | |
23035 | { | |
23036 | wxSize * resultptr; | |
23037 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 23038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23039 | } |
23040 | return resultobj; | |
23041 | fail: | |
23042 | return NULL; | |
23043 | } | |
23044 | ||
23045 | ||
23046 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23047 | PyObject *resultobj; | |
23048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23049 | int *arg2 = (int *) 0 ; | |
23050 | int *arg3 = (int *) 0 ; | |
23051 | int temp2 ; | |
23052 | int temp3 ; | |
23053 | PyObject * obj0 = 0 ; | |
23054 | char *kwnames[] = { | |
23055 | (char *) "self", NULL | |
23056 | }; | |
23057 | ||
23058 | arg2 = &temp2; | |
23059 | arg3 = &temp3; | |
23060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23063 | { |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23066 | ||
23067 | wxPyEndAllowThreads(__tstate); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | } | |
23070 | Py_INCREF(Py_None); resultobj = Py_None; | |
23071 | { | |
23072 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23073 | resultobj = t_output_helper(resultobj,o); | |
23074 | } | |
23075 | { | |
23076 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23077 | resultobj = t_output_helper(resultobj,o); | |
23078 | } | |
23079 | return resultobj; | |
23080 | fail: | |
23081 | return NULL; | |
23082 | } | |
23083 | ||
23084 | ||
23085 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23086 | PyObject *resultobj; | |
23087 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23088 | wxSize result; | |
23089 | PyObject * obj0 = 0 ; | |
23090 | char *kwnames[] = { | |
23091 | (char *) "self", NULL | |
23092 | }; | |
23093 | ||
23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23097 | { |
23098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23099 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23100 | ||
23101 | wxPyEndAllowThreads(__tstate); | |
23102 | if (PyErr_Occurred()) SWIG_fail; | |
23103 | } | |
23104 | { | |
23105 | wxSize * resultptr; | |
23106 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 23107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23108 | } |
23109 | return resultobj; | |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23118 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23119 | bool result; |
23120 | PyObject * obj0 = 0 ; | |
23121 | PyObject * obj1 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self",(char *) "show", NULL | |
23124 | }; | |
23125 | ||
23126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23129 | if (obj1) { |
2f4c0a16 RD |
23130 | arg2 = (bool) SWIG_AsBool(obj1); |
23131 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23132 | } |
23133 | { | |
23134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23135 | result = (bool)(arg1)->Show(arg2); | |
23136 | ||
23137 | wxPyEndAllowThreads(__tstate); | |
23138 | if (PyErr_Occurred()) SWIG_fail; | |
23139 | } | |
4f89f6a3 RD |
23140 | { |
23141 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23142 | } | |
d14a1e28 RD |
23143 | return resultobj; |
23144 | fail: | |
23145 | return NULL; | |
23146 | } | |
23147 | ||
23148 | ||
23149 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23150 | PyObject *resultobj; | |
23151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23152 | bool result; | |
23153 | PyObject * obj0 = 0 ; | |
23154 | char *kwnames[] = { | |
23155 | (char *) "self", NULL | |
23156 | }; | |
23157 | ||
23158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23161 | { |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | result = (bool)(arg1)->Hide(); | |
23164 | ||
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
4f89f6a3 RD |
23168 | { |
23169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23170 | } | |
d14a1e28 RD |
23171 | return resultobj; |
23172 | fail: | |
23173 | return NULL; | |
23174 | } | |
23175 | ||
23176 | ||
23177 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23178 | PyObject *resultobj; | |
23179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23180 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23181 | bool result; |
23182 | PyObject * obj0 = 0 ; | |
23183 | PyObject * obj1 = 0 ; | |
23184 | char *kwnames[] = { | |
23185 | (char *) "self",(char *) "enable", NULL | |
23186 | }; | |
23187 | ||
23188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23191 | if (obj1) { |
2f4c0a16 RD |
23192 | arg2 = (bool) SWIG_AsBool(obj1); |
23193 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23194 | } |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = (bool)(arg1)->Enable(arg2); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
4f89f6a3 RD |
23202 | { |
23203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23204 | } | |
d14a1e28 RD |
23205 | return resultobj; |
23206 | fail: | |
23207 | return NULL; | |
23208 | } | |
23209 | ||
23210 | ||
23211 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23212 | PyObject *resultobj; | |
23213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23214 | bool result; | |
23215 | PyObject * obj0 = 0 ; | |
23216 | char *kwnames[] = { | |
23217 | (char *) "self", NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23223 | { |
23224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23225 | result = (bool)(arg1)->Disable(); | |
23226 | ||
23227 | wxPyEndAllowThreads(__tstate); | |
23228 | if (PyErr_Occurred()) SWIG_fail; | |
23229 | } | |
4f89f6a3 RD |
23230 | { |
23231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23232 | } | |
d14a1e28 RD |
23233 | return resultobj; |
23234 | fail: | |
23235 | return NULL; | |
23236 | } | |
23237 | ||
23238 | ||
23239 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23240 | PyObject *resultobj; | |
23241 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23242 | bool result; | |
23243 | PyObject * obj0 = 0 ; | |
23244 | char *kwnames[] = { | |
23245 | (char *) "self", NULL | |
23246 | }; | |
23247 | ||
23248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23251 | { |
23252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23253 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23254 | ||
23255 | wxPyEndAllowThreads(__tstate); | |
23256 | if (PyErr_Occurred()) SWIG_fail; | |
23257 | } | |
4f89f6a3 RD |
23258 | { |
23259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23260 | } | |
d14a1e28 RD |
23261 | return resultobj; |
23262 | fail: | |
23263 | return NULL; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23268 | PyObject *resultobj; | |
23269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23270 | bool result; | |
23271 | PyObject * obj0 = 0 ; | |
23272 | char *kwnames[] = { | |
23273 | (char *) "self", NULL | |
23274 | }; | |
23275 | ||
23276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23279 | { |
23280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23281 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23282 | ||
23283 | wxPyEndAllowThreads(__tstate); | |
23284 | if (PyErr_Occurred()) SWIG_fail; | |
23285 | } | |
4f89f6a3 RD |
23286 | { |
23287 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23288 | } | |
d14a1e28 RD |
23289 | return resultobj; |
23290 | fail: | |
23291 | return NULL; | |
23292 | } | |
23293 | ||
23294 | ||
23295 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23296 | PyObject *resultobj; | |
23297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23298 | long arg2 ; | |
23299 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23300 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23301 | char *kwnames[] = { |
23302 | (char *) "self",(char *) "style", NULL | |
23303 | }; | |
23304 | ||
8edf1c75 | 23305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23308 | arg2 = (long) SWIG_AsLong(obj1); | |
23309 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23310 | { |
23311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23312 | (arg1)->SetWindowStyleFlag(arg2); | |
23313 | ||
23314 | wxPyEndAllowThreads(__tstate); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | } | |
23317 | Py_INCREF(Py_None); resultobj = Py_None; | |
23318 | return resultobj; | |
23319 | fail: | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
23324 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23325 | PyObject *resultobj; | |
23326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23327 | long result; | |
23328 | PyObject * obj0 = 0 ; | |
23329 | char *kwnames[] = { | |
23330 | (char *) "self", NULL | |
23331 | }; | |
23332 | ||
23333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23336 | { |
23337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23338 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23339 | ||
23340 | wxPyEndAllowThreads(__tstate); | |
23341 | if (PyErr_Occurred()) SWIG_fail; | |
23342 | } | |
2f4c0a16 | 23343 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23344 | return resultobj; |
23345 | fail: | |
23346 | return NULL; | |
23347 | } | |
23348 | ||
23349 | ||
23350 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23351 | PyObject *resultobj; | |
23352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23353 | int arg2 ; | |
23354 | bool result; | |
23355 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23357 | char *kwnames[] = { |
23358 | (char *) "self",(char *) "flag", NULL | |
23359 | }; | |
23360 | ||
8edf1c75 | 23361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23364 | arg2 = (int) SWIG_AsInt(obj1); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23366 | { |
23367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23368 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23369 | ||
23370 | wxPyEndAllowThreads(__tstate); | |
23371 | if (PyErr_Occurred()) SWIG_fail; | |
23372 | } | |
4f89f6a3 RD |
23373 | { |
23374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23375 | } | |
d14a1e28 RD |
23376 | return resultobj; |
23377 | fail: | |
23378 | return NULL; | |
23379 | } | |
23380 | ||
23381 | ||
23382 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23383 | PyObject *resultobj; | |
23384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23385 | bool result; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23394 | { |
23395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23396 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23397 | ||
23398 | wxPyEndAllowThreads(__tstate); | |
23399 | if (PyErr_Occurred()) SWIG_fail; | |
23400 | } | |
4f89f6a3 RD |
23401 | { |
23402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23403 | } | |
d14a1e28 RD |
23404 | return resultobj; |
23405 | fail: | |
23406 | return NULL; | |
23407 | } | |
23408 | ||
23409 | ||
23410 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23411 | PyObject *resultobj; | |
23412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23413 | long arg2 ; | |
23414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23416 | char *kwnames[] = { |
23417 | (char *) "self",(char *) "exStyle", NULL | |
23418 | }; | |
23419 | ||
8edf1c75 | 23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23423 | arg2 = (long) SWIG_AsLong(obj1); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23425 | { |
23426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23427 | (arg1)->SetExtraStyle(arg2); | |
23428 | ||
23429 | wxPyEndAllowThreads(__tstate); | |
23430 | if (PyErr_Occurred()) SWIG_fail; | |
23431 | } | |
23432 | Py_INCREF(Py_None); resultobj = Py_None; | |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
23439 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23440 | PyObject *resultobj; | |
23441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23442 | long result; | |
23443 | PyObject * obj0 = 0 ; | |
23444 | char *kwnames[] = { | |
23445 | (char *) "self", NULL | |
23446 | }; | |
23447 | ||
23448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23451 | { |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
2f4c0a16 | 23458 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23459 | return resultobj; |
23460 | fail: | |
23461 | return NULL; | |
23462 | } | |
23463 | ||
23464 | ||
23465 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23466 | PyObject *resultobj; | |
23467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23468 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23469 | PyObject * obj0 = 0 ; |
23470 | PyObject * obj1 = 0 ; | |
23471 | char *kwnames[] = { | |
23472 | (char *) "self",(char *) "modal", NULL | |
23473 | }; | |
23474 | ||
23475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23478 | if (obj1) { |
2f4c0a16 RD |
23479 | arg2 = (bool) SWIG_AsBool(obj1); |
23480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23481 | } |
23482 | { | |
23483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23484 | (arg1)->MakeModal(arg2); | |
23485 | ||
23486 | wxPyEndAllowThreads(__tstate); | |
23487 | if (PyErr_Occurred()) SWIG_fail; | |
23488 | } | |
23489 | Py_INCREF(Py_None); resultobj = Py_None; | |
23490 | return resultobj; | |
23491 | fail: | |
23492 | return NULL; | |
23493 | } | |
23494 | ||
23495 | ||
23496 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23497 | PyObject *resultobj; | |
23498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23499 | bool arg2 ; | |
23500 | PyObject * obj0 = 0 ; | |
23501 | PyObject * obj1 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self",(char *) "enableTheme", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23509 | arg2 = (bool) SWIG_AsBool(obj1); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23511 | { |
23512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23513 | (arg1)->SetThemeEnabled(arg2); | |
23514 | ||
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
23518 | Py_INCREF(Py_None); resultobj = Py_None; | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
23525 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23526 | PyObject *resultobj; | |
23527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23528 | bool result; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "self", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23537 | { |
23538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23539 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
23540 | ||
23541 | wxPyEndAllowThreads(__tstate); | |
23542 | if (PyErr_Occurred()) SWIG_fail; | |
23543 | } | |
4f89f6a3 RD |
23544 | { |
23545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23546 | } | |
d14a1e28 RD |
23547 | return resultobj; |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
d14a1e28 RD |
23553 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
23554 | PyObject *resultobj; | |
23555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | char *kwnames[] = { | |
23558 | (char *) "self", NULL | |
23559 | }; | |
23560 | ||
23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23564 | { |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | (arg1)->SetFocus(); | |
23567 | ||
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
23571 | Py_INCREF(Py_None); resultobj = Py_None; | |
23572 | return resultobj; | |
23573 | fail: | |
23574 | return NULL; | |
23575 | } | |
23576 | ||
23577 | ||
23578 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23579 | PyObject *resultobj; | |
23580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23581 | PyObject * obj0 = 0 ; | |
23582 | char *kwnames[] = { | |
23583 | (char *) "self", NULL | |
23584 | }; | |
23585 | ||
23586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23589 | { |
23590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23591 | (arg1)->SetFocusFromKbd(); | |
23592 | ||
23593 | wxPyEndAllowThreads(__tstate); | |
23594 | if (PyErr_Occurred()) SWIG_fail; | |
23595 | } | |
23596 | Py_INCREF(Py_None); resultobj = Py_None; | |
23597 | return resultobj; | |
23598 | fail: | |
23599 | return NULL; | |
23600 | } | |
23601 | ||
23602 | ||
23603 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23604 | PyObject *resultobj; | |
23605 | wxWindow *result; | |
23606 | char *kwnames[] = { | |
23607 | NULL | |
23608 | }; | |
23609 | ||
23610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
23611 | { | |
23612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23613 | result = (wxWindow *)wxWindow::FindFocus(); | |
23614 | ||
23615 | wxPyEndAllowThreads(__tstate); | |
23616 | if (PyErr_Occurred()) SWIG_fail; | |
23617 | } | |
23618 | { | |
23619 | resultobj = wxPyMake_wxObject(result); | |
23620 | } | |
23621 | return resultobj; | |
23622 | fail: | |
23623 | return NULL; | |
23624 | } | |
23625 | ||
23626 | ||
23627 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj; | |
23629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23630 | bool result; | |
23631 | PyObject * obj0 = 0 ; | |
23632 | char *kwnames[] = { | |
23633 | (char *) "self", NULL | |
23634 | }; | |
23635 | ||
23636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23639 | { |
23640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23641 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
23642 | ||
23643 | wxPyEndAllowThreads(__tstate); | |
23644 | if (PyErr_Occurred()) SWIG_fail; | |
23645 | } | |
4f89f6a3 RD |
23646 | { |
23647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23648 | } | |
d14a1e28 RD |
23649 | return resultobj; |
23650 | fail: | |
23651 | return NULL; | |
23652 | } | |
23653 | ||
23654 | ||
23655 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23656 | PyObject *resultobj; | |
23657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23658 | bool result; | |
23659 | PyObject * obj0 = 0 ; | |
23660 | char *kwnames[] = { | |
23661 | (char *) "self", NULL | |
23662 | }; | |
23663 | ||
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23667 | { |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23669 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
4f89f6a3 RD |
23674 | { |
23675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23676 | } | |
d14a1e28 RD |
23677 | return resultobj; |
23678 | fail: | |
23679 | return NULL; | |
23680 | } | |
23681 | ||
23682 | ||
23683 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23684 | PyObject *resultobj; | |
23685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23686 | wxWindow *result; | |
23687 | PyObject * obj0 = 0 ; | |
23688 | char *kwnames[] = { | |
23689 | (char *) "self", NULL | |
23690 | }; | |
23691 | ||
23692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23695 | { |
23696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23697 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
23698 | ||
23699 | wxPyEndAllowThreads(__tstate); | |
23700 | if (PyErr_Occurred()) SWIG_fail; | |
23701 | } | |
23702 | { | |
23703 | resultobj = wxPyMake_wxObject(result); | |
23704 | } | |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23715 | wxWindow *result; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self",(char *) "child", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23727 | { |
23728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23729 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
23730 | ||
23731 | wxPyEndAllowThreads(__tstate); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
23734 | { | |
23735 | resultobj = wxPyMake_wxObject(result); | |
23736 | } | |
23737 | return resultobj; | |
23738 | fail: | |
23739 | return NULL; | |
23740 | } | |
23741 | ||
23742 | ||
23743 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23744 | PyObject *resultobj; | |
23745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23746 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23747 | PyObject * obj0 = 0 ; | |
23748 | PyObject * obj1 = 0 ; | |
23749 | char *kwnames[] = { | |
23750 | (char *) "self",(char *) "win", NULL | |
23751 | }; | |
23752 | ||
23753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23758 | { |
23759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23760 | (arg1)->SetTmpDefaultItem(arg2); | |
23761 | ||
23762 | wxPyEndAllowThreads(__tstate); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | Py_INCREF(Py_None); resultobj = Py_None; | |
23766 | return resultobj; | |
23767 | fail: | |
23768 | return NULL; | |
23769 | } | |
23770 | ||
23771 | ||
23772 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23773 | PyObject *resultobj; | |
23774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23775 | PyObject *result; | |
23776 | PyObject * obj0 = 0 ; | |
23777 | char *kwnames[] = { | |
23778 | (char *) "self", NULL | |
23779 | }; | |
23780 | ||
23781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23784 | { |
23785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23786 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
23787 | ||
23788 | wxPyEndAllowThreads(__tstate); | |
23789 | if (PyErr_Occurred()) SWIG_fail; | |
23790 | } | |
23791 | resultobj = result; | |
23792 | return resultobj; | |
23793 | fail: | |
23794 | return NULL; | |
23795 | } | |
23796 | ||
23797 | ||
23798 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23799 | PyObject *resultobj; | |
23800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23801 | wxWindow *result; | |
23802 | PyObject * obj0 = 0 ; | |
23803 | char *kwnames[] = { | |
23804 | (char *) "self", NULL | |
23805 | }; | |
23806 | ||
23807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23810 | { |
23811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23812 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
23813 | ||
23814 | wxPyEndAllowThreads(__tstate); | |
23815 | if (PyErr_Occurred()) SWIG_fail; | |
23816 | } | |
23817 | { | |
23818 | resultobj = wxPyMake_wxObject(result); | |
23819 | } | |
23820 | return resultobj; | |
23821 | fail: | |
23822 | return NULL; | |
23823 | } | |
23824 | ||
23825 | ||
23826 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23827 | PyObject *resultobj; | |
23828 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23829 | wxWindow *result; | |
23830 | PyObject * obj0 = 0 ; | |
23831 | char *kwnames[] = { | |
23832 | (char *) "self", NULL | |
23833 | }; | |
23834 | ||
23835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23838 | { |
23839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23840 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
23841 | ||
23842 | wxPyEndAllowThreads(__tstate); | |
23843 | if (PyErr_Occurred()) SWIG_fail; | |
23844 | } | |
23845 | { | |
23846 | resultobj = wxPyMake_wxObject(result); | |
23847 | } | |
23848 | return resultobj; | |
23849 | fail: | |
23850 | return NULL; | |
23851 | } | |
23852 | ||
23853 | ||
23854 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23855 | PyObject *resultobj; | |
23856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23857 | bool result; | |
23858 | PyObject * obj0 = 0 ; | |
23859 | char *kwnames[] = { | |
23860 | (char *) "self", NULL | |
23861 | }; | |
23862 | ||
23863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23866 | { |
23867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23868 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
23869 | ||
23870 | wxPyEndAllowThreads(__tstate); | |
23871 | if (PyErr_Occurred()) SWIG_fail; | |
23872 | } | |
4f89f6a3 RD |
23873 | { |
23874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23875 | } | |
d14a1e28 RD |
23876 | return resultobj; |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
23882 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23883 | PyObject *resultobj; | |
23884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23885 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23886 | bool result; | |
23887 | PyObject * obj0 = 0 ; | |
23888 | PyObject * obj1 = 0 ; | |
23889 | char *kwnames[] = { | |
23890 | (char *) "self",(char *) "newParent", NULL | |
23891 | }; | |
23892 | ||
23893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23896 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23898 | { |
23899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23900 | result = (bool)(arg1)->Reparent(arg2); | |
23901 | ||
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
4f89f6a3 RD |
23905 | { |
23906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23907 | } | |
d14a1e28 RD |
23908 | return resultobj; |
23909 | fail: | |
23910 | return NULL; | |
23911 | } | |
23912 | ||
23913 | ||
23914 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23915 | PyObject *resultobj; | |
23916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23917 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23918 | PyObject * obj0 = 0 ; | |
23919 | PyObject * obj1 = 0 ; | |
23920 | char *kwnames[] = { | |
23921 | (char *) "self",(char *) "child", NULL | |
23922 | }; | |
23923 | ||
23924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23927 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23929 | { |
23930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23931 | (arg1)->AddChild(arg2); | |
23932 | ||
23933 | wxPyEndAllowThreads(__tstate); | |
23934 | if (PyErr_Occurred()) SWIG_fail; | |
23935 | } | |
23936 | Py_INCREF(Py_None); resultobj = Py_None; | |
23937 | return resultobj; | |
23938 | fail: | |
23939 | return NULL; | |
23940 | } | |
23941 | ||
23942 | ||
23943 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23944 | PyObject *resultobj; | |
23945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23946 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23947 | PyObject * obj0 = 0 ; | |
23948 | PyObject * obj1 = 0 ; | |
23949 | char *kwnames[] = { | |
23950 | (char *) "self",(char *) "child", NULL | |
23951 | }; | |
23952 | ||
23953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23958 | { |
23959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23960 | (arg1)->RemoveChild(arg2); | |
23961 | ||
23962 | wxPyEndAllowThreads(__tstate); | |
23963 | if (PyErr_Occurred()) SWIG_fail; | |
23964 | } | |
23965 | Py_INCREF(Py_None); resultobj = Py_None; | |
23966 | return resultobj; | |
23967 | fail: | |
23968 | return NULL; | |
23969 | } | |
23970 | ||
23971 | ||
23972 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23973 | PyObject *resultobj; | |
23974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23975 | long arg2 ; | |
23976 | wxWindow *result; | |
23977 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23979 | char *kwnames[] = { |
23980 | (char *) "self",(char *) "winid", NULL | |
23981 | }; | |
23982 | ||
8edf1c75 | 23983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23986 | arg2 = (long) SWIG_AsLong(obj1); | |
23987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23988 | { |
23989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23990 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
23991 | ||
23992 | wxPyEndAllowThreads(__tstate); | |
23993 | if (PyErr_Occurred()) SWIG_fail; | |
23994 | } | |
23995 | { | |
23996 | resultobj = wxPyMake_wxObject(result); | |
23997 | } | |
23998 | return resultobj; | |
23999 | fail: | |
24000 | return NULL; | |
24001 | } | |
24002 | ||
24003 | ||
24004 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24005 | PyObject *resultobj; | |
24006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24007 | wxString *arg2 = 0 ; | |
24008 | wxWindow *result; | |
423f194a | 24009 | bool temp2 = False ; |
d14a1e28 RD |
24010 | PyObject * obj0 = 0 ; |
24011 | PyObject * obj1 = 0 ; | |
24012 | char *kwnames[] = { | |
24013 | (char *) "self",(char *) "name", NULL | |
24014 | }; | |
24015 | ||
24016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24019 | { |
24020 | arg2 = wxString_in_helper(obj1); | |
24021 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24022 | temp2 = True; |
d14a1e28 RD |
24023 | } |
24024 | { | |
24025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24026 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24027 | ||
24028 | wxPyEndAllowThreads(__tstate); | |
24029 | if (PyErr_Occurred()) SWIG_fail; | |
24030 | } | |
24031 | { | |
24032 | resultobj = wxPyMake_wxObject(result); | |
24033 | } | |
24034 | { | |
24035 | if (temp2) | |
24036 | delete arg2; | |
24037 | } | |
24038 | return resultobj; | |
24039 | fail: | |
24040 | { | |
24041 | if (temp2) | |
24042 | delete arg2; | |
24043 | } | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24049 | PyObject *resultobj; | |
24050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24051 | wxEvtHandler *result; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self", NULL | |
24055 | }; | |
24056 | ||
24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24060 | { |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24062 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24063 | ||
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | { | |
24068 | resultobj = wxPyMake_wxObject(result); | |
24069 | } | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
24076 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24077 | PyObject *resultobj; | |
24078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24079 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24080 | PyObject * obj0 = 0 ; | |
24081 | PyObject * obj1 = 0 ; | |
24082 | char *kwnames[] = { | |
24083 | (char *) "self",(char *) "handler", NULL | |
24084 | }; | |
24085 | ||
24086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24091 | { |
24092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24093 | (arg1)->SetEventHandler(arg2); | |
24094 | ||
24095 | wxPyEndAllowThreads(__tstate); | |
24096 | if (PyErr_Occurred()) SWIG_fail; | |
24097 | } | |
24098 | Py_INCREF(Py_None); resultobj = Py_None; | |
24099 | return resultobj; | |
24100 | fail: | |
24101 | return NULL; | |
24102 | } | |
24103 | ||
24104 | ||
24105 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24106 | PyObject *resultobj; | |
24107 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24108 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24109 | PyObject * obj0 = 0 ; | |
24110 | PyObject * obj1 = 0 ; | |
24111 | char *kwnames[] = { | |
24112 | (char *) "self",(char *) "handler", NULL | |
24113 | }; | |
24114 | ||
24115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24120 | { |
24121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24122 | (arg1)->PushEventHandler(arg2); | |
24123 | ||
24124 | wxPyEndAllowThreads(__tstate); | |
24125 | if (PyErr_Occurred()) SWIG_fail; | |
24126 | } | |
24127 | Py_INCREF(Py_None); resultobj = Py_None; | |
24128 | return resultobj; | |
24129 | fail: | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
24134 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24135 | PyObject *resultobj; | |
24136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24137 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24138 | wxEvtHandler *result; |
24139 | PyObject * obj0 = 0 ; | |
24140 | PyObject * obj1 = 0 ; | |
24141 | char *kwnames[] = { | |
24142 | (char *) "self",(char *) "deleteHandler", NULL | |
24143 | }; | |
24144 | ||
24145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24148 | if (obj1) { |
2f4c0a16 RD |
24149 | arg2 = (bool) SWIG_AsBool(obj1); |
24150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24151 | } |
24152 | { | |
24153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24154 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24155 | ||
24156 | wxPyEndAllowThreads(__tstate); | |
24157 | if (PyErr_Occurred()) SWIG_fail; | |
24158 | } | |
24159 | { | |
24160 | resultobj = wxPyMake_wxObject(result); | |
24161 | } | |
24162 | return resultobj; | |
24163 | fail: | |
24164 | return NULL; | |
24165 | } | |
24166 | ||
24167 | ||
24168 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24169 | PyObject *resultobj; | |
24170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24171 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24172 | bool result; | |
24173 | PyObject * obj0 = 0 ; | |
24174 | PyObject * obj1 = 0 ; | |
24175 | char *kwnames[] = { | |
24176 | (char *) "self",(char *) "handler", NULL | |
24177 | }; | |
24178 | ||
24179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24182 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24184 | { |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24187 | ||
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
4f89f6a3 RD |
24191 | { |
24192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24193 | } | |
d14a1e28 RD |
24194 | return resultobj; |
24195 | fail: | |
24196 | return NULL; | |
24197 | } | |
24198 | ||
24199 | ||
24200 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24201 | PyObject *resultobj; | |
24202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24203 | wxValidator *arg2 = 0 ; | |
24204 | PyObject * obj0 = 0 ; | |
24205 | PyObject * obj1 = 0 ; | |
24206 | char *kwnames[] = { | |
24207 | (char *) "self",(char *) "validator", NULL | |
24208 | }; | |
24209 | ||
24210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24214 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24215 | SWIG_fail; | |
d14a1e28 | 24216 | if (arg2 == NULL) { |
2f4c0a16 RD |
24217 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24218 | SWIG_fail; | |
d14a1e28 RD |
24219 | } |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | Py_INCREF(Py_None); resultobj = Py_None; | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24237 | wxValidator *result; | |
24238 | PyObject * obj0 = 0 ; | |
24239 | char *kwnames[] = { | |
24240 | (char *) "self", NULL | |
24241 | }; | |
24242 | ||
24243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24246 | { |
24247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24248 | result = (wxValidator *)(arg1)->GetValidator(); | |
24249 | ||
24250 | wxPyEndAllowThreads(__tstate); | |
24251 | if (PyErr_Occurred()) SWIG_fail; | |
24252 | } | |
24253 | { | |
24254 | resultobj = wxPyMake_wxObject(result); | |
24255 | } | |
24256 | return resultobj; | |
24257 | fail: | |
24258 | return NULL; | |
24259 | } | |
24260 | ||
24261 | ||
24262 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24263 | PyObject *resultobj; | |
24264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24265 | wxAcceleratorTable *arg2 = 0 ; | |
24266 | PyObject * obj0 = 0 ; | |
24267 | PyObject * obj1 = 0 ; | |
24268 | char *kwnames[] = { | |
24269 | (char *) "self",(char *) "accel", NULL | |
24270 | }; | |
24271 | ||
24272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24277 | SWIG_fail; | |
d14a1e28 | 24278 | if (arg2 == NULL) { |
2f4c0a16 RD |
24279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24280 | SWIG_fail; | |
d14a1e28 RD |
24281 | } |
24282 | { | |
24283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24284 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24285 | ||
24286 | wxPyEndAllowThreads(__tstate); | |
24287 | if (PyErr_Occurred()) SWIG_fail; | |
24288 | } | |
24289 | Py_INCREF(Py_None); resultobj = Py_None; | |
24290 | return resultobj; | |
24291 | fail: | |
24292 | return NULL; | |
24293 | } | |
24294 | ||
24295 | ||
24296 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24297 | PyObject *resultobj; | |
24298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24299 | wxAcceleratorTable *result; | |
24300 | PyObject * obj0 = 0 ; | |
24301 | char *kwnames[] = { | |
24302 | (char *) "self", NULL | |
24303 | }; | |
24304 | ||
24305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24308 | { |
24309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24310 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24311 | ||
24312 | wxPyEndAllowThreads(__tstate); | |
24313 | if (PyErr_Occurred()) SWIG_fail; | |
24314 | } | |
2f4c0a16 | 24315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
24316 | return resultobj; |
24317 | fail: | |
24318 | return NULL; | |
24319 | } | |
24320 | ||
24321 | ||
24322 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24323 | PyObject *resultobj; | |
24324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24325 | int arg2 ; | |
24326 | int arg3 ; | |
24327 | int arg4 ; | |
24328 | bool result; | |
24329 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24330 | PyObject * obj1 = 0 ; |
24331 | PyObject * obj2 = 0 ; | |
24332 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24333 | char *kwnames[] = { |
24334 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24335 | }; | |
24336 | ||
8edf1c75 | 24337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
24338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24340 | arg2 = (int) SWIG_AsInt(obj1); | |
24341 | if (PyErr_Occurred()) SWIG_fail; | |
24342 | arg3 = (int) SWIG_AsInt(obj2); | |
24343 | if (PyErr_Occurred()) SWIG_fail; | |
24344 | arg4 = (int) SWIG_AsInt(obj3); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24346 | { |
24347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24348 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
24349 | ||
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
4f89f6a3 RD |
24353 | { |
24354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24355 | } | |
d14a1e28 RD |
24356 | return resultobj; |
24357 | fail: | |
24358 | return NULL; | |
24359 | } | |
24360 | ||
24361 | ||
24362 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24363 | PyObject *resultobj; | |
24364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24365 | int arg2 ; | |
24366 | bool result; | |
24367 | PyObject * obj0 = 0 ; | |
8edf1c75 | 24368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24369 | char *kwnames[] = { |
24370 | (char *) "self",(char *) "hotkeyId", NULL | |
24371 | }; | |
24372 | ||
8edf1c75 | 24373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
24374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24376 | arg2 = (int) SWIG_AsInt(obj1); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24378 | { |
24379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24380 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
24381 | ||
24382 | wxPyEndAllowThreads(__tstate); | |
24383 | if (PyErr_Occurred()) SWIG_fail; | |
24384 | } | |
4f89f6a3 RD |
24385 | { |
24386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24387 | } | |
d14a1e28 RD |
24388 | return resultobj; |
24389 | fail: | |
24390 | return NULL; | |
24391 | } | |
24392 | ||
24393 | ||
24394 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24395 | PyObject *resultobj; | |
24396 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24397 | wxPoint *arg2 = 0 ; | |
24398 | wxPoint result; | |
24399 | wxPoint temp2 ; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | PyObject * obj1 = 0 ; | |
24402 | char *kwnames[] = { | |
24403 | (char *) "self",(char *) "pt", NULL | |
24404 | }; | |
24405 | ||
24406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24409 | { |
24410 | arg2 = &temp2; | |
24411 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24412 | } | |
24413 | { | |
24414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24415 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24416 | ||
24417 | wxPyEndAllowThreads(__tstate); | |
24418 | if (PyErr_Occurred()) SWIG_fail; | |
24419 | } | |
24420 | { | |
24421 | wxPoint * resultptr; | |
24422 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24424 | } |
24425 | return resultobj; | |
24426 | fail: | |
24427 | return NULL; | |
24428 | } | |
24429 | ||
24430 | ||
24431 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24432 | PyObject *resultobj; | |
24433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24434 | wxSize *arg2 = 0 ; | |
24435 | wxSize result; | |
24436 | wxSize temp2 ; | |
24437 | PyObject * obj0 = 0 ; | |
24438 | PyObject * obj1 = 0 ; | |
24439 | char *kwnames[] = { | |
24440 | (char *) "self",(char *) "sz", NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24446 | { |
24447 | arg2 = &temp2; | |
24448 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24449 | } | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24453 | ||
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | { | |
24458 | wxSize * resultptr; | |
24459 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24460 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24461 | } |
24462 | return resultobj; | |
24463 | fail: | |
24464 | return NULL; | |
24465 | } | |
24466 | ||
24467 | ||
24468 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24469 | PyObject *resultobj; | |
24470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24471 | wxPoint *arg2 = 0 ; | |
24472 | wxPoint result; | |
24473 | wxPoint temp2 ; | |
24474 | PyObject * obj0 = 0 ; | |
24475 | PyObject * obj1 = 0 ; | |
24476 | char *kwnames[] = { | |
24477 | (char *) "self",(char *) "pt", NULL | |
24478 | }; | |
24479 | ||
24480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24483 | { |
24484 | arg2 = &temp2; | |
24485 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24486 | } | |
24487 | { | |
24488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24489 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
24490 | ||
24491 | wxPyEndAllowThreads(__tstate); | |
24492 | if (PyErr_Occurred()) SWIG_fail; | |
24493 | } | |
24494 | { | |
24495 | wxPoint * resultptr; | |
24496 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24498 | } |
24499 | return resultobj; | |
24500 | fail: | |
24501 | return NULL; | |
24502 | } | |
24503 | ||
24504 | ||
24505 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24506 | PyObject *resultobj; | |
24507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24508 | wxSize *arg2 = 0 ; | |
24509 | wxSize result; | |
24510 | wxSize temp2 ; | |
24511 | PyObject * obj0 = 0 ; | |
24512 | PyObject * obj1 = 0 ; | |
24513 | char *kwnames[] = { | |
24514 | (char *) "self",(char *) "sz", NULL | |
24515 | }; | |
24516 | ||
24517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24520 | { |
24521 | arg2 = &temp2; | |
24522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24523 | } | |
24524 | { | |
24525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24526 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
24527 | ||
24528 | wxPyEndAllowThreads(__tstate); | |
24529 | if (PyErr_Occurred()) SWIG_fail; | |
24530 | } | |
24531 | { | |
24532 | wxSize * resultptr; | |
24533 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24535 | } |
24536 | return resultobj; | |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
24542 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24543 | PyObject *resultobj; | |
24544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24545 | wxPoint *arg2 = 0 ; | |
24546 | wxPoint result; | |
24547 | wxPoint temp2 ; | |
24548 | PyObject * obj0 = 0 ; | |
24549 | PyObject * obj1 = 0 ; | |
24550 | char *kwnames[] = { | |
24551 | (char *) "self",(char *) "pt", NULL | |
24552 | }; | |
24553 | ||
24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24557 | { |
24558 | arg2 = &temp2; | |
24559 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24560 | } | |
24561 | { | |
24562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24563 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
24564 | ||
24565 | wxPyEndAllowThreads(__tstate); | |
24566 | if (PyErr_Occurred()) SWIG_fail; | |
24567 | } | |
24568 | { | |
24569 | wxPoint * resultptr; | |
24570 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 24571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24572 | } |
24573 | return resultobj; | |
24574 | fail: | |
24575 | return NULL; | |
24576 | } | |
24577 | ||
24578 | ||
24579 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24580 | PyObject *resultobj; | |
24581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24582 | wxSize *arg2 = 0 ; | |
24583 | wxSize result; | |
24584 | wxSize temp2 ; | |
24585 | PyObject * obj0 = 0 ; | |
24586 | PyObject * obj1 = 0 ; | |
24587 | char *kwnames[] = { | |
24588 | (char *) "self",(char *) "sz", NULL | |
24589 | }; | |
24590 | ||
24591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24594 | { |
24595 | arg2 = &temp2; | |
24596 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24600 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
24601 | ||
24602 | wxPyEndAllowThreads(__tstate); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | } | |
24605 | { | |
24606 | wxSize * resultptr; | |
24607 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 24608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24609 | } |
24610 | return resultobj; | |
24611 | fail: | |
24612 | return NULL; | |
24613 | } | |
24614 | ||
24615 | ||
24616 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24617 | PyObject *resultobj; | |
24618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24619 | int arg2 ; | |
24620 | int arg3 ; | |
24621 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
24622 | PyObject * obj1 = 0 ; |
24623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24624 | char *kwnames[] = { |
24625 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24626 | }; | |
24627 | ||
8edf1c75 | 24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24631 | arg2 = (int) SWIG_AsInt(obj1); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | arg3 = (int) SWIG_AsInt(obj2); | |
24634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24635 | { |
24636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24637 | (arg1)->WarpPointer(arg2,arg3); | |
24638 | ||
24639 | wxPyEndAllowThreads(__tstate); | |
24640 | if (PyErr_Occurred()) SWIG_fail; | |
24641 | } | |
24642 | Py_INCREF(Py_None); resultobj = Py_None; | |
24643 | return resultobj; | |
24644 | fail: | |
24645 | return NULL; | |
24646 | } | |
24647 | ||
24648 | ||
24649 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24650 | PyObject *resultobj; | |
24651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24660 | { |
24661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24662 | (arg1)->CaptureMouse(); | |
24663 | ||
24664 | wxPyEndAllowThreads(__tstate); | |
24665 | if (PyErr_Occurred()) SWIG_fail; | |
24666 | } | |
24667 | Py_INCREF(Py_None); resultobj = Py_None; | |
24668 | return resultobj; | |
24669 | fail: | |
24670 | return NULL; | |
24671 | } | |
24672 | ||
24673 | ||
24674 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24675 | PyObject *resultobj; | |
24676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24677 | PyObject * obj0 = 0 ; | |
24678 | char *kwnames[] = { | |
24679 | (char *) "self", NULL | |
24680 | }; | |
24681 | ||
24682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24685 | { |
24686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24687 | (arg1)->ReleaseMouse(); | |
24688 | ||
24689 | wxPyEndAllowThreads(__tstate); | |
24690 | if (PyErr_Occurred()) SWIG_fail; | |
24691 | } | |
24692 | Py_INCREF(Py_None); resultobj = Py_None; | |
24693 | return resultobj; | |
24694 | fail: | |
24695 | return NULL; | |
24696 | } | |
24697 | ||
24698 | ||
24699 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24700 | PyObject *resultobj; | |
24701 | wxWindow *result; | |
24702 | char *kwnames[] = { | |
24703 | NULL | |
24704 | }; | |
24705 | ||
24706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
24707 | { | |
24708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24709 | result = (wxWindow *)wxWindow::GetCapture(); | |
24710 | ||
24711 | wxPyEndAllowThreads(__tstate); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
24714 | { | |
24715 | resultobj = wxPyMake_wxObject(result); | |
24716 | } | |
24717 | return resultobj; | |
24718 | fail: | |
24719 | return NULL; | |
24720 | } | |
24721 | ||
24722 | ||
24723 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24724 | PyObject *resultobj; | |
24725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24726 | bool result; | |
24727 | PyObject * obj0 = 0 ; | |
24728 | char *kwnames[] = { | |
24729 | (char *) "self", NULL | |
24730 | }; | |
24731 | ||
24732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24735 | { |
24736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24737 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
24738 | ||
24739 | wxPyEndAllowThreads(__tstate); | |
24740 | if (PyErr_Occurred()) SWIG_fail; | |
24741 | } | |
4f89f6a3 RD |
24742 | { |
24743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24744 | } | |
d14a1e28 RD |
24745 | return resultobj; |
24746 | fail: | |
24747 | return NULL; | |
24748 | } | |
24749 | ||
24750 | ||
24751 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24752 | PyObject *resultobj; | |
24753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24754 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24755 | wxRect *arg3 = (wxRect *) NULL ; |
24756 | PyObject * obj0 = 0 ; | |
24757 | PyObject * obj1 = 0 ; | |
24758 | PyObject * obj2 = 0 ; | |
24759 | char *kwnames[] = { | |
24760 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
24761 | }; | |
24762 | ||
24763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24766 | if (obj1) { |
2f4c0a16 RD |
24767 | arg2 = (bool) SWIG_AsBool(obj1); |
24768 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24769 | } |
24770 | if (obj2) { | |
2f4c0a16 RD |
24771 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
24772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24773 | } |
24774 | { | |
24775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24776 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
24777 | ||
24778 | wxPyEndAllowThreads(__tstate); | |
24779 | if (PyErr_Occurred()) SWIG_fail; | |
24780 | } | |
24781 | Py_INCREF(Py_None); resultobj = Py_None; | |
24782 | return resultobj; | |
24783 | fail: | |
24784 | return NULL; | |
24785 | } | |
24786 | ||
24787 | ||
24788 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24789 | PyObject *resultobj; | |
24790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24791 | wxRect *arg2 = 0 ; | |
24792 | wxRect temp2 ; | |
24793 | PyObject * obj0 = 0 ; | |
24794 | PyObject * obj1 = 0 ; | |
24795 | char *kwnames[] = { | |
24796 | (char *) "self",(char *) "rect", NULL | |
24797 | }; | |
24798 | ||
24799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24802 | { |
24803 | arg2 = &temp2; | |
24804 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
24805 | } | |
24806 | { | |
24807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24808 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
24809 | ||
24810 | wxPyEndAllowThreads(__tstate); | |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
24812 | } | |
24813 | Py_INCREF(Py_None); resultobj = Py_None; | |
24814 | return resultobj; | |
24815 | fail: | |
24816 | return NULL; | |
24817 | } | |
24818 | ||
24819 | ||
24820 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24821 | PyObject *resultobj; | |
24822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24823 | PyObject * obj0 = 0 ; | |
24824 | char *kwnames[] = { | |
24825 | (char *) "self", NULL | |
24826 | }; | |
24827 | ||
24828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24831 | { |
24832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24833 | (arg1)->Update(); | |
24834 | ||
24835 | wxPyEndAllowThreads(__tstate); | |
24836 | if (PyErr_Occurred()) SWIG_fail; | |
24837 | } | |
24838 | Py_INCREF(Py_None); resultobj = Py_None; | |
24839 | return resultobj; | |
24840 | fail: | |
24841 | return NULL; | |
24842 | } | |
24843 | ||
24844 | ||
24845 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24846 | PyObject *resultobj; | |
24847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24848 | PyObject * obj0 = 0 ; | |
24849 | char *kwnames[] = { | |
24850 | (char *) "self", NULL | |
24851 | }; | |
24852 | ||
24853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24856 | { |
24857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24858 | (arg1)->ClearBackground(); | |
24859 | ||
24860 | wxPyEndAllowThreads(__tstate); | |
24861 | if (PyErr_Occurred()) SWIG_fail; | |
24862 | } | |
24863 | Py_INCREF(Py_None); resultobj = Py_None; | |
24864 | return resultobj; | |
24865 | fail: | |
24866 | return NULL; | |
24867 | } | |
24868 | ||
24869 | ||
24870 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24871 | PyObject *resultobj; | |
24872 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24873 | PyObject * obj0 = 0 ; | |
24874 | char *kwnames[] = { | |
24875 | (char *) "self", NULL | |
24876 | }; | |
24877 | ||
24878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24881 | { |
24882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24883 | (arg1)->Freeze(); | |
24884 | ||
24885 | wxPyEndAllowThreads(__tstate); | |
24886 | if (PyErr_Occurred()) SWIG_fail; | |
24887 | } | |
24888 | Py_INCREF(Py_None); resultobj = Py_None; | |
24889 | return resultobj; | |
24890 | fail: | |
24891 | return NULL; | |
24892 | } | |
24893 | ||
24894 | ||
24895 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj; | |
24897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24898 | PyObject * obj0 = 0 ; | |
24899 | char *kwnames[] = { | |
24900 | (char *) "self", NULL | |
24901 | }; | |
24902 | ||
24903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24906 | { |
24907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24908 | (arg1)->Thaw(); | |
24909 | ||
24910 | wxPyEndAllowThreads(__tstate); | |
24911 | if (PyErr_Occurred()) SWIG_fail; | |
24912 | } | |
24913 | Py_INCREF(Py_None); resultobj = Py_None; | |
24914 | return resultobj; | |
24915 | fail: | |
24916 | return NULL; | |
24917 | } | |
24918 | ||
24919 | ||
24920 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24921 | PyObject *resultobj; | |
24922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24923 | wxDC *arg2 = 0 ; | |
24924 | PyObject * obj0 = 0 ; | |
24925 | PyObject * obj1 = 0 ; | |
24926 | char *kwnames[] = { | |
24927 | (char *) "self",(char *) "dc", NULL | |
24928 | }; | |
24929 | ||
24930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
24934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24935 | SWIG_fail; | |
d14a1e28 | 24936 | if (arg2 == NULL) { |
2f4c0a16 RD |
24937 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24938 | SWIG_fail; | |
d14a1e28 RD |
24939 | } |
24940 | { | |
24941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24942 | (arg1)->PrepareDC(*arg2); | |
24943 | ||
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | Py_INCREF(Py_None); resultobj = Py_None; | |
24948 | return resultobj; | |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24955 | PyObject *resultobj; | |
24956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24957 | wxRegion *result; | |
24958 | PyObject * obj0 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "self", NULL | |
24961 | }; | |
24962 | ||
24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24966 | { |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | { | |
24969 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
24970 | result = (wxRegion *) &_result_ref; | |
24971 | } | |
24972 | ||
24973 | wxPyEndAllowThreads(__tstate); | |
24974 | if (PyErr_Occurred()) SWIG_fail; | |
24975 | } | |
2f4c0a16 | 24976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
24977 | return resultobj; |
24978 | fail: | |
24979 | return NULL; | |
24980 | } | |
24981 | ||
24982 | ||
24983 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24984 | PyObject *resultobj; | |
24985 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24986 | wxRect result; | |
24987 | PyObject * obj0 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "self", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24995 | { |
24996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24997 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
24998 | ||
24999 | wxPyEndAllowThreads(__tstate); | |
25000 | if (PyErr_Occurred()) SWIG_fail; | |
25001 | } | |
25002 | { | |
25003 | wxRect * resultptr; | |
25004 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 25005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25006 | } |
25007 | return resultobj; | |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
25013 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25014 | PyObject *resultobj; | |
25015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25016 | int arg2 ; | |
25017 | int arg3 ; | |
25018 | int arg4 = (int) 1 ; | |
25019 | int arg5 = (int) 1 ; | |
25020 | bool result; | |
25021 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25022 | PyObject * obj1 = 0 ; |
25023 | PyObject * obj2 = 0 ; | |
25024 | PyObject * obj3 = 0 ; | |
25025 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25026 | char *kwnames[] = { |
25027 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25028 | }; | |
25029 | ||
8edf1c75 | 25030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25033 | arg2 = (int) SWIG_AsInt(obj1); | |
25034 | if (PyErr_Occurred()) SWIG_fail; | |
25035 | arg3 = (int) SWIG_AsInt(obj2); | |
25036 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25037 | if (obj3) { |
2f4c0a16 RD |
25038 | arg4 = (int) SWIG_AsInt(obj3); |
25039 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
25040 | } |
25041 | if (obj4) { | |
2f4c0a16 RD |
25042 | arg5 = (int) SWIG_AsInt(obj4); |
25043 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25044 | } |
d14a1e28 RD |
25045 | { |
25046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25047 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25048 | ||
25049 | wxPyEndAllowThreads(__tstate); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
4f89f6a3 RD |
25052 | { |
25053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25054 | } | |
d14a1e28 RD |
25055 | return resultobj; |
25056 | fail: | |
25057 | return NULL; | |
25058 | } | |
25059 | ||
25060 | ||
25061 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25062 | PyObject *resultobj; | |
25063 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25064 | wxPoint *arg2 = 0 ; | |
25065 | bool result; | |
25066 | wxPoint temp2 ; | |
25067 | PyObject * obj0 = 0 ; | |
25068 | PyObject * obj1 = 0 ; | |
25069 | char *kwnames[] = { | |
25070 | (char *) "self",(char *) "pt", NULL | |
25071 | }; | |
25072 | ||
25073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25076 | { |
25077 | arg2 = &temp2; | |
25078 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25079 | } | |
25080 | { | |
25081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25082 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25083 | ||
25084 | wxPyEndAllowThreads(__tstate); | |
25085 | if (PyErr_Occurred()) SWIG_fail; | |
25086 | } | |
4f89f6a3 RD |
25087 | { |
25088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25089 | } | |
d14a1e28 RD |
25090 | return resultobj; |
25091 | fail: | |
25092 | return NULL; | |
25093 | } | |
25094 | ||
25095 | ||
fe763115 | 25096 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25097 | PyObject *resultobj; |
25098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25099 | wxRect *arg2 = 0 ; | |
25100 | bool result; | |
25101 | wxRect temp2 ; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | PyObject * obj1 = 0 ; | |
25104 | char *kwnames[] = { | |
25105 | (char *) "self",(char *) "rect", NULL | |
25106 | }; | |
25107 | ||
fe763115 | 25108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25111 | { |
25112 | arg2 = &temp2; | |
25113 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25114 | } | |
25115 | { | |
25116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25117 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25118 | ||
25119 | wxPyEndAllowThreads(__tstate); | |
25120 | if (PyErr_Occurred()) SWIG_fail; | |
25121 | } | |
4f89f6a3 RD |
25122 | { |
25123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25124 | } | |
d14a1e28 RD |
25125 | return resultobj; |
25126 | fail: | |
25127 | return NULL; | |
25128 | } | |
25129 | ||
25130 | ||
25131 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25132 | PyObject *resultobj; | |
25133 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25134 | wxColour *arg2 = 0 ; | |
25135 | bool result; | |
25136 | wxColour temp2 ; | |
25137 | PyObject * obj0 = 0 ; | |
25138 | PyObject * obj1 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self",(char *) "colour", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25146 | { |
25147 | arg2 = &temp2; | |
25148 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25149 | } | |
25150 | { | |
25151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25152 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25153 | ||
25154 | wxPyEndAllowThreads(__tstate); | |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
25156 | } | |
4f89f6a3 RD |
25157 | { |
25158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25159 | } | |
d14a1e28 RD |
25160 | return resultobj; |
25161 | fail: | |
25162 | return NULL; | |
25163 | } | |
25164 | ||
25165 | ||
25166 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25167 | PyObject *resultobj; | |
25168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25169 | wxColour *arg2 = 0 ; | |
25170 | bool result; | |
25171 | wxColour temp2 ; | |
25172 | PyObject * obj0 = 0 ; | |
25173 | PyObject * obj1 = 0 ; | |
25174 | char *kwnames[] = { | |
25175 | (char *) "self",(char *) "colour", NULL | |
25176 | }; | |
25177 | ||
25178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25181 | { |
25182 | arg2 = &temp2; | |
25183 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25184 | } | |
25185 | { | |
25186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25187 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25188 | ||
25189 | wxPyEndAllowThreads(__tstate); | |
25190 | if (PyErr_Occurred()) SWIG_fail; | |
25191 | } | |
4f89f6a3 RD |
25192 | { |
25193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25194 | } | |
d14a1e28 RD |
25195 | return resultobj; |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25204 | wxColour result; | |
25205 | PyObject * obj0 = 0 ; | |
25206 | char *kwnames[] = { | |
25207 | (char *) "self", NULL | |
25208 | }; | |
25209 | ||
25210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25213 | { |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25216 | ||
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | { | |
25221 | wxColour * resultptr; | |
25222 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 25223 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25224 | } |
25225 | return resultobj; | |
25226 | fail: | |
25227 | return NULL; | |
25228 | } | |
25229 | ||
25230 | ||
25231 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25232 | PyObject *resultobj; | |
25233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25234 | wxColour result; | |
25235 | PyObject * obj0 = 0 ; | |
25236 | char *kwnames[] = { | |
25237 | (char *) "self", NULL | |
25238 | }; | |
25239 | ||
25240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25243 | { |
25244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25245 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
25246 | ||
25247 | wxPyEndAllowThreads(__tstate); | |
25248 | if (PyErr_Occurred()) SWIG_fail; | |
25249 | } | |
25250 | { | |
25251 | wxColour * resultptr; | |
25252 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 25253 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25254 | } |
25255 | return resultobj; | |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
25261 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25262 | PyObject *resultobj; | |
25263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25264 | wxCursor *arg2 = 0 ; | |
25265 | bool result; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | PyObject * obj1 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self",(char *) "cursor", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25277 | SWIG_fail; | |
d14a1e28 | 25278 | if (arg2 == NULL) { |
2f4c0a16 RD |
25279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25280 | SWIG_fail; | |
d14a1e28 RD |
25281 | } |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
4f89f6a3 RD |
25289 | { |
25290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25291 | } | |
d14a1e28 RD |
25292 | return resultobj; |
25293 | fail: | |
25294 | return NULL; | |
25295 | } | |
25296 | ||
25297 | ||
25298 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25299 | PyObject *resultobj; | |
25300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25301 | wxCursor *result; | |
25302 | PyObject * obj0 = 0 ; | |
25303 | char *kwnames[] = { | |
25304 | (char *) "self", NULL | |
25305 | }; | |
25306 | ||
25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25310 | { |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | { | |
25313 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
25314 | result = (wxCursor *) &_result_ref; | |
25315 | } | |
25316 | ||
25317 | wxPyEndAllowThreads(__tstate); | |
25318 | if (PyErr_Occurred()) SWIG_fail; | |
25319 | } | |
fe763115 RD |
25320 | { |
25321 | wxCursor* resultptr = new wxCursor(*result); | |
25322 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
25323 | } | |
d14a1e28 RD |
25324 | return resultobj; |
25325 | fail: | |
25326 | return NULL; | |
25327 | } | |
25328 | ||
25329 | ||
25330 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25331 | PyObject *resultobj; | |
25332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25333 | wxFont *arg2 = 0 ; | |
25334 | bool result; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
25337 | char *kwnames[] = { | |
25338 | (char *) "self",(char *) "font", NULL | |
25339 | }; | |
25340 | ||
25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
25345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25346 | SWIG_fail; | |
d14a1e28 | 25347 | if (arg2 == NULL) { |
2f4c0a16 RD |
25348 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25349 | SWIG_fail; | |
d14a1e28 RD |
25350 | } |
25351 | { | |
25352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25353 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
25354 | ||
25355 | wxPyEndAllowThreads(__tstate); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
4f89f6a3 RD |
25358 | { |
25359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25360 | } | |
d14a1e28 RD |
25361 | return resultobj; |
25362 | fail: | |
25363 | return NULL; | |
25364 | } | |
25365 | ||
25366 | ||
25367 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25368 | PyObject *resultobj; | |
25369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25370 | wxFont *result; | |
25371 | PyObject * obj0 = 0 ; | |
25372 | char *kwnames[] = { | |
25373 | (char *) "self", NULL | |
25374 | }; | |
25375 | ||
25376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25379 | { |
25380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25381 | { | |
25382 | wxFont &_result_ref = (arg1)->GetFont(); | |
25383 | result = (wxFont *) &_result_ref; | |
25384 | } | |
25385 | ||
25386 | wxPyEndAllowThreads(__tstate); | |
25387 | if (PyErr_Occurred()) SWIG_fail; | |
25388 | } | |
fe763115 RD |
25389 | { |
25390 | wxFont* resultptr = new wxFont(*result); | |
25391 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25392 | } | |
d14a1e28 RD |
25393 | return resultobj; |
25394 | fail: | |
25395 | return NULL; | |
25396 | } | |
25397 | ||
25398 | ||
25399 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25400 | PyObject *resultobj; | |
25401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25402 | wxCaret *arg2 = (wxCaret *) 0 ; | |
25403 | PyObject * obj0 = 0 ; | |
25404 | PyObject * obj1 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self",(char *) "caret", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25412 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
25413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25414 | { |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | (arg1)->SetCaret(arg2); | |
25417 | ||
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | Py_INCREF(Py_None); resultobj = Py_None; | |
25422 | return resultobj; | |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
25428 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25429 | PyObject *resultobj; | |
25430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25431 | wxCaret *result; | |
25432 | PyObject * obj0 = 0 ; | |
25433 | char *kwnames[] = { | |
25434 | (char *) "self", NULL | |
25435 | }; | |
25436 | ||
25437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25440 | { |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
2f4c0a16 | 25447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
25448 | return resultobj; |
25449 | fail: | |
25450 | return NULL; | |
25451 | } | |
25452 | ||
25453 | ||
25454 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25455 | PyObject *resultobj; | |
25456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25457 | int result; | |
25458 | PyObject * obj0 = 0 ; | |
25459 | char *kwnames[] = { | |
25460 | (char *) "self", NULL | |
25461 | }; | |
25462 | ||
25463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25466 | { |
25467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25468 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
25469 | ||
25470 | wxPyEndAllowThreads(__tstate); | |
25471 | if (PyErr_Occurred()) SWIG_fail; | |
25472 | } | |
2f4c0a16 | 25473 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25474 | return resultobj; |
25475 | fail: | |
25476 | return NULL; | |
25477 | } | |
25478 | ||
25479 | ||
25480 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25481 | PyObject *resultobj; | |
25482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25483 | int result; | |
25484 | PyObject * obj0 = 0 ; | |
25485 | char *kwnames[] = { | |
25486 | (char *) "self", NULL | |
25487 | }; | |
25488 | ||
25489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25492 | { |
25493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25494 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
25495 | ||
25496 | wxPyEndAllowThreads(__tstate); | |
25497 | if (PyErr_Occurred()) SWIG_fail; | |
25498 | } | |
2f4c0a16 | 25499 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25500 | return resultobj; |
25501 | fail: | |
25502 | return NULL; | |
25503 | } | |
25504 | ||
25505 | ||
25506 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25507 | PyObject *resultobj; | |
25508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25509 | wxString *arg2 = 0 ; | |
25510 | int *arg3 = (int *) 0 ; | |
25511 | int *arg4 = (int *) 0 ; | |
423f194a | 25512 | bool temp2 = False ; |
d14a1e28 RD |
25513 | int temp3 ; |
25514 | int temp4 ; | |
25515 | PyObject * obj0 = 0 ; | |
25516 | PyObject * obj1 = 0 ; | |
25517 | char *kwnames[] = { | |
25518 | (char *) "self",(char *) "string", NULL | |
25519 | }; | |
25520 | ||
25521 | arg3 = &temp3; | |
25522 | arg4 = &temp4; | |
25523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25526 | { |
25527 | arg2 = wxString_in_helper(obj1); | |
25528 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25529 | temp2 = True; |
d14a1e28 RD |
25530 | } |
25531 | { | |
25532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25533 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
25534 | ||
25535 | wxPyEndAllowThreads(__tstate); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
25538 | Py_INCREF(Py_None); resultobj = Py_None; | |
25539 | { | |
25540 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25541 | resultobj = t_output_helper(resultobj,o); | |
25542 | } | |
25543 | { | |
25544 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25545 | resultobj = t_output_helper(resultobj,o); | |
25546 | } | |
25547 | { | |
25548 | if (temp2) | |
25549 | delete arg2; | |
25550 | } | |
25551 | return resultobj; | |
25552 | fail: | |
25553 | { | |
25554 | if (temp2) | |
25555 | delete arg2; | |
25556 | } | |
25557 | return NULL; | |
25558 | } | |
25559 | ||
25560 | ||
25561 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25562 | PyObject *resultobj; | |
25563 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25564 | wxString *arg2 = 0 ; | |
25565 | int *arg3 = (int *) 0 ; | |
25566 | int *arg4 = (int *) 0 ; | |
25567 | int *arg5 = (int *) 0 ; | |
25568 | int *arg6 = (int *) 0 ; | |
25569 | wxFont *arg7 = (wxFont *) NULL ; | |
423f194a | 25570 | bool temp2 = False ; |
d14a1e28 RD |
25571 | int temp3 ; |
25572 | int temp4 ; | |
25573 | int temp5 ; | |
25574 | int temp6 ; | |
25575 | PyObject * obj0 = 0 ; | |
25576 | PyObject * obj1 = 0 ; | |
25577 | PyObject * obj2 = 0 ; | |
25578 | char *kwnames[] = { | |
25579 | (char *) "self",(char *) "string",(char *) "font", NULL | |
25580 | }; | |
25581 | ||
25582 | arg3 = &temp3; | |
25583 | arg4 = &temp4; | |
25584 | arg5 = &temp5; | |
25585 | arg6 = &temp6; | |
25586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25589 | { |
25590 | arg2 = wxString_in_helper(obj1); | |
25591 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25592 | temp2 = True; |
d14a1e28 RD |
25593 | } |
25594 | if (obj2) { | |
2f4c0a16 RD |
25595 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
25596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25597 | } |
25598 | { | |
25599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25600 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
25601 | ||
25602 | wxPyEndAllowThreads(__tstate); | |
25603 | if (PyErr_Occurred()) SWIG_fail; | |
25604 | } | |
25605 | Py_INCREF(Py_None); resultobj = Py_None; | |
25606 | { | |
25607 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25608 | resultobj = t_output_helper(resultobj,o); | |
25609 | } | |
25610 | { | |
25611 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
25612 | resultobj = t_output_helper(resultobj,o); | |
25613 | } | |
25614 | { | |
25615 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
25616 | resultobj = t_output_helper(resultobj,o); | |
25617 | } | |
25618 | { | |
25619 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
25620 | resultobj = t_output_helper(resultobj,o); | |
25621 | } | |
25622 | { | |
25623 | if (temp2) | |
25624 | delete arg2; | |
25625 | } | |
25626 | return resultobj; | |
25627 | fail: | |
25628 | { | |
25629 | if (temp2) | |
25630 | delete arg2; | |
25631 | } | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
25636 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25637 | PyObject *resultobj; | |
25638 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25639 | int *arg2 = (int *) 0 ; | |
25640 | int *arg3 = (int *) 0 ; | |
25641 | int temp2 ; | |
25642 | int temp3 ; | |
25643 | PyObject * obj0 = 0 ; | |
25644 | PyObject * obj1 = 0 ; | |
25645 | PyObject * obj2 = 0 ; | |
25646 | char *kwnames[] = { | |
25647 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25648 | }; | |
25649 | ||
25650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25653 | { |
25654 | temp2 = PyInt_AsLong(obj1); | |
25655 | if (PyErr_Occurred()) SWIG_fail; | |
25656 | arg2 = &temp2; | |
25657 | } | |
25658 | { | |
25659 | temp3 = PyInt_AsLong(obj2); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | arg3 = &temp3; | |
25662 | } | |
25663 | { | |
25664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25665 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
25666 | ||
25667 | wxPyEndAllowThreads(__tstate); | |
25668 | if (PyErr_Occurred()) SWIG_fail; | |
25669 | } | |
25670 | Py_INCREF(Py_None); resultobj = Py_None; | |
25671 | { | |
25672 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25673 | resultobj = t_output_helper(resultobj,o); | |
25674 | } | |
25675 | { | |
25676 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25677 | resultobj = t_output_helper(resultobj,o); | |
25678 | } | |
25679 | return resultobj; | |
25680 | fail: | |
25681 | return NULL; | |
25682 | } | |
25683 | ||
25684 | ||
25685 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25686 | PyObject *resultobj; | |
25687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25688 | int *arg2 = (int *) 0 ; | |
25689 | int *arg3 = (int *) 0 ; | |
25690 | int temp2 ; | |
25691 | int temp3 ; | |
25692 | PyObject * obj0 = 0 ; | |
25693 | PyObject * obj1 = 0 ; | |
25694 | PyObject * obj2 = 0 ; | |
25695 | char *kwnames[] = { | |
25696 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25697 | }; | |
25698 | ||
25699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25702 | { |
25703 | temp2 = PyInt_AsLong(obj1); | |
25704 | if (PyErr_Occurred()) SWIG_fail; | |
25705 | arg2 = &temp2; | |
25706 | } | |
25707 | { | |
25708 | temp3 = PyInt_AsLong(obj2); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | arg3 = &temp3; | |
25711 | } | |
25712 | { | |
25713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25714 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
25715 | ||
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | Py_INCREF(Py_None); resultobj = Py_None; | |
25720 | { | |
25721 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25722 | resultobj = t_output_helper(resultobj,o); | |
25723 | } | |
25724 | { | |
25725 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25726 | resultobj = t_output_helper(resultobj,o); | |
25727 | } | |
25728 | return resultobj; | |
25729 | fail: | |
25730 | return NULL; | |
25731 | } | |
25732 | ||
25733 | ||
25734 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25735 | PyObject *resultobj; | |
25736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25737 | wxPoint *arg2 = 0 ; | |
25738 | wxPoint result; | |
25739 | wxPoint temp2 ; | |
25740 | PyObject * obj0 = 0 ; | |
25741 | PyObject * obj1 = 0 ; | |
25742 | char *kwnames[] = { | |
25743 | (char *) "self",(char *) "pt", NULL | |
25744 | }; | |
25745 | ||
25746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25749 | { |
25750 | arg2 = &temp2; | |
25751 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25752 | } | |
25753 | { | |
25754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25755 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
25756 | ||
25757 | wxPyEndAllowThreads(__tstate); | |
25758 | if (PyErr_Occurred()) SWIG_fail; | |
25759 | } | |
25760 | { | |
25761 | wxPoint * resultptr; | |
25762 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25763 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25764 | } |
25765 | return resultobj; | |
25766 | fail: | |
25767 | return NULL; | |
25768 | } | |
25769 | ||
25770 | ||
25771 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25772 | PyObject *resultobj; | |
25773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25774 | wxPoint *arg2 = 0 ; | |
25775 | wxPoint result; | |
25776 | wxPoint temp2 ; | |
25777 | PyObject * obj0 = 0 ; | |
25778 | PyObject * obj1 = 0 ; | |
25779 | char *kwnames[] = { | |
25780 | (char *) "self",(char *) "pt", NULL | |
25781 | }; | |
25782 | ||
25783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25786 | { |
25787 | arg2 = &temp2; | |
25788 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25789 | } | |
25790 | { | |
25791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25792 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
25793 | ||
25794 | wxPyEndAllowThreads(__tstate); | |
25795 | if (PyErr_Occurred()) SWIG_fail; | |
25796 | } | |
25797 | { | |
25798 | wxPoint * resultptr; | |
25799 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 25800 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25801 | } |
25802 | return resultobj; | |
25803 | fail: | |
25804 | return NULL; | |
25805 | } | |
25806 | ||
25807 | ||
25808 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25809 | PyObject *resultobj; | |
25810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a RD |
25811 | int arg2 ; |
25812 | int arg3 ; | |
d14a1e28 RD |
25813 | int result; |
25814 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
25815 | PyObject * obj1 = 0 ; |
25816 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25817 | char *kwnames[] = { |
25818 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25819 | }; | |
25820 | ||
8edf1c75 | 25821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
25822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25824 | arg2 = (int) SWIG_AsInt(obj1); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | arg3 = (int) SWIG_AsInt(obj2); | |
25827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25828 | { |
25829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25830 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
25831 | ||
25832 | wxPyEndAllowThreads(__tstate); | |
25833 | if (PyErr_Occurred()) SWIG_fail; | |
25834 | } | |
2f4c0a16 | 25835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25836 | return resultobj; |
25837 | fail: | |
25838 | return NULL; | |
25839 | } | |
25840 | ||
25841 | ||
25842 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25843 | PyObject *resultobj; | |
25844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25845 | wxPoint *arg2 = 0 ; | |
25846 | int result; | |
25847 | wxPoint temp2 ; | |
25848 | PyObject * obj0 = 0 ; | |
25849 | PyObject * obj1 = 0 ; | |
25850 | char *kwnames[] = { | |
25851 | (char *) "self",(char *) "pt", NULL | |
25852 | }; | |
25853 | ||
25854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25857 | { |
25858 | arg2 = &temp2; | |
25859 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25860 | } | |
25861 | { | |
25862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25863 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
25864 | ||
25865 | wxPyEndAllowThreads(__tstate); | |
25866 | if (PyErr_Occurred()) SWIG_fail; | |
25867 | } | |
2f4c0a16 | 25868 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25869 | return resultobj; |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
2f4c0a16 | 25875 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25876 | PyObject *resultobj; |
25877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25878 | long arg2 ; | |
25879 | int result; | |
25880 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25881 | PyObject * obj1 = 0 ; |
d14a1e28 | 25882 | |
2f4c0a16 RD |
25883 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
25884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25886 | arg2 = (long) SWIG_AsLong(obj1); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25888 | { |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
2f4c0a16 | 25895 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25896 | return resultobj; |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
2f4c0a16 | 25902 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
25903 | PyObject *resultobj; |
25904 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25905 | int result; | |
25906 | PyObject * obj0 = 0 ; | |
d14a1e28 | 25907 | |
2f4c0a16 RD |
25908 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
25909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25911 | { |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
25914 | ||
25915 | wxPyEndAllowThreads(__tstate); | |
25916 | if (PyErr_Occurred()) SWIG_fail; | |
25917 | } | |
2f4c0a16 | 25918 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25919 | return resultobj; |
25920 | fail: | |
25921 | return NULL; | |
25922 | } | |
25923 | ||
25924 | ||
2f4c0a16 RD |
25925 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
25926 | int argc; | |
25927 | PyObject *argv[3]; | |
25928 | int ii; | |
25929 | ||
25930 | argc = PyObject_Length(args); | |
25931 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
25932 | argv[ii] = PyTuple_GetItem(args,ii); | |
25933 | } | |
25934 | if (argc == 1) { | |
25935 | int _v; | |
25936 | { | |
25937 | void *ptr; | |
25938 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25939 | _v = 0; | |
25940 | PyErr_Clear(); | |
25941 | } else { | |
25942 | _v = 1; | |
25943 | } | |
25944 | } | |
25945 | if (_v) { | |
25946 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
25947 | } | |
25948 | } | |
25949 | if (argc == 2) { | |
25950 | int _v; | |
25951 | { | |
25952 | void *ptr; | |
25953 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
25954 | _v = 0; | |
25955 | PyErr_Clear(); | |
25956 | } else { | |
25957 | _v = 1; | |
25958 | } | |
25959 | } | |
25960 | if (_v) { | |
25961 | _v = SWIG_CheckLong(argv[1]); | |
25962 | if (_v) { | |
25963 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
25964 | } | |
25965 | } | |
25966 | } | |
25967 | ||
25968 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
d14a1e28 RD |
25973 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
25974 | PyObject *resultobj; | |
25975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25976 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
25977 | PyObject * obj0 = 0 ; | |
8edf1c75 | 25978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25979 | char *kwnames[] = { |
25980 | (char *) "self",(char *) "flags", NULL | |
25981 | }; | |
25982 | ||
8edf1c75 | 25983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
25984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 25986 | if (obj1) { |
2f4c0a16 RD |
25987 | arg2 = (long) SWIG_AsLong(obj1); |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25989 | } |
d14a1e28 RD |
25990 | { |
25991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25992 | (arg1)->UpdateWindowUI(arg2); | |
25993 | ||
25994 | wxPyEndAllowThreads(__tstate); | |
25995 | if (PyErr_Occurred()) SWIG_fail; | |
25996 | } | |
25997 | Py_INCREF(Py_None); resultobj = Py_None; | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
26004 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26005 | PyObject *resultobj; | |
26006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26007 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26008 | int arg3 ; | |
26009 | int arg4 ; | |
26010 | bool result; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
26013 | PyObject * obj2 = 0 ; |
26014 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26015 | char *kwnames[] = { |
26016 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26017 | }; | |
26018 | ||
8edf1c75 | 26019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26024 | arg3 = (int) SWIG_AsInt(obj2); | |
26025 | if (PyErr_Occurred()) SWIG_fail; | |
26026 | arg4 = (int) SWIG_AsInt(obj3); | |
26027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26028 | { |
26029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26030 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26031 | ||
26032 | wxPyEndAllowThreads(__tstate); | |
26033 | if (PyErr_Occurred()) SWIG_fail; | |
26034 | } | |
4f89f6a3 RD |
26035 | { |
26036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26037 | } | |
d14a1e28 RD |
26038 | return resultobj; |
26039 | fail: | |
26040 | return NULL; | |
26041 | } | |
26042 | ||
26043 | ||
26044 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26045 | PyObject *resultobj; | |
26046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26047 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26048 | wxPoint *arg3 = 0 ; | |
26049 | bool result; | |
26050 | wxPoint temp3 ; | |
26051 | PyObject * obj0 = 0 ; | |
26052 | PyObject * obj1 = 0 ; | |
26053 | PyObject * obj2 = 0 ; | |
26054 | char *kwnames[] = { | |
26055 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26056 | }; | |
26057 | ||
26058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26063 | { |
26064 | arg3 = &temp3; | |
26065 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26066 | } | |
26067 | { | |
26068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26069 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26070 | ||
26071 | wxPyEndAllowThreads(__tstate); | |
26072 | if (PyErr_Occurred()) SWIG_fail; | |
26073 | } | |
4f89f6a3 RD |
26074 | { |
26075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26076 | } | |
d14a1e28 RD |
26077 | return resultobj; |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
26083 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26084 | PyObject *resultobj; | |
26085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26086 | long result; | |
26087 | PyObject * obj0 = 0 ; | |
26088 | char *kwnames[] = { | |
26089 | (char *) "self", NULL | |
26090 | }; | |
26091 | ||
26092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26095 | { |
26096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26097 | result = (long)wxWindow_GetHandle(arg1); | |
26098 | ||
26099 | wxPyEndAllowThreads(__tstate); | |
26100 | if (PyErr_Occurred()) SWIG_fail; | |
26101 | } | |
2f4c0a16 | 26102 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
26103 | return resultobj; |
26104 | fail: | |
26105 | return NULL; | |
26106 | } | |
26107 | ||
26108 | ||
26109 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26110 | PyObject *resultobj; | |
26111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26112 | wxPaintEvent *arg2 = 0 ; | |
26113 | PyObject * obj0 = 0 ; | |
26114 | PyObject * obj1 = 0 ; | |
26115 | char *kwnames[] = { | |
26116 | (char *) "self",(char *) "event", NULL | |
26117 | }; | |
26118 | ||
26119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26122 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
26123 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26124 | SWIG_fail; | |
d14a1e28 | 26125 | if (arg2 == NULL) { |
2f4c0a16 RD |
26126 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26127 | SWIG_fail; | |
d14a1e28 RD |
26128 | } |
26129 | { | |
26130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26131 | (arg1)->OnPaint(*arg2); | |
26132 | ||
26133 | wxPyEndAllowThreads(__tstate); | |
26134 | if (PyErr_Occurred()) SWIG_fail; | |
26135 | } | |
26136 | Py_INCREF(Py_None); resultobj = Py_None; | |
26137 | return resultobj; | |
26138 | fail: | |
26139 | return NULL; | |
26140 | } | |
26141 | ||
26142 | ||
26143 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26144 | PyObject *resultobj; | |
26145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26146 | int arg2 ; | |
26147 | bool result; | |
26148 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26150 | char *kwnames[] = { |
26151 | (char *) "self",(char *) "orient", NULL | |
26152 | }; | |
26153 | ||
8edf1c75 | 26154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26157 | arg2 = (int) SWIG_AsInt(obj1); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26159 | { |
26160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26161 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26162 | ||
26163 | wxPyEndAllowThreads(__tstate); | |
26164 | if (PyErr_Occurred()) SWIG_fail; | |
26165 | } | |
4f89f6a3 RD |
26166 | { |
26167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26168 | } | |
d14a1e28 RD |
26169 | return resultobj; |
26170 | fail: | |
26171 | return NULL; | |
26172 | } | |
26173 | ||
26174 | ||
26175 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26176 | PyObject *resultobj; | |
26177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26178 | int arg2 ; | |
26179 | int arg3 ; | |
26180 | int arg4 ; | |
26181 | int arg5 ; | |
423f194a | 26182 | bool arg6 = (bool) True ; |
d14a1e28 | 26183 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
26184 | PyObject * obj1 = 0 ; |
26185 | PyObject * obj2 = 0 ; | |
26186 | PyObject * obj3 = 0 ; | |
26187 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26188 | PyObject * obj5 = 0 ; |
26189 | char *kwnames[] = { | |
2f4c0a16 | 26190 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
26191 | }; |
26192 | ||
8edf1c75 | 26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26196 | arg2 = (int) SWIG_AsInt(obj1); | |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
26198 | arg3 = (int) SWIG_AsInt(obj2); | |
26199 | if (PyErr_Occurred()) SWIG_fail; | |
26200 | arg4 = (int) SWIG_AsInt(obj3); | |
26201 | if (PyErr_Occurred()) SWIG_fail; | |
26202 | arg5 = (int) SWIG_AsInt(obj4); | |
26203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26204 | if (obj5) { |
2f4c0a16 RD |
26205 | arg6 = (bool) SWIG_AsBool(obj5); |
26206 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26207 | } |
26208 | { | |
26209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26210 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
26211 | ||
26212 | wxPyEndAllowThreads(__tstate); | |
26213 | if (PyErr_Occurred()) SWIG_fail; | |
26214 | } | |
26215 | Py_INCREF(Py_None); resultobj = Py_None; | |
26216 | return resultobj; | |
26217 | fail: | |
26218 | return NULL; | |
26219 | } | |
26220 | ||
26221 | ||
26222 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26223 | PyObject *resultobj; | |
26224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26225 | int arg2 ; | |
26226 | int arg3 ; | |
423f194a | 26227 | bool arg4 = (bool) True ; |
d14a1e28 | 26228 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
26229 | PyObject * obj1 = 0 ; |
26230 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26231 | PyObject * obj3 = 0 ; |
26232 | char *kwnames[] = { | |
2f4c0a16 | 26233 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
26234 | }; |
26235 | ||
8edf1c75 | 26236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26239 | arg2 = (int) SWIG_AsInt(obj1); | |
26240 | if (PyErr_Occurred()) SWIG_fail; | |
26241 | arg3 = (int) SWIG_AsInt(obj2); | |
26242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26243 | if (obj3) { |
2f4c0a16 RD |
26244 | arg4 = (bool) SWIG_AsBool(obj3); |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26246 | } |
26247 | { | |
26248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26249 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
26250 | ||
26251 | wxPyEndAllowThreads(__tstate); | |
26252 | if (PyErr_Occurred()) SWIG_fail; | |
26253 | } | |
26254 | Py_INCREF(Py_None); resultobj = Py_None; | |
26255 | return resultobj; | |
26256 | fail: | |
26257 | return NULL; | |
26258 | } | |
26259 | ||
26260 | ||
26261 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26262 | PyObject *resultobj; | |
26263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26264 | int arg2 ; | |
26265 | int result; | |
26266 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26267 | PyObject * obj1 = 0 ; |
d14a1e28 | 26268 | char *kwnames[] = { |
2f4c0a16 | 26269 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26270 | }; |
26271 | ||
8edf1c75 | 26272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26275 | arg2 = (int) SWIG_AsInt(obj1); | |
26276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26277 | { |
26278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26279 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
26280 | ||
26281 | wxPyEndAllowThreads(__tstate); | |
26282 | if (PyErr_Occurred()) SWIG_fail; | |
26283 | } | |
2f4c0a16 | 26284 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26285 | return resultobj; |
26286 | fail: | |
26287 | return NULL; | |
26288 | } | |
26289 | ||
26290 | ||
26291 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26292 | PyObject *resultobj; | |
26293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26294 | int arg2 ; | |
26295 | int result; | |
26296 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26297 | PyObject * obj1 = 0 ; |
d14a1e28 | 26298 | char *kwnames[] = { |
2f4c0a16 | 26299 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26300 | }; |
26301 | ||
8edf1c75 | 26302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26305 | arg2 = (int) SWIG_AsInt(obj1); | |
26306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26307 | { |
26308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26309 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
26310 | ||
26311 | wxPyEndAllowThreads(__tstate); | |
26312 | if (PyErr_Occurred()) SWIG_fail; | |
26313 | } | |
2f4c0a16 | 26314 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26315 | return resultobj; |
26316 | fail: | |
26317 | return NULL; | |
26318 | } | |
26319 | ||
26320 | ||
26321 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26322 | PyObject *resultobj; | |
26323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26324 | int arg2 ; | |
26325 | int result; | |
26326 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26327 | PyObject * obj1 = 0 ; |
d14a1e28 | 26328 | char *kwnames[] = { |
2f4c0a16 | 26329 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26330 | }; |
26331 | ||
8edf1c75 | 26332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26335 | arg2 = (int) SWIG_AsInt(obj1); | |
26336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26337 | { |
26338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26339 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
26340 | ||
26341 | wxPyEndAllowThreads(__tstate); | |
26342 | if (PyErr_Occurred()) SWIG_fail; | |
26343 | } | |
2f4c0a16 | 26344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26345 | return resultobj; |
26346 | fail: | |
26347 | return NULL; | |
26348 | } | |
26349 | ||
26350 | ||
26351 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26352 | PyObject *resultobj; | |
26353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26354 | int arg2 ; | |
26355 | int arg3 ; | |
26356 | wxRect *arg4 = (wxRect *) NULL ; | |
26357 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
26358 | PyObject * obj1 = 0 ; |
26359 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26360 | PyObject * obj3 = 0 ; |
26361 | char *kwnames[] = { | |
26362 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
26363 | }; | |
26364 | ||
8edf1c75 | 26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
26366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26368 | arg2 = (int) SWIG_AsInt(obj1); | |
26369 | if (PyErr_Occurred()) SWIG_fail; | |
26370 | arg3 = (int) SWIG_AsInt(obj2); | |
26371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26372 | if (obj3) { |
2f4c0a16 RD |
26373 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
26374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26375 | } |
26376 | { | |
26377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26378 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
26379 | ||
26380 | wxPyEndAllowThreads(__tstate); | |
26381 | if (PyErr_Occurred()) SWIG_fail; | |
26382 | } | |
26383 | Py_INCREF(Py_None); resultobj = Py_None; | |
26384 | return resultobj; | |
26385 | fail: | |
26386 | return NULL; | |
26387 | } | |
26388 | ||
26389 | ||
26390 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26391 | PyObject *resultobj; | |
26392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26393 | int arg2 ; | |
26394 | bool result; | |
26395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26397 | char *kwnames[] = { |
26398 | (char *) "self",(char *) "lines", NULL | |
26399 | }; | |
26400 | ||
8edf1c75 | 26401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26404 | arg2 = (int) SWIG_AsInt(obj1); | |
26405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26406 | { |
26407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26408 | result = (bool)(arg1)->ScrollLines(arg2); | |
26409 | ||
26410 | wxPyEndAllowThreads(__tstate); | |
26411 | if (PyErr_Occurred()) SWIG_fail; | |
26412 | } | |
4f89f6a3 RD |
26413 | { |
26414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26415 | } | |
d14a1e28 RD |
26416 | return resultobj; |
26417 | fail: | |
26418 | return NULL; | |
26419 | } | |
26420 | ||
26421 | ||
26422 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26423 | PyObject *resultobj; | |
26424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26425 | int arg2 ; | |
26426 | bool result; | |
26427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 26428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26429 | char *kwnames[] = { |
26430 | (char *) "self",(char *) "pages", NULL | |
26431 | }; | |
26432 | ||
8edf1c75 | 26433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26436 | arg2 = (int) SWIG_AsInt(obj1); | |
26437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26438 | { |
26439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26440 | result = (bool)(arg1)->ScrollPages(arg2); | |
26441 | ||
26442 | wxPyEndAllowThreads(__tstate); | |
26443 | if (PyErr_Occurred()) SWIG_fail; | |
26444 | } | |
4f89f6a3 RD |
26445 | { |
26446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26447 | } | |
d14a1e28 RD |
26448 | return resultobj; |
26449 | fail: | |
26450 | return NULL; | |
26451 | } | |
26452 | ||
26453 | ||
26454 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26455 | PyObject *resultobj; | |
26456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26457 | bool result; | |
26458 | PyObject * obj0 = 0 ; | |
26459 | char *kwnames[] = { | |
26460 | (char *) "self", NULL | |
26461 | }; | |
26462 | ||
26463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26466 | { |
26467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26468 | result = (bool)(arg1)->LineUp(); | |
26469 | ||
26470 | wxPyEndAllowThreads(__tstate); | |
26471 | if (PyErr_Occurred()) SWIG_fail; | |
26472 | } | |
4f89f6a3 RD |
26473 | { |
26474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26475 | } | |
d14a1e28 RD |
26476 | return resultobj; |
26477 | fail: | |
26478 | return NULL; | |
26479 | } | |
26480 | ||
26481 | ||
26482 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26483 | PyObject *resultobj; | |
26484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26485 | bool result; | |
26486 | PyObject * obj0 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "self", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26494 | { |
26495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26496 | result = (bool)(arg1)->LineDown(); | |
26497 | ||
26498 | wxPyEndAllowThreads(__tstate); | |
26499 | if (PyErr_Occurred()) SWIG_fail; | |
26500 | } | |
4f89f6a3 RD |
26501 | { |
26502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26503 | } | |
d14a1e28 RD |
26504 | return resultobj; |
26505 | fail: | |
26506 | return NULL; | |
26507 | } | |
26508 | ||
26509 | ||
26510 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26511 | PyObject *resultobj; | |
26512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26513 | bool result; | |
26514 | PyObject * obj0 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26522 | { |
26523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26524 | result = (bool)(arg1)->PageUp(); | |
26525 | ||
26526 | wxPyEndAllowThreads(__tstate); | |
26527 | if (PyErr_Occurred()) SWIG_fail; | |
26528 | } | |
4f89f6a3 RD |
26529 | { |
26530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26531 | } | |
d14a1e28 RD |
26532 | return resultobj; |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
26538 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26539 | PyObject *resultobj; | |
26540 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26541 | bool result; | |
26542 | PyObject * obj0 = 0 ; | |
26543 | char *kwnames[] = { | |
26544 | (char *) "self", NULL | |
26545 | }; | |
26546 | ||
26547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26550 | { |
26551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26552 | result = (bool)(arg1)->PageDown(); | |
26553 | ||
26554 | wxPyEndAllowThreads(__tstate); | |
26555 | if (PyErr_Occurred()) SWIG_fail; | |
26556 | } | |
4f89f6a3 RD |
26557 | { |
26558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26559 | } | |
d14a1e28 RD |
26560 | return resultobj; |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
26566 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26567 | PyObject *resultobj; | |
26568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26569 | wxString *arg2 = 0 ; | |
423f194a | 26570 | bool temp2 = False ; |
d14a1e28 RD |
26571 | PyObject * obj0 = 0 ; |
26572 | PyObject * obj1 = 0 ; | |
26573 | char *kwnames[] = { | |
26574 | (char *) "self",(char *) "text", NULL | |
26575 | }; | |
26576 | ||
26577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26580 | { |
26581 | arg2 = wxString_in_helper(obj1); | |
26582 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26583 | temp2 = True; |
d14a1e28 RD |
26584 | } |
26585 | { | |
26586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26587 | (arg1)->SetHelpText((wxString const &)*arg2); | |
26588 | ||
26589 | wxPyEndAllowThreads(__tstate); | |
26590 | if (PyErr_Occurred()) SWIG_fail; | |
26591 | } | |
26592 | Py_INCREF(Py_None); resultobj = Py_None; | |
26593 | { | |
26594 | if (temp2) | |
26595 | delete arg2; | |
26596 | } | |
26597 | return resultobj; | |
26598 | fail: | |
26599 | { | |
26600 | if (temp2) | |
26601 | delete arg2; | |
26602 | } | |
26603 | return NULL; | |
26604 | } | |
26605 | ||
26606 | ||
26607 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26608 | PyObject *resultobj; | |
26609 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26610 | wxString *arg2 = 0 ; | |
423f194a | 26611 | bool temp2 = False ; |
d14a1e28 RD |
26612 | PyObject * obj0 = 0 ; |
26613 | PyObject * obj1 = 0 ; | |
26614 | char *kwnames[] = { | |
26615 | (char *) "self",(char *) "text", NULL | |
26616 | }; | |
26617 | ||
26618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26621 | { |
26622 | arg2 = wxString_in_helper(obj1); | |
26623 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26624 | temp2 = True; |
d14a1e28 RD |
26625 | } |
26626 | { | |
26627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26628 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
26629 | ||
26630 | wxPyEndAllowThreads(__tstate); | |
26631 | if (PyErr_Occurred()) SWIG_fail; | |
26632 | } | |
26633 | Py_INCREF(Py_None); resultobj = Py_None; | |
26634 | { | |
26635 | if (temp2) | |
26636 | delete arg2; | |
26637 | } | |
26638 | return resultobj; | |
26639 | fail: | |
26640 | { | |
26641 | if (temp2) | |
26642 | delete arg2; | |
26643 | } | |
26644 | return NULL; | |
26645 | } | |
26646 | ||
26647 | ||
26648 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26649 | PyObject *resultobj; | |
26650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26651 | wxString result; | |
26652 | PyObject * obj0 = 0 ; | |
26653 | char *kwnames[] = { | |
26654 | (char *) "self", NULL | |
26655 | }; | |
26656 | ||
26657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26660 | { |
26661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26662 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
26663 | ||
26664 | wxPyEndAllowThreads(__tstate); | |
26665 | if (PyErr_Occurred()) SWIG_fail; | |
26666 | } | |
26667 | { | |
26668 | #if wxUSE_UNICODE | |
26669 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
26670 | #else | |
26671 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
26672 | #endif | |
26673 | } | |
26674 | return resultobj; | |
26675 | fail: | |
26676 | return NULL; | |
26677 | } | |
26678 | ||
26679 | ||
26680 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26681 | PyObject *resultobj; | |
26682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26683 | wxString *arg2 = 0 ; | |
423f194a | 26684 | bool temp2 = False ; |
d14a1e28 RD |
26685 | PyObject * obj0 = 0 ; |
26686 | PyObject * obj1 = 0 ; | |
26687 | char *kwnames[] = { | |
26688 | (char *) "self",(char *) "tip", NULL | |
26689 | }; | |
26690 | ||
26691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26694 | { |
26695 | arg2 = wxString_in_helper(obj1); | |
26696 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26697 | temp2 = True; |
d14a1e28 RD |
26698 | } |
26699 | { | |
26700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26701 | (arg1)->SetToolTip((wxString const &)*arg2); | |
26702 | ||
26703 | wxPyEndAllowThreads(__tstate); | |
26704 | if (PyErr_Occurred()) SWIG_fail; | |
26705 | } | |
26706 | Py_INCREF(Py_None); resultobj = Py_None; | |
26707 | { | |
26708 | if (temp2) | |
26709 | delete arg2; | |
26710 | } | |
26711 | return resultobj; | |
26712 | fail: | |
26713 | { | |
26714 | if (temp2) | |
26715 | delete arg2; | |
26716 | } | |
26717 | return NULL; | |
26718 | } | |
26719 | ||
26720 | ||
26721 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26722 | PyObject *resultobj; | |
26723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26724 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
26725 | PyObject * obj0 = 0 ; | |
26726 | PyObject * obj1 = 0 ; | |
26727 | char *kwnames[] = { | |
26728 | (char *) "self",(char *) "tip", NULL | |
26729 | }; | |
26730 | ||
26731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
26735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26736 | { |
26737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26738 | (arg1)->SetToolTip(arg2); | |
26739 | ||
26740 | wxPyEndAllowThreads(__tstate); | |
26741 | if (PyErr_Occurred()) SWIG_fail; | |
26742 | } | |
26743 | Py_INCREF(Py_None); resultobj = Py_None; | |
26744 | return resultobj; | |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
26750 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26751 | PyObject *resultobj; | |
26752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26753 | wxToolTip *result; | |
26754 | PyObject * obj0 = 0 ; | |
26755 | char *kwnames[] = { | |
26756 | (char *) "self", NULL | |
26757 | }; | |
26758 | ||
26759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26762 | { |
26763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26764 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
26765 | ||
26766 | wxPyEndAllowThreads(__tstate); | |
26767 | if (PyErr_Occurred()) SWIG_fail; | |
26768 | } | |
26769 | { | |
26770 | resultobj = wxPyMake_wxObject(result); | |
26771 | } | |
26772 | return resultobj; | |
26773 | fail: | |
26774 | return NULL; | |
26775 | } | |
26776 | ||
26777 | ||
26778 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26779 | PyObject *resultobj; | |
26780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26781 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
26782 | PyObject * obj0 = 0 ; |
26783 | PyObject * obj1 = 0 ; | |
26784 | char *kwnames[] = { | |
26785 | (char *) "self",(char *) "dropTarget", NULL | |
26786 | }; | |
26787 | ||
26788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
26792 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
26793 | { |
26794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26795 | (arg1)->SetDropTarget(arg2); | |
26796 | ||
26797 | wxPyEndAllowThreads(__tstate); | |
26798 | if (PyErr_Occurred()) SWIG_fail; | |
26799 | } | |
26800 | Py_INCREF(Py_None); resultobj = Py_None; | |
26801 | return resultobj; | |
26802 | fail: | |
26803 | return NULL; | |
26804 | } | |
26805 | ||
26806 | ||
26807 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26808 | PyObject *resultobj; | |
26809 | wxWindow *arg1 = (wxWindow *) 0 ; | |
44127b65 | 26810 | wxPyDropTarget *result; |
d14a1e28 RD |
26811 | PyObject * obj0 = 0 ; |
26812 | char *kwnames[] = { | |
26813 | (char *) "self", NULL | |
26814 | }; | |
26815 | ||
26816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26819 | { |
26820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 26821 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
26822 | |
26823 | wxPyEndAllowThreads(__tstate); | |
26824 | if (PyErr_Occurred()) SWIG_fail; | |
26825 | } | |
2f4c0a16 | 26826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
26827 | return resultobj; |
26828 | fail: | |
26829 | return NULL; | |
26830 | } | |
26831 | ||
26832 | ||
26833 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26834 | PyObject *resultobj; | |
26835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26836 | bool arg2 ; | |
26837 | PyObject * obj0 = 0 ; | |
26838 | PyObject * obj1 = 0 ; | |
26839 | char *kwnames[] = { | |
26840 | (char *) "self",(char *) "accept", NULL | |
26841 | }; | |
26842 | ||
26843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26846 | arg2 = (bool) SWIG_AsBool(obj1); | |
26847 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26848 | { |
26849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26850 | (arg1)->DragAcceptFiles(arg2); | |
26851 | ||
26852 | wxPyEndAllowThreads(__tstate); | |
26853 | if (PyErr_Occurred()) SWIG_fail; | |
26854 | } | |
26855 | Py_INCREF(Py_None); resultobj = Py_None; | |
26856 | return resultobj; | |
26857 | fail: | |
26858 | return NULL; | |
26859 | } | |
26860 | ||
26861 | ||
26862 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26863 | PyObject *resultobj; | |
26864 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26865 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
26866 | PyObject * obj0 = 0 ; | |
26867 | PyObject * obj1 = 0 ; | |
26868 | char *kwnames[] = { | |
26869 | (char *) "self",(char *) "constraints", NULL | |
26870 | }; | |
26871 | ||
26872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
26876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26877 | { |
26878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26879 | (arg1)->SetConstraints(arg2); | |
26880 | ||
26881 | wxPyEndAllowThreads(__tstate); | |
26882 | if (PyErr_Occurred()) SWIG_fail; | |
26883 | } | |
26884 | Py_INCREF(Py_None); resultobj = Py_None; | |
26885 | return resultobj; | |
26886 | fail: | |
26887 | return NULL; | |
26888 | } | |
26889 | ||
26890 | ||
26891 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26892 | PyObject *resultobj; | |
26893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26894 | wxLayoutConstraints *result; | |
26895 | PyObject * obj0 = 0 ; | |
26896 | char *kwnames[] = { | |
26897 | (char *) "self", NULL | |
26898 | }; | |
26899 | ||
26900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26903 | { |
26904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26905 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
26906 | ||
26907 | wxPyEndAllowThreads(__tstate); | |
26908 | if (PyErr_Occurred()) SWIG_fail; | |
26909 | } | |
2f4c0a16 | 26910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
26911 | return resultobj; |
26912 | fail: | |
26913 | return NULL; | |
26914 | } | |
26915 | ||
26916 | ||
26917 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26918 | PyObject *resultobj; | |
26919 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26920 | bool arg2 ; | |
26921 | PyObject * obj0 = 0 ; | |
26922 | PyObject * obj1 = 0 ; | |
26923 | char *kwnames[] = { | |
26924 | (char *) "self",(char *) "autoLayout", NULL | |
26925 | }; | |
26926 | ||
26927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26930 | arg2 = (bool) SWIG_AsBool(obj1); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26932 | { |
26933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26934 | (arg1)->SetAutoLayout(arg2); | |
26935 | ||
26936 | wxPyEndAllowThreads(__tstate); | |
26937 | if (PyErr_Occurred()) SWIG_fail; | |
26938 | } | |
26939 | Py_INCREF(Py_None); resultobj = Py_None; | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
26946 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26947 | PyObject *resultobj; | |
26948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26949 | bool result; | |
26950 | PyObject * obj0 = 0 ; | |
26951 | char *kwnames[] = { | |
26952 | (char *) "self", NULL | |
26953 | }; | |
26954 | ||
26955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26958 | { |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
4f89f6a3 RD |
26965 | { |
26966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26967 | } | |
d14a1e28 RD |
26968 | return resultobj; |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
26974 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26975 | PyObject *resultobj; | |
26976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26977 | bool result; | |
26978 | PyObject * obj0 = 0 ; | |
26979 | char *kwnames[] = { | |
26980 | (char *) "self", NULL | |
26981 | }; | |
26982 | ||
26983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26986 | { |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | result = (bool)(arg1)->Layout(); | |
26989 | ||
26990 | wxPyEndAllowThreads(__tstate); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | } | |
4f89f6a3 RD |
26993 | { |
26994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26995 | } | |
d14a1e28 RD |
26996 | return resultobj; |
26997 | fail: | |
26998 | return NULL; | |
26999 | } | |
27000 | ||
27001 | ||
27002 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27003 | PyObject *resultobj; | |
27004 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27005 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 27006 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27007 | PyObject * obj0 = 0 ; |
27008 | PyObject * obj1 = 0 ; | |
27009 | PyObject * obj2 = 0 ; | |
27010 | char *kwnames[] = { | |
27011 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27012 | }; | |
27013 | ||
27014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27019 | if (obj2) { |
2f4c0a16 RD |
27020 | arg3 = (bool) SWIG_AsBool(obj2); |
27021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27022 | } |
27023 | { | |
27024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27025 | (arg1)->SetSizer(arg2,arg3); | |
27026 | ||
27027 | wxPyEndAllowThreads(__tstate); | |
27028 | if (PyErr_Occurred()) SWIG_fail; | |
27029 | } | |
27030 | Py_INCREF(Py_None); resultobj = Py_None; | |
27031 | return resultobj; | |
27032 | fail: | |
27033 | return NULL; | |
27034 | } | |
27035 | ||
27036 | ||
27037 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27038 | PyObject *resultobj; | |
27039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27040 | wxSizer *arg2 = (wxSizer *) 0 ; | |
423f194a | 27041 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27042 | PyObject * obj0 = 0 ; |
27043 | PyObject * obj1 = 0 ; | |
27044 | PyObject * obj2 = 0 ; | |
27045 | char *kwnames[] = { | |
27046 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27047 | }; | |
27048 | ||
27049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27054 | if (obj2) { |
2f4c0a16 RD |
27055 | arg3 = (bool) SWIG_AsBool(obj2); |
27056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27057 | } |
27058 | { | |
27059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27060 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27061 | ||
27062 | wxPyEndAllowThreads(__tstate); | |
27063 | if (PyErr_Occurred()) SWIG_fail; | |
27064 | } | |
27065 | Py_INCREF(Py_None); resultobj = Py_None; | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
27072 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27073 | PyObject *resultobj; | |
27074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27075 | wxSizer *result; | |
27076 | PyObject * obj0 = 0 ; | |
27077 | char *kwnames[] = { | |
27078 | (char *) "self", NULL | |
27079 | }; | |
27080 | ||
27081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27084 | { |
27085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27086 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27087 | ||
27088 | wxPyEndAllowThreads(__tstate); | |
27089 | if (PyErr_Occurred()) SWIG_fail; | |
27090 | } | |
27091 | { | |
27092 | resultobj = wxPyMake_wxSizer(result); | |
27093 | } | |
27094 | return resultobj; | |
27095 | fail: | |
27096 | return NULL; | |
27097 | } | |
27098 | ||
27099 | ||
27100 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27101 | PyObject *resultobj; | |
27102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27103 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27104 | PyObject * obj0 = 0 ; | |
27105 | PyObject * obj1 = 0 ; | |
27106 | char *kwnames[] = { | |
27107 | (char *) "self",(char *) "sizer", NULL | |
27108 | }; | |
27109 | ||
27110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27115 | { |
27116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27117 | (arg1)->SetContainingSizer(arg2); | |
27118 | ||
27119 | wxPyEndAllowThreads(__tstate); | |
27120 | if (PyErr_Occurred()) SWIG_fail; | |
27121 | } | |
27122 | Py_INCREF(Py_None); resultobj = Py_None; | |
27123 | return resultobj; | |
27124 | fail: | |
27125 | return NULL; | |
27126 | } | |
27127 | ||
27128 | ||
27129 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27130 | PyObject *resultobj; | |
27131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27132 | wxSizer *result; | |
27133 | PyObject * obj0 = 0 ; | |
27134 | char *kwnames[] = { | |
27135 | (char *) "self", NULL | |
27136 | }; | |
27137 | ||
27138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27141 | { |
27142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27143 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27144 | ||
27145 | wxPyEndAllowThreads(__tstate); | |
27146 | if (PyErr_Occurred()) SWIG_fail; | |
27147 | } | |
27148 | { | |
27149 | resultobj = wxPyMake_wxSizer(result); | |
27150 | } | |
27151 | return resultobj; | |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
27157 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
27158 | PyObject *obj; | |
27159 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27160 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27161 | Py_INCREF(obj); | |
27162 | return Py_BuildValue((char *)""); | |
27163 | } | |
27164 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27165 | PyObject *resultobj; | |
27166 | long arg1 ; | |
27167 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27168 | wxWindow *result; | |
8edf1c75 | 27169 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27170 | PyObject * obj1 = 0 ; |
27171 | char *kwnames[] = { | |
27172 | (char *) "id",(char *) "parent", NULL | |
27173 | }; | |
27174 | ||
8edf1c75 | 27175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
27176 | arg1 = (long) SWIG_AsLong(obj0); |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27178 | if (obj1) { |
2f4c0a16 RD |
27179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27181 | } |
27182 | { | |
27183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27184 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
27185 | ||
27186 | wxPyEndAllowThreads(__tstate); | |
27187 | if (PyErr_Occurred()) SWIG_fail; | |
27188 | } | |
27189 | { | |
27190 | resultobj = wxPyMake_wxObject(result); | |
27191 | } | |
27192 | return resultobj; | |
27193 | fail: | |
27194 | return NULL; | |
27195 | } | |
27196 | ||
27197 | ||
27198 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27199 | PyObject *resultobj; | |
27200 | wxString *arg1 = 0 ; | |
27201 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27202 | wxWindow *result; | |
423f194a | 27203 | bool temp1 = False ; |
d14a1e28 RD |
27204 | PyObject * obj0 = 0 ; |
27205 | PyObject * obj1 = 0 ; | |
27206 | char *kwnames[] = { | |
27207 | (char *) "name",(char *) "parent", NULL | |
27208 | }; | |
27209 | ||
27210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
27211 | { | |
27212 | arg1 = wxString_in_helper(obj0); | |
27213 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27214 | temp1 = True; |
d14a1e28 RD |
27215 | } |
27216 | if (obj1) { | |
2f4c0a16 RD |
27217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27219 | } |
27220 | { | |
27221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27222 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
27223 | ||
27224 | wxPyEndAllowThreads(__tstate); | |
27225 | if (PyErr_Occurred()) SWIG_fail; | |
27226 | } | |
27227 | { | |
27228 | resultobj = wxPyMake_wxObject(result); | |
27229 | } | |
27230 | { | |
27231 | if (temp1) | |
27232 | delete arg1; | |
27233 | } | |
27234 | return resultobj; | |
27235 | fail: | |
27236 | { | |
27237 | if (temp1) | |
27238 | delete arg1; | |
27239 | } | |
27240 | return NULL; | |
27241 | } | |
27242 | ||
27243 | ||
27244 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27245 | PyObject *resultobj; | |
27246 | wxString *arg1 = 0 ; | |
27247 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27248 | wxWindow *result; | |
423f194a | 27249 | bool temp1 = False ; |
d14a1e28 RD |
27250 | PyObject * obj0 = 0 ; |
27251 | PyObject * obj1 = 0 ; | |
27252 | char *kwnames[] = { | |
27253 | (char *) "label",(char *) "parent", NULL | |
27254 | }; | |
27255 | ||
27256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
27257 | { | |
27258 | arg1 = wxString_in_helper(obj0); | |
27259 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27260 | temp1 = True; |
d14a1e28 RD |
27261 | } |
27262 | if (obj1) { | |
2f4c0a16 RD |
27263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27265 | } |
27266 | { | |
27267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27268 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
27269 | ||
27270 | wxPyEndAllowThreads(__tstate); | |
27271 | if (PyErr_Occurred()) SWIG_fail; | |
27272 | } | |
27273 | { | |
27274 | resultobj = wxPyMake_wxObject(result); | |
27275 | } | |
27276 | { | |
27277 | if (temp1) | |
27278 | delete arg1; | |
27279 | } | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | { | |
27283 | if (temp1) | |
27284 | delete arg1; | |
27285 | } | |
27286 | return NULL; | |
27287 | } | |
27288 | ||
27289 | ||
27290 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27291 | PyObject *resultobj; | |
fe763115 RD |
27292 | wxWindow *arg1 = (wxWindow *) 0 ; |
27293 | unsigned long arg2 ; | |
d14a1e28 RD |
27294 | wxWindow *result; |
27295 | PyObject * obj0 = 0 ; | |
fe763115 | 27296 | PyObject * obj1 = 0 ; |
d14a1e28 | 27297 | char *kwnames[] = { |
fe763115 | 27298 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
27299 | }; |
27300 | ||
fe763115 RD |
27301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
27302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27304 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
2f4c0a16 | 27305 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27306 | { |
27307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fe763115 | 27308 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
27309 | |
27310 | wxPyEndAllowThreads(__tstate); | |
27311 | if (PyErr_Occurred()) SWIG_fail; | |
27312 | } | |
27313 | { | |
27314 | resultobj = wxPyMake_wxObject(result); | |
27315 | } | |
27316 | return resultobj; | |
27317 | fail: | |
27318 | return NULL; | |
27319 | } | |
27320 | ||
27321 | ||
27322 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27323 | PyObject *resultobj; | |
27324 | wxValidator *result; | |
27325 | char *kwnames[] = { | |
27326 | NULL | |
27327 | }; | |
27328 | ||
27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
27330 | { | |
27331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27332 | result = (wxValidator *)new wxValidator(); | |
27333 | ||
27334 | wxPyEndAllowThreads(__tstate); | |
27335 | if (PyErr_Occurred()) SWIG_fail; | |
27336 | } | |
27337 | { | |
27338 | resultobj = wxPyMake_wxObject(result); | |
27339 | } | |
27340 | return resultobj; | |
27341 | fail: | |
27342 | return NULL; | |
27343 | } | |
27344 | ||
27345 | ||
27346 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27347 | PyObject *resultobj; | |
27348 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27349 | wxValidator *result; | |
27350 | PyObject * obj0 = 0 ; | |
27351 | char *kwnames[] = { | |
27352 | (char *) "self", NULL | |
27353 | }; | |
27354 | ||
27355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27358 | { |
27359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27360 | result = (wxValidator *)(arg1)->Clone(); | |
27361 | ||
27362 | wxPyEndAllowThreads(__tstate); | |
27363 | if (PyErr_Occurred()) SWIG_fail; | |
27364 | } | |
27365 | { | |
27366 | resultobj = wxPyMake_wxObject(result); | |
27367 | } | |
27368 | return resultobj; | |
27369 | fail: | |
27370 | return NULL; | |
27371 | } | |
27372 | ||
27373 | ||
27374 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27375 | PyObject *resultobj; | |
27376 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27377 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27378 | bool result; | |
27379 | PyObject * obj0 = 0 ; | |
27380 | PyObject * obj1 = 0 ; | |
27381 | char *kwnames[] = { | |
27382 | (char *) "self",(char *) "parent", NULL | |
27383 | }; | |
27384 | ||
27385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27390 | { |
27391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27392 | result = (bool)(arg1)->Validate(arg2); | |
27393 | ||
27394 | wxPyEndAllowThreads(__tstate); | |
27395 | if (PyErr_Occurred()) SWIG_fail; | |
27396 | } | |
4f89f6a3 RD |
27397 | { |
27398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27399 | } | |
d14a1e28 RD |
27400 | return resultobj; |
27401 | fail: | |
27402 | return NULL; | |
27403 | } | |
27404 | ||
27405 | ||
27406 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27407 | PyObject *resultobj; | |
27408 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27409 | bool result; | |
27410 | PyObject * obj0 = 0 ; | |
27411 | char *kwnames[] = { | |
27412 | (char *) "self", NULL | |
27413 | }; | |
27414 | ||
27415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27418 | { |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27420 | result = (bool)(arg1)->TransferToWindow(); | |
27421 | ||
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
4f89f6a3 RD |
27425 | { |
27426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27427 | } | |
d14a1e28 RD |
27428 | return resultobj; |
27429 | fail: | |
27430 | return NULL; | |
27431 | } | |
27432 | ||
27433 | ||
27434 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27435 | PyObject *resultobj; | |
27436 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27437 | bool result; | |
27438 | PyObject * obj0 = 0 ; | |
27439 | char *kwnames[] = { | |
27440 | (char *) "self", NULL | |
27441 | }; | |
27442 | ||
27443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27446 | { |
27447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27448 | result = (bool)(arg1)->TransferFromWindow(); | |
27449 | ||
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
4f89f6a3 RD |
27453 | { |
27454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27455 | } | |
d14a1e28 RD |
27456 | return resultobj; |
27457 | fail: | |
27458 | return NULL; | |
27459 | } | |
27460 | ||
27461 | ||
27462 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27463 | PyObject *resultobj; | |
27464 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27465 | wxWindow *result; | |
27466 | PyObject * obj0 = 0 ; | |
27467 | char *kwnames[] = { | |
27468 | (char *) "self", NULL | |
27469 | }; | |
27470 | ||
27471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27474 | { |
27475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27476 | result = (wxWindow *)(arg1)->GetWindow(); | |
27477 | ||
27478 | wxPyEndAllowThreads(__tstate); | |
27479 | if (PyErr_Occurred()) SWIG_fail; | |
27480 | } | |
27481 | { | |
27482 | resultobj = wxPyMake_wxObject(result); | |
27483 | } | |
27484 | return resultobj; | |
27485 | fail: | |
27486 | return NULL; | |
27487 | } | |
27488 | ||
27489 | ||
27490 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27491 | PyObject *resultobj; | |
27492 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27494 | PyObject * obj0 = 0 ; | |
27495 | PyObject * obj1 = 0 ; | |
27496 | char *kwnames[] = { | |
27497 | (char *) "self",(char *) "window", NULL | |
27498 | }; | |
27499 | ||
27500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
27502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27505 | { |
27506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27507 | (arg1)->SetWindow(arg2); | |
27508 | ||
27509 | wxPyEndAllowThreads(__tstate); | |
27510 | if (PyErr_Occurred()) SWIG_fail; | |
27511 | } | |
27512 | Py_INCREF(Py_None); resultobj = Py_None; | |
27513 | return resultobj; | |
27514 | fail: | |
27515 | return NULL; | |
27516 | } | |
27517 | ||
27518 | ||
27519 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27520 | PyObject *resultobj; | |
27521 | bool result; | |
27522 | char *kwnames[] = { | |
27523 | NULL | |
27524 | }; | |
27525 | ||
27526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
27527 | { | |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | result = (bool)wxValidator::IsSilent(); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
4f89f6a3 RD |
27534 | { |
27535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27536 | } | |
d14a1e28 RD |
27537 | return resultobj; |
27538 | fail: | |
27539 | return NULL; | |
27540 | } | |
27541 | ||
27542 | ||
27543 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27544 | PyObject *resultobj; | |
423f194a | 27545 | int arg1 = (int) True ; |
8edf1c75 | 27546 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27547 | char *kwnames[] = { |
27548 | (char *) "doIt", NULL | |
27549 | }; | |
27550 | ||
8edf1c75 RD |
27551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
27552 | if (obj0) { | |
2f4c0a16 RD |
27553 | arg1 = (int) SWIG_AsInt(obj0); |
27554 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27555 | } |
d14a1e28 RD |
27556 | { |
27557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27558 | wxValidator::SetBellOnError(arg1); | |
27559 | ||
27560 | wxPyEndAllowThreads(__tstate); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
27563 | Py_INCREF(Py_None); resultobj = Py_None; | |
27564 | return resultobj; | |
27565 | fail: | |
27566 | return NULL; | |
27567 | } | |
27568 | ||
27569 | ||
27570 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
27571 | PyObject *obj; | |
27572 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27573 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
27574 | Py_INCREF(obj); | |
27575 | return Py_BuildValue((char *)""); | |
27576 | } | |
27577 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27578 | PyObject *resultobj; | |
27579 | wxPyValidator *result; | |
27580 | char *kwnames[] = { | |
27581 | NULL | |
27582 | }; | |
27583 | ||
27584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
27585 | { | |
27586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27587 | result = (wxPyValidator *)new wxPyValidator(); | |
27588 | ||
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
2f4c0a16 | 27592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
27593 | return resultobj; |
27594 | fail: | |
27595 | return NULL; | |
27596 | } | |
27597 | ||
27598 | ||
27599 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27600 | PyObject *resultobj; | |
27601 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
27602 | PyObject *arg2 = (PyObject *) 0 ; | |
27603 | PyObject *arg3 = (PyObject *) 0 ; | |
423f194a | 27604 | int arg4 = (int) True ; |
d14a1e28 RD |
27605 | PyObject * obj0 = 0 ; |
27606 | PyObject * obj1 = 0 ; | |
27607 | PyObject * obj2 = 0 ; | |
8edf1c75 | 27608 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27609 | char *kwnames[] = { |
27610 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
27611 | }; | |
27612 | ||
8edf1c75 | 27613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
27615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27616 | arg2 = obj1; |
27617 | arg3 = obj2; | |
8edf1c75 | 27618 | if (obj3) { |
2f4c0a16 RD |
27619 | arg4 = (int) SWIG_AsInt(obj3); |
27620 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27621 | } |
d14a1e28 RD |
27622 | { |
27623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27624 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
27625 | ||
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | Py_INCREF(Py_None); resultobj = Py_None; | |
27630 | return resultobj; | |
27631 | fail: | |
27632 | return NULL; | |
27633 | } | |
27634 | ||
27635 | ||
27636 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
27637 | PyObject *obj; | |
27638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27639 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
27640 | Py_INCREF(obj); | |
27641 | return Py_BuildValue((char *)""); | |
27642 | } | |
2f4c0a16 | 27643 | static int _wrap_DefaultValidator_set(PyObject *_val) { |
d14a1e28 RD |
27644 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
27645 | return 1; | |
27646 | } | |
27647 | ||
27648 | ||
27649 | static PyObject *_wrap_DefaultValidator_get() { | |
27650 | PyObject *pyobj; | |
27651 | ||
2f4c0a16 | 27652 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
27653 | return pyobj; |
27654 | } | |
27655 | ||
27656 | ||
27657 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27658 | PyObject *resultobj; | |
27659 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
27660 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
27661 | long arg2 = (long) 0 ; | |
27662 | wxMenu *result; | |
423f194a | 27663 | bool temp1 = False ; |
d14a1e28 | 27664 | PyObject * obj0 = 0 ; |
8edf1c75 | 27665 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27666 | char *kwnames[] = { |
27667 | (char *) "title",(char *) "style", NULL | |
27668 | }; | |
27669 | ||
8edf1c75 | 27670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
27671 | if (obj0) { |
27672 | { | |
27673 | arg1 = wxString_in_helper(obj0); | |
27674 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 27675 | temp1 = True; |
d14a1e28 RD |
27676 | } |
27677 | } | |
8edf1c75 | 27678 | if (obj1) { |
2f4c0a16 RD |
27679 | arg2 = (long) SWIG_AsLong(obj1); |
27680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27681 | } |
d14a1e28 RD |
27682 | { |
27683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27684 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
27685 | ||
27686 | wxPyEndAllowThreads(__tstate); | |
27687 | if (PyErr_Occurred()) SWIG_fail; | |
27688 | } | |
27689 | { | |
27690 | resultobj = wxPyMake_wxObject(result); | |
27691 | } | |
27692 | { | |
27693 | if (temp1) | |
27694 | delete arg1; | |
27695 | } | |
27696 | return resultobj; | |
27697 | fail: | |
27698 | { | |
27699 | if (temp1) | |
27700 | delete arg1; | |
27701 | } | |
27702 | return NULL; | |
27703 | } | |
27704 | ||
27705 | ||
27706 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27707 | PyObject *resultobj; | |
27708 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27709 | int arg2 ; | |
27710 | wxString *arg3 = 0 ; | |
27711 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27712 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27713 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 27714 | wxMenuItem *result; |
423f194a RD |
27715 | bool temp3 = False ; |
27716 | bool temp4 = False ; | |
d14a1e28 | 27717 | PyObject * obj0 = 0 ; |
8edf1c75 | 27718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27719 | PyObject * obj2 = 0 ; |
27720 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27721 | PyObject * obj4 = 0 ; |
d14a1e28 | 27722 | char *kwnames[] = { |
f0983263 | 27723 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
27724 | }; |
27725 | ||
8edf1c75 | 27726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27729 | arg2 = (int) SWIG_AsInt(obj1); | |
27730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27731 | { |
27732 | arg3 = wxString_in_helper(obj2); | |
27733 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27734 | temp3 = True; |
d14a1e28 RD |
27735 | } |
27736 | if (obj3) { | |
27737 | { | |
27738 | arg4 = wxString_in_helper(obj3); | |
27739 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27740 | temp4 = True; |
d14a1e28 RD |
27741 | } |
27742 | } | |
8edf1c75 | 27743 | if (obj4) { |
2f4c0a16 RD |
27744 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
27745 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27746 | } |
d14a1e28 RD |
27747 | { |
27748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27749 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
27750 | |
27751 | wxPyEndAllowThreads(__tstate); | |
27752 | if (PyErr_Occurred()) SWIG_fail; | |
27753 | } | |
83448d71 RD |
27754 | { |
27755 | resultobj = wxPyMake_wxObject(result); | |
27756 | } | |
d14a1e28 RD |
27757 | { |
27758 | if (temp3) | |
27759 | delete arg3; | |
27760 | } | |
27761 | { | |
27762 | if (temp4) | |
27763 | delete arg4; | |
27764 | } | |
27765 | return resultobj; | |
27766 | fail: | |
27767 | { | |
27768 | if (temp3) | |
27769 | delete arg3; | |
27770 | } | |
27771 | { | |
27772 | if (temp4) | |
27773 | delete arg4; | |
27774 | } | |
27775 | return NULL; | |
27776 | } | |
27777 | ||
27778 | ||
27779 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27780 | PyObject *resultobj; | |
27781 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 27782 | wxMenuItem *result; |
d14a1e28 RD |
27783 | PyObject * obj0 = 0 ; |
27784 | char *kwnames[] = { | |
27785 | (char *) "self", NULL | |
27786 | }; | |
27787 | ||
27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27791 | { |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27793 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
27794 | |
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
83448d71 RD |
27798 | { |
27799 | resultobj = wxPyMake_wxObject(result); | |
27800 | } | |
d14a1e28 RD |
27801 | return resultobj; |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
27807 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27808 | PyObject *resultobj; | |
27809 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27810 | int arg2 ; | |
27811 | wxString *arg3 = 0 ; | |
27812 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27813 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27814 | wxMenuItem *result; |
423f194a RD |
27815 | bool temp3 = False ; |
27816 | bool temp4 = False ; | |
d14a1e28 | 27817 | PyObject * obj0 = 0 ; |
8edf1c75 | 27818 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27819 | PyObject * obj2 = 0 ; |
27820 | PyObject * obj3 = 0 ; | |
27821 | char *kwnames[] = { | |
f0983263 | 27822 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27823 | }; |
27824 | ||
8edf1c75 | 27825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27828 | arg2 = (int) SWIG_AsInt(obj1); | |
27829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27830 | { |
27831 | arg3 = wxString_in_helper(obj2); | |
27832 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27833 | temp3 = True; |
d14a1e28 RD |
27834 | } |
27835 | if (obj3) { | |
27836 | { | |
27837 | arg4 = wxString_in_helper(obj3); | |
27838 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27839 | temp4 = True; |
d14a1e28 RD |
27840 | } |
27841 | } | |
27842 | { | |
27843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27844 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27845 | |
27846 | wxPyEndAllowThreads(__tstate); | |
27847 | if (PyErr_Occurred()) SWIG_fail; | |
27848 | } | |
83448d71 RD |
27849 | { |
27850 | resultobj = wxPyMake_wxObject(result); | |
27851 | } | |
d14a1e28 RD |
27852 | { |
27853 | if (temp3) | |
27854 | delete arg3; | |
27855 | } | |
27856 | { | |
27857 | if (temp4) | |
27858 | delete arg4; | |
27859 | } | |
27860 | return resultobj; | |
27861 | fail: | |
27862 | { | |
27863 | if (temp3) | |
27864 | delete arg3; | |
27865 | } | |
27866 | { | |
27867 | if (temp4) | |
27868 | delete arg4; | |
27869 | } | |
27870 | return NULL; | |
27871 | } | |
27872 | ||
27873 | ||
27874 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27875 | PyObject *resultobj; | |
27876 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27877 | int arg2 ; | |
27878 | wxString *arg3 = 0 ; | |
27879 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
27880 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 27881 | wxMenuItem *result; |
423f194a RD |
27882 | bool temp3 = False ; |
27883 | bool temp4 = False ; | |
d14a1e28 | 27884 | PyObject * obj0 = 0 ; |
8edf1c75 | 27885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27886 | PyObject * obj2 = 0 ; |
27887 | PyObject * obj3 = 0 ; | |
27888 | char *kwnames[] = { | |
f0983263 | 27889 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
27890 | }; |
27891 | ||
8edf1c75 | 27892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
27893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27895 | arg2 = (int) SWIG_AsInt(obj1); | |
27896 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27897 | { |
27898 | arg3 = wxString_in_helper(obj2); | |
27899 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27900 | temp3 = True; |
d14a1e28 RD |
27901 | } |
27902 | if (obj3) { | |
27903 | { | |
27904 | arg4 = wxString_in_helper(obj3); | |
27905 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27906 | temp4 = True; |
d14a1e28 RD |
27907 | } |
27908 | } | |
27909 | { | |
27910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27911 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
27912 | |
27913 | wxPyEndAllowThreads(__tstate); | |
27914 | if (PyErr_Occurred()) SWIG_fail; | |
27915 | } | |
83448d71 RD |
27916 | { |
27917 | resultobj = wxPyMake_wxObject(result); | |
27918 | } | |
d14a1e28 RD |
27919 | { |
27920 | if (temp3) | |
27921 | delete arg3; | |
27922 | } | |
27923 | { | |
27924 | if (temp4) | |
27925 | delete arg4; | |
27926 | } | |
27927 | return resultobj; | |
27928 | fail: | |
27929 | { | |
27930 | if (temp3) | |
27931 | delete arg3; | |
27932 | } | |
27933 | { | |
27934 | if (temp4) | |
27935 | delete arg4; | |
27936 | } | |
27937 | return NULL; | |
27938 | } | |
27939 | ||
27940 | ||
27941 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27942 | PyObject *resultobj; | |
27943 | wxMenu *arg1 = (wxMenu *) 0 ; | |
27944 | int arg2 ; | |
27945 | wxString *arg3 = 0 ; | |
27946 | wxMenu *arg4 = (wxMenu *) 0 ; | |
27947 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
27948 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 27949 | wxMenuItem *result; |
423f194a RD |
27950 | bool temp3 = False ; |
27951 | bool temp5 = False ; | |
d14a1e28 | 27952 | PyObject * obj0 = 0 ; |
8edf1c75 | 27953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27954 | PyObject * obj2 = 0 ; |
27955 | PyObject * obj3 = 0 ; | |
27956 | PyObject * obj4 = 0 ; | |
27957 | char *kwnames[] = { | |
f0983263 | 27958 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
27959 | }; |
27960 | ||
8edf1c75 | 27961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
27963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27964 | arg2 = (int) SWIG_AsInt(obj1); | |
27965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27966 | { |
27967 | arg3 = wxString_in_helper(obj2); | |
27968 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27969 | temp3 = True; |
d14a1e28 | 27970 | } |
2f4c0a16 RD |
27971 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
27972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27973 | if (obj4) { |
27974 | { | |
27975 | arg5 = wxString_in_helper(obj4); | |
27976 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 27977 | temp5 = True; |
d14a1e28 RD |
27978 | } |
27979 | } | |
27980 | { | |
27981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 27982 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
27983 | |
27984 | wxPyEndAllowThreads(__tstate); | |
27985 | if (PyErr_Occurred()) SWIG_fail; | |
27986 | } | |
83448d71 RD |
27987 | { |
27988 | resultobj = wxPyMake_wxObject(result); | |
27989 | } | |
d14a1e28 RD |
27990 | { |
27991 | if (temp3) | |
27992 | delete arg3; | |
27993 | } | |
27994 | { | |
27995 | if (temp5) | |
27996 | delete arg5; | |
27997 | } | |
27998 | return resultobj; | |
27999 | fail: | |
28000 | { | |
28001 | if (temp3) | |
28002 | delete arg3; | |
28003 | } | |
28004 | { | |
28005 | if (temp5) | |
28006 | delete arg5; | |
28007 | } | |
28008 | return NULL; | |
28009 | } | |
28010 | ||
28011 | ||
28012 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28013 | PyObject *resultobj; | |
28014 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28015 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 28016 | wxMenuItem *result; |
d14a1e28 RD |
28017 | PyObject * obj0 = 0 ; |
28018 | PyObject * obj1 = 0 ; | |
28019 | char *kwnames[] = { | |
28020 | (char *) "self",(char *) "item", NULL | |
28021 | }; | |
28022 | ||
28023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28028 | { |
28029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28030 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
28031 | |
28032 | wxPyEndAllowThreads(__tstate); | |
28033 | if (PyErr_Occurred()) SWIG_fail; | |
28034 | } | |
83448d71 RD |
28035 | { |
28036 | resultobj = wxPyMake_wxObject(result); | |
28037 | } | |
d14a1e28 RD |
28038 | return resultobj; |
28039 | fail: | |
28040 | return NULL; | |
28041 | } | |
28042 | ||
28043 | ||
28044 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28045 | PyObject *resultobj; | |
28046 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28047 | PyObject * obj0 = 0 ; | |
28048 | char *kwnames[] = { | |
28049 | (char *) "self", NULL | |
28050 | }; | |
28051 | ||
28052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28055 | { |
28056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28057 | (arg1)->Break(); | |
28058 | ||
28059 | wxPyEndAllowThreads(__tstate); | |
28060 | if (PyErr_Occurred()) SWIG_fail; | |
28061 | } | |
28062 | Py_INCREF(Py_None); resultobj = Py_None; | |
28063 | return resultobj; | |
28064 | fail: | |
28065 | return NULL; | |
28066 | } | |
28067 | ||
28068 | ||
28069 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28070 | PyObject *resultobj; | |
28071 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28072 | size_t arg2 ; | |
28073 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
83448d71 | 28074 | wxMenuItem *result; |
d14a1e28 RD |
28075 | PyObject * obj0 = 0 ; |
28076 | PyObject * obj1 = 0 ; | |
28077 | PyObject * obj2 = 0 ; | |
28078 | char *kwnames[] = { | |
28079 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28080 | }; | |
28081 | ||
28082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28085 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28086 | if (PyErr_Occurred()) SWIG_fail; | |
28087 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28089 | { |
28090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28091 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
28092 | |
28093 | wxPyEndAllowThreads(__tstate); | |
28094 | if (PyErr_Occurred()) SWIG_fail; | |
28095 | } | |
83448d71 RD |
28096 | { |
28097 | resultobj = wxPyMake_wxObject(result); | |
28098 | } | |
d14a1e28 RD |
28099 | return resultobj; |
28100 | fail: | |
28101 | return NULL; | |
28102 | } | |
28103 | ||
28104 | ||
28105 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28106 | PyObject *resultobj; | |
28107 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28108 | size_t arg2 ; | |
28109 | int arg3 ; | |
28110 | wxString *arg4 = 0 ; | |
28111 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28112 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28113 | int arg6 = (int) wxITEM_NORMAL ; | |
83448d71 | 28114 | wxMenuItem *result; |
423f194a RD |
28115 | bool temp4 = False ; |
28116 | bool temp5 = False ; | |
d14a1e28 RD |
28117 | PyObject * obj0 = 0 ; |
28118 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28119 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28120 | PyObject * obj3 = 0 ; |
28121 | PyObject * obj4 = 0 ; | |
8edf1c75 | 28122 | PyObject * obj5 = 0 ; |
d14a1e28 | 28123 | char *kwnames[] = { |
f0983263 | 28124 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28125 | }; |
28126 | ||
8edf1c75 | 28127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28130 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28131 | if (PyErr_Occurred()) SWIG_fail; | |
28132 | arg3 = (int) SWIG_AsInt(obj2); | |
28133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28134 | { |
28135 | arg4 = wxString_in_helper(obj3); | |
28136 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28137 | temp4 = True; |
d14a1e28 RD |
28138 | } |
28139 | if (obj4) { | |
28140 | { | |
28141 | arg5 = wxString_in_helper(obj4); | |
28142 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28143 | temp5 = True; |
d14a1e28 RD |
28144 | } |
28145 | } | |
8edf1c75 | 28146 | if (obj5) { |
2f4c0a16 RD |
28147 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
28148 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28149 | } |
d14a1e28 RD |
28150 | { |
28151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28152 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
28153 | |
28154 | wxPyEndAllowThreads(__tstate); | |
28155 | if (PyErr_Occurred()) SWIG_fail; | |
28156 | } | |
83448d71 RD |
28157 | { |
28158 | resultobj = wxPyMake_wxObject(result); | |
28159 | } | |
d14a1e28 RD |
28160 | { |
28161 | if (temp4) | |
28162 | delete arg4; | |
28163 | } | |
28164 | { | |
28165 | if (temp5) | |
28166 | delete arg5; | |
28167 | } | |
28168 | return resultobj; | |
28169 | fail: | |
28170 | { | |
28171 | if (temp4) | |
28172 | delete arg4; | |
28173 | } | |
28174 | { | |
28175 | if (temp5) | |
28176 | delete arg5; | |
28177 | } | |
28178 | return NULL; | |
28179 | } | |
28180 | ||
28181 | ||
28182 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28183 | PyObject *resultobj; | |
28184 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28185 | size_t arg2 ; | |
83448d71 | 28186 | wxMenuItem *result; |
d14a1e28 RD |
28187 | PyObject * obj0 = 0 ; |
28188 | PyObject * obj1 = 0 ; | |
28189 | char *kwnames[] = { | |
28190 | (char *) "self",(char *) "pos", NULL | |
28191 | }; | |
28192 | ||
28193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28196 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28198 | { |
28199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28200 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
28201 | |
28202 | wxPyEndAllowThreads(__tstate); | |
28203 | if (PyErr_Occurred()) SWIG_fail; | |
28204 | } | |
83448d71 RD |
28205 | { |
28206 | resultobj = wxPyMake_wxObject(result); | |
28207 | } | |
d14a1e28 RD |
28208 | return resultobj; |
28209 | fail: | |
28210 | return NULL; | |
28211 | } | |
28212 | ||
28213 | ||
28214 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28215 | PyObject *resultobj; | |
28216 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28217 | size_t arg2 ; | |
28218 | int arg3 ; | |
28219 | wxString *arg4 = 0 ; | |
28220 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28221 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28222 | wxMenuItem *result; |
423f194a RD |
28223 | bool temp4 = False ; |
28224 | bool temp5 = False ; | |
d14a1e28 RD |
28225 | PyObject * obj0 = 0 ; |
28226 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28227 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28228 | PyObject * obj3 = 0 ; |
28229 | PyObject * obj4 = 0 ; | |
28230 | char *kwnames[] = { | |
f0983263 | 28231 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28232 | }; |
28233 | ||
8edf1c75 | 28234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28237 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28238 | if (PyErr_Occurred()) SWIG_fail; | |
28239 | arg3 = (int) SWIG_AsInt(obj2); | |
28240 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28241 | { |
28242 | arg4 = wxString_in_helper(obj3); | |
28243 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28244 | temp4 = True; |
d14a1e28 RD |
28245 | } |
28246 | if (obj4) { | |
28247 | { | |
28248 | arg5 = wxString_in_helper(obj4); | |
28249 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28250 | temp5 = True; |
d14a1e28 RD |
28251 | } |
28252 | } | |
28253 | { | |
28254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28255 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28256 | |
28257 | wxPyEndAllowThreads(__tstate); | |
28258 | if (PyErr_Occurred()) SWIG_fail; | |
28259 | } | |
83448d71 RD |
28260 | { |
28261 | resultobj = wxPyMake_wxObject(result); | |
28262 | } | |
d14a1e28 RD |
28263 | { |
28264 | if (temp4) | |
28265 | delete arg4; | |
28266 | } | |
28267 | { | |
28268 | if (temp5) | |
28269 | delete arg5; | |
28270 | } | |
28271 | return resultobj; | |
28272 | fail: | |
28273 | { | |
28274 | if (temp4) | |
28275 | delete arg4; | |
28276 | } | |
28277 | { | |
28278 | if (temp5) | |
28279 | delete arg5; | |
28280 | } | |
28281 | return NULL; | |
28282 | } | |
28283 | ||
28284 | ||
28285 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28286 | PyObject *resultobj; | |
28287 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28288 | size_t arg2 ; | |
28289 | int arg3 ; | |
28290 | wxString *arg4 = 0 ; | |
28291 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28292 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28293 | wxMenuItem *result; |
423f194a RD |
28294 | bool temp4 = False ; |
28295 | bool temp5 = False ; | |
d14a1e28 RD |
28296 | PyObject * obj0 = 0 ; |
28297 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28298 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28299 | PyObject * obj3 = 0 ; |
28300 | PyObject * obj4 = 0 ; | |
28301 | char *kwnames[] = { | |
f0983263 | 28302 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28303 | }; |
28304 | ||
8edf1c75 | 28305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28308 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28309 | if (PyErr_Occurred()) SWIG_fail; | |
28310 | arg3 = (int) SWIG_AsInt(obj2); | |
28311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28312 | { |
28313 | arg4 = wxString_in_helper(obj3); | |
28314 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28315 | temp4 = True; |
d14a1e28 RD |
28316 | } |
28317 | if (obj4) { | |
28318 | { | |
28319 | arg5 = wxString_in_helper(obj4); | |
28320 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28321 | temp5 = True; |
d14a1e28 RD |
28322 | } |
28323 | } | |
28324 | { | |
28325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28326 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28327 | |
28328 | wxPyEndAllowThreads(__tstate); | |
28329 | if (PyErr_Occurred()) SWIG_fail; | |
28330 | } | |
83448d71 RD |
28331 | { |
28332 | resultobj = wxPyMake_wxObject(result); | |
28333 | } | |
d14a1e28 RD |
28334 | { |
28335 | if (temp4) | |
28336 | delete arg4; | |
28337 | } | |
28338 | { | |
28339 | if (temp5) | |
28340 | delete arg5; | |
28341 | } | |
28342 | return resultobj; | |
28343 | fail: | |
28344 | { | |
28345 | if (temp4) | |
28346 | delete arg4; | |
28347 | } | |
28348 | { | |
28349 | if (temp5) | |
28350 | delete arg5; | |
28351 | } | |
28352 | return NULL; | |
28353 | } | |
28354 | ||
28355 | ||
28356 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28357 | PyObject *resultobj; | |
28358 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28359 | size_t arg2 ; | |
28360 | int arg3 ; | |
28361 | wxString *arg4 = 0 ; | |
28362 | wxMenu *arg5 = (wxMenu *) 0 ; | |
28363 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
28364 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
83448d71 | 28365 | wxMenuItem *result; |
423f194a RD |
28366 | bool temp4 = False ; |
28367 | bool temp6 = False ; | |
d14a1e28 RD |
28368 | PyObject * obj0 = 0 ; |
28369 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28370 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28371 | PyObject * obj3 = 0 ; |
28372 | PyObject * obj4 = 0 ; | |
28373 | PyObject * obj5 = 0 ; | |
28374 | char *kwnames[] = { | |
f0983263 | 28375 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28376 | }; |
28377 | ||
8edf1c75 | 28378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28381 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28382 | if (PyErr_Occurred()) SWIG_fail; | |
28383 | arg3 = (int) SWIG_AsInt(obj2); | |
28384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28385 | { |
28386 | arg4 = wxString_in_helper(obj3); | |
28387 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28388 | temp4 = True; |
d14a1e28 | 28389 | } |
2f4c0a16 RD |
28390 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
28391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28392 | if (obj5) { |
28393 | { | |
28394 | arg6 = wxString_in_helper(obj5); | |
28395 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 28396 | temp6 = True; |
d14a1e28 RD |
28397 | } |
28398 | } | |
28399 | { | |
28400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28401 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
28402 | |
28403 | wxPyEndAllowThreads(__tstate); | |
28404 | if (PyErr_Occurred()) SWIG_fail; | |
28405 | } | |
83448d71 RD |
28406 | { |
28407 | resultobj = wxPyMake_wxObject(result); | |
28408 | } | |
d14a1e28 RD |
28409 | { |
28410 | if (temp4) | |
28411 | delete arg4; | |
28412 | } | |
28413 | { | |
28414 | if (temp6) | |
28415 | delete arg6; | |
28416 | } | |
28417 | return resultobj; | |
28418 | fail: | |
28419 | { | |
28420 | if (temp4) | |
28421 | delete arg4; | |
28422 | } | |
28423 | { | |
28424 | if (temp6) | |
28425 | delete arg6; | |
28426 | } | |
28427 | return NULL; | |
28428 | } | |
28429 | ||
28430 | ||
28431 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28432 | PyObject *resultobj; | |
28433 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28434 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
83448d71 | 28435 | wxMenuItem *result; |
d14a1e28 RD |
28436 | PyObject * obj0 = 0 ; |
28437 | PyObject * obj1 = 0 ; | |
28438 | char *kwnames[] = { | |
28439 | (char *) "self",(char *) "item", NULL | |
28440 | }; | |
28441 | ||
28442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28447 | { |
28448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28449 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
28450 | |
28451 | wxPyEndAllowThreads(__tstate); | |
28452 | if (PyErr_Occurred()) SWIG_fail; | |
28453 | } | |
83448d71 RD |
28454 | { |
28455 | resultobj = wxPyMake_wxObject(result); | |
28456 | } | |
d14a1e28 RD |
28457 | return resultobj; |
28458 | fail: | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
28463 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28464 | PyObject *resultobj; | |
28465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28466 | int arg2 ; | |
28467 | wxString *arg3 = 0 ; | |
28468 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28469 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28470 | int arg5 = (int) wxITEM_NORMAL ; | |
83448d71 | 28471 | wxMenuItem *result; |
423f194a RD |
28472 | bool temp3 = False ; |
28473 | bool temp4 = False ; | |
d14a1e28 | 28474 | PyObject * obj0 = 0 ; |
8edf1c75 | 28475 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28476 | PyObject * obj2 = 0 ; |
28477 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28478 | PyObject * obj4 = 0 ; |
d14a1e28 | 28479 | char *kwnames[] = { |
f0983263 | 28480 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28481 | }; |
28482 | ||
8edf1c75 | 28483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28486 | arg2 = (int) SWIG_AsInt(obj1); | |
28487 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28488 | { |
28489 | arg3 = wxString_in_helper(obj2); | |
28490 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28491 | temp3 = True; |
d14a1e28 RD |
28492 | } |
28493 | if (obj3) { | |
28494 | { | |
28495 | arg4 = wxString_in_helper(obj3); | |
28496 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28497 | temp4 = True; |
d14a1e28 RD |
28498 | } |
28499 | } | |
8edf1c75 | 28500 | if (obj4) { |
2f4c0a16 RD |
28501 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28502 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28503 | } |
d14a1e28 RD |
28504 | { |
28505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28506 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28507 | |
28508 | wxPyEndAllowThreads(__tstate); | |
28509 | if (PyErr_Occurred()) SWIG_fail; | |
28510 | } | |
83448d71 RD |
28511 | { |
28512 | resultobj = wxPyMake_wxObject(result); | |
28513 | } | |
d14a1e28 RD |
28514 | { |
28515 | if (temp3) | |
28516 | delete arg3; | |
28517 | } | |
28518 | { | |
28519 | if (temp4) | |
28520 | delete arg4; | |
28521 | } | |
28522 | return resultobj; | |
28523 | fail: | |
28524 | { | |
28525 | if (temp3) | |
28526 | delete arg3; | |
28527 | } | |
28528 | { | |
28529 | if (temp4) | |
28530 | delete arg4; | |
28531 | } | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
28536 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28537 | PyObject *resultobj; | |
28538 | wxMenu *arg1 = (wxMenu *) 0 ; | |
83448d71 | 28539 | wxMenuItem *result; |
d14a1e28 RD |
28540 | PyObject * obj0 = 0 ; |
28541 | char *kwnames[] = { | |
28542 | (char *) "self", NULL | |
28543 | }; | |
28544 | ||
28545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28548 | { |
28549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28550 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
28551 | |
28552 | wxPyEndAllowThreads(__tstate); | |
28553 | if (PyErr_Occurred()) SWIG_fail; | |
28554 | } | |
83448d71 RD |
28555 | { |
28556 | resultobj = wxPyMake_wxObject(result); | |
28557 | } | |
d14a1e28 RD |
28558 | return resultobj; |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28565 | PyObject *resultobj; | |
28566 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28567 | int arg2 ; | |
28568 | wxString *arg3 = 0 ; | |
28569 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28570 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28571 | wxMenuItem *result; |
423f194a RD |
28572 | bool temp3 = False ; |
28573 | bool temp4 = False ; | |
d14a1e28 | 28574 | PyObject * obj0 = 0 ; |
8edf1c75 | 28575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28576 | PyObject * obj2 = 0 ; |
28577 | PyObject * obj3 = 0 ; | |
28578 | char *kwnames[] = { | |
f0983263 | 28579 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28580 | }; |
28581 | ||
8edf1c75 | 28582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28585 | arg2 = (int) SWIG_AsInt(obj1); | |
28586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28587 | { |
28588 | arg3 = wxString_in_helper(obj2); | |
28589 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28590 | temp3 = True; |
d14a1e28 RD |
28591 | } |
28592 | if (obj3) { | |
28593 | { | |
28594 | arg4 = wxString_in_helper(obj3); | |
28595 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28596 | temp4 = True; |
d14a1e28 RD |
28597 | } |
28598 | } | |
28599 | { | |
28600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28601 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28602 | |
28603 | wxPyEndAllowThreads(__tstate); | |
28604 | if (PyErr_Occurred()) SWIG_fail; | |
28605 | } | |
83448d71 RD |
28606 | { |
28607 | resultobj = wxPyMake_wxObject(result); | |
28608 | } | |
d14a1e28 RD |
28609 | { |
28610 | if (temp3) | |
28611 | delete arg3; | |
28612 | } | |
28613 | { | |
28614 | if (temp4) | |
28615 | delete arg4; | |
28616 | } | |
28617 | return resultobj; | |
28618 | fail: | |
28619 | { | |
28620 | if (temp3) | |
28621 | delete arg3; | |
28622 | } | |
28623 | { | |
28624 | if (temp4) | |
28625 | delete arg4; | |
28626 | } | |
28627 | return NULL; | |
28628 | } | |
28629 | ||
28630 | ||
28631 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28632 | PyObject *resultobj; | |
28633 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28634 | int arg2 ; | |
28635 | wxString *arg3 = 0 ; | |
28636 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28637 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
83448d71 | 28638 | wxMenuItem *result; |
423f194a RD |
28639 | bool temp3 = False ; |
28640 | bool temp4 = False ; | |
d14a1e28 | 28641 | PyObject * obj0 = 0 ; |
8edf1c75 | 28642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28643 | PyObject * obj2 = 0 ; |
28644 | PyObject * obj3 = 0 ; | |
28645 | char *kwnames[] = { | |
f0983263 | 28646 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28647 | }; |
28648 | ||
8edf1c75 | 28649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
28650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28652 | arg2 = (int) SWIG_AsInt(obj1); | |
28653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28654 | { |
28655 | arg3 = wxString_in_helper(obj2); | |
28656 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28657 | temp3 = True; |
d14a1e28 RD |
28658 | } |
28659 | if (obj3) { | |
28660 | { | |
28661 | arg4 = wxString_in_helper(obj3); | |
28662 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 28663 | temp4 = True; |
d14a1e28 RD |
28664 | } |
28665 | } | |
28666 | { | |
28667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28668 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28669 | |
28670 | wxPyEndAllowThreads(__tstate); | |
28671 | if (PyErr_Occurred()) SWIG_fail; | |
28672 | } | |
83448d71 RD |
28673 | { |
28674 | resultobj = wxPyMake_wxObject(result); | |
28675 | } | |
d14a1e28 RD |
28676 | { |
28677 | if (temp3) | |
28678 | delete arg3; | |
28679 | } | |
28680 | { | |
28681 | if (temp4) | |
28682 | delete arg4; | |
28683 | } | |
28684 | return resultobj; | |
28685 | fail: | |
28686 | { | |
28687 | if (temp3) | |
28688 | delete arg3; | |
28689 | } | |
28690 | { | |
28691 | if (temp4) | |
28692 | delete arg4; | |
28693 | } | |
28694 | return NULL; | |
28695 | } | |
28696 | ||
28697 | ||
28698 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28699 | PyObject *resultobj; | |
28700 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28701 | int arg2 ; | |
28702 | wxString *arg3 = 0 ; | |
28703 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28704 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28705 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
83448d71 | 28706 | wxMenuItem *result; |
423f194a RD |
28707 | bool temp3 = False ; |
28708 | bool temp5 = False ; | |
d14a1e28 | 28709 | PyObject * obj0 = 0 ; |
8edf1c75 | 28710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28711 | PyObject * obj2 = 0 ; |
28712 | PyObject * obj3 = 0 ; | |
28713 | PyObject * obj4 = 0 ; | |
28714 | char *kwnames[] = { | |
f0983263 | 28715 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28716 | }; |
28717 | ||
8edf1c75 | 28718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28721 | arg2 = (int) SWIG_AsInt(obj1); | |
28722 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28723 | { |
28724 | arg3 = wxString_in_helper(obj2); | |
28725 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 28726 | temp3 = True; |
d14a1e28 | 28727 | } |
2f4c0a16 RD |
28728 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28730 | if (obj4) { |
28731 | { | |
28732 | arg5 = wxString_in_helper(obj4); | |
28733 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 28734 | temp5 = True; |
d14a1e28 RD |
28735 | } |
28736 | } | |
28737 | { | |
28738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
83448d71 | 28739 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28740 | |
28741 | wxPyEndAllowThreads(__tstate); | |
28742 | if (PyErr_Occurred()) SWIG_fail; | |
28743 | } | |
83448d71 RD |
28744 | { |
28745 | resultobj = wxPyMake_wxObject(result); | |
28746 | } | |
d14a1e28 RD |
28747 | { |
28748 | if (temp3) | |
28749 | delete arg3; | |
28750 | } | |
28751 | { | |
28752 | if (temp5) | |
28753 | delete arg5; | |
28754 | } | |
28755 | return resultobj; | |
28756 | fail: | |
28757 | { | |
28758 | if (temp3) | |
28759 | delete arg3; | |
28760 | } | |
28761 | { | |
28762 | if (temp5) | |
28763 | delete arg5; | |
28764 | } | |
28765 | return NULL; | |
28766 | } | |
28767 | ||
28768 | ||
28769 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28770 | PyObject *resultobj; | |
28771 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28772 | int arg2 ; | |
28773 | wxMenuItem *result; | |
28774 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28775 | PyObject * obj1 = 0 ; |
d14a1e28 | 28776 | char *kwnames[] = { |
f0983263 | 28777 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28778 | }; |
28779 | ||
8edf1c75 | 28780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28783 | arg2 = (int) SWIG_AsInt(obj1); | |
28784 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28785 | { |
28786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28787 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28788 | ||
28789 | wxPyEndAllowThreads(__tstate); | |
28790 | if (PyErr_Occurred()) SWIG_fail; | |
28791 | } | |
28792 | { | |
28793 | resultobj = wxPyMake_wxObject(result); | |
28794 | } | |
28795 | return resultobj; | |
28796 | fail: | |
28797 | return NULL; | |
28798 | } | |
28799 | ||
28800 | ||
28801 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28802 | PyObject *resultobj; | |
28803 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28804 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28805 | wxMenuItem *result; | |
28806 | PyObject * obj0 = 0 ; | |
28807 | PyObject * obj1 = 0 ; | |
28808 | char *kwnames[] = { | |
28809 | (char *) "self",(char *) "item", NULL | |
28810 | }; | |
28811 | ||
28812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28817 | { |
28818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28819 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
28820 | ||
28821 | wxPyEndAllowThreads(__tstate); | |
28822 | if (PyErr_Occurred()) SWIG_fail; | |
28823 | } | |
28824 | { | |
28825 | resultobj = wxPyMake_wxObject(result); | |
28826 | } | |
28827 | return resultobj; | |
28828 | fail: | |
28829 | return NULL; | |
28830 | } | |
28831 | ||
28832 | ||
28833 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28834 | PyObject *resultobj; | |
28835 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28836 | int arg2 ; | |
28837 | bool result; | |
28838 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28839 | PyObject * obj1 = 0 ; |
d14a1e28 | 28840 | char *kwnames[] = { |
f0983263 | 28841 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28842 | }; |
28843 | ||
8edf1c75 | 28844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28847 | arg2 = (int) SWIG_AsInt(obj1); | |
28848 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28849 | { |
28850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28851 | result = (bool)(arg1)->Delete(arg2); | |
28852 | ||
28853 | wxPyEndAllowThreads(__tstate); | |
28854 | if (PyErr_Occurred()) SWIG_fail; | |
28855 | } | |
4f89f6a3 RD |
28856 | { |
28857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28858 | } | |
d14a1e28 RD |
28859 | return resultobj; |
28860 | fail: | |
28861 | return NULL; | |
28862 | } | |
28863 | ||
28864 | ||
28865 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28866 | PyObject *resultobj; | |
28867 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28868 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28869 | bool result; | |
28870 | PyObject * obj0 = 0 ; | |
28871 | PyObject * obj1 = 0 ; | |
28872 | char *kwnames[] = { | |
28873 | (char *) "self",(char *) "item", NULL | |
28874 | }; | |
28875 | ||
28876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28881 | { |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | result = (bool)(arg1)->Delete(arg2); | |
28884 | ||
28885 | wxPyEndAllowThreads(__tstate); | |
28886 | if (PyErr_Occurred()) SWIG_fail; | |
28887 | } | |
4f89f6a3 RD |
28888 | { |
28889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28890 | } | |
d14a1e28 RD |
28891 | return resultobj; |
28892 | fail: | |
28893 | return NULL; | |
28894 | } | |
28895 | ||
28896 | ||
28897 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28898 | PyObject *resultobj; | |
28899 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28900 | PyObject * obj0 = 0 ; | |
28901 | char *kwnames[] = { | |
28902 | (char *) "self", NULL | |
28903 | }; | |
28904 | ||
28905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28908 | { |
28909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28910 | wxMenu_Destroy(arg1); | |
28911 | ||
28912 | wxPyEndAllowThreads(__tstate); | |
28913 | if (PyErr_Occurred()) SWIG_fail; | |
28914 | } | |
28915 | Py_INCREF(Py_None); resultobj = Py_None; | |
28916 | return resultobj; | |
28917 | fail: | |
28918 | return NULL; | |
28919 | } | |
28920 | ||
28921 | ||
28922 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28923 | PyObject *resultobj; | |
28924 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28925 | int arg2 ; | |
28926 | bool result; | |
28927 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28928 | PyObject * obj1 = 0 ; |
d14a1e28 | 28929 | char *kwnames[] = { |
f0983263 | 28930 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
28931 | }; |
28932 | ||
8edf1c75 | 28933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
28934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28936 | arg2 = (int) SWIG_AsInt(obj1); | |
28937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28938 | { |
28939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28940 | result = (bool)(arg1)->Destroy(arg2); | |
28941 | ||
28942 | wxPyEndAllowThreads(__tstate); | |
28943 | if (PyErr_Occurred()) SWIG_fail; | |
28944 | } | |
4f89f6a3 RD |
28945 | { |
28946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28947 | } | |
d14a1e28 RD |
28948 | return resultobj; |
28949 | fail: | |
28950 | return NULL; | |
28951 | } | |
28952 | ||
28953 | ||
28954 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28955 | PyObject *resultobj; | |
28956 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28957 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28958 | bool result; | |
28959 | PyObject * obj0 = 0 ; | |
28960 | PyObject * obj1 = 0 ; | |
28961 | char *kwnames[] = { | |
28962 | (char *) "self",(char *) "item", NULL | |
28963 | }; | |
28964 | ||
28965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28968 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28970 | { |
28971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28972 | result = (bool)(arg1)->Destroy(arg2); | |
28973 | ||
28974 | wxPyEndAllowThreads(__tstate); | |
28975 | if (PyErr_Occurred()) SWIG_fail; | |
28976 | } | |
4f89f6a3 RD |
28977 | { |
28978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28979 | } | |
d14a1e28 RD |
28980 | return resultobj; |
28981 | fail: | |
28982 | return NULL; | |
28983 | } | |
28984 | ||
28985 | ||
28986 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28987 | PyObject *resultobj; | |
28988 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28989 | size_t result; | |
28990 | PyObject * obj0 = 0 ; | |
28991 | char *kwnames[] = { | |
28992 | (char *) "self", NULL | |
28993 | }; | |
28994 | ||
28995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28998 | { |
28999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29000 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29001 | ||
29002 | wxPyEndAllowThreads(__tstate); | |
29003 | if (PyErr_Occurred()) SWIG_fail; | |
29004 | } | |
2f4c0a16 | 29005 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29006 | return resultobj; |
29007 | fail: | |
29008 | return NULL; | |
29009 | } | |
29010 | ||
29011 | ||
29012 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29013 | PyObject *resultobj; | |
29014 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29015 | PyObject *result; | |
29016 | PyObject * obj0 = 0 ; | |
29017 | char *kwnames[] = { | |
29018 | (char *) "self", NULL | |
29019 | }; | |
29020 | ||
29021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29024 | { |
29025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29026 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29027 | ||
29028 | wxPyEndAllowThreads(__tstate); | |
29029 | if (PyErr_Occurred()) SWIG_fail; | |
29030 | } | |
29031 | resultobj = result; | |
29032 | return resultobj; | |
29033 | fail: | |
29034 | return NULL; | |
29035 | } | |
29036 | ||
29037 | ||
29038 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29039 | PyObject *resultobj; | |
29040 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29041 | wxString *arg2 = 0 ; | |
29042 | int result; | |
423f194a | 29043 | bool temp2 = False ; |
d14a1e28 RD |
29044 | PyObject * obj0 = 0 ; |
29045 | PyObject * obj1 = 0 ; | |
29046 | char *kwnames[] = { | |
29047 | (char *) "self",(char *) "item", NULL | |
29048 | }; | |
29049 | ||
29050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29053 | { |
29054 | arg2 = wxString_in_helper(obj1); | |
29055 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29056 | temp2 = True; |
d14a1e28 RD |
29057 | } |
29058 | { | |
29059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29060 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29061 | ||
29062 | wxPyEndAllowThreads(__tstate); | |
29063 | if (PyErr_Occurred()) SWIG_fail; | |
29064 | } | |
2f4c0a16 | 29065 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29066 | { |
29067 | if (temp2) | |
29068 | delete arg2; | |
29069 | } | |
29070 | return resultobj; | |
29071 | fail: | |
29072 | { | |
29073 | if (temp2) | |
29074 | delete arg2; | |
29075 | } | |
29076 | return NULL; | |
29077 | } | |
29078 | ||
29079 | ||
29080 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29081 | PyObject *resultobj; | |
29082 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29083 | int arg2 ; | |
29084 | wxMenuItem *result; | |
29085 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29086 | PyObject * obj1 = 0 ; |
d14a1e28 | 29087 | char *kwnames[] = { |
f0983263 | 29088 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29089 | }; |
29090 | ||
8edf1c75 | 29091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29094 | arg2 = (int) SWIG_AsInt(obj1); | |
29095 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29096 | { |
29097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29098 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29099 | ||
29100 | wxPyEndAllowThreads(__tstate); | |
29101 | if (PyErr_Occurred()) SWIG_fail; | |
29102 | } | |
29103 | { | |
29104 | resultobj = wxPyMake_wxObject(result); | |
29105 | } | |
29106 | return resultobj; | |
29107 | fail: | |
29108 | return NULL; | |
29109 | } | |
29110 | ||
29111 | ||
29112 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29113 | PyObject *resultobj; | |
29114 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29115 | size_t arg2 ; | |
29116 | wxMenuItem *result; | |
29117 | PyObject * obj0 = 0 ; | |
29118 | PyObject * obj1 = 0 ; | |
29119 | char *kwnames[] = { | |
29120 | (char *) "self",(char *) "position", NULL | |
29121 | }; | |
29122 | ||
29123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29126 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29128 | { |
29129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29130 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29131 | ||
29132 | wxPyEndAllowThreads(__tstate); | |
29133 | if (PyErr_Occurred()) SWIG_fail; | |
29134 | } | |
29135 | { | |
29136 | resultobj = wxPyMake_wxObject(result); | |
29137 | } | |
29138 | return resultobj; | |
29139 | fail: | |
29140 | return NULL; | |
29141 | } | |
29142 | ||
29143 | ||
29144 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29145 | PyObject *resultobj; | |
29146 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29147 | int arg2 ; | |
29148 | bool arg3 ; | |
29149 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29150 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29151 | PyObject * obj2 = 0 ; |
29152 | char *kwnames[] = { | |
f0983263 | 29153 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29154 | }; |
29155 | ||
8edf1c75 | 29156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29159 | arg2 = (int) SWIG_AsInt(obj1); | |
29160 | if (PyErr_Occurred()) SWIG_fail; | |
29161 | arg3 = (bool) SWIG_AsBool(obj2); | |
29162 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29163 | { |
29164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29165 | (arg1)->Enable(arg2,arg3); | |
29166 | ||
29167 | wxPyEndAllowThreads(__tstate); | |
29168 | if (PyErr_Occurred()) SWIG_fail; | |
29169 | } | |
29170 | Py_INCREF(Py_None); resultobj = Py_None; | |
29171 | return resultobj; | |
29172 | fail: | |
29173 | return NULL; | |
29174 | } | |
29175 | ||
29176 | ||
29177 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29178 | PyObject *resultobj; | |
29179 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29180 | int arg2 ; | |
29181 | bool result; | |
29182 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29183 | PyObject * obj1 = 0 ; |
d14a1e28 | 29184 | char *kwnames[] = { |
f0983263 | 29185 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29186 | }; |
29187 | ||
8edf1c75 | 29188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29191 | arg2 = (int) SWIG_AsInt(obj1); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29193 | { |
29194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29195 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
29196 | ||
29197 | wxPyEndAllowThreads(__tstate); | |
29198 | if (PyErr_Occurred()) SWIG_fail; | |
29199 | } | |
4f89f6a3 RD |
29200 | { |
29201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29202 | } | |
d14a1e28 RD |
29203 | return resultobj; |
29204 | fail: | |
29205 | return NULL; | |
29206 | } | |
29207 | ||
29208 | ||
29209 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29210 | PyObject *resultobj; | |
29211 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29212 | int arg2 ; | |
29213 | bool arg3 ; | |
29214 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29216 | PyObject * obj2 = 0 ; |
29217 | char *kwnames[] = { | |
f0983263 | 29218 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29219 | }; |
29220 | ||
8edf1c75 | 29221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29224 | arg2 = (int) SWIG_AsInt(obj1); | |
29225 | if (PyErr_Occurred()) SWIG_fail; | |
29226 | arg3 = (bool) SWIG_AsBool(obj2); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29228 | { |
29229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29230 | (arg1)->Check(arg2,arg3); | |
29231 | ||
29232 | wxPyEndAllowThreads(__tstate); | |
29233 | if (PyErr_Occurred()) SWIG_fail; | |
29234 | } | |
29235 | Py_INCREF(Py_None); resultobj = Py_None; | |
29236 | return resultobj; | |
29237 | fail: | |
29238 | return NULL; | |
29239 | } | |
29240 | ||
29241 | ||
29242 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29243 | PyObject *resultobj; | |
29244 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29245 | int arg2 ; | |
29246 | bool result; | |
29247 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29248 | PyObject * obj1 = 0 ; |
d14a1e28 | 29249 | char *kwnames[] = { |
f0983263 | 29250 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29251 | }; |
29252 | ||
8edf1c75 | 29253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29256 | arg2 = (int) SWIG_AsInt(obj1); | |
29257 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29258 | { |
29259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29260 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
29261 | ||
29262 | wxPyEndAllowThreads(__tstate); | |
29263 | if (PyErr_Occurred()) SWIG_fail; | |
29264 | } | |
4f89f6a3 RD |
29265 | { |
29266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29267 | } | |
d14a1e28 RD |
29268 | return resultobj; |
29269 | fail: | |
29270 | return NULL; | |
29271 | } | |
29272 | ||
29273 | ||
29274 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29275 | PyObject *resultobj; | |
29276 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29277 | int arg2 ; | |
29278 | wxString *arg3 = 0 ; | |
423f194a | 29279 | bool temp3 = False ; |
d14a1e28 | 29280 | PyObject * obj0 = 0 ; |
8edf1c75 | 29281 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29282 | PyObject * obj2 = 0 ; |
29283 | char *kwnames[] = { | |
f0983263 | 29284 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29285 | }; |
29286 | ||
8edf1c75 | 29287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29290 | arg2 = (int) SWIG_AsInt(obj1); | |
29291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29292 | { |
29293 | arg3 = wxString_in_helper(obj2); | |
29294 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29295 | temp3 = True; |
d14a1e28 RD |
29296 | } |
29297 | { | |
29298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29299 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29300 | ||
29301 | wxPyEndAllowThreads(__tstate); | |
29302 | if (PyErr_Occurred()) SWIG_fail; | |
29303 | } | |
29304 | Py_INCREF(Py_None); resultobj = Py_None; | |
29305 | { | |
29306 | if (temp3) | |
29307 | delete arg3; | |
29308 | } | |
29309 | return resultobj; | |
29310 | fail: | |
29311 | { | |
29312 | if (temp3) | |
29313 | delete arg3; | |
29314 | } | |
29315 | return NULL; | |
29316 | } | |
29317 | ||
29318 | ||
29319 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29320 | PyObject *resultobj; | |
29321 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29322 | int arg2 ; | |
29323 | wxString result; | |
29324 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29325 | PyObject * obj1 = 0 ; |
d14a1e28 | 29326 | char *kwnames[] = { |
f0983263 | 29327 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29328 | }; |
29329 | ||
8edf1c75 | 29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29333 | arg2 = (int) SWIG_AsInt(obj1); | |
29334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29335 | { |
29336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29337 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
29338 | ||
29339 | wxPyEndAllowThreads(__tstate); | |
29340 | if (PyErr_Occurred()) SWIG_fail; | |
29341 | } | |
29342 | { | |
29343 | #if wxUSE_UNICODE | |
29344 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29345 | #else | |
29346 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29347 | #endif | |
29348 | } | |
29349 | return resultobj; | |
29350 | fail: | |
29351 | return NULL; | |
29352 | } | |
29353 | ||
29354 | ||
29355 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29356 | PyObject *resultobj; | |
29357 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29358 | int arg2 ; | |
29359 | wxString *arg3 = 0 ; | |
423f194a | 29360 | bool temp3 = False ; |
d14a1e28 | 29361 | PyObject * obj0 = 0 ; |
8edf1c75 | 29362 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29363 | PyObject * obj2 = 0 ; |
29364 | char *kwnames[] = { | |
f0983263 | 29365 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
29366 | }; |
29367 | ||
8edf1c75 | 29368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29371 | arg2 = (int) SWIG_AsInt(obj1); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29373 | { |
29374 | arg3 = wxString_in_helper(obj2); | |
29375 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29376 | temp3 = True; |
d14a1e28 RD |
29377 | } |
29378 | { | |
29379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29380 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
29381 | ||
29382 | wxPyEndAllowThreads(__tstate); | |
29383 | if (PyErr_Occurred()) SWIG_fail; | |
29384 | } | |
29385 | Py_INCREF(Py_None); resultobj = Py_None; | |
29386 | { | |
29387 | if (temp3) | |
29388 | delete arg3; | |
29389 | } | |
29390 | return resultobj; | |
29391 | fail: | |
29392 | { | |
29393 | if (temp3) | |
29394 | delete arg3; | |
29395 | } | |
29396 | return NULL; | |
29397 | } | |
29398 | ||
29399 | ||
29400 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29401 | PyObject *resultobj; | |
29402 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29403 | int arg2 ; | |
29404 | wxString result; | |
29405 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29406 | PyObject * obj1 = 0 ; |
d14a1e28 | 29407 | char *kwnames[] = { |
f0983263 | 29408 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29409 | }; |
29410 | ||
8edf1c75 | 29411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29414 | arg2 = (int) SWIG_AsInt(obj1); | |
29415 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29416 | { |
29417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29418 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
29419 | ||
29420 | wxPyEndAllowThreads(__tstate); | |
29421 | if (PyErr_Occurred()) SWIG_fail; | |
29422 | } | |
29423 | { | |
29424 | #if wxUSE_UNICODE | |
29425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29426 | #else | |
29427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29428 | #endif | |
29429 | } | |
29430 | return resultobj; | |
29431 | fail: | |
29432 | return NULL; | |
29433 | } | |
29434 | ||
29435 | ||
29436 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29437 | PyObject *resultobj; | |
29438 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29439 | wxString *arg2 = 0 ; | |
423f194a | 29440 | bool temp2 = False ; |
d14a1e28 RD |
29441 | PyObject * obj0 = 0 ; |
29442 | PyObject * obj1 = 0 ; | |
29443 | char *kwnames[] = { | |
29444 | (char *) "self",(char *) "title", NULL | |
29445 | }; | |
29446 | ||
29447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29450 | { |
29451 | arg2 = wxString_in_helper(obj1); | |
29452 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29453 | temp2 = True; |
d14a1e28 RD |
29454 | } |
29455 | { | |
29456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29457 | (arg1)->SetTitle((wxString const &)*arg2); | |
29458 | ||
29459 | wxPyEndAllowThreads(__tstate); | |
29460 | if (PyErr_Occurred()) SWIG_fail; | |
29461 | } | |
29462 | Py_INCREF(Py_None); resultobj = Py_None; | |
29463 | { | |
29464 | if (temp2) | |
29465 | delete arg2; | |
29466 | } | |
29467 | return resultobj; | |
29468 | fail: | |
29469 | { | |
29470 | if (temp2) | |
29471 | delete arg2; | |
29472 | } | |
29473 | return NULL; | |
29474 | } | |
29475 | ||
29476 | ||
29477 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29478 | PyObject *resultobj; | |
29479 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29480 | wxString result; | |
29481 | PyObject * obj0 = 0 ; | |
29482 | char *kwnames[] = { | |
29483 | (char *) "self", NULL | |
29484 | }; | |
29485 | ||
29486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29489 | { |
29490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29491 | result = ((wxMenu const *)arg1)->GetTitle(); | |
29492 | ||
29493 | wxPyEndAllowThreads(__tstate); | |
29494 | if (PyErr_Occurred()) SWIG_fail; | |
29495 | } | |
29496 | { | |
29497 | #if wxUSE_UNICODE | |
29498 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29499 | #else | |
29500 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29501 | #endif | |
29502 | } | |
29503 | return resultobj; | |
29504 | fail: | |
29505 | return NULL; | |
29506 | } | |
29507 | ||
29508 | ||
29509 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29510 | PyObject *resultobj; | |
29511 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29512 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
29513 | PyObject * obj0 = 0 ; | |
29514 | PyObject * obj1 = 0 ; | |
29515 | char *kwnames[] = { | |
29516 | (char *) "self",(char *) "handler", NULL | |
29517 | }; | |
29518 | ||
29519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
29523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29524 | { |
29525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29526 | (arg1)->SetEventHandler(arg2); | |
29527 | ||
29528 | wxPyEndAllowThreads(__tstate); | |
29529 | if (PyErr_Occurred()) SWIG_fail; | |
29530 | } | |
29531 | Py_INCREF(Py_None); resultobj = Py_None; | |
29532 | return resultobj; | |
29533 | fail: | |
29534 | return NULL; | |
29535 | } | |
29536 | ||
29537 | ||
29538 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29539 | PyObject *resultobj; | |
29540 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29541 | wxEvtHandler *result; | |
29542 | PyObject * obj0 = 0 ; | |
29543 | char *kwnames[] = { | |
29544 | (char *) "self", NULL | |
29545 | }; | |
29546 | ||
29547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29550 | { |
29551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29552 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
29553 | ||
29554 | wxPyEndAllowThreads(__tstate); | |
29555 | if (PyErr_Occurred()) SWIG_fail; | |
29556 | } | |
29557 | { | |
29558 | resultobj = wxPyMake_wxObject(result); | |
29559 | } | |
29560 | return resultobj; | |
29561 | fail: | |
29562 | return NULL; | |
29563 | } | |
29564 | ||
29565 | ||
29566 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29567 | PyObject *resultobj; | |
29568 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29569 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29570 | PyObject * obj0 = 0 ; | |
29571 | PyObject * obj1 = 0 ; | |
29572 | char *kwnames[] = { | |
29573 | (char *) "self",(char *) "win", NULL | |
29574 | }; | |
29575 | ||
29576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29581 | { |
29582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29583 | (arg1)->SetInvokingWindow(arg2); | |
29584 | ||
29585 | wxPyEndAllowThreads(__tstate); | |
29586 | if (PyErr_Occurred()) SWIG_fail; | |
29587 | } | |
29588 | Py_INCREF(Py_None); resultobj = Py_None; | |
29589 | return resultobj; | |
29590 | fail: | |
29591 | return NULL; | |
29592 | } | |
29593 | ||
29594 | ||
29595 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29596 | PyObject *resultobj; | |
29597 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29598 | wxWindow *result; | |
29599 | PyObject * obj0 = 0 ; | |
29600 | char *kwnames[] = { | |
29601 | (char *) "self", NULL | |
29602 | }; | |
29603 | ||
29604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29607 | { |
29608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29609 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
29610 | ||
29611 | wxPyEndAllowThreads(__tstate); | |
29612 | if (PyErr_Occurred()) SWIG_fail; | |
29613 | } | |
29614 | { | |
29615 | resultobj = wxPyMake_wxObject(result); | |
29616 | } | |
29617 | return resultobj; | |
29618 | fail: | |
29619 | return NULL; | |
29620 | } | |
29621 | ||
29622 | ||
29623 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29624 | PyObject *resultobj; | |
29625 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29626 | long result; | |
29627 | PyObject * obj0 = 0 ; | |
29628 | char *kwnames[] = { | |
29629 | (char *) "self", NULL | |
29630 | }; | |
29631 | ||
29632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29635 | { |
29636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29637 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
29638 | ||
29639 | wxPyEndAllowThreads(__tstate); | |
29640 | if (PyErr_Occurred()) SWIG_fail; | |
29641 | } | |
2f4c0a16 | 29642 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
29643 | return resultobj; |
29644 | fail: | |
29645 | return NULL; | |
29646 | } | |
29647 | ||
29648 | ||
29649 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29650 | PyObject *resultobj; | |
29651 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29652 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
29653 | PyObject * obj0 = 0 ; | |
29654 | PyObject * obj1 = 0 ; | |
29655 | char *kwnames[] = { | |
29656 | (char *) "self",(char *) "source", NULL | |
29657 | }; | |
29658 | ||
29659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29662 | if (obj1) { |
2f4c0a16 RD |
29663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
29664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29665 | } |
29666 | { | |
29667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29668 | (arg1)->UpdateUI(arg2); | |
29669 | ||
29670 | wxPyEndAllowThreads(__tstate); | |
29671 | if (PyErr_Occurred()) SWIG_fail; | |
29672 | } | |
29673 | Py_INCREF(Py_None); resultobj = Py_None; | |
29674 | return resultobj; | |
29675 | fail: | |
29676 | return NULL; | |
29677 | } | |
29678 | ||
29679 | ||
29680 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29681 | PyObject *resultobj; | |
29682 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29683 | wxMenuBar *result; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | char *kwnames[] = { | |
29686 | (char *) "self", NULL | |
29687 | }; | |
29688 | ||
29689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29692 | { |
29693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29694 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
29695 | ||
29696 | wxPyEndAllowThreads(__tstate); | |
29697 | if (PyErr_Occurred()) SWIG_fail; | |
29698 | } | |
29699 | { | |
29700 | resultobj = wxPyMake_wxObject(result); | |
29701 | } | |
29702 | return resultobj; | |
29703 | fail: | |
29704 | return NULL; | |
29705 | } | |
29706 | ||
29707 | ||
29708 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29709 | PyObject *resultobj; | |
29710 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29711 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
29712 | PyObject * obj0 = 0 ; | |
29713 | PyObject * obj1 = 0 ; | |
29714 | char *kwnames[] = { | |
29715 | (char *) "self",(char *) "menubar", NULL | |
29716 | }; | |
29717 | ||
29718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
29722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29723 | { |
29724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29725 | (arg1)->Attach(arg2); | |
29726 | ||
29727 | wxPyEndAllowThreads(__tstate); | |
29728 | if (PyErr_Occurred()) SWIG_fail; | |
29729 | } | |
29730 | Py_INCREF(Py_None); resultobj = Py_None; | |
29731 | return resultobj; | |
29732 | fail: | |
29733 | return NULL; | |
29734 | } | |
29735 | ||
29736 | ||
29737 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29738 | PyObject *resultobj; | |
29739 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29740 | PyObject * obj0 = 0 ; | |
29741 | char *kwnames[] = { | |
29742 | (char *) "self", NULL | |
29743 | }; | |
29744 | ||
29745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29748 | { |
29749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29750 | (arg1)->Detach(); | |
29751 | ||
29752 | wxPyEndAllowThreads(__tstate); | |
29753 | if (PyErr_Occurred()) SWIG_fail; | |
29754 | } | |
29755 | Py_INCREF(Py_None); resultobj = Py_None; | |
29756 | return resultobj; | |
29757 | fail: | |
29758 | return NULL; | |
29759 | } | |
29760 | ||
29761 | ||
29762 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29763 | PyObject *resultobj; | |
29764 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29765 | bool result; | |
29766 | PyObject * obj0 = 0 ; | |
29767 | char *kwnames[] = { | |
29768 | (char *) "self", NULL | |
29769 | }; | |
29770 | ||
29771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29774 | { |
29775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29776 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
29777 | ||
29778 | wxPyEndAllowThreads(__tstate); | |
29779 | if (PyErr_Occurred()) SWIG_fail; | |
29780 | } | |
4f89f6a3 RD |
29781 | { |
29782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29783 | } | |
d14a1e28 RD |
29784 | return resultobj; |
29785 | fail: | |
29786 | return NULL; | |
29787 | } | |
29788 | ||
29789 | ||
29790 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29791 | PyObject *resultobj; | |
29792 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29793 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29794 | PyObject * obj0 = 0 ; | |
29795 | PyObject * obj1 = 0 ; | |
29796 | char *kwnames[] = { | |
29797 | (char *) "self",(char *) "parent", NULL | |
29798 | }; | |
29799 | ||
29800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29805 | { |
29806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29807 | (arg1)->SetParent(arg2); | |
29808 | ||
29809 | wxPyEndAllowThreads(__tstate); | |
29810 | if (PyErr_Occurred()) SWIG_fail; | |
29811 | } | |
29812 | Py_INCREF(Py_None); resultobj = Py_None; | |
29813 | return resultobj; | |
29814 | fail: | |
29815 | return NULL; | |
29816 | } | |
29817 | ||
29818 | ||
29819 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29820 | PyObject *resultobj; | |
29821 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29822 | wxMenu *result; | |
29823 | PyObject * obj0 = 0 ; | |
29824 | char *kwnames[] = { | |
29825 | (char *) "self", NULL | |
29826 | }; | |
29827 | ||
29828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29831 | { |
29832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29833 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
29834 | ||
29835 | wxPyEndAllowThreads(__tstate); | |
29836 | if (PyErr_Occurred()) SWIG_fail; | |
29837 | } | |
29838 | { | |
29839 | resultobj = wxPyMake_wxObject(result); | |
29840 | } | |
29841 | return resultobj; | |
29842 | fail: | |
29843 | return NULL; | |
29844 | } | |
29845 | ||
29846 | ||
29847 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
29848 | PyObject *obj; | |
29849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29850 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
29851 | Py_INCREF(obj); | |
29852 | return Py_BuildValue((char *)""); | |
29853 | } | |
29854 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29855 | PyObject *resultobj; | |
29856 | long arg1 = (long) 0 ; | |
29857 | wxMenuBar *result; | |
8edf1c75 | 29858 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
29859 | char *kwnames[] = { |
29860 | (char *) "style", NULL | |
29861 | }; | |
29862 | ||
8edf1c75 RD |
29863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
29864 | if (obj0) { | |
2f4c0a16 RD |
29865 | arg1 = (long) SWIG_AsLong(obj0); |
29866 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29867 | } |
d14a1e28 RD |
29868 | { |
29869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29870 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
29871 | ||
29872 | wxPyEndAllowThreads(__tstate); | |
29873 | if (PyErr_Occurred()) SWIG_fail; | |
29874 | } | |
29875 | { | |
29876 | resultobj = wxPyMake_wxObject(result); | |
29877 | } | |
29878 | return resultobj; | |
29879 | fail: | |
29880 | return NULL; | |
29881 | } | |
29882 | ||
29883 | ||
29884 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29885 | PyObject *resultobj; | |
29886 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29887 | wxMenu *arg2 = (wxMenu *) 0 ; | |
29888 | wxString *arg3 = 0 ; | |
29889 | bool result; | |
423f194a | 29890 | bool temp3 = False ; |
d14a1e28 RD |
29891 | PyObject * obj0 = 0 ; |
29892 | PyObject * obj1 = 0 ; | |
29893 | PyObject * obj2 = 0 ; | |
29894 | char *kwnames[] = { | |
29895 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
29896 | }; | |
29897 | ||
29898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
29902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29903 | { |
29904 | arg3 = wxString_in_helper(obj2); | |
29905 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29906 | temp3 = True; |
d14a1e28 RD |
29907 | } |
29908 | { | |
29909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29910 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
29911 | ||
29912 | wxPyEndAllowThreads(__tstate); | |
29913 | if (PyErr_Occurred()) SWIG_fail; | |
29914 | } | |
4f89f6a3 RD |
29915 | { |
29916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29917 | } | |
d14a1e28 RD |
29918 | { |
29919 | if (temp3) | |
29920 | delete arg3; | |
29921 | } | |
29922 | return resultobj; | |
29923 | fail: | |
29924 | { | |
29925 | if (temp3) | |
29926 | delete arg3; | |
29927 | } | |
29928 | return NULL; | |
29929 | } | |
29930 | ||
29931 | ||
29932 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29933 | PyObject *resultobj; | |
29934 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29935 | size_t arg2 ; | |
29936 | wxMenu *arg3 = (wxMenu *) 0 ; | |
29937 | wxString *arg4 = 0 ; | |
29938 | bool result; | |
423f194a | 29939 | bool temp4 = False ; |
d14a1e28 RD |
29940 | PyObject * obj0 = 0 ; |
29941 | PyObject * obj1 = 0 ; | |
29942 | PyObject * obj2 = 0 ; | |
29943 | PyObject * obj3 = 0 ; | |
29944 | char *kwnames[] = { | |
29945 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
29946 | }; | |
29947 | ||
29948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29951 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
29954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29955 | { |
29956 | arg4 = wxString_in_helper(obj3); | |
29957 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 29958 | temp4 = True; |
d14a1e28 RD |
29959 | } |
29960 | { | |
29961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29962 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
29963 | ||
29964 | wxPyEndAllowThreads(__tstate); | |
29965 | if (PyErr_Occurred()) SWIG_fail; | |
29966 | } | |
4f89f6a3 RD |
29967 | { |
29968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29969 | } | |
d14a1e28 RD |
29970 | { |
29971 | if (temp4) | |
29972 | delete arg4; | |
29973 | } | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | { | |
29977 | if (temp4) | |
29978 | delete arg4; | |
29979 | } | |
29980 | return NULL; | |
29981 | } | |
29982 | ||
29983 | ||
29984 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29985 | PyObject *resultobj; | |
29986 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
29987 | size_t result; | |
29988 | PyObject * obj0 = 0 ; | |
29989 | char *kwnames[] = { | |
29990 | (char *) "self", NULL | |
29991 | }; | |
29992 | ||
29993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
29995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29996 | { |
29997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29998 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
29999 | ||
30000 | wxPyEndAllowThreads(__tstate); | |
30001 | if (PyErr_Occurred()) SWIG_fail; | |
30002 | } | |
2f4c0a16 | 30003 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
30004 | return resultobj; |
30005 | fail: | |
30006 | return NULL; | |
30007 | } | |
30008 | ||
30009 | ||
30010 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30011 | PyObject *resultobj; | |
30012 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30013 | size_t arg2 ; | |
30014 | wxMenu *result; | |
30015 | PyObject * obj0 = 0 ; | |
30016 | PyObject * obj1 = 0 ; | |
30017 | char *kwnames[] = { | |
30018 | (char *) "self",(char *) "pos", NULL | |
30019 | }; | |
30020 | ||
30021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30024 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30025 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30026 | { |
30027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30028 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30029 | ||
30030 | wxPyEndAllowThreads(__tstate); | |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | { | |
30034 | resultobj = wxPyMake_wxObject(result); | |
30035 | } | |
30036 | return resultobj; | |
30037 | fail: | |
30038 | return NULL; | |
30039 | } | |
30040 | ||
30041 | ||
30042 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30043 | PyObject *resultobj; | |
30044 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30045 | size_t arg2 ; | |
30046 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30047 | wxString *arg4 = 0 ; | |
30048 | wxMenu *result; | |
423f194a | 30049 | bool temp4 = False ; |
d14a1e28 RD |
30050 | PyObject * obj0 = 0 ; |
30051 | PyObject * obj1 = 0 ; | |
30052 | PyObject * obj2 = 0 ; | |
30053 | PyObject * obj3 = 0 ; | |
30054 | char *kwnames[] = { | |
30055 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30056 | }; | |
30057 | ||
30058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
30059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30061 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30062 | if (PyErr_Occurred()) SWIG_fail; | |
30063 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30065 | { |
30066 | arg4 = wxString_in_helper(obj3); | |
30067 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30068 | temp4 = True; |
d14a1e28 RD |
30069 | } |
30070 | { | |
30071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30072 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30073 | ||
30074 | wxPyEndAllowThreads(__tstate); | |
30075 | if (PyErr_Occurred()) SWIG_fail; | |
30076 | } | |
30077 | { | |
30078 | resultobj = wxPyMake_wxObject(result); | |
30079 | } | |
30080 | { | |
30081 | if (temp4) | |
30082 | delete arg4; | |
30083 | } | |
30084 | return resultobj; | |
30085 | fail: | |
30086 | { | |
30087 | if (temp4) | |
30088 | delete arg4; | |
30089 | } | |
30090 | return NULL; | |
30091 | } | |
30092 | ||
30093 | ||
30094 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30095 | PyObject *resultobj; | |
30096 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30097 | size_t arg2 ; | |
30098 | wxMenu *result; | |
30099 | PyObject * obj0 = 0 ; | |
30100 | PyObject * obj1 = 0 ; | |
30101 | char *kwnames[] = { | |
30102 | (char *) "self",(char *) "pos", NULL | |
30103 | }; | |
30104 | ||
30105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30108 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30110 | { |
30111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30112 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30113 | ||
30114 | wxPyEndAllowThreads(__tstate); | |
30115 | if (PyErr_Occurred()) SWIG_fail; | |
30116 | } | |
30117 | { | |
30118 | resultobj = wxPyMake_wxObject(result); | |
30119 | } | |
30120 | return resultobj; | |
30121 | fail: | |
30122 | return NULL; | |
30123 | } | |
30124 | ||
30125 | ||
30126 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30127 | PyObject *resultobj; | |
30128 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30129 | size_t arg2 ; | |
30130 | bool arg3 ; | |
30131 | PyObject * obj0 = 0 ; | |
30132 | PyObject * obj1 = 0 ; | |
30133 | PyObject * obj2 = 0 ; | |
30134 | char *kwnames[] = { | |
30135 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30136 | }; | |
30137 | ||
30138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30141 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30142 | if (PyErr_Occurred()) SWIG_fail; | |
30143 | arg3 = (bool) SWIG_AsBool(obj2); | |
30144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30145 | { |
30146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30147 | (arg1)->EnableTop(arg2,arg3); | |
30148 | ||
30149 | wxPyEndAllowThreads(__tstate); | |
30150 | if (PyErr_Occurred()) SWIG_fail; | |
30151 | } | |
30152 | Py_INCREF(Py_None); resultobj = Py_None; | |
30153 | return resultobj; | |
30154 | fail: | |
30155 | return NULL; | |
30156 | } | |
30157 | ||
30158 | ||
30159 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30160 | PyObject *resultobj; | |
30161 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30162 | size_t arg2 ; | |
30163 | bool result; | |
30164 | PyObject * obj0 = 0 ; | |
30165 | PyObject * obj1 = 0 ; | |
30166 | char *kwnames[] = { | |
30167 | (char *) "self",(char *) "pos", NULL | |
30168 | }; | |
30169 | ||
30170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30173 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30175 | { |
30176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30177 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
30178 | ||
30179 | wxPyEndAllowThreads(__tstate); | |
30180 | if (PyErr_Occurred()) SWIG_fail; | |
30181 | } | |
4f89f6a3 RD |
30182 | { |
30183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30184 | } | |
d14a1e28 RD |
30185 | return resultobj; |
30186 | fail: | |
30187 | return NULL; | |
30188 | } | |
30189 | ||
30190 | ||
30191 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30192 | PyObject *resultobj; | |
30193 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30194 | size_t arg2 ; | |
30195 | wxString *arg3 = 0 ; | |
423f194a | 30196 | bool temp3 = False ; |
d14a1e28 RD |
30197 | PyObject * obj0 = 0 ; |
30198 | PyObject * obj1 = 0 ; | |
30199 | PyObject * obj2 = 0 ; | |
30200 | char *kwnames[] = { | |
30201 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
30202 | }; | |
30203 | ||
30204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30207 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30209 | { |
30210 | arg3 = wxString_in_helper(obj2); | |
30211 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30212 | temp3 = True; |
d14a1e28 RD |
30213 | } |
30214 | { | |
30215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30216 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
30217 | ||
30218 | wxPyEndAllowThreads(__tstate); | |
30219 | if (PyErr_Occurred()) SWIG_fail; | |
30220 | } | |
30221 | Py_INCREF(Py_None); resultobj = Py_None; | |
30222 | { | |
30223 | if (temp3) | |
30224 | delete arg3; | |
30225 | } | |
30226 | return resultobj; | |
30227 | fail: | |
30228 | { | |
30229 | if (temp3) | |
30230 | delete arg3; | |
30231 | } | |
30232 | return NULL; | |
30233 | } | |
30234 | ||
30235 | ||
30236 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30237 | PyObject *resultobj; | |
30238 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30239 | size_t arg2 ; | |
30240 | wxString result; | |
30241 | PyObject * obj0 = 0 ; | |
30242 | PyObject * obj1 = 0 ; | |
30243 | char *kwnames[] = { | |
30244 | (char *) "self",(char *) "pos", NULL | |
30245 | }; | |
30246 | ||
30247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30250 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30252 | { |
30253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30254 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
30255 | ||
30256 | wxPyEndAllowThreads(__tstate); | |
30257 | if (PyErr_Occurred()) SWIG_fail; | |
30258 | } | |
30259 | { | |
30260 | #if wxUSE_UNICODE | |
30261 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30262 | #else | |
30263 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30264 | #endif | |
30265 | } | |
30266 | return resultobj; | |
30267 | fail: | |
30268 | return NULL; | |
30269 | } | |
30270 | ||
30271 | ||
30272 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30273 | PyObject *resultobj; | |
30274 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30275 | wxString *arg2 = 0 ; | |
30276 | wxString *arg3 = 0 ; | |
30277 | int result; | |
423f194a RD |
30278 | bool temp2 = False ; |
30279 | bool temp3 = False ; | |
d14a1e28 RD |
30280 | PyObject * obj0 = 0 ; |
30281 | PyObject * obj1 = 0 ; | |
30282 | PyObject * obj2 = 0 ; | |
30283 | char *kwnames[] = { | |
30284 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
30285 | }; | |
30286 | ||
30287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30290 | { |
30291 | arg2 = wxString_in_helper(obj1); | |
30292 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30293 | temp2 = True; |
d14a1e28 RD |
30294 | } |
30295 | { | |
30296 | arg3 = wxString_in_helper(obj2); | |
30297 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30298 | temp3 = True; |
d14a1e28 RD |
30299 | } |
30300 | { | |
30301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30302 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
30303 | ||
30304 | wxPyEndAllowThreads(__tstate); | |
30305 | if (PyErr_Occurred()) SWIG_fail; | |
30306 | } | |
2f4c0a16 | 30307 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30308 | { |
30309 | if (temp2) | |
30310 | delete arg2; | |
30311 | } | |
30312 | { | |
30313 | if (temp3) | |
30314 | delete arg3; | |
30315 | } | |
30316 | return resultobj; | |
30317 | fail: | |
30318 | { | |
30319 | if (temp2) | |
30320 | delete arg2; | |
30321 | } | |
30322 | { | |
30323 | if (temp3) | |
30324 | delete arg3; | |
30325 | } | |
30326 | return NULL; | |
30327 | } | |
30328 | ||
30329 | ||
30330 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30331 | PyObject *resultobj; | |
30332 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30333 | int arg2 ; | |
30334 | wxMenuItem *result; | |
30335 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30336 | PyObject * obj1 = 0 ; |
d14a1e28 | 30337 | char *kwnames[] = { |
f0983263 | 30338 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30339 | }; |
30340 | ||
8edf1c75 | 30341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30344 | arg2 = (int) SWIG_AsInt(obj1); | |
30345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30346 | { |
30347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30348 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
30349 | ||
30350 | wxPyEndAllowThreads(__tstate); | |
30351 | if (PyErr_Occurred()) SWIG_fail; | |
30352 | } | |
30353 | { | |
30354 | resultobj = wxPyMake_wxObject(result); | |
30355 | } | |
30356 | return resultobj; | |
30357 | fail: | |
30358 | return NULL; | |
30359 | } | |
30360 | ||
30361 | ||
30362 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30363 | PyObject *resultobj; | |
30364 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30365 | wxString *arg2 = 0 ; | |
30366 | int result; | |
423f194a | 30367 | bool temp2 = False ; |
d14a1e28 RD |
30368 | PyObject * obj0 = 0 ; |
30369 | PyObject * obj1 = 0 ; | |
30370 | char *kwnames[] = { | |
30371 | (char *) "self",(char *) "title", NULL | |
30372 | }; | |
30373 | ||
30374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30377 | { |
30378 | arg2 = wxString_in_helper(obj1); | |
30379 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 30380 | temp2 = True; |
d14a1e28 RD |
30381 | } |
30382 | { | |
30383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30384 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
30385 | ||
30386 | wxPyEndAllowThreads(__tstate); | |
30387 | if (PyErr_Occurred()) SWIG_fail; | |
30388 | } | |
2f4c0a16 | 30389 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30390 | { |
30391 | if (temp2) | |
30392 | delete arg2; | |
30393 | } | |
30394 | return resultobj; | |
30395 | fail: | |
30396 | { | |
30397 | if (temp2) | |
30398 | delete arg2; | |
30399 | } | |
30400 | return NULL; | |
30401 | } | |
30402 | ||
30403 | ||
30404 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30405 | PyObject *resultobj; | |
30406 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30407 | int arg2 ; | |
30408 | bool arg3 ; | |
30409 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30410 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30411 | PyObject * obj2 = 0 ; |
30412 | char *kwnames[] = { | |
f0983263 | 30413 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
30414 | }; |
30415 | ||
8edf1c75 | 30416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30419 | arg2 = (int) SWIG_AsInt(obj1); | |
30420 | if (PyErr_Occurred()) SWIG_fail; | |
30421 | arg3 = (bool) SWIG_AsBool(obj2); | |
30422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30423 | { |
30424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30425 | (arg1)->Enable(arg2,arg3); | |
30426 | ||
30427 | wxPyEndAllowThreads(__tstate); | |
30428 | if (PyErr_Occurred()) SWIG_fail; | |
30429 | } | |
30430 | Py_INCREF(Py_None); resultobj = Py_None; | |
30431 | return resultobj; | |
30432 | fail: | |
30433 | return NULL; | |
30434 | } | |
30435 | ||
30436 | ||
30437 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30438 | PyObject *resultobj; | |
30439 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30440 | int arg2 ; | |
30441 | bool arg3 ; | |
30442 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30443 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30444 | PyObject * obj2 = 0 ; |
30445 | char *kwnames[] = { | |
f0983263 | 30446 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30447 | }; |
30448 | ||
8edf1c75 | 30449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30452 | arg2 = (int) SWIG_AsInt(obj1); | |
30453 | if (PyErr_Occurred()) SWIG_fail; | |
30454 | arg3 = (bool) SWIG_AsBool(obj2); | |
30455 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30456 | { |
30457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30458 | (arg1)->Check(arg2,arg3); | |
30459 | ||
30460 | wxPyEndAllowThreads(__tstate); | |
30461 | if (PyErr_Occurred()) SWIG_fail; | |
30462 | } | |
30463 | Py_INCREF(Py_None); resultobj = Py_None; | |
30464 | return resultobj; | |
30465 | fail: | |
30466 | return NULL; | |
30467 | } | |
30468 | ||
30469 | ||
30470 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30471 | PyObject *resultobj; | |
30472 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30473 | int arg2 ; | |
30474 | bool result; | |
30475 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30476 | PyObject * obj1 = 0 ; |
d14a1e28 | 30477 | char *kwnames[] = { |
f0983263 | 30478 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30479 | }; |
30480 | ||
8edf1c75 | 30481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30484 | arg2 = (int) SWIG_AsInt(obj1); | |
30485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30486 | { |
30487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30488 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
30489 | ||
30490 | wxPyEndAllowThreads(__tstate); | |
30491 | if (PyErr_Occurred()) SWIG_fail; | |
30492 | } | |
4f89f6a3 RD |
30493 | { |
30494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30495 | } | |
d14a1e28 RD |
30496 | return resultobj; |
30497 | fail: | |
30498 | return NULL; | |
30499 | } | |
30500 | ||
30501 | ||
30502 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30503 | PyObject *resultobj; | |
30504 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30505 | int arg2 ; | |
30506 | bool result; | |
30507 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30508 | PyObject * obj1 = 0 ; |
d14a1e28 | 30509 | char *kwnames[] = { |
f0983263 | 30510 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30511 | }; |
30512 | ||
8edf1c75 | 30513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30516 | arg2 = (int) SWIG_AsInt(obj1); | |
30517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30518 | { |
30519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30520 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
30521 | ||
30522 | wxPyEndAllowThreads(__tstate); | |
30523 | if (PyErr_Occurred()) SWIG_fail; | |
30524 | } | |
4f89f6a3 RD |
30525 | { |
30526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30527 | } | |
d14a1e28 RD |
30528 | return resultobj; |
30529 | fail: | |
30530 | return NULL; | |
30531 | } | |
30532 | ||
30533 | ||
30534 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30535 | PyObject *resultobj; | |
30536 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30537 | int arg2 ; | |
30538 | wxString *arg3 = 0 ; | |
423f194a | 30539 | bool temp3 = False ; |
d14a1e28 | 30540 | PyObject * obj0 = 0 ; |
8edf1c75 | 30541 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30542 | PyObject * obj2 = 0 ; |
30543 | char *kwnames[] = { | |
f0983263 | 30544 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30545 | }; |
30546 | ||
8edf1c75 | 30547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30550 | arg2 = (int) SWIG_AsInt(obj1); | |
30551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30552 | { |
30553 | arg3 = wxString_in_helper(obj2); | |
30554 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30555 | temp3 = True; |
d14a1e28 RD |
30556 | } |
30557 | { | |
30558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30559 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30560 | ||
30561 | wxPyEndAllowThreads(__tstate); | |
30562 | if (PyErr_Occurred()) SWIG_fail; | |
30563 | } | |
30564 | Py_INCREF(Py_None); resultobj = Py_None; | |
30565 | { | |
30566 | if (temp3) | |
30567 | delete arg3; | |
30568 | } | |
30569 | return resultobj; | |
30570 | fail: | |
30571 | { | |
30572 | if (temp3) | |
30573 | delete arg3; | |
30574 | } | |
30575 | return NULL; | |
30576 | } | |
30577 | ||
30578 | ||
30579 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30580 | PyObject *resultobj; | |
30581 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30582 | int arg2 ; | |
30583 | wxString result; | |
30584 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30585 | PyObject * obj1 = 0 ; |
d14a1e28 | 30586 | char *kwnames[] = { |
f0983263 | 30587 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30588 | }; |
30589 | ||
8edf1c75 | 30590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30593 | arg2 = (int) SWIG_AsInt(obj1); | |
30594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30595 | { |
30596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30597 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
30598 | ||
30599 | wxPyEndAllowThreads(__tstate); | |
30600 | if (PyErr_Occurred()) SWIG_fail; | |
30601 | } | |
30602 | { | |
30603 | #if wxUSE_UNICODE | |
30604 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30605 | #else | |
30606 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30607 | #endif | |
30608 | } | |
30609 | return resultobj; | |
30610 | fail: | |
30611 | return NULL; | |
30612 | } | |
30613 | ||
30614 | ||
30615 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30616 | PyObject *resultobj; | |
30617 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30618 | int arg2 ; | |
30619 | wxString *arg3 = 0 ; | |
423f194a | 30620 | bool temp3 = False ; |
d14a1e28 | 30621 | PyObject * obj0 = 0 ; |
8edf1c75 | 30622 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30623 | PyObject * obj2 = 0 ; |
30624 | char *kwnames[] = { | |
f0983263 | 30625 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30626 | }; |
30627 | ||
8edf1c75 | 30628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
30629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30631 | arg2 = (int) SWIG_AsInt(obj1); | |
30632 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30633 | { |
30634 | arg3 = wxString_in_helper(obj2); | |
30635 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30636 | temp3 = True; |
d14a1e28 RD |
30637 | } |
30638 | { | |
30639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30640 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30641 | ||
30642 | wxPyEndAllowThreads(__tstate); | |
30643 | if (PyErr_Occurred()) SWIG_fail; | |
30644 | } | |
30645 | Py_INCREF(Py_None); resultobj = Py_None; | |
30646 | { | |
30647 | if (temp3) | |
30648 | delete arg3; | |
30649 | } | |
30650 | return resultobj; | |
30651 | fail: | |
30652 | { | |
30653 | if (temp3) | |
30654 | delete arg3; | |
30655 | } | |
30656 | return NULL; | |
30657 | } | |
30658 | ||
30659 | ||
30660 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30661 | PyObject *resultobj; | |
30662 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30663 | int arg2 ; | |
30664 | wxString result; | |
30665 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30666 | PyObject * obj1 = 0 ; |
d14a1e28 | 30667 | char *kwnames[] = { |
f0983263 | 30668 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30669 | }; |
30670 | ||
8edf1c75 | 30671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30674 | arg2 = (int) SWIG_AsInt(obj1); | |
30675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30676 | { |
30677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30678 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
30679 | ||
30680 | wxPyEndAllowThreads(__tstate); | |
30681 | if (PyErr_Occurred()) SWIG_fail; | |
30682 | } | |
30683 | { | |
30684 | #if wxUSE_UNICODE | |
30685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30686 | #else | |
30687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30688 | #endif | |
30689 | } | |
30690 | return resultobj; | |
30691 | fail: | |
30692 | return NULL; | |
30693 | } | |
30694 | ||
30695 | ||
30696 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30697 | PyObject *resultobj; | |
30698 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30699 | wxFrame *result; | |
30700 | PyObject * obj0 = 0 ; | |
30701 | char *kwnames[] = { | |
30702 | (char *) "self", NULL | |
30703 | }; | |
30704 | ||
30705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30708 | { |
30709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30710 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
30711 | ||
30712 | wxPyEndAllowThreads(__tstate); | |
30713 | if (PyErr_Occurred()) SWIG_fail; | |
30714 | } | |
30715 | { | |
30716 | resultobj = wxPyMake_wxObject(result); | |
30717 | } | |
30718 | return resultobj; | |
30719 | fail: | |
30720 | return NULL; | |
30721 | } | |
30722 | ||
30723 | ||
30724 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30725 | PyObject *resultobj; | |
30726 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30727 | bool result; | |
30728 | PyObject * obj0 = 0 ; | |
30729 | char *kwnames[] = { | |
30730 | (char *) "self", NULL | |
30731 | }; | |
30732 | ||
30733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30736 | { |
30737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30738 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
30739 | ||
30740 | wxPyEndAllowThreads(__tstate); | |
30741 | if (PyErr_Occurred()) SWIG_fail; | |
30742 | } | |
4f89f6a3 RD |
30743 | { |
30744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30745 | } | |
d14a1e28 RD |
30746 | return resultobj; |
30747 | fail: | |
30748 | return NULL; | |
30749 | } | |
30750 | ||
30751 | ||
30752 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30753 | PyObject *resultobj; | |
30754 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30755 | wxFrame *arg2 = (wxFrame *) 0 ; | |
30756 | PyObject * obj0 = 0 ; | |
30757 | PyObject * obj1 = 0 ; | |
30758 | char *kwnames[] = { | |
30759 | (char *) "self",(char *) "frame", NULL | |
30760 | }; | |
30761 | ||
30762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
30766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30767 | { |
30768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30769 | (arg1)->Attach(arg2); | |
30770 | ||
30771 | wxPyEndAllowThreads(__tstate); | |
30772 | if (PyErr_Occurred()) SWIG_fail; | |
30773 | } | |
30774 | Py_INCREF(Py_None); resultobj = Py_None; | |
30775 | return resultobj; | |
30776 | fail: | |
30777 | return NULL; | |
30778 | } | |
30779 | ||
30780 | ||
30781 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30782 | PyObject *resultobj; | |
30783 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30784 | PyObject * obj0 = 0 ; | |
30785 | char *kwnames[] = { | |
30786 | (char *) "self", NULL | |
30787 | }; | |
30788 | ||
30789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30792 | { |
30793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30794 | (arg1)->Detach(); | |
30795 | ||
30796 | wxPyEndAllowThreads(__tstate); | |
30797 | if (PyErr_Occurred()) SWIG_fail; | |
30798 | } | |
30799 | Py_INCREF(Py_None); resultobj = Py_None; | |
30800 | return resultobj; | |
30801 | fail: | |
30802 | return NULL; | |
30803 | } | |
30804 | ||
30805 | ||
30806 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
30807 | PyObject *obj; | |
30808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30809 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
30810 | Py_INCREF(obj); | |
30811 | return Py_BuildValue((char *)""); | |
30812 | } | |
30813 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30814 | PyObject *resultobj; | |
30815 | wxMenu *arg1 = (wxMenu *) NULL ; | |
30816 | int arg2 = (int) wxID_SEPARATOR ; | |
30817 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
30818 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30819 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30820 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30821 | int arg5 = (int) wxITEM_NORMAL ; | |
30822 | wxMenu *arg6 = (wxMenu *) NULL ; | |
30823 | wxMenuItem *result; | |
423f194a RD |
30824 | bool temp3 = False ; |
30825 | bool temp4 = False ; | |
d14a1e28 | 30826 | PyObject * obj0 = 0 ; |
8edf1c75 | 30827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30828 | PyObject * obj2 = 0 ; |
30829 | PyObject * obj3 = 0 ; | |
8edf1c75 | 30830 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30831 | PyObject * obj5 = 0 ; |
30832 | char *kwnames[] = { | |
30833 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
30834 | }; | |
30835 | ||
8edf1c75 | 30836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 30837 | if (obj0) { |
2f4c0a16 RD |
30838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30840 | } |
8edf1c75 | 30841 | if (obj1) { |
2f4c0a16 RD |
30842 | arg2 = (int) SWIG_AsInt(obj1); |
30843 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30844 | } |
d14a1e28 RD |
30845 | if (obj2) { |
30846 | { | |
30847 | arg3 = wxString_in_helper(obj2); | |
30848 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 30849 | temp3 = True; |
d14a1e28 RD |
30850 | } |
30851 | } | |
30852 | if (obj3) { | |
30853 | { | |
30854 | arg4 = wxString_in_helper(obj3); | |
30855 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 30856 | temp4 = True; |
d14a1e28 RD |
30857 | } |
30858 | } | |
8edf1c75 | 30859 | if (obj4) { |
2f4c0a16 RD |
30860 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
30861 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 30862 | } |
d14a1e28 | 30863 | if (obj5) { |
2f4c0a16 RD |
30864 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
30865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30866 | } |
30867 | { | |
30868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30869 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
30870 | ||
30871 | wxPyEndAllowThreads(__tstate); | |
30872 | if (PyErr_Occurred()) SWIG_fail; | |
30873 | } | |
30874 | { | |
30875 | resultobj = wxPyMake_wxObject(result); | |
30876 | } | |
30877 | { | |
30878 | if (temp3) | |
30879 | delete arg3; | |
30880 | } | |
30881 | { | |
30882 | if (temp4) | |
30883 | delete arg4; | |
30884 | } | |
30885 | return resultobj; | |
30886 | fail: | |
30887 | { | |
30888 | if (temp3) | |
30889 | delete arg3; | |
30890 | } | |
30891 | { | |
30892 | if (temp4) | |
30893 | delete arg4; | |
30894 | } | |
30895 | return NULL; | |
30896 | } | |
30897 | ||
30898 | ||
30899 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30900 | PyObject *resultobj; | |
30901 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30902 | wxMenu *result; | |
30903 | PyObject * obj0 = 0 ; | |
30904 | char *kwnames[] = { | |
30905 | (char *) "self", NULL | |
30906 | }; | |
30907 | ||
30908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30911 | { |
30912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30913 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
30914 | ||
30915 | wxPyEndAllowThreads(__tstate); | |
30916 | if (PyErr_Occurred()) SWIG_fail; | |
30917 | } | |
30918 | { | |
30919 | resultobj = wxPyMake_wxObject(result); | |
30920 | } | |
30921 | return resultobj; | |
30922 | fail: | |
30923 | return NULL; | |
30924 | } | |
30925 | ||
30926 | ||
30927 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30928 | PyObject *resultobj; | |
30929 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30930 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30931 | PyObject * obj0 = 0 ; | |
30932 | PyObject * obj1 = 0 ; | |
30933 | char *kwnames[] = { | |
30934 | (char *) "self",(char *) "menu", NULL | |
30935 | }; | |
30936 | ||
30937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30940 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30942 | { |
30943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30944 | (arg1)->SetMenu(arg2); | |
30945 | ||
30946 | wxPyEndAllowThreads(__tstate); | |
30947 | if (PyErr_Occurred()) SWIG_fail; | |
30948 | } | |
30949 | Py_INCREF(Py_None); resultobj = Py_None; | |
30950 | return resultobj; | |
30951 | fail: | |
30952 | return NULL; | |
30953 | } | |
30954 | ||
30955 | ||
30956 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30957 | PyObject *resultobj; | |
30958 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30959 | int arg2 ; | |
30960 | PyObject * obj0 = 0 ; | |
8edf1c75 | 30961 | PyObject * obj1 = 0 ; |
d14a1e28 | 30962 | char *kwnames[] = { |
f0983263 | 30963 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30964 | }; |
30965 | ||
8edf1c75 | 30966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
30967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30969 | arg2 = (int) SWIG_AsInt(obj1); | |
30970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30971 | { |
30972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30973 | (arg1)->SetId(arg2); | |
30974 | ||
30975 | wxPyEndAllowThreads(__tstate); | |
30976 | if (PyErr_Occurred()) SWIG_fail; | |
30977 | } | |
30978 | Py_INCREF(Py_None); resultobj = Py_None; | |
30979 | return resultobj; | |
30980 | fail: | |
30981 | return NULL; | |
30982 | } | |
30983 | ||
30984 | ||
30985 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30986 | PyObject *resultobj; | |
30987 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
30988 | int result; | |
30989 | PyObject * obj0 = 0 ; | |
30990 | char *kwnames[] = { | |
30991 | (char *) "self", NULL | |
30992 | }; | |
30993 | ||
30994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
30996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30997 | { |
30998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30999 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31000 | ||
31001 | wxPyEndAllowThreads(__tstate); | |
31002 | if (PyErr_Occurred()) SWIG_fail; | |
31003 | } | |
2f4c0a16 | 31004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31005 | return resultobj; |
31006 | fail: | |
31007 | return NULL; | |
31008 | } | |
31009 | ||
31010 | ||
31011 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31012 | PyObject *resultobj; | |
31013 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31014 | bool result; | |
31015 | PyObject * obj0 = 0 ; | |
31016 | char *kwnames[] = { | |
31017 | (char *) "self", NULL | |
31018 | }; | |
31019 | ||
31020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31023 | { |
31024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31025 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31026 | ||
31027 | wxPyEndAllowThreads(__tstate); | |
31028 | if (PyErr_Occurred()) SWIG_fail; | |
31029 | } | |
4f89f6a3 RD |
31030 | { |
31031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31032 | } | |
d14a1e28 RD |
31033 | return resultobj; |
31034 | fail: | |
31035 | return NULL; | |
31036 | } | |
31037 | ||
31038 | ||
31039 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31040 | PyObject *resultobj; | |
31041 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31042 | wxString *arg2 = 0 ; | |
423f194a | 31043 | bool temp2 = False ; |
d14a1e28 RD |
31044 | PyObject * obj0 = 0 ; |
31045 | PyObject * obj1 = 0 ; | |
31046 | char *kwnames[] = { | |
31047 | (char *) "self",(char *) "str", NULL | |
31048 | }; | |
31049 | ||
31050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31053 | { |
31054 | arg2 = wxString_in_helper(obj1); | |
31055 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31056 | temp2 = True; |
d14a1e28 RD |
31057 | } |
31058 | { | |
31059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31060 | (arg1)->SetText((wxString const &)*arg2); | |
31061 | ||
31062 | wxPyEndAllowThreads(__tstate); | |
31063 | if (PyErr_Occurred()) SWIG_fail; | |
31064 | } | |
31065 | Py_INCREF(Py_None); resultobj = Py_None; | |
31066 | { | |
31067 | if (temp2) | |
31068 | delete arg2; | |
31069 | } | |
31070 | return resultobj; | |
31071 | fail: | |
31072 | { | |
31073 | if (temp2) | |
31074 | delete arg2; | |
31075 | } | |
31076 | return NULL; | |
31077 | } | |
31078 | ||
31079 | ||
31080 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31081 | PyObject *resultobj; | |
31082 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31083 | wxString result; | |
31084 | PyObject * obj0 = 0 ; | |
31085 | char *kwnames[] = { | |
31086 | (char *) "self", NULL | |
31087 | }; | |
31088 | ||
31089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31092 | { |
31093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31094 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31095 | ||
31096 | wxPyEndAllowThreads(__tstate); | |
31097 | if (PyErr_Occurred()) SWIG_fail; | |
31098 | } | |
31099 | { | |
31100 | #if wxUSE_UNICODE | |
31101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31102 | #else | |
31103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31104 | #endif | |
31105 | } | |
31106 | return resultobj; | |
31107 | fail: | |
31108 | return NULL; | |
31109 | } | |
31110 | ||
31111 | ||
31112 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31113 | PyObject *resultobj; | |
31114 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31115 | wxString *result; | |
31116 | PyObject * obj0 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31124 | { |
31125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31126 | { | |
31127 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31128 | result = (wxString *) &_result_ref; | |
31129 | } | |
31130 | ||
31131 | wxPyEndAllowThreads(__tstate); | |
31132 | if (PyErr_Occurred()) SWIG_fail; | |
31133 | } | |
f0983263 RD |
31134 | { |
31135 | #if wxUSE_UNICODE | |
31136 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31137 | #else | |
31138 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31139 | #endif | |
31140 | } | |
d14a1e28 RD |
31141 | return resultobj; |
31142 | fail: | |
31143 | return NULL; | |
31144 | } | |
31145 | ||
31146 | ||
31147 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31148 | PyObject *resultobj; | |
31149 | wxString *arg1 = 0 ; | |
31150 | wxString result; | |
423f194a | 31151 | bool temp1 = False ; |
d14a1e28 RD |
31152 | PyObject * obj0 = 0 ; |
31153 | char *kwnames[] = { | |
31154 | (char *) "text", NULL | |
31155 | }; | |
31156 | ||
31157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31158 | { | |
31159 | arg1 = wxString_in_helper(obj0); | |
31160 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 31161 | temp1 = True; |
d14a1e28 RD |
31162 | } |
31163 | { | |
31164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31165 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
31166 | ||
31167 | wxPyEndAllowThreads(__tstate); | |
31168 | if (PyErr_Occurred()) SWIG_fail; | |
31169 | } | |
31170 | { | |
31171 | #if wxUSE_UNICODE | |
31172 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31173 | #else | |
31174 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31175 | #endif | |
31176 | } | |
31177 | { | |
31178 | if (temp1) | |
31179 | delete arg1; | |
31180 | } | |
31181 | return resultobj; | |
31182 | fail: | |
31183 | { | |
31184 | if (temp1) | |
31185 | delete arg1; | |
31186 | } | |
31187 | return NULL; | |
31188 | } | |
31189 | ||
31190 | ||
31191 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31192 | PyObject *resultobj; | |
31193 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31194 | int result; | |
31195 | PyObject * obj0 = 0 ; | |
31196 | char *kwnames[] = { | |
31197 | (char *) "self", NULL | |
31198 | }; | |
31199 | ||
31200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31203 | { |
31204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31205 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
31206 | ||
31207 | wxPyEndAllowThreads(__tstate); | |
31208 | if (PyErr_Occurred()) SWIG_fail; | |
31209 | } | |
2f4c0a16 | 31210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31211 | return resultobj; |
31212 | fail: | |
31213 | return NULL; | |
31214 | } | |
31215 | ||
31216 | ||
31217 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31218 | PyObject *resultobj; | |
31219 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31220 | bool arg2 ; | |
31221 | PyObject * obj0 = 0 ; | |
31222 | PyObject * obj1 = 0 ; | |
31223 | char *kwnames[] = { | |
31224 | (char *) "self",(char *) "checkable", NULL | |
31225 | }; | |
31226 | ||
31227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31230 | arg2 = (bool) SWIG_AsBool(obj1); | |
31231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31232 | { |
31233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31234 | (arg1)->SetCheckable(arg2); | |
31235 | ||
31236 | wxPyEndAllowThreads(__tstate); | |
31237 | if (PyErr_Occurred()) SWIG_fail; | |
31238 | } | |
31239 | Py_INCREF(Py_None); resultobj = Py_None; | |
31240 | return resultobj; | |
31241 | fail: | |
31242 | return NULL; | |
31243 | } | |
31244 | ||
31245 | ||
31246 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31247 | PyObject *resultobj; | |
31248 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31249 | bool result; | |
31250 | PyObject * obj0 = 0 ; | |
31251 | char *kwnames[] = { | |
31252 | (char *) "self", NULL | |
31253 | }; | |
31254 | ||
31255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31258 | { |
31259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31260 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
31261 | ||
31262 | wxPyEndAllowThreads(__tstate); | |
31263 | if (PyErr_Occurred()) SWIG_fail; | |
31264 | } | |
4f89f6a3 RD |
31265 | { |
31266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31267 | } | |
d14a1e28 RD |
31268 | return resultobj; |
31269 | fail: | |
31270 | return NULL; | |
31271 | } | |
31272 | ||
31273 | ||
31274 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31275 | PyObject *resultobj; | |
31276 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31277 | bool result; | |
31278 | PyObject * obj0 = 0 ; | |
31279 | char *kwnames[] = { | |
31280 | (char *) "self", NULL | |
31281 | }; | |
31282 | ||
31283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31286 | { |
31287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31288 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
31289 | ||
31290 | wxPyEndAllowThreads(__tstate); | |
31291 | if (PyErr_Occurred()) SWIG_fail; | |
31292 | } | |
4f89f6a3 RD |
31293 | { |
31294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31295 | } | |
d14a1e28 RD |
31296 | return resultobj; |
31297 | fail: | |
31298 | return NULL; | |
31299 | } | |
31300 | ||
31301 | ||
31302 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31303 | PyObject *resultobj; | |
31304 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31305 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31306 | PyObject * obj0 = 0 ; | |
31307 | PyObject * obj1 = 0 ; | |
31308 | char *kwnames[] = { | |
31309 | (char *) "self",(char *) "menu", NULL | |
31310 | }; | |
31311 | ||
31312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31317 | { |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | (arg1)->SetSubMenu(arg2); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | Py_INCREF(Py_None); resultobj = Py_None; | |
31325 | return resultobj; | |
31326 | fail: | |
31327 | return NULL; | |
31328 | } | |
31329 | ||
31330 | ||
31331 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31332 | PyObject *resultobj; | |
31333 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31334 | wxMenu *result; | |
31335 | PyObject * obj0 = 0 ; | |
31336 | char *kwnames[] = { | |
31337 | (char *) "self", NULL | |
31338 | }; | |
31339 | ||
31340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31343 | { |
31344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31345 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
31346 | ||
31347 | wxPyEndAllowThreads(__tstate); | |
31348 | if (PyErr_Occurred()) SWIG_fail; | |
31349 | } | |
31350 | { | |
31351 | resultobj = wxPyMake_wxObject(result); | |
31352 | } | |
31353 | return resultobj; | |
31354 | fail: | |
31355 | return NULL; | |
31356 | } | |
31357 | ||
31358 | ||
31359 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31360 | PyObject *resultobj; | |
31361 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31362 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31363 | PyObject * obj0 = 0 ; |
31364 | PyObject * obj1 = 0 ; | |
31365 | char *kwnames[] = { | |
31366 | (char *) "self",(char *) "enable", NULL | |
31367 | }; | |
31368 | ||
31369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31372 | if (obj1) { |
2f4c0a16 RD |
31373 | arg2 = (bool) SWIG_AsBool(obj1); |
31374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31375 | } |
31376 | { | |
31377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31378 | (arg1)->Enable(arg2); | |
31379 | ||
31380 | wxPyEndAllowThreads(__tstate); | |
31381 | if (PyErr_Occurred()) SWIG_fail; | |
31382 | } | |
31383 | Py_INCREF(Py_None); resultobj = Py_None; | |
31384 | return resultobj; | |
31385 | fail: | |
31386 | return NULL; | |
31387 | } | |
31388 | ||
31389 | ||
31390 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31391 | PyObject *resultobj; | |
31392 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31393 | bool result; | |
31394 | PyObject * obj0 = 0 ; | |
31395 | char *kwnames[] = { | |
31396 | (char *) "self", NULL | |
31397 | }; | |
31398 | ||
31399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31402 | { |
31403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31404 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
31405 | ||
31406 | wxPyEndAllowThreads(__tstate); | |
31407 | if (PyErr_Occurred()) SWIG_fail; | |
31408 | } | |
4f89f6a3 RD |
31409 | { |
31410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31411 | } | |
d14a1e28 RD |
31412 | return resultobj; |
31413 | fail: | |
31414 | return NULL; | |
31415 | } | |
31416 | ||
31417 | ||
31418 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31419 | PyObject *resultobj; | |
31420 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 31421 | bool arg2 = (bool) True ; |
d14a1e28 RD |
31422 | PyObject * obj0 = 0 ; |
31423 | PyObject * obj1 = 0 ; | |
31424 | char *kwnames[] = { | |
31425 | (char *) "self",(char *) "check", NULL | |
31426 | }; | |
31427 | ||
31428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31431 | if (obj1) { |
2f4c0a16 RD |
31432 | arg2 = (bool) SWIG_AsBool(obj1); |
31433 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31434 | } |
31435 | { | |
31436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31437 | (arg1)->Check(arg2); | |
31438 | ||
31439 | wxPyEndAllowThreads(__tstate); | |
31440 | if (PyErr_Occurred()) SWIG_fail; | |
31441 | } | |
31442 | Py_INCREF(Py_None); resultobj = Py_None; | |
31443 | return resultobj; | |
31444 | fail: | |
31445 | return NULL; | |
31446 | } | |
31447 | ||
31448 | ||
31449 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31450 | PyObject *resultobj; | |
31451 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31452 | bool result; | |
31453 | PyObject * obj0 = 0 ; | |
31454 | char *kwnames[] = { | |
31455 | (char *) "self", NULL | |
31456 | }; | |
31457 | ||
31458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31461 | { |
31462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31463 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
31464 | ||
31465 | wxPyEndAllowThreads(__tstate); | |
31466 | if (PyErr_Occurred()) SWIG_fail; | |
31467 | } | |
4f89f6a3 RD |
31468 | { |
31469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31470 | } | |
d14a1e28 RD |
31471 | return resultobj; |
31472 | fail: | |
31473 | return NULL; | |
31474 | } | |
31475 | ||
31476 | ||
31477 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31478 | PyObject *resultobj; | |
31479 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31480 | PyObject * obj0 = 0 ; | |
31481 | char *kwnames[] = { | |
31482 | (char *) "self", NULL | |
31483 | }; | |
31484 | ||
31485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31488 | { |
31489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31490 | (arg1)->Toggle(); | |
31491 | ||
31492 | wxPyEndAllowThreads(__tstate); | |
31493 | if (PyErr_Occurred()) SWIG_fail; | |
31494 | } | |
31495 | Py_INCREF(Py_None); resultobj = Py_None; | |
31496 | return resultobj; | |
31497 | fail: | |
31498 | return NULL; | |
31499 | } | |
31500 | ||
31501 | ||
31502 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31503 | PyObject *resultobj; | |
31504 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31505 | wxString *arg2 = 0 ; | |
423f194a | 31506 | bool temp2 = False ; |
d14a1e28 RD |
31507 | PyObject * obj0 = 0 ; |
31508 | PyObject * obj1 = 0 ; | |
31509 | char *kwnames[] = { | |
31510 | (char *) "self",(char *) "str", NULL | |
31511 | }; | |
31512 | ||
31513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31516 | { |
31517 | arg2 = wxString_in_helper(obj1); | |
31518 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 31519 | temp2 = True; |
d14a1e28 RD |
31520 | } |
31521 | { | |
31522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31523 | (arg1)->SetHelp((wxString const &)*arg2); | |
31524 | ||
31525 | wxPyEndAllowThreads(__tstate); | |
31526 | if (PyErr_Occurred()) SWIG_fail; | |
31527 | } | |
31528 | Py_INCREF(Py_None); resultobj = Py_None; | |
31529 | { | |
31530 | if (temp2) | |
31531 | delete arg2; | |
31532 | } | |
31533 | return resultobj; | |
31534 | fail: | |
31535 | { | |
31536 | if (temp2) | |
31537 | delete arg2; | |
31538 | } | |
31539 | return NULL; | |
31540 | } | |
31541 | ||
31542 | ||
31543 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31544 | PyObject *resultobj; | |
31545 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31546 | wxString *result; | |
31547 | PyObject * obj0 = 0 ; | |
31548 | char *kwnames[] = { | |
31549 | (char *) "self", NULL | |
31550 | }; | |
31551 | ||
31552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31555 | { |
31556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31557 | { | |
31558 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
31559 | result = (wxString *) &_result_ref; | |
31560 | } | |
31561 | ||
31562 | wxPyEndAllowThreads(__tstate); | |
31563 | if (PyErr_Occurred()) SWIG_fail; | |
31564 | } | |
f0983263 RD |
31565 | { |
31566 | #if wxUSE_UNICODE | |
31567 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31568 | #else | |
31569 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31570 | #endif | |
31571 | } | |
d14a1e28 RD |
31572 | return resultobj; |
31573 | fail: | |
31574 | return NULL; | |
31575 | } | |
31576 | ||
31577 | ||
31578 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31579 | PyObject *resultobj; | |
31580 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31581 | wxAcceleratorEntry *result; | |
31582 | PyObject * obj0 = 0 ; | |
31583 | char *kwnames[] = { | |
31584 | (char *) "self", NULL | |
31585 | }; | |
31586 | ||
31587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31590 | { |
31591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31592 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
31593 | ||
31594 | wxPyEndAllowThreads(__tstate); | |
31595 | if (PyErr_Occurred()) SWIG_fail; | |
31596 | } | |
2f4c0a16 | 31597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
31598 | return resultobj; |
31599 | fail: | |
31600 | return NULL; | |
31601 | } | |
31602 | ||
31603 | ||
31604 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31605 | PyObject *resultobj; | |
31606 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31607 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
31608 | PyObject * obj0 = 0 ; | |
31609 | PyObject * obj1 = 0 ; | |
31610 | char *kwnames[] = { | |
31611 | (char *) "self",(char *) "accel", NULL | |
31612 | }; | |
31613 | ||
31614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
31618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31619 | { |
31620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31621 | (arg1)->SetAccel(arg2); | |
31622 | ||
31623 | wxPyEndAllowThreads(__tstate); | |
31624 | if (PyErr_Occurred()) SWIG_fail; | |
31625 | } | |
31626 | Py_INCREF(Py_None); resultobj = Py_None; | |
31627 | return resultobj; | |
31628 | fail: | |
31629 | return NULL; | |
31630 | } | |
31631 | ||
31632 | ||
31633 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31634 | PyObject *resultobj; | |
31635 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31636 | wxFont *arg2 = 0 ; | |
31637 | PyObject * obj0 = 0 ; | |
31638 | PyObject * obj1 = 0 ; | |
31639 | char *kwnames[] = { | |
31640 | (char *) "self",(char *) "font", NULL | |
31641 | }; | |
31642 | ||
31643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
31647 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31648 | SWIG_fail; | |
d14a1e28 | 31649 | if (arg2 == NULL) { |
2f4c0a16 RD |
31650 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31651 | SWIG_fail; | |
d14a1e28 RD |
31652 | } |
31653 | { | |
31654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31655 | (arg1)->SetFont((wxFont const &)*arg2); | |
31656 | ||
31657 | wxPyEndAllowThreads(__tstate); | |
31658 | if (PyErr_Occurred()) SWIG_fail; | |
31659 | } | |
31660 | Py_INCREF(Py_None); resultobj = Py_None; | |
31661 | return resultobj; | |
31662 | fail: | |
31663 | return NULL; | |
31664 | } | |
31665 | ||
31666 | ||
31667 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31668 | PyObject *resultobj; | |
31669 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31670 | wxFont result; | |
31671 | PyObject * obj0 = 0 ; | |
31672 | char *kwnames[] = { | |
31673 | (char *) "self", NULL | |
31674 | }; | |
31675 | ||
31676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31679 | { |
31680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31681 | result = (arg1)->GetFont(); | |
31682 | ||
31683 | wxPyEndAllowThreads(__tstate); | |
31684 | if (PyErr_Occurred()) SWIG_fail; | |
31685 | } | |
31686 | { | |
31687 | wxFont * resultptr; | |
31688 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 31689 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
31690 | } |
31691 | return resultobj; | |
31692 | fail: | |
31693 | return NULL; | |
31694 | } | |
31695 | ||
31696 | ||
31697 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31698 | PyObject *resultobj; | |
31699 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31700 | wxColour *arg2 = 0 ; | |
31701 | wxColour temp2 ; | |
31702 | PyObject * obj0 = 0 ; | |
31703 | PyObject * obj1 = 0 ; | |
31704 | char *kwnames[] = { | |
31705 | (char *) "self",(char *) "colText", NULL | |
31706 | }; | |
31707 | ||
31708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31711 | { |
31712 | arg2 = &temp2; | |
31713 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31714 | } | |
31715 | { | |
31716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31717 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
31718 | ||
31719 | wxPyEndAllowThreads(__tstate); | |
31720 | if (PyErr_Occurred()) SWIG_fail; | |
31721 | } | |
31722 | Py_INCREF(Py_None); resultobj = Py_None; | |
31723 | return resultobj; | |
31724 | fail: | |
31725 | return NULL; | |
31726 | } | |
31727 | ||
31728 | ||
31729 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31730 | PyObject *resultobj; | |
31731 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31732 | wxColour result; | |
31733 | PyObject * obj0 = 0 ; | |
31734 | char *kwnames[] = { | |
31735 | (char *) "self", NULL | |
31736 | }; | |
31737 | ||
31738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31741 | { |
31742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31743 | result = (arg1)->GetTextColour(); | |
31744 | ||
31745 | wxPyEndAllowThreads(__tstate); | |
31746 | if (PyErr_Occurred()) SWIG_fail; | |
31747 | } | |
31748 | { | |
31749 | wxColour * resultptr; | |
31750 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31752 | } |
31753 | return resultobj; | |
31754 | fail: | |
31755 | return NULL; | |
31756 | } | |
31757 | ||
31758 | ||
31759 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31760 | PyObject *resultobj; | |
31761 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31762 | wxColour *arg2 = 0 ; | |
31763 | wxColour temp2 ; | |
31764 | PyObject * obj0 = 0 ; | |
31765 | PyObject * obj1 = 0 ; | |
31766 | char *kwnames[] = { | |
31767 | (char *) "self",(char *) "colBack", NULL | |
31768 | }; | |
31769 | ||
31770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31773 | { |
31774 | arg2 = &temp2; | |
31775 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31776 | } | |
31777 | { | |
31778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31779 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
31780 | ||
31781 | wxPyEndAllowThreads(__tstate); | |
31782 | if (PyErr_Occurred()) SWIG_fail; | |
31783 | } | |
31784 | Py_INCREF(Py_None); resultobj = Py_None; | |
31785 | return resultobj; | |
31786 | fail: | |
31787 | return NULL; | |
31788 | } | |
31789 | ||
31790 | ||
31791 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31792 | PyObject *resultobj; | |
31793 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31794 | wxColour result; | |
31795 | PyObject * obj0 = 0 ; | |
31796 | char *kwnames[] = { | |
31797 | (char *) "self", NULL | |
31798 | }; | |
31799 | ||
31800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31803 | { |
31804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31805 | result = (arg1)->GetBackgroundColour(); | |
31806 | ||
31807 | wxPyEndAllowThreads(__tstate); | |
31808 | if (PyErr_Occurred()) SWIG_fail; | |
31809 | } | |
31810 | { | |
31811 | wxColour * resultptr; | |
31812 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 31813 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
31814 | } |
31815 | return resultobj; | |
31816 | fail: | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
31821 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31822 | PyObject *resultobj; | |
31823 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31824 | wxBitmap *arg2 = 0 ; | |
31825 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
31826 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
31827 | PyObject * obj0 = 0 ; | |
31828 | PyObject * obj1 = 0 ; | |
31829 | PyObject * obj2 = 0 ; | |
31830 | char *kwnames[] = { | |
31831 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
31832 | }; | |
31833 | ||
31834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
31835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31839 | SWIG_fail; | |
d14a1e28 | 31840 | if (arg2 == NULL) { |
2f4c0a16 RD |
31841 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31842 | SWIG_fail; | |
d14a1e28 RD |
31843 | } |
31844 | if (obj2) { | |
2f4c0a16 RD |
31845 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
31846 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31847 | SWIG_fail; | |
d14a1e28 | 31848 | if (arg3 == NULL) { |
2f4c0a16 RD |
31849 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31850 | SWIG_fail; | |
d14a1e28 RD |
31851 | } |
31852 | } | |
31853 | { | |
31854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31855 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
31856 | ||
31857 | wxPyEndAllowThreads(__tstate); | |
31858 | if (PyErr_Occurred()) SWIG_fail; | |
31859 | } | |
31860 | Py_INCREF(Py_None); resultobj = Py_None; | |
31861 | return resultobj; | |
31862 | fail: | |
31863 | return NULL; | |
31864 | } | |
31865 | ||
31866 | ||
31867 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31868 | PyObject *resultobj; | |
31869 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31870 | wxBitmap *arg2 = 0 ; | |
31871 | PyObject * obj0 = 0 ; | |
31872 | PyObject * obj1 = 0 ; | |
31873 | char *kwnames[] = { | |
31874 | (char *) "self",(char *) "bmpDisabled", NULL | |
31875 | }; | |
31876 | ||
31877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
31878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31880 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31882 | SWIG_fail; | |
d14a1e28 | 31883 | if (arg2 == NULL) { |
2f4c0a16 RD |
31884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31885 | SWIG_fail; | |
d14a1e28 RD |
31886 | } |
31887 | { | |
31888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31889 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
31890 | ||
31891 | wxPyEndAllowThreads(__tstate); | |
31892 | if (PyErr_Occurred()) SWIG_fail; | |
31893 | } | |
31894 | Py_INCREF(Py_None); resultobj = Py_None; | |
31895 | return resultobj; | |
31896 | fail: | |
31897 | return NULL; | |
31898 | } | |
31899 | ||
31900 | ||
31901 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31902 | PyObject *resultobj; | |
31903 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31904 | wxBitmap *result; | |
31905 | PyObject * obj0 = 0 ; | |
31906 | char *kwnames[] = { | |
31907 | (char *) "self", NULL | |
31908 | }; | |
31909 | ||
31910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31913 | { |
31914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31915 | { | |
31916 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
31917 | result = (wxBitmap *) &_result_ref; | |
31918 | } | |
31919 | ||
31920 | wxPyEndAllowThreads(__tstate); | |
31921 | if (PyErr_Occurred()) SWIG_fail; | |
31922 | } | |
fe763115 RD |
31923 | { |
31924 | wxBitmap* resultptr = new wxBitmap(*result); | |
31925 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
31926 | } | |
d14a1e28 RD |
31927 | return resultobj; |
31928 | fail: | |
31929 | return NULL; | |
31930 | } | |
31931 | ||
31932 | ||
31933 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31934 | PyObject *resultobj; | |
31935 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31936 | int arg2 ; | |
31937 | PyObject * obj0 = 0 ; | |
8edf1c75 | 31938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31939 | char *kwnames[] = { |
31940 | (char *) "self",(char *) "nWidth", NULL | |
31941 | }; | |
31942 | ||
8edf1c75 | 31943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
31944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31946 | arg2 = (int) SWIG_AsInt(obj1); | |
31947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31948 | { |
31949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31950 | (arg1)->SetMarginWidth(arg2); | |
31951 | ||
31952 | wxPyEndAllowThreads(__tstate); | |
31953 | if (PyErr_Occurred()) SWIG_fail; | |
31954 | } | |
31955 | Py_INCREF(Py_None); resultobj = Py_None; | |
31956 | return resultobj; | |
31957 | fail: | |
31958 | return NULL; | |
31959 | } | |
31960 | ||
31961 | ||
31962 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31963 | PyObject *resultobj; | |
31964 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31965 | int result; | |
31966 | PyObject * obj0 = 0 ; | |
31967 | char *kwnames[] = { | |
31968 | (char *) "self", NULL | |
31969 | }; | |
31970 | ||
31971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
31972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31974 | { |
31975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31976 | result = (int)(arg1)->GetMarginWidth(); | |
31977 | ||
31978 | wxPyEndAllowThreads(__tstate); | |
31979 | if (PyErr_Occurred()) SWIG_fail; | |
31980 | } | |
2f4c0a16 | 31981 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31982 | return resultobj; |
31983 | fail: | |
31984 | return NULL; | |
31985 | } | |
31986 | ||
31987 | ||
31988 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31989 | PyObject *resultobj; | |
31990 | int result; | |
31991 | char *kwnames[] = { | |
31992 | NULL | |
31993 | }; | |
31994 | ||
31995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
31996 | { | |
31997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31998 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
31999 | ||
32000 | wxPyEndAllowThreads(__tstate); | |
32001 | if (PyErr_Occurred()) SWIG_fail; | |
32002 | } | |
2f4c0a16 | 32003 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32004 | return resultobj; |
32005 | fail: | |
32006 | return NULL; | |
32007 | } | |
32008 | ||
32009 | ||
32010 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32011 | PyObject *resultobj; | |
32012 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32013 | bool result; | |
32014 | PyObject * obj0 = 0 ; | |
32015 | char *kwnames[] = { | |
32016 | (char *) "self", NULL | |
32017 | }; | |
32018 | ||
32019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32022 | { |
32023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32024 | result = (bool)(arg1)->IsOwnerDrawn(); | |
32025 | ||
32026 | wxPyEndAllowThreads(__tstate); | |
32027 | if (PyErr_Occurred()) SWIG_fail; | |
32028 | } | |
4f89f6a3 RD |
32029 | { |
32030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32031 | } | |
d14a1e28 RD |
32032 | return resultobj; |
32033 | fail: | |
32034 | return NULL; | |
32035 | } | |
32036 | ||
32037 | ||
32038 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32039 | PyObject *resultobj; | |
32040 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
423f194a | 32041 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32042 | PyObject * obj0 = 0 ; |
32043 | PyObject * obj1 = 0 ; | |
32044 | char *kwnames[] = { | |
32045 | (char *) "self",(char *) "ownerDrawn", NULL | |
32046 | }; | |
32047 | ||
32048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32051 | if (obj1) { |
2f4c0a16 RD |
32052 | arg2 = (bool) SWIG_AsBool(obj1); |
32053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32054 | } |
32055 | { | |
32056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32057 | (arg1)->SetOwnerDrawn(arg2); | |
32058 | ||
32059 | wxPyEndAllowThreads(__tstate); | |
32060 | if (PyErr_Occurred()) SWIG_fail; | |
32061 | } | |
32062 | Py_INCREF(Py_None); resultobj = Py_None; | |
32063 | return resultobj; | |
32064 | fail: | |
32065 | return NULL; | |
32066 | } | |
32067 | ||
32068 | ||
32069 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32070 | PyObject *resultobj; | |
32071 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32072 | PyObject * obj0 = 0 ; | |
32073 | char *kwnames[] = { | |
32074 | (char *) "self", NULL | |
32075 | }; | |
32076 | ||
32077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32080 | { |
32081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32082 | (arg1)->ResetOwnerDrawn(); | |
32083 | ||
32084 | wxPyEndAllowThreads(__tstate); | |
32085 | if (PyErr_Occurred()) SWIG_fail; | |
32086 | } | |
32087 | Py_INCREF(Py_None); resultobj = Py_None; | |
32088 | return resultobj; | |
32089 | fail: | |
32090 | return NULL; | |
32091 | } | |
32092 | ||
32093 | ||
32094 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32095 | PyObject *resultobj; | |
32096 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32097 | wxBitmap *arg2 = 0 ; | |
32098 | PyObject * obj0 = 0 ; | |
32099 | PyObject * obj1 = 0 ; | |
32100 | char *kwnames[] = { | |
32101 | (char *) "self",(char *) "bitmap", NULL | |
32102 | }; | |
32103 | ||
32104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32109 | SWIG_fail; | |
d14a1e28 | 32110 | if (arg2 == NULL) { |
2f4c0a16 RD |
32111 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32112 | SWIG_fail; | |
d14a1e28 RD |
32113 | } |
32114 | { | |
32115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32116 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32117 | ||
32118 | wxPyEndAllowThreads(__tstate); | |
32119 | if (PyErr_Occurred()) SWIG_fail; | |
32120 | } | |
32121 | Py_INCREF(Py_None); resultobj = Py_None; | |
32122 | return resultobj; | |
32123 | fail: | |
32124 | return NULL; | |
32125 | } | |
32126 | ||
32127 | ||
32128 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32129 | PyObject *resultobj; | |
32130 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32131 | wxBitmap *result; | |
32132 | PyObject * obj0 = 0 ; | |
32133 | char *kwnames[] = { | |
32134 | (char *) "self", NULL | |
32135 | }; | |
32136 | ||
32137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32140 | { |
32141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32142 | { | |
32143 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32144 | result = (wxBitmap *) &_result_ref; | |
32145 | } | |
32146 | ||
32147 | wxPyEndAllowThreads(__tstate); | |
32148 | if (PyErr_Occurred()) SWIG_fail; | |
32149 | } | |
fe763115 RD |
32150 | { |
32151 | wxBitmap* resultptr = new wxBitmap(*result); | |
32152 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32153 | } | |
d14a1e28 RD |
32154 | return resultobj; |
32155 | fail: | |
32156 | return NULL; | |
32157 | } | |
32158 | ||
32159 | ||
32160 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32161 | PyObject *obj; | |
32162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32163 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32164 | Py_INCREF(obj); | |
32165 | return Py_BuildValue((char *)""); | |
32166 | } | |
2f4c0a16 | 32167 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
d03fd34d RD |
32168 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
32169 | return 1; | |
32170 | } | |
32171 | ||
32172 | ||
32173 | static PyObject *_wrap_ControlNameStr_get() { | |
32174 | PyObject *pyobj; | |
32175 | ||
32176 | { | |
32177 | #if wxUSE_UNICODE | |
32178 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32179 | #else | |
32180 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32181 | #endif | |
32182 | } | |
32183 | return pyobj; | |
32184 | } | |
32185 | ||
32186 | ||
d14a1e28 RD |
32187 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32188 | PyObject *resultobj; | |
32189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 32190 | int arg2 ; |
d14a1e28 RD |
32191 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32192 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32193 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32194 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32195 | long arg5 = (long) 0 ; | |
32196 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32197 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32198 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32199 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32200 | wxControl *result; | |
32201 | wxPoint temp3 ; | |
32202 | wxSize temp4 ; | |
423f194a | 32203 | bool temp7 = False ; |
d14a1e28 | 32204 | PyObject * obj0 = 0 ; |
8edf1c75 | 32205 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32206 | PyObject * obj2 = 0 ; |
32207 | PyObject * obj3 = 0 ; | |
8edf1c75 | 32208 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32209 | PyObject * obj5 = 0 ; |
32210 | PyObject * obj6 = 0 ; | |
32211 | char *kwnames[] = { | |
32212 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32213 | }; | |
32214 | ||
8edf1c75 | 32215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
32216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32218 | arg2 = (int) SWIG_AsInt(obj1); | |
32219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32220 | if (obj2) { |
32221 | { | |
32222 | arg3 = &temp3; | |
32223 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32224 | } | |
32225 | } | |
32226 | if (obj3) { | |
32227 | { | |
32228 | arg4 = &temp4; | |
32229 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32230 | } | |
32231 | } | |
8edf1c75 | 32232 | if (obj4) { |
2f4c0a16 RD |
32233 | arg5 = (long) SWIG_AsLong(obj4); |
32234 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 32235 | } |
d14a1e28 | 32236 | if (obj5) { |
2f4c0a16 RD |
32237 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32238 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32239 | SWIG_fail; | |
d14a1e28 | 32240 | if (arg6 == NULL) { |
2f4c0a16 RD |
32241 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32242 | SWIG_fail; | |
d14a1e28 RD |
32243 | } |
32244 | } | |
32245 | if (obj6) { | |
32246 | { | |
32247 | arg7 = wxString_in_helper(obj6); | |
32248 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 32249 | temp7 = True; |
d14a1e28 RD |
32250 | } |
32251 | } | |
32252 | { | |
32253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32254 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32255 | ||
32256 | wxPyEndAllowThreads(__tstate); | |
32257 | if (PyErr_Occurred()) SWIG_fail; | |
32258 | } | |
32259 | { | |
32260 | resultobj = wxPyMake_wxObject(result); | |
32261 | } | |
32262 | { | |
32263 | if (temp7) | |
32264 | delete arg7; | |
32265 | } | |
32266 | return resultobj; | |
32267 | fail: | |
32268 | { | |
32269 | if (temp7) | |
32270 | delete arg7; | |
32271 | } | |
32272 | return NULL; | |
32273 | } | |
32274 | ||
32275 | ||
32276 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32277 | PyObject *resultobj; | |
32278 | wxControl *result; | |
32279 | char *kwnames[] = { | |
32280 | NULL | |
32281 | }; | |
32282 | ||
32283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32284 | { | |
32285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32286 | result = (wxControl *)new wxControl(); | |
32287 | ||
32288 | wxPyEndAllowThreads(__tstate); | |
32289 | if (PyErr_Occurred()) SWIG_fail; | |
32290 | } | |
32291 | { | |
32292 | resultobj = wxPyMake_wxObject(result); | |
32293 | } | |
32294 | return resultobj; | |
32295 | fail: | |
32296 | return NULL; | |
32297 | } | |
32298 | ||
32299 | ||
32300 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32301 | PyObject *resultobj; | |
32302 | wxControl *arg1 = (wxControl *) 0 ; | |
32303 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 32304 | int arg3 ; |
d14a1e28 RD |
32305 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32306 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32307 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32308 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32309 | long arg6 = (long) 0 ; | |
32310 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32311 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32312 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32313 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32314 | bool result; | |
32315 | wxPoint temp4 ; | |
32316 | wxSize temp5 ; | |
423f194a | 32317 | bool temp8 = False ; |
d14a1e28 RD |
32318 | PyObject * obj0 = 0 ; |
32319 | PyObject * obj1 = 0 ; | |
8edf1c75 | 32320 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32321 | PyObject * obj3 = 0 ; |
32322 | PyObject * obj4 = 0 ; | |
8edf1c75 | 32323 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32324 | PyObject * obj6 = 0 ; |
32325 | PyObject * obj7 = 0 ; | |
32326 | char *kwnames[] = { | |
32327 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32328 | }; | |
32329 | ||
8edf1c75 | 32330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
32331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32335 | arg3 = (int) SWIG_AsInt(obj2); | |
32336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32337 | if (obj3) { |
32338 | { | |
32339 | arg4 = &temp4; | |
32340 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32341 | } | |
32342 | } | |
32343 | if (obj4) { | |
32344 | { | |
32345 | arg5 = &temp5; | |
32346 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32347 | } | |
32348 | } | |
8edf1c75 | 32349 | if (obj5) { |
2f4c0a16 RD |
32350 | arg6 = (long) SWIG_AsLong(obj5); |
32351 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 32352 | } |
d14a1e28 | 32353 | if (obj6) { |
2f4c0a16 RD |
32354 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
32355 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32356 | SWIG_fail; | |
d14a1e28 | 32357 | if (arg7 == NULL) { |
2f4c0a16 RD |
32358 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32359 | SWIG_fail; | |
d14a1e28 RD |
32360 | } |
32361 | } | |
32362 | if (obj7) { | |
32363 | { | |
32364 | arg8 = wxString_in_helper(obj7); | |
32365 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 32366 | temp8 = True; |
d14a1e28 RD |
32367 | } |
32368 | } | |
32369 | { | |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32372 | ||
32373 | wxPyEndAllowThreads(__tstate); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
4f89f6a3 RD |
32376 | { |
32377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32378 | } | |
d14a1e28 RD |
32379 | { |
32380 | if (temp8) | |
32381 | delete arg8; | |
32382 | } | |
32383 | return resultobj; | |
32384 | fail: | |
32385 | { | |
32386 | if (temp8) | |
32387 | delete arg8; | |
32388 | } | |
32389 | return NULL; | |
32390 | } | |
32391 | ||
32392 | ||
32393 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32394 | PyObject *resultobj; | |
32395 | wxControl *arg1 = (wxControl *) 0 ; | |
32396 | wxCommandEvent *arg2 = 0 ; | |
32397 | PyObject * obj0 = 0 ; | |
32398 | PyObject * obj1 = 0 ; | |
32399 | char *kwnames[] = { | |
32400 | (char *) "self",(char *) "event", NULL | |
32401 | }; | |
32402 | ||
32403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32406 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32407 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32408 | SWIG_fail; | |
d14a1e28 | 32409 | if (arg2 == NULL) { |
2f4c0a16 RD |
32410 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32411 | SWIG_fail; | |
d14a1e28 RD |
32412 | } |
32413 | { | |
32414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32415 | (arg1)->Command(*arg2); | |
32416 | ||
32417 | wxPyEndAllowThreads(__tstate); | |
32418 | if (PyErr_Occurred()) SWIG_fail; | |
32419 | } | |
32420 | Py_INCREF(Py_None); resultobj = Py_None; | |
32421 | return resultobj; | |
32422 | fail: | |
32423 | return NULL; | |
32424 | } | |
32425 | ||
32426 | ||
32427 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32428 | PyObject *resultobj; | |
32429 | wxControl *arg1 = (wxControl *) 0 ; | |
32430 | wxString result; | |
32431 | PyObject * obj0 = 0 ; | |
32432 | char *kwnames[] = { | |
32433 | (char *) "self", NULL | |
32434 | }; | |
32435 | ||
32436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32439 | { |
32440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32441 | result = (arg1)->GetLabel(); | |
32442 | ||
32443 | wxPyEndAllowThreads(__tstate); | |
32444 | if (PyErr_Occurred()) SWIG_fail; | |
32445 | } | |
32446 | { | |
32447 | #if wxUSE_UNICODE | |
32448 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32449 | #else | |
32450 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32451 | #endif | |
32452 | } | |
32453 | return resultobj; | |
32454 | fail: | |
32455 | return NULL; | |
32456 | } | |
32457 | ||
32458 | ||
32459 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32460 | PyObject *resultobj; | |
32461 | wxControl *arg1 = (wxControl *) 0 ; | |
32462 | wxString *arg2 = 0 ; | |
423f194a | 32463 | bool temp2 = False ; |
d14a1e28 RD |
32464 | PyObject * obj0 = 0 ; |
32465 | PyObject * obj1 = 0 ; | |
32466 | char *kwnames[] = { | |
32467 | (char *) "self",(char *) "label", NULL | |
32468 | }; | |
32469 | ||
32470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32473 | { |
32474 | arg2 = wxString_in_helper(obj1); | |
32475 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32476 | temp2 = True; |
d14a1e28 RD |
32477 | } |
32478 | { | |
32479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32480 | (arg1)->SetLabel((wxString const &)*arg2); | |
32481 | ||
32482 | wxPyEndAllowThreads(__tstate); | |
32483 | if (PyErr_Occurred()) SWIG_fail; | |
32484 | } | |
32485 | Py_INCREF(Py_None); resultobj = Py_None; | |
32486 | { | |
32487 | if (temp2) | |
32488 | delete arg2; | |
32489 | } | |
32490 | return resultobj; | |
32491 | fail: | |
32492 | { | |
32493 | if (temp2) | |
32494 | delete arg2; | |
32495 | } | |
32496 | return NULL; | |
32497 | } | |
32498 | ||
32499 | ||
32500 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
32501 | PyObject *obj; | |
32502 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32503 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32504 | Py_INCREF(obj); | |
32505 | return Py_BuildValue((char *)""); | |
32506 | } | |
32507 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32508 | PyObject *resultobj; | |
32509 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32510 | wxString *arg2 = 0 ; | |
32511 | PyObject *arg3 = (PyObject *) NULL ; | |
32512 | int result; | |
423f194a | 32513 | bool temp2 = False ; |
d14a1e28 RD |
32514 | PyObject * obj0 = 0 ; |
32515 | PyObject * obj1 = 0 ; | |
32516 | PyObject * obj2 = 0 ; | |
32517 | char *kwnames[] = { | |
32518 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32519 | }; | |
32520 | ||
32521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
32522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32524 | { |
32525 | arg2 = wxString_in_helper(obj1); | |
32526 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32527 | temp2 = True; |
d14a1e28 RD |
32528 | } |
32529 | if (obj2) { | |
32530 | arg3 = obj2; | |
32531 | } | |
32532 | { | |
32533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32534 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32535 | ||
32536 | wxPyEndAllowThreads(__tstate); | |
32537 | if (PyErr_Occurred()) SWIG_fail; | |
32538 | } | |
2f4c0a16 | 32539 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32540 | { |
32541 | if (temp2) | |
32542 | delete arg2; | |
32543 | } | |
32544 | return resultobj; | |
32545 | fail: | |
32546 | { | |
32547 | if (temp2) | |
32548 | delete arg2; | |
32549 | } | |
32550 | return NULL; | |
32551 | } | |
32552 | ||
32553 | ||
32554 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32555 | PyObject *resultobj; | |
32556 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32557 | wxArrayString *arg2 = 0 ; | |
db914595 | 32558 | bool temp2 = False ; |
d14a1e28 RD |
32559 | PyObject * obj0 = 0 ; |
32560 | PyObject * obj1 = 0 ; | |
32561 | char *kwnames[] = { | |
32562 | (char *) "self",(char *) "strings", NULL | |
32563 | }; | |
32564 | ||
32565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32568 | { |
32569 | if (! PySequence_Check(obj1)) { | |
32570 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
32571 | SWIG_fail; | |
32572 | } | |
32573 | arg2 = new wxArrayString; | |
db914595 | 32574 | temp2 = True; |
d14a1e28 RD |
32575 | int i, len=PySequence_Length(obj1); |
32576 | for (i=0; i<len; i++) { | |
32577 | PyObject* item = PySequence_GetItem(obj1, i); | |
32578 | #if wxUSE_UNICODE | |
32579 | PyObject* str = PyObject_Unicode(item); | |
32580 | #else | |
32581 | PyObject* str = PyObject_Str(item); | |
32582 | #endif | |
32583 | arg2->Add(Py2wxString(str)); | |
32584 | Py_DECREF(item); | |
32585 | Py_DECREF(str); | |
32586 | } | |
32587 | } | |
32588 | { | |
32589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32590 | (arg1)->Append((wxArrayString const &)*arg2); | |
32591 | ||
32592 | wxPyEndAllowThreads(__tstate); | |
32593 | if (PyErr_Occurred()) SWIG_fail; | |
32594 | } | |
32595 | Py_INCREF(Py_None); resultobj = Py_None; | |
32596 | { | |
db914595 | 32597 | if (temp2) delete arg2; |
d14a1e28 RD |
32598 | } |
32599 | return resultobj; | |
32600 | fail: | |
32601 | { | |
db914595 | 32602 | if (temp2) delete arg2; |
d14a1e28 RD |
32603 | } |
32604 | return NULL; | |
32605 | } | |
32606 | ||
32607 | ||
32608 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32609 | PyObject *resultobj; | |
32610 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32611 | wxString *arg2 = 0 ; | |
32612 | int arg3 ; | |
32613 | PyObject *arg4 = (PyObject *) NULL ; | |
32614 | int result; | |
423f194a | 32615 | bool temp2 = False ; |
d14a1e28 RD |
32616 | PyObject * obj0 = 0 ; |
32617 | PyObject * obj1 = 0 ; | |
8edf1c75 | 32618 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32619 | PyObject * obj3 = 0 ; |
32620 | char *kwnames[] = { | |
32621 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
32622 | }; | |
32623 | ||
8edf1c75 | 32624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
32625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32627 | { |
32628 | arg2 = wxString_in_helper(obj1); | |
32629 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32630 | temp2 = True; |
d14a1e28 | 32631 | } |
2f4c0a16 RD |
32632 | arg3 = (int) SWIG_AsInt(obj2); |
32633 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32634 | if (obj3) { |
32635 | arg4 = obj3; | |
32636 | } | |
32637 | { | |
32638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32639 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
32640 | ||
32641 | wxPyEndAllowThreads(__tstate); | |
32642 | if (PyErr_Occurred()) SWIG_fail; | |
32643 | } | |
2f4c0a16 | 32644 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32645 | { |
32646 | if (temp2) | |
32647 | delete arg2; | |
32648 | } | |
32649 | return resultobj; | |
32650 | fail: | |
32651 | { | |
32652 | if (temp2) | |
32653 | delete arg2; | |
32654 | } | |
32655 | return NULL; | |
32656 | } | |
32657 | ||
32658 | ||
32659 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32660 | PyObject *resultobj; | |
32661 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32662 | PyObject * obj0 = 0 ; | |
32663 | char *kwnames[] = { | |
32664 | (char *) "self", NULL | |
32665 | }; | |
32666 | ||
32667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32670 | { |
32671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32672 | (arg1)->Clear(); | |
32673 | ||
32674 | wxPyEndAllowThreads(__tstate); | |
32675 | if (PyErr_Occurred()) SWIG_fail; | |
32676 | } | |
32677 | Py_INCREF(Py_None); resultobj = Py_None; | |
32678 | return resultobj; | |
32679 | fail: | |
32680 | return NULL; | |
32681 | } | |
32682 | ||
32683 | ||
32684 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32685 | PyObject *resultobj; | |
32686 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32687 | int arg2 ; | |
32688 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32689 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32690 | char *kwnames[] = { |
32691 | (char *) "self",(char *) "n", NULL | |
32692 | }; | |
32693 | ||
8edf1c75 | 32694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32697 | arg2 = (int) SWIG_AsInt(obj1); | |
32698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32699 | { |
32700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32701 | (arg1)->Delete(arg2); | |
32702 | ||
32703 | wxPyEndAllowThreads(__tstate); | |
32704 | if (PyErr_Occurred()) SWIG_fail; | |
32705 | } | |
32706 | Py_INCREF(Py_None); resultobj = Py_None; | |
32707 | return resultobj; | |
32708 | fail: | |
32709 | return NULL; | |
32710 | } | |
32711 | ||
32712 | ||
32713 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32714 | PyObject *resultobj; | |
32715 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32716 | int result; | |
32717 | PyObject * obj0 = 0 ; | |
32718 | char *kwnames[] = { | |
32719 | (char *) "self", NULL | |
32720 | }; | |
32721 | ||
32722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32725 | { |
32726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32727 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
32728 | ||
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
2f4c0a16 | 32732 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32733 | return resultobj; |
32734 | fail: | |
32735 | return NULL; | |
32736 | } | |
32737 | ||
32738 | ||
32739 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32740 | PyObject *resultobj; | |
32741 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32742 | bool result; | |
32743 | PyObject * obj0 = 0 ; | |
32744 | char *kwnames[] = { | |
32745 | (char *) "self", NULL | |
32746 | }; | |
32747 | ||
32748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32751 | { |
32752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32753 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
32754 | ||
32755 | wxPyEndAllowThreads(__tstate); | |
32756 | if (PyErr_Occurred()) SWIG_fail; | |
32757 | } | |
4f89f6a3 RD |
32758 | { |
32759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32760 | } | |
d14a1e28 RD |
32761 | return resultobj; |
32762 | fail: | |
32763 | return NULL; | |
32764 | } | |
32765 | ||
32766 | ||
32767 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32768 | PyObject *resultobj; | |
32769 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32770 | int arg2 ; | |
32771 | wxString result; | |
32772 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32774 | char *kwnames[] = { |
32775 | (char *) "self",(char *) "n", NULL | |
32776 | }; | |
32777 | ||
8edf1c75 | 32778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32781 | arg2 = (int) SWIG_AsInt(obj1); | |
32782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32783 | { |
32784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32785 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
32786 | ||
32787 | wxPyEndAllowThreads(__tstate); | |
32788 | if (PyErr_Occurred()) SWIG_fail; | |
32789 | } | |
32790 | { | |
32791 | #if wxUSE_UNICODE | |
32792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32793 | #else | |
32794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32795 | #endif | |
32796 | } | |
32797 | return resultobj; | |
32798 | fail: | |
32799 | return NULL; | |
32800 | } | |
32801 | ||
32802 | ||
32803 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32804 | PyObject *resultobj; | |
32805 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32806 | wxArrayString result; | |
32807 | PyObject * obj0 = 0 ; | |
32808 | char *kwnames[] = { | |
32809 | (char *) "self", NULL | |
32810 | }; | |
32811 | ||
32812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32815 | { |
32816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32817 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
32818 | ||
32819 | wxPyEndAllowThreads(__tstate); | |
32820 | if (PyErr_Occurred()) SWIG_fail; | |
32821 | } | |
32822 | { | |
32823 | resultobj = wxArrayString2PyList_helper(result); | |
32824 | } | |
32825 | return resultobj; | |
32826 | fail: | |
32827 | return NULL; | |
32828 | } | |
32829 | ||
32830 | ||
32831 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32832 | PyObject *resultobj; | |
32833 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32834 | int arg2 ; | |
32835 | wxString *arg3 = 0 ; | |
423f194a | 32836 | bool temp3 = False ; |
d14a1e28 | 32837 | PyObject * obj0 = 0 ; |
8edf1c75 | 32838 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32839 | PyObject * obj2 = 0 ; |
32840 | char *kwnames[] = { | |
32841 | (char *) "self",(char *) "n",(char *) "s", NULL | |
32842 | }; | |
32843 | ||
8edf1c75 | 32844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
32845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32847 | arg2 = (int) SWIG_AsInt(obj1); | |
32848 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32849 | { |
32850 | arg3 = wxString_in_helper(obj2); | |
32851 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 32852 | temp3 = True; |
d14a1e28 RD |
32853 | } |
32854 | { | |
32855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32856 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
32857 | ||
32858 | wxPyEndAllowThreads(__tstate); | |
32859 | if (PyErr_Occurred()) SWIG_fail; | |
32860 | } | |
32861 | Py_INCREF(Py_None); resultobj = Py_None; | |
32862 | { | |
32863 | if (temp3) | |
32864 | delete arg3; | |
32865 | } | |
32866 | return resultobj; | |
32867 | fail: | |
32868 | { | |
32869 | if (temp3) | |
32870 | delete arg3; | |
32871 | } | |
32872 | return NULL; | |
32873 | } | |
32874 | ||
32875 | ||
32876 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32877 | PyObject *resultobj; | |
32878 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32879 | wxString *arg2 = 0 ; | |
32880 | int result; | |
423f194a | 32881 | bool temp2 = False ; |
d14a1e28 RD |
32882 | PyObject * obj0 = 0 ; |
32883 | PyObject * obj1 = 0 ; | |
32884 | char *kwnames[] = { | |
32885 | (char *) "self",(char *) "s", NULL | |
32886 | }; | |
32887 | ||
32888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
32889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32891 | { |
32892 | arg2 = wxString_in_helper(obj1); | |
32893 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 32894 | temp2 = True; |
d14a1e28 RD |
32895 | } |
32896 | { | |
32897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32898 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
32899 | ||
32900 | wxPyEndAllowThreads(__tstate); | |
32901 | if (PyErr_Occurred()) SWIG_fail; | |
32902 | } | |
2f4c0a16 | 32903 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32904 | { |
32905 | if (temp2) | |
32906 | delete arg2; | |
32907 | } | |
32908 | return resultobj; | |
32909 | fail: | |
32910 | { | |
32911 | if (temp2) | |
32912 | delete arg2; | |
32913 | } | |
32914 | return NULL; | |
32915 | } | |
32916 | ||
32917 | ||
32918 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32919 | PyObject *resultobj; | |
32920 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32921 | int arg2 ; | |
32922 | PyObject * obj0 = 0 ; | |
8edf1c75 | 32923 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32924 | char *kwnames[] = { |
32925 | (char *) "self",(char *) "n", NULL | |
32926 | }; | |
32927 | ||
8edf1c75 | 32928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
32929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32931 | arg2 = (int) SWIG_AsInt(obj1); | |
32932 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32933 | { |
32934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32935 | (arg1)->Select(arg2); | |
32936 | ||
32937 | wxPyEndAllowThreads(__tstate); | |
32938 | if (PyErr_Occurred()) SWIG_fail; | |
32939 | } | |
32940 | Py_INCREF(Py_None); resultobj = Py_None; | |
32941 | return resultobj; | |
32942 | fail: | |
32943 | return NULL; | |
32944 | } | |
32945 | ||
32946 | ||
32947 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32948 | PyObject *resultobj; | |
32949 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32950 | int result; | |
32951 | PyObject * obj0 = 0 ; | |
32952 | char *kwnames[] = { | |
32953 | (char *) "self", NULL | |
32954 | }; | |
32955 | ||
32956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32959 | { |
32960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32961 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
32962 | ||
32963 | wxPyEndAllowThreads(__tstate); | |
32964 | if (PyErr_Occurred()) SWIG_fail; | |
32965 | } | |
2f4c0a16 | 32966 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32967 | return resultobj; |
32968 | fail: | |
32969 | return NULL; | |
32970 | } | |
32971 | ||
32972 | ||
32973 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32974 | PyObject *resultobj; | |
32975 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32976 | wxString result; | |
32977 | PyObject * obj0 = 0 ; | |
32978 | char *kwnames[] = { | |
32979 | (char *) "self", NULL | |
32980 | }; | |
32981 | ||
32982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
32983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32985 | { |
32986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32987 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
32988 | ||
32989 | wxPyEndAllowThreads(__tstate); | |
32990 | if (PyErr_Occurred()) SWIG_fail; | |
32991 | } | |
32992 | { | |
32993 | #if wxUSE_UNICODE | |
32994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32995 | #else | |
32996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32997 | #endif | |
32998 | } | |
32999 | return resultobj; | |
33000 | fail: | |
33001 | return NULL; | |
33002 | } | |
33003 | ||
33004 | ||
33005 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33006 | PyObject *resultobj; | |
33007 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33008 | int arg2 ; | |
33009 | PyObject *result; | |
33010 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33012 | char *kwnames[] = { |
33013 | (char *) "self",(char *) "n", NULL | |
33014 | }; | |
33015 | ||
8edf1c75 | 33016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33019 | arg2 = (int) SWIG_AsInt(obj1); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33021 | { |
33022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33023 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33024 | ||
33025 | wxPyEndAllowThreads(__tstate); | |
33026 | if (PyErr_Occurred()) SWIG_fail; | |
33027 | } | |
33028 | resultobj = result; | |
33029 | return resultobj; | |
33030 | fail: | |
33031 | return NULL; | |
33032 | } | |
33033 | ||
33034 | ||
33035 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33036 | PyObject *resultobj; | |
33037 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33038 | int arg2 ; | |
33039 | PyObject *arg3 = (PyObject *) 0 ; | |
33040 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33042 | PyObject * obj2 = 0 ; |
33043 | char *kwnames[] = { | |
33044 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33045 | }; | |
33046 | ||
8edf1c75 | 33047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33050 | arg2 = (int) SWIG_AsInt(obj1); | |
33051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33052 | arg3 = obj2; |
33053 | { | |
33054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33055 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33056 | ||
33057 | wxPyEndAllowThreads(__tstate); | |
33058 | if (PyErr_Occurred()) SWIG_fail; | |
33059 | } | |
33060 | Py_INCREF(Py_None); resultobj = Py_None; | |
33061 | return resultobj; | |
33062 | fail: | |
33063 | return NULL; | |
33064 | } | |
33065 | ||
33066 | ||
33067 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33068 | PyObject *obj; | |
33069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33070 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33071 | Py_INCREF(obj); | |
33072 | return Py_BuildValue((char *)""); | |
33073 | } | |
33074 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33075 | PyObject *obj; | |
33076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33077 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33078 | Py_INCREF(obj); | |
33079 | return Py_BuildValue((char *)""); | |
33080 | } | |
33081 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33082 | PyObject *resultobj; | |
33083 | wxSizerItem *result; | |
33084 | char *kwnames[] = { | |
33085 | NULL | |
33086 | }; | |
33087 | ||
33088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33089 | { | |
33090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33091 | result = (wxSizerItem *)new wxSizerItem(); | |
33092 | ||
33093 | wxPyEndAllowThreads(__tstate); | |
33094 | if (PyErr_Occurred()) SWIG_fail; | |
33095 | } | |
2f4c0a16 | 33096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33097 | return resultobj; |
33098 | fail: | |
33099 | return NULL; | |
33100 | } | |
33101 | ||
33102 | ||
33103 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33104 | PyObject *resultobj; | |
33105 | int arg1 ; | |
33106 | int arg2 ; | |
33107 | int arg3 ; | |
33108 | int arg4 ; | |
33109 | int arg5 ; | |
33110 | wxObject *arg6 = (wxObject *) 0 ; | |
33111 | wxSizerItem *result; | |
8edf1c75 RD |
33112 | PyObject * obj0 = 0 ; |
33113 | PyObject * obj1 = 0 ; | |
33114 | PyObject * obj2 = 0 ; | |
33115 | PyObject * obj3 = 0 ; | |
33116 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33117 | PyObject * obj5 = 0 ; |
33118 | char *kwnames[] = { | |
33119 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33120 | }; | |
33121 | ||
8edf1c75 | 33122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
33123 | arg1 = (int) SWIG_AsInt(obj0); |
33124 | if (PyErr_Occurred()) SWIG_fail; | |
33125 | arg2 = (int) SWIG_AsInt(obj1); | |
33126 | if (PyErr_Occurred()) SWIG_fail; | |
33127 | arg3 = (int) SWIG_AsInt(obj2); | |
33128 | if (PyErr_Occurred()) SWIG_fail; | |
33129 | arg4 = (int) SWIG_AsInt(obj3); | |
33130 | if (PyErr_Occurred()) SWIG_fail; | |
33131 | arg5 = (int) SWIG_AsInt(obj4); | |
33132 | if (PyErr_Occurred()) SWIG_fail; | |
33133 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
33134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33135 | { |
33136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33137 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
33138 | ||
33139 | wxPyEndAllowThreads(__tstate); | |
33140 | if (PyErr_Occurred()) SWIG_fail; | |
33141 | } | |
2f4c0a16 | 33142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33143 | return resultobj; |
33144 | fail: | |
33145 | return NULL; | |
33146 | } | |
33147 | ||
33148 | ||
33149 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33150 | PyObject *resultobj; | |
33151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33152 | int arg2 ; | |
33153 | int arg3 ; | |
33154 | int arg4 ; | |
33155 | wxObject *arg5 = (wxObject *) 0 ; | |
33156 | wxSizerItem *result; | |
33157 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33158 | PyObject * obj1 = 0 ; |
33159 | PyObject * obj2 = 0 ; | |
33160 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33161 | PyObject * obj4 = 0 ; |
33162 | char *kwnames[] = { | |
33163 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33164 | }; | |
33165 | ||
8edf1c75 | 33166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33169 | arg2 = (int) SWIG_AsInt(obj1); | |
33170 | if (PyErr_Occurred()) SWIG_fail; | |
33171 | arg3 = (int) SWIG_AsInt(obj2); | |
33172 | if (PyErr_Occurred()) SWIG_fail; | |
33173 | arg4 = (int) SWIG_AsInt(obj3); | |
33174 | if (PyErr_Occurred()) SWIG_fail; | |
33175 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33177 | { |
33178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33179 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33180 | ||
33181 | wxPyEndAllowThreads(__tstate); | |
33182 | if (PyErr_Occurred()) SWIG_fail; | |
33183 | } | |
2f4c0a16 | 33184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33185 | return resultobj; |
33186 | fail: | |
33187 | return NULL; | |
33188 | } | |
33189 | ||
33190 | ||
33191 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33192 | PyObject *resultobj; | |
33193 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33194 | int arg2 ; | |
33195 | int arg3 ; | |
33196 | int arg4 ; | |
33197 | wxObject *arg5 = (wxObject *) 0 ; | |
33198 | wxSizerItem *result; | |
33199 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33200 | PyObject * obj1 = 0 ; |
33201 | PyObject * obj2 = 0 ; | |
33202 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33203 | PyObject * obj4 = 0 ; |
33204 | char *kwnames[] = { | |
33205 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33206 | }; | |
33207 | ||
8edf1c75 | 33208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
33209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33211 | arg2 = (int) SWIG_AsInt(obj1); | |
33212 | if (PyErr_Occurred()) SWIG_fail; | |
33213 | arg3 = (int) SWIG_AsInt(obj2); | |
33214 | if (PyErr_Occurred()) SWIG_fail; | |
33215 | arg4 = (int) SWIG_AsInt(obj3); | |
33216 | if (PyErr_Occurred()) SWIG_fail; | |
33217 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33219 | { |
33220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33221 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33222 | ||
33223 | wxPyEndAllowThreads(__tstate); | |
33224 | if (PyErr_Occurred()) SWIG_fail; | |
33225 | } | |
2f4c0a16 | 33226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33227 | return resultobj; |
33228 | fail: | |
33229 | return NULL; | |
33230 | } | |
33231 | ||
33232 | ||
33233 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33234 | PyObject *resultobj; | |
33235 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33236 | PyObject * obj0 = 0 ; | |
33237 | char *kwnames[] = { | |
33238 | (char *) "self", NULL | |
33239 | }; | |
33240 | ||
33241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33244 | { |
33245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33246 | (arg1)->DeleteWindows(); | |
33247 | ||
33248 | wxPyEndAllowThreads(__tstate); | |
33249 | if (PyErr_Occurred()) SWIG_fail; | |
33250 | } | |
33251 | Py_INCREF(Py_None); resultobj = Py_None; | |
33252 | return resultobj; | |
33253 | fail: | |
33254 | return NULL; | |
33255 | } | |
33256 | ||
33257 | ||
33258 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33259 | PyObject *resultobj; | |
33260 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33261 | PyObject * obj0 = 0 ; | |
33262 | char *kwnames[] = { | |
33263 | (char *) "self", NULL | |
33264 | }; | |
33265 | ||
33266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33269 | { |
33270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33271 | (arg1)->DetachSizer(); | |
33272 | ||
33273 | wxPyEndAllowThreads(__tstate); | |
33274 | if (PyErr_Occurred()) SWIG_fail; | |
33275 | } | |
33276 | Py_INCREF(Py_None); resultobj = Py_None; | |
33277 | return resultobj; | |
33278 | fail: | |
33279 | return NULL; | |
33280 | } | |
33281 | ||
33282 | ||
33283 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33284 | PyObject *resultobj; | |
33285 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33286 | wxSize result; | |
33287 | PyObject * obj0 = 0 ; | |
33288 | char *kwnames[] = { | |
33289 | (char *) "self", NULL | |
33290 | }; | |
33291 | ||
33292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33295 | { |
33296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33297 | result = (arg1)->GetSize(); | |
33298 | ||
33299 | wxPyEndAllowThreads(__tstate); | |
33300 | if (PyErr_Occurred()) SWIG_fail; | |
33301 | } | |
33302 | { | |
33303 | wxSize * resultptr; | |
33304 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33305 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33306 | } |
33307 | return resultobj; | |
33308 | fail: | |
33309 | return NULL; | |
33310 | } | |
33311 | ||
33312 | ||
33313 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33314 | PyObject *resultobj; | |
33315 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33316 | wxSize result; | |
33317 | PyObject * obj0 = 0 ; | |
33318 | char *kwnames[] = { | |
33319 | (char *) "self", NULL | |
33320 | }; | |
33321 | ||
33322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33325 | { |
33326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33327 | result = (arg1)->CalcMin(); | |
33328 | ||
33329 | wxPyEndAllowThreads(__tstate); | |
33330 | if (PyErr_Occurred()) SWIG_fail; | |
33331 | } | |
33332 | { | |
33333 | wxSize * resultptr; | |
33334 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33335 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33336 | } |
33337 | return resultobj; | |
33338 | fail: | |
33339 | return NULL; | |
33340 | } | |
33341 | ||
33342 | ||
33343 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33344 | PyObject *resultobj; | |
33345 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33346 | wxPoint arg2 ; | |
33347 | wxSize arg3 ; | |
33348 | wxPoint *argp2 ; | |
33349 | wxSize *argp3 ; | |
33350 | PyObject * obj0 = 0 ; | |
33351 | PyObject * obj1 = 0 ; | |
33352 | PyObject * obj2 = 0 ; | |
33353 | char *kwnames[] = { | |
33354 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33355 | }; | |
33356 | ||
33357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
33358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33360 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33361 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33362 | arg2 = *argp2; | |
33363 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33364 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33365 | arg3 = *argp3; | |
d14a1e28 RD |
33366 | { |
33367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33368 | (arg1)->SetDimension(arg2,arg3); | |
33369 | ||
33370 | wxPyEndAllowThreads(__tstate); | |
33371 | if (PyErr_Occurred()) SWIG_fail; | |
33372 | } | |
33373 | Py_INCREF(Py_None); resultobj = Py_None; | |
33374 | return resultobj; | |
33375 | fail: | |
33376 | return NULL; | |
33377 | } | |
33378 | ||
33379 | ||
33380 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33381 | PyObject *resultobj; | |
33382 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33383 | wxSize result; | |
33384 | PyObject * obj0 = 0 ; | |
33385 | char *kwnames[] = { | |
33386 | (char *) "self", NULL | |
33387 | }; | |
33388 | ||
33389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33392 | { |
33393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33394 | result = (arg1)->GetMinSize(); | |
33395 | ||
33396 | wxPyEndAllowThreads(__tstate); | |
33397 | if (PyErr_Occurred()) SWIG_fail; | |
33398 | } | |
33399 | { | |
33400 | wxSize * resultptr; | |
33401 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 33402 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33403 | } |
33404 | return resultobj; | |
33405 | fail: | |
33406 | return NULL; | |
33407 | } | |
33408 | ||
33409 | ||
33410 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33411 | PyObject *resultobj; | |
33412 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33413 | int arg2 ; | |
33414 | int arg3 ; | |
33415 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33416 | PyObject * obj1 = 0 ; |
33417 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33418 | char *kwnames[] = { |
33419 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33420 | }; | |
33421 | ||
8edf1c75 | 33422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33425 | arg2 = (int) SWIG_AsInt(obj1); | |
33426 | if (PyErr_Occurred()) SWIG_fail; | |
33427 | arg3 = (int) SWIG_AsInt(obj2); | |
33428 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33429 | { |
33430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33431 | (arg1)->SetInitSize(arg2,arg3); | |
33432 | ||
33433 | wxPyEndAllowThreads(__tstate); | |
33434 | if (PyErr_Occurred()) SWIG_fail; | |
33435 | } | |
33436 | Py_INCREF(Py_None); resultobj = Py_None; | |
33437 | return resultobj; | |
33438 | fail: | |
33439 | return NULL; | |
33440 | } | |
33441 | ||
33442 | ||
33443 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33444 | PyObject *resultobj; | |
33445 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33446 | int arg2 ; | |
33447 | int arg3 ; | |
33448 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
33449 | PyObject * obj1 = 0 ; |
33450 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33451 | char *kwnames[] = { |
33452 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33453 | }; | |
33454 | ||
8edf1c75 | 33455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
33456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33458 | arg2 = (int) SWIG_AsInt(obj1); | |
33459 | if (PyErr_Occurred()) SWIG_fail; | |
33460 | arg3 = (int) SWIG_AsInt(obj2); | |
33461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33462 | { |
33463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33464 | (arg1)->SetRatio(arg2,arg3); | |
33465 | ||
33466 | wxPyEndAllowThreads(__tstate); | |
33467 | if (PyErr_Occurred()) SWIG_fail; | |
33468 | } | |
33469 | Py_INCREF(Py_None); resultobj = Py_None; | |
33470 | return resultobj; | |
33471 | fail: | |
33472 | return NULL; | |
33473 | } | |
33474 | ||
33475 | ||
33476 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33477 | PyObject *resultobj; | |
33478 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33479 | wxSize arg2 ; | |
33480 | wxSize *argp2 ; | |
33481 | PyObject * obj0 = 0 ; | |
33482 | PyObject * obj1 = 0 ; | |
33483 | char *kwnames[] = { | |
33484 | (char *) "self",(char *) "size", NULL | |
33485 | }; | |
33486 | ||
33487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33490 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33491 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33492 | arg2 = *argp2; | |
d14a1e28 RD |
33493 | { |
33494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33495 | (arg1)->SetRatio(arg2); | |
33496 | ||
33497 | wxPyEndAllowThreads(__tstate); | |
33498 | if (PyErr_Occurred()) SWIG_fail; | |
33499 | } | |
33500 | Py_INCREF(Py_None); resultobj = Py_None; | |
33501 | return resultobj; | |
33502 | fail: | |
33503 | return NULL; | |
33504 | } | |
33505 | ||
33506 | ||
33507 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33508 | PyObject *resultobj; | |
33509 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33510 | float arg2 ; | |
33511 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33513 | char *kwnames[] = { |
33514 | (char *) "self",(char *) "ratio", NULL | |
33515 | }; | |
33516 | ||
8edf1c75 | 33517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33520 | arg2 = (float) SWIG_AsFloat(obj1); | |
33521 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33522 | { |
33523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33524 | (arg1)->SetRatio(arg2); | |
33525 | ||
33526 | wxPyEndAllowThreads(__tstate); | |
33527 | if (PyErr_Occurred()) SWIG_fail; | |
33528 | } | |
33529 | Py_INCREF(Py_None); resultobj = Py_None; | |
33530 | return resultobj; | |
33531 | fail: | |
33532 | return NULL; | |
33533 | } | |
33534 | ||
33535 | ||
33536 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33537 | PyObject *resultobj; | |
33538 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33539 | float result; | |
33540 | PyObject * obj0 = 0 ; | |
33541 | char *kwnames[] = { | |
33542 | (char *) "self", NULL | |
33543 | }; | |
33544 | ||
33545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33548 | { |
33549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33550 | result = (float)(arg1)->GetRatio(); | |
33551 | ||
33552 | wxPyEndAllowThreads(__tstate); | |
33553 | if (PyErr_Occurred()) SWIG_fail; | |
33554 | } | |
2f4c0a16 | 33555 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
33556 | return resultobj; |
33557 | fail: | |
33558 | return NULL; | |
33559 | } | |
33560 | ||
33561 | ||
33562 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33563 | PyObject *resultobj; | |
33564 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33565 | bool result; | |
33566 | PyObject * obj0 = 0 ; | |
33567 | char *kwnames[] = { | |
33568 | (char *) "self", NULL | |
33569 | }; | |
33570 | ||
33571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33574 | { |
33575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33576 | result = (bool)(arg1)->IsWindow(); | |
33577 | ||
33578 | wxPyEndAllowThreads(__tstate); | |
33579 | if (PyErr_Occurred()) SWIG_fail; | |
33580 | } | |
4f89f6a3 RD |
33581 | { |
33582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33583 | } | |
d14a1e28 RD |
33584 | return resultobj; |
33585 | fail: | |
33586 | return NULL; | |
33587 | } | |
33588 | ||
33589 | ||
33590 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33591 | PyObject *resultobj; | |
33592 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33593 | bool result; | |
33594 | PyObject * obj0 = 0 ; | |
33595 | char *kwnames[] = { | |
33596 | (char *) "self", NULL | |
33597 | }; | |
33598 | ||
33599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33602 | { |
33603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33604 | result = (bool)(arg1)->IsSizer(); | |
33605 | ||
33606 | wxPyEndAllowThreads(__tstate); | |
33607 | if (PyErr_Occurred()) SWIG_fail; | |
33608 | } | |
4f89f6a3 RD |
33609 | { |
33610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33611 | } | |
d14a1e28 RD |
33612 | return resultobj; |
33613 | fail: | |
33614 | return NULL; | |
33615 | } | |
33616 | ||
33617 | ||
33618 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33619 | PyObject *resultobj; | |
33620 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33621 | bool result; | |
33622 | PyObject * obj0 = 0 ; | |
33623 | char *kwnames[] = { | |
33624 | (char *) "self", NULL | |
33625 | }; | |
33626 | ||
33627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33630 | { |
33631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33632 | result = (bool)(arg1)->IsSpacer(); | |
33633 | ||
33634 | wxPyEndAllowThreads(__tstate); | |
33635 | if (PyErr_Occurred()) SWIG_fail; | |
33636 | } | |
4f89f6a3 RD |
33637 | { |
33638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33639 | } | |
d14a1e28 RD |
33640 | return resultobj; |
33641 | fail: | |
33642 | return NULL; | |
33643 | } | |
33644 | ||
33645 | ||
33646 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33647 | PyObject *resultobj; | |
33648 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33649 | int arg2 ; | |
33650 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33651 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33652 | char *kwnames[] = { |
33653 | (char *) "self",(char *) "proportion", NULL | |
33654 | }; | |
33655 | ||
8edf1c75 | 33656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33659 | arg2 = (int) SWIG_AsInt(obj1); | |
33660 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33661 | { |
33662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33663 | (arg1)->SetProportion(arg2); | |
33664 | ||
33665 | wxPyEndAllowThreads(__tstate); | |
33666 | if (PyErr_Occurred()) SWIG_fail; | |
33667 | } | |
33668 | Py_INCREF(Py_None); resultobj = Py_None; | |
33669 | return resultobj; | |
33670 | fail: | |
33671 | return NULL; | |
33672 | } | |
33673 | ||
33674 | ||
33675 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33676 | PyObject *resultobj; | |
33677 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33678 | int result; | |
33679 | PyObject * obj0 = 0 ; | |
33680 | char *kwnames[] = { | |
33681 | (char *) "self", NULL | |
33682 | }; | |
33683 | ||
33684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33687 | { |
33688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33689 | result = (int)(arg1)->GetProportion(); | |
33690 | ||
33691 | wxPyEndAllowThreads(__tstate); | |
33692 | if (PyErr_Occurred()) SWIG_fail; | |
33693 | } | |
2f4c0a16 | 33694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33695 | return resultobj; |
33696 | fail: | |
33697 | return NULL; | |
33698 | } | |
33699 | ||
33700 | ||
33701 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33702 | PyObject *resultobj; | |
33703 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33704 | int arg2 ; | |
33705 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33707 | char *kwnames[] = { |
33708 | (char *) "self",(char *) "flag", NULL | |
33709 | }; | |
33710 | ||
8edf1c75 | 33711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33714 | arg2 = (int) SWIG_AsInt(obj1); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33716 | { |
33717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33718 | (arg1)->SetFlag(arg2); | |
33719 | ||
33720 | wxPyEndAllowThreads(__tstate); | |
33721 | if (PyErr_Occurred()) SWIG_fail; | |
33722 | } | |
33723 | Py_INCREF(Py_None); resultobj = Py_None; | |
33724 | return resultobj; | |
33725 | fail: | |
33726 | return NULL; | |
33727 | } | |
33728 | ||
33729 | ||
33730 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33731 | PyObject *resultobj; | |
33732 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33733 | int result; | |
33734 | PyObject * obj0 = 0 ; | |
33735 | char *kwnames[] = { | |
33736 | (char *) "self", NULL | |
33737 | }; | |
33738 | ||
33739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33742 | { |
33743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33744 | result = (int)(arg1)->GetFlag(); | |
33745 | ||
33746 | wxPyEndAllowThreads(__tstate); | |
33747 | if (PyErr_Occurred()) SWIG_fail; | |
33748 | } | |
2f4c0a16 | 33749 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33750 | return resultobj; |
33751 | fail: | |
33752 | return NULL; | |
33753 | } | |
33754 | ||
33755 | ||
33756 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33757 | PyObject *resultobj; | |
33758 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33759 | int arg2 ; | |
33760 | PyObject * obj0 = 0 ; | |
8edf1c75 | 33761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33762 | char *kwnames[] = { |
33763 | (char *) "self",(char *) "border", NULL | |
33764 | }; | |
33765 | ||
8edf1c75 | 33766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
33767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33769 | arg2 = (int) SWIG_AsInt(obj1); | |
33770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33771 | { |
33772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33773 | (arg1)->SetBorder(arg2); | |
33774 | ||
33775 | wxPyEndAllowThreads(__tstate); | |
33776 | if (PyErr_Occurred()) SWIG_fail; | |
33777 | } | |
33778 | Py_INCREF(Py_None); resultobj = Py_None; | |
33779 | return resultobj; | |
33780 | fail: | |
33781 | return NULL; | |
33782 | } | |
33783 | ||
33784 | ||
33785 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33786 | PyObject *resultobj; | |
33787 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33788 | int result; | |
33789 | PyObject * obj0 = 0 ; | |
33790 | char *kwnames[] = { | |
33791 | (char *) "self", NULL | |
33792 | }; | |
33793 | ||
33794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33797 | { |
33798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33799 | result = (int)(arg1)->GetBorder(); | |
33800 | ||
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
2f4c0a16 | 33804 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33805 | return resultobj; |
33806 | fail: | |
33807 | return NULL; | |
33808 | } | |
33809 | ||
33810 | ||
33811 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33812 | PyObject *resultobj; | |
33813 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33814 | wxWindow *result; | |
33815 | PyObject * obj0 = 0 ; | |
33816 | char *kwnames[] = { | |
33817 | (char *) "self", NULL | |
33818 | }; | |
33819 | ||
33820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33823 | { |
33824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33825 | result = (wxWindow *)(arg1)->GetWindow(); | |
33826 | ||
33827 | wxPyEndAllowThreads(__tstate); | |
33828 | if (PyErr_Occurred()) SWIG_fail; | |
33829 | } | |
33830 | { | |
33831 | resultobj = wxPyMake_wxObject(result); | |
33832 | } | |
33833 | return resultobj; | |
33834 | fail: | |
33835 | return NULL; | |
33836 | } | |
33837 | ||
33838 | ||
33839 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33840 | PyObject *resultobj; | |
33841 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33842 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33843 | PyObject * obj0 = 0 ; | |
33844 | PyObject * obj1 = 0 ; | |
33845 | char *kwnames[] = { | |
33846 | (char *) "self",(char *) "window", NULL | |
33847 | }; | |
33848 | ||
33849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33854 | { |
33855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33856 | (arg1)->SetWindow(arg2); | |
33857 | ||
33858 | wxPyEndAllowThreads(__tstate); | |
33859 | if (PyErr_Occurred()) SWIG_fail; | |
33860 | } | |
33861 | Py_INCREF(Py_None); resultobj = Py_None; | |
33862 | return resultobj; | |
33863 | fail: | |
33864 | return NULL; | |
33865 | } | |
33866 | ||
33867 | ||
33868 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33869 | PyObject *resultobj; | |
33870 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33871 | wxSizer *result; | |
33872 | PyObject * obj0 = 0 ; | |
33873 | char *kwnames[] = { | |
33874 | (char *) "self", NULL | |
33875 | }; | |
33876 | ||
33877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33880 | { |
33881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33882 | result = (wxSizer *)(arg1)->GetSizer(); | |
33883 | ||
33884 | wxPyEndAllowThreads(__tstate); | |
33885 | if (PyErr_Occurred()) SWIG_fail; | |
33886 | } | |
33887 | { | |
33888 | resultobj = wxPyMake_wxSizer(result); | |
33889 | } | |
33890 | return resultobj; | |
33891 | fail: | |
33892 | return NULL; | |
33893 | } | |
33894 | ||
33895 | ||
33896 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33897 | PyObject *resultobj; | |
33898 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33899 | wxSizer *arg2 = (wxSizer *) 0 ; | |
33900 | PyObject * obj0 = 0 ; | |
33901 | PyObject * obj1 = 0 ; | |
33902 | char *kwnames[] = { | |
33903 | (char *) "self",(char *) "sizer", NULL | |
33904 | }; | |
33905 | ||
33906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
33910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33911 | { |
33912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33913 | (arg1)->SetSizer(arg2); | |
33914 | ||
33915 | wxPyEndAllowThreads(__tstate); | |
33916 | if (PyErr_Occurred()) SWIG_fail; | |
33917 | } | |
33918 | Py_INCREF(Py_None); resultobj = Py_None; | |
33919 | return resultobj; | |
33920 | fail: | |
33921 | return NULL; | |
33922 | } | |
33923 | ||
33924 | ||
33925 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33926 | PyObject *resultobj; | |
33927 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33928 | wxSize *result; | |
33929 | PyObject * obj0 = 0 ; | |
33930 | char *kwnames[] = { | |
33931 | (char *) "self", NULL | |
33932 | }; | |
33933 | ||
33934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
33935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33937 | { |
33938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33939 | { | |
33940 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
33941 | result = (wxSize *) &_result_ref; | |
33942 | } | |
33943 | ||
33944 | wxPyEndAllowThreads(__tstate); | |
33945 | if (PyErr_Occurred()) SWIG_fail; | |
33946 | } | |
2f4c0a16 | 33947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
33948 | return resultobj; |
33949 | fail: | |
33950 | return NULL; | |
33951 | } | |
33952 | ||
33953 | ||
33954 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33955 | PyObject *resultobj; | |
33956 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33957 | wxSize *arg2 = 0 ; | |
33958 | wxSize temp2 ; | |
33959 | PyObject * obj0 = 0 ; | |
33960 | PyObject * obj1 = 0 ; | |
33961 | char *kwnames[] = { | |
33962 | (char *) "self",(char *) "size", NULL | |
33963 | }; | |
33964 | ||
33965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33968 | { |
33969 | arg2 = &temp2; | |
33970 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33971 | } | |
33972 | { | |
33973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33974 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
33975 | ||
33976 | wxPyEndAllowThreads(__tstate); | |
33977 | if (PyErr_Occurred()) SWIG_fail; | |
33978 | } | |
33979 | Py_INCREF(Py_None); resultobj = Py_None; | |
33980 | return resultobj; | |
33981 | fail: | |
33982 | return NULL; | |
33983 | } | |
33984 | ||
33985 | ||
33986 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33987 | PyObject *resultobj; | |
33988 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33989 | bool arg2 ; | |
33990 | PyObject * obj0 = 0 ; | |
33991 | PyObject * obj1 = 0 ; | |
33992 | char *kwnames[] = { | |
33993 | (char *) "self",(char *) "show", NULL | |
33994 | }; | |
33995 | ||
33996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
33997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33999 | arg2 = (bool) SWIG_AsBool(obj1); | |
34000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34001 | { |
34002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34003 | (arg1)->Show(arg2); | |
34004 | ||
34005 | wxPyEndAllowThreads(__tstate); | |
34006 | if (PyErr_Occurred()) SWIG_fail; | |
34007 | } | |
34008 | Py_INCREF(Py_None); resultobj = Py_None; | |
34009 | return resultobj; | |
34010 | fail: | |
34011 | return NULL; | |
34012 | } | |
34013 | ||
34014 | ||
34015 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34016 | PyObject *resultobj; | |
34017 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34018 | bool result; | |
34019 | PyObject * obj0 = 0 ; | |
34020 | char *kwnames[] = { | |
34021 | (char *) "self", NULL | |
34022 | }; | |
34023 | ||
34024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34027 | { |
34028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34029 | result = (bool)(arg1)->IsShown(); | |
34030 | ||
34031 | wxPyEndAllowThreads(__tstate); | |
34032 | if (PyErr_Occurred()) SWIG_fail; | |
34033 | } | |
4f89f6a3 RD |
34034 | { |
34035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34036 | } | |
d14a1e28 RD |
34037 | return resultobj; |
34038 | fail: | |
34039 | return NULL; | |
34040 | } | |
34041 | ||
34042 | ||
34043 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34044 | PyObject *resultobj; | |
34045 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34046 | wxPoint result; | |
34047 | PyObject * obj0 = 0 ; | |
34048 | char *kwnames[] = { | |
34049 | (char *) "self", NULL | |
34050 | }; | |
34051 | ||
34052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34055 | { |
34056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34057 | result = (arg1)->GetPosition(); | |
34058 | ||
34059 | wxPyEndAllowThreads(__tstate); | |
34060 | if (PyErr_Occurred()) SWIG_fail; | |
34061 | } | |
34062 | { | |
34063 | wxPoint * resultptr; | |
34064 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 34065 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34066 | } |
34067 | return resultobj; | |
34068 | fail: | |
34069 | return NULL; | |
34070 | } | |
34071 | ||
34072 | ||
34073 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34074 | PyObject *resultobj; | |
34075 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34076 | PyObject *result; | |
34077 | PyObject * obj0 = 0 ; | |
34078 | char *kwnames[] = { | |
34079 | (char *) "self", NULL | |
34080 | }; | |
34081 | ||
34082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34085 | { |
34086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34087 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34088 | ||
34089 | wxPyEndAllowThreads(__tstate); | |
34090 | if (PyErr_Occurred()) SWIG_fail; | |
34091 | } | |
34092 | resultobj = result; | |
34093 | return resultobj; | |
34094 | fail: | |
34095 | return NULL; | |
34096 | } | |
34097 | ||
34098 | ||
34099 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34100 | PyObject *obj; | |
34101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34102 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34103 | Py_INCREF(obj); | |
34104 | return Py_BuildValue((char *)""); | |
34105 | } | |
34106 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34107 | PyObject *resultobj; | |
34108 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34109 | PyObject *arg2 = (PyObject *) 0 ; | |
34110 | PyObject * obj0 = 0 ; | |
34111 | PyObject * obj1 = 0 ; | |
34112 | char *kwnames[] = { | |
34113 | (char *) "self",(char *) "_self", NULL | |
34114 | }; | |
34115 | ||
34116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34119 | arg2 = obj1; |
34120 | { | |
34121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34122 | wxSizer__setOORInfo(arg1,arg2); | |
34123 | ||
34124 | wxPyEndAllowThreads(__tstate); | |
34125 | if (PyErr_Occurred()) SWIG_fail; | |
34126 | } | |
34127 | Py_INCREF(Py_None); resultobj = Py_None; | |
34128 | return resultobj; | |
34129 | fail: | |
34130 | return NULL; | |
34131 | } | |
34132 | ||
34133 | ||
34134 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34135 | PyObject *resultobj; | |
34136 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34137 | PyObject *arg2 = (PyObject *) 0 ; | |
34138 | int arg3 = (int) 0 ; | |
34139 | int arg4 = (int) 0 ; | |
34140 | int arg5 = (int) 0 ; | |
34141 | PyObject *arg6 = (PyObject *) NULL ; | |
34142 | PyObject * obj0 = 0 ; | |
34143 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
34144 | PyObject * obj2 = 0 ; |
34145 | PyObject * obj3 = 0 ; | |
34146 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34147 | PyObject * obj5 = 0 ; |
34148 | char *kwnames[] = { | |
34149 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34150 | }; | |
34151 | ||
8edf1c75 | 34152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
34153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34155 | arg2 = obj1; |
8edf1c75 | 34156 | if (obj2) { |
2f4c0a16 RD |
34157 | arg3 = (int) SWIG_AsInt(obj2); |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34159 | } |
34160 | if (obj3) { | |
2f4c0a16 RD |
34161 | arg4 = (int) SWIG_AsInt(obj3); |
34162 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34163 | } |
34164 | if (obj4) { | |
2f4c0a16 RD |
34165 | arg5 = (int) SWIG_AsInt(obj4); |
34166 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34167 | } |
d14a1e28 RD |
34168 | if (obj5) { |
34169 | arg6 = obj5; | |
34170 | } | |
34171 | { | |
34172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34173 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34174 | ||
34175 | wxPyEndAllowThreads(__tstate); | |
34176 | if (PyErr_Occurred()) SWIG_fail; | |
34177 | } | |
34178 | Py_INCREF(Py_None); resultobj = Py_None; | |
34179 | return resultobj; | |
34180 | fail: | |
34181 | return NULL; | |
34182 | } | |
34183 | ||
34184 | ||
34185 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34186 | PyObject *resultobj; | |
34187 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34188 | int arg2 ; | |
34189 | PyObject *arg3 = (PyObject *) 0 ; | |
34190 | int arg4 = (int) 0 ; | |
34191 | int arg5 = (int) 0 ; | |
34192 | int arg6 = (int) 0 ; | |
34193 | PyObject *arg7 = (PyObject *) NULL ; | |
34194 | PyObject * obj0 = 0 ; | |
8edf1c75 | 34195 | PyObject * obj1 = 0 ; |
d14a1e28 | 34196 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
34197 | PyObject * obj3 = 0 ; |
34198 | PyObject * obj4 = 0 ; | |
34199 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
34200 | PyObject * obj6 = 0 ; |
34201 | char *kwnames[] = { | |
34202 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34203 | }; | |
34204 | ||
8edf1c75 | 34205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
34206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34208 | arg2 = (int) SWIG_AsInt(obj1); | |
34209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 34210 | arg3 = obj2; |
8edf1c75 | 34211 | if (obj3) { |
2f4c0a16 RD |
34212 | arg4 = (int) SWIG_AsInt(obj3); |
34213 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34214 | } |
34215 | if (obj4) { | |
2f4c0a16 RD |
34216 | arg5 = (int) SWIG_AsInt(obj4); |
34217 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34218 | } |
34219 | if (obj5) { | |
2f4c0a16 RD |
34220 | arg6 = (int) SWIG_AsInt(obj5); |
34221 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34222 | } |
d14a1e28 RD |
34223 | if (obj6) { |
34224 | arg7 = obj6; | |
34225 | } | |
34226 | { | |
34227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34228 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34229 | ||
34230 | wxPyEndAllowThreads(__tstate); | |
34231 | if (PyErr_Occurred()) SWIG_fail; | |
34232 | } | |
34233 | Py_INCREF(Py_None); resultobj = Py_None; | |
34234 | return resultobj; | |
34235 | fail: | |
34236 | return NULL; | |
34237 | } | |
34238 | ||
34239 | ||
34240 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34241 | PyObject *resultobj; | |
34242 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34243 | PyObject *arg2 = (PyObject *) 0 ; | |
34244 | int arg3 = (int) 0 ; | |
34245 | int arg4 = (int) 0 ; | |
34246 | int arg5 = (int) 0 ; | |
34247 | PyObject *arg6 = (PyObject *) NULL ; | |
34248 | PyObject * obj0 = 0 ; | |
34249 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
34250 | PyObject * obj2 = 0 ; |
34251 | PyObject * obj3 = 0 ; | |
34252 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34253 | PyObject * obj5 = 0 ; |
34254 | char *kwnames[] = { | |
34255 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34256 | }; | |
34257 | ||
8edf1c75 | 34258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
34259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34261 | arg2 = obj1; |
8edf1c75 | 34262 | if (obj2) { |
2f4c0a16 RD |
34263 | arg3 = (int) SWIG_AsInt(obj2); |
34264 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34265 | } |
34266 | if (obj3) { | |
2f4c0a16 RD |
34267 | arg4 = (int) SWIG_AsInt(obj3); |
34268 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
34269 | } |
34270 | if (obj4) { | |
2f4c0a16 RD |
34271 | arg5 = (int) SWIG_AsInt(obj4); |
34272 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 34273 | } |
d14a1e28 RD |
34274 | if (obj5) { |
34275 | arg6 = obj5; | |
34276 | } | |
34277 | { | |
34278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34279 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34280 | ||
34281 | wxPyEndAllowThreads(__tstate); | |
34282 | if (PyErr_Occurred()) SWIG_fail; | |
34283 | } | |
34284 | Py_INCREF(Py_None); resultobj = Py_None; | |
34285 | return resultobj; | |
34286 | fail: | |
34287 | return NULL; | |
34288 | } | |
34289 | ||
34290 | ||
34291 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34292 | PyObject *resultobj; | |
34293 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34294 | PyObject *arg2 = (PyObject *) 0 ; | |
34295 | bool result; | |
34296 | PyObject * obj0 = 0 ; | |
34297 | PyObject * obj1 = 0 ; | |
34298 | char *kwnames[] = { | |
34299 | (char *) "self",(char *) "item", NULL | |
34300 | }; | |
34301 | ||
34302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34305 | arg2 = obj1; |
34306 | { | |
34307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34308 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34309 | ||
34310 | wxPyEndAllowThreads(__tstate); | |
34311 | if (PyErr_Occurred()) SWIG_fail; | |
34312 | } | |
4f89f6a3 RD |
34313 | { |
34314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34315 | } | |
d14a1e28 RD |
34316 | return resultobj; |
34317 | fail: | |
34318 | return NULL; | |
34319 | } | |
34320 | ||
34321 | ||
34322 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34323 | PyObject *resultobj; | |
34324 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34325 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a RD |
34326 | wxSize *arg3 = 0 ; |
34327 | wxSize temp3 ; | |
d14a1e28 RD |
34328 | PyObject * obj0 = 0 ; |
34329 | PyObject * obj1 = 0 ; | |
34330 | PyObject * obj2 = 0 ; | |
34331 | char *kwnames[] = { | |
34332 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34333 | }; | |
34334 | ||
34335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34338 | arg2 = obj1; |
423f194a RD |
34339 | { |
34340 | arg3 = &temp3; | |
34341 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34342 | } | |
d14a1e28 RD |
34343 | { |
34344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 34345 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
34346 | |
34347 | wxPyEndAllowThreads(__tstate); | |
34348 | if (PyErr_Occurred()) SWIG_fail; | |
34349 | } | |
34350 | Py_INCREF(Py_None); resultobj = Py_None; | |
34351 | return resultobj; | |
34352 | fail: | |
34353 | return NULL; | |
34354 | } | |
34355 | ||
34356 | ||
34357 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34358 | PyObject *resultobj; | |
34359 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34360 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34361 | PyObject * obj0 = 0 ; | |
34362 | PyObject * obj1 = 0 ; | |
34363 | char *kwnames[] = { | |
34364 | (char *) "self",(char *) "item", NULL | |
34365 | }; | |
34366 | ||
34367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34372 | { |
34373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34374 | (arg1)->Add(arg2); | |
34375 | ||
34376 | wxPyEndAllowThreads(__tstate); | |
34377 | if (PyErr_Occurred()) SWIG_fail; | |
34378 | } | |
34379 | Py_INCREF(Py_None); resultobj = Py_None; | |
34380 | return resultobj; | |
34381 | fail: | |
34382 | return NULL; | |
34383 | } | |
34384 | ||
34385 | ||
34386 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34387 | PyObject *resultobj; | |
34388 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34389 | size_t arg2 ; | |
34390 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34391 | PyObject * obj0 = 0 ; | |
34392 | PyObject * obj1 = 0 ; | |
34393 | PyObject * obj2 = 0 ; | |
34394 | char *kwnames[] = { | |
34395 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34396 | }; | |
34397 | ||
34398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34401 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34402 | if (PyErr_Occurred()) SWIG_fail; | |
34403 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34405 | { |
34406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34407 | (arg1)->Insert(arg2,arg3); | |
34408 | ||
34409 | wxPyEndAllowThreads(__tstate); | |
34410 | if (PyErr_Occurred()) SWIG_fail; | |
34411 | } | |
34412 | Py_INCREF(Py_None); resultobj = Py_None; | |
34413 | return resultobj; | |
34414 | fail: | |
34415 | return NULL; | |
34416 | } | |
34417 | ||
34418 | ||
34419 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34420 | PyObject *resultobj; | |
34421 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34422 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34423 | PyObject * obj0 = 0 ; | |
34424 | PyObject * obj1 = 0 ; | |
34425 | char *kwnames[] = { | |
34426 | (char *) "self",(char *) "item", NULL | |
34427 | }; | |
34428 | ||
34429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34434 | { |
34435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34436 | (arg1)->Prepend(arg2); | |
34437 | ||
34438 | wxPyEndAllowThreads(__tstate); | |
34439 | if (PyErr_Occurred()) SWIG_fail; | |
34440 | } | |
34441 | Py_INCREF(Py_None); resultobj = Py_None; | |
34442 | return resultobj; | |
34443 | fail: | |
34444 | return NULL; | |
34445 | } | |
34446 | ||
34447 | ||
34448 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34449 | PyObject *resultobj; | |
34450 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34451 | int arg2 ; | |
34452 | int arg3 ; | |
34453 | int arg4 ; | |
34454 | int arg5 ; | |
34455 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
34456 | PyObject * obj1 = 0 ; |
34457 | PyObject * obj2 = 0 ; | |
34458 | PyObject * obj3 = 0 ; | |
34459 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34460 | char *kwnames[] = { |
34461 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34462 | }; | |
34463 | ||
8edf1c75 | 34464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
34465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34467 | arg2 = (int) SWIG_AsInt(obj1); | |
34468 | if (PyErr_Occurred()) SWIG_fail; | |
34469 | arg3 = (int) SWIG_AsInt(obj2); | |
34470 | if (PyErr_Occurred()) SWIG_fail; | |
34471 | arg4 = (int) SWIG_AsInt(obj3); | |
34472 | if (PyErr_Occurred()) SWIG_fail; | |
34473 | arg5 = (int) SWIG_AsInt(obj4); | |
34474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34475 | { |
34476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34477 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
34478 | ||
34479 | wxPyEndAllowThreads(__tstate); | |
34480 | if (PyErr_Occurred()) SWIG_fail; | |
34481 | } | |
34482 | Py_INCREF(Py_None); resultobj = Py_None; | |
34483 | return resultobj; | |
34484 | fail: | |
34485 | return NULL; | |
34486 | } | |
34487 | ||
34488 | ||
34489 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34490 | PyObject *resultobj; | |
34491 | wxSizer *arg1 = (wxSizer *) 0 ; | |
a64def11 RD |
34492 | wxSize *arg2 = 0 ; |
34493 | wxSize temp2 ; | |
d14a1e28 RD |
34494 | PyObject * obj0 = 0 ; |
34495 | PyObject * obj1 = 0 ; | |
34496 | char *kwnames[] = { | |
34497 | (char *) "self",(char *) "size", NULL | |
34498 | }; | |
34499 | ||
34500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a64def11 RD |
34503 | { |
34504 | arg2 = &temp2; | |
34505 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34506 | } | |
d14a1e28 RD |
34507 | { |
34508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a64def11 | 34509 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
34510 | |
34511 | wxPyEndAllowThreads(__tstate); | |
34512 | if (PyErr_Occurred()) SWIG_fail; | |
34513 | } | |
34514 | Py_INCREF(Py_None); resultobj = Py_None; | |
34515 | return resultobj; | |
34516 | fail: | |
34517 | return NULL; | |
34518 | } | |
34519 | ||
34520 | ||
34521 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34522 | PyObject *resultobj; | |
34523 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34524 | wxSize result; | |
34525 | PyObject * obj0 = 0 ; | |
34526 | char *kwnames[] = { | |
34527 | (char *) "self", NULL | |
34528 | }; | |
34529 | ||
34530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34533 | { |
34534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34535 | result = (arg1)->GetSize(); | |
34536 | ||
34537 | wxPyEndAllowThreads(__tstate); | |
34538 | if (PyErr_Occurred()) SWIG_fail; | |
34539 | } | |
34540 | { | |
34541 | wxSize * resultptr; | |
34542 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34544 | } |
34545 | return resultobj; | |
34546 | fail: | |
34547 | return NULL; | |
34548 | } | |
34549 | ||
34550 | ||
34551 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34552 | PyObject *resultobj; | |
34553 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34554 | wxPoint result; | |
34555 | PyObject * obj0 = 0 ; | |
34556 | char *kwnames[] = { | |
34557 | (char *) "self", NULL | |
34558 | }; | |
34559 | ||
34560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34563 | { |
34564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34565 | result = (arg1)->GetPosition(); | |
34566 | ||
34567 | wxPyEndAllowThreads(__tstate); | |
34568 | if (PyErr_Occurred()) SWIG_fail; | |
34569 | } | |
34570 | { | |
34571 | wxPoint * resultptr; | |
34572 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 34573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34574 | } |
34575 | return resultobj; | |
34576 | fail: | |
34577 | return NULL; | |
34578 | } | |
34579 | ||
34580 | ||
34581 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34582 | PyObject *resultobj; | |
34583 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34584 | wxSize result; | |
34585 | PyObject * obj0 = 0 ; | |
34586 | char *kwnames[] = { | |
34587 | (char *) "self", NULL | |
34588 | }; | |
34589 | ||
34590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34593 | { |
34594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34595 | result = (arg1)->GetMinSize(); | |
34596 | ||
34597 | wxPyEndAllowThreads(__tstate); | |
34598 | if (PyErr_Occurred()) SWIG_fail; | |
34599 | } | |
34600 | { | |
34601 | wxSize * resultptr; | |
34602 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34604 | } |
34605 | return resultobj; | |
34606 | fail: | |
34607 | return NULL; | |
34608 | } | |
34609 | ||
34610 | ||
34611 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34612 | PyObject *resultobj; | |
34613 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34614 | PyObject * obj0 = 0 ; | |
34615 | char *kwnames[] = { | |
34616 | (char *) "self", NULL | |
34617 | }; | |
34618 | ||
34619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34622 | { |
34623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34624 | (arg1)->RecalcSizes(); | |
34625 | ||
34626 | wxPyEndAllowThreads(__tstate); | |
34627 | if (PyErr_Occurred()) SWIG_fail; | |
34628 | } | |
34629 | Py_INCREF(Py_None); resultobj = Py_None; | |
34630 | return resultobj; | |
34631 | fail: | |
34632 | return NULL; | |
34633 | } | |
34634 | ||
34635 | ||
34636 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34637 | PyObject *resultobj; | |
34638 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34639 | wxSize result; | |
34640 | PyObject * obj0 = 0 ; | |
34641 | char *kwnames[] = { | |
34642 | (char *) "self", NULL | |
34643 | }; | |
34644 | ||
34645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34648 | { |
34649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34650 | result = (arg1)->CalcMin(); | |
34651 | ||
34652 | wxPyEndAllowThreads(__tstate); | |
34653 | if (PyErr_Occurred()) SWIG_fail; | |
34654 | } | |
34655 | { | |
34656 | wxSize * resultptr; | |
34657 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34659 | } |
34660 | return resultobj; | |
34661 | fail: | |
34662 | return NULL; | |
34663 | } | |
34664 | ||
34665 | ||
34666 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34667 | PyObject *resultobj; | |
34668 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34669 | PyObject * obj0 = 0 ; | |
34670 | char *kwnames[] = { | |
34671 | (char *) "self", NULL | |
34672 | }; | |
34673 | ||
34674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34677 | { |
34678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34679 | (arg1)->Layout(); | |
34680 | ||
34681 | wxPyEndAllowThreads(__tstate); | |
34682 | if (PyErr_Occurred()) SWIG_fail; | |
34683 | } | |
34684 | Py_INCREF(Py_None); resultobj = Py_None; | |
34685 | return resultobj; | |
34686 | fail: | |
34687 | return NULL; | |
34688 | } | |
34689 | ||
34690 | ||
34691 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34692 | PyObject *resultobj; | |
34693 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34694 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34695 | wxSize result; | |
34696 | PyObject * obj0 = 0 ; | |
34697 | PyObject * obj1 = 0 ; | |
34698 | char *kwnames[] = { | |
34699 | (char *) "self",(char *) "window", NULL | |
34700 | }; | |
34701 | ||
34702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34707 | { |
34708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34709 | result = (arg1)->Fit(arg2); | |
34710 | ||
34711 | wxPyEndAllowThreads(__tstate); | |
34712 | if (PyErr_Occurred()) SWIG_fail; | |
34713 | } | |
34714 | { | |
34715 | wxSize * resultptr; | |
34716 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 34717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34718 | } |
34719 | return resultobj; | |
34720 | fail: | |
34721 | return NULL; | |
34722 | } | |
34723 | ||
34724 | ||
34725 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34726 | PyObject *resultobj; | |
34727 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34728 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34729 | PyObject * obj0 = 0 ; | |
34730 | PyObject * obj1 = 0 ; | |
34731 | char *kwnames[] = { | |
34732 | (char *) "self",(char *) "window", NULL | |
34733 | }; | |
34734 | ||
34735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34740 | { |
34741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34742 | (arg1)->FitInside(arg2); | |
34743 | ||
34744 | wxPyEndAllowThreads(__tstate); | |
34745 | if (PyErr_Occurred()) SWIG_fail; | |
34746 | } | |
34747 | Py_INCREF(Py_None); resultobj = Py_None; | |
34748 | return resultobj; | |
34749 | fail: | |
34750 | return NULL; | |
34751 | } | |
34752 | ||
34753 | ||
34754 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34755 | PyObject *resultobj; | |
34756 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34757 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34758 | PyObject * obj0 = 0 ; | |
34759 | PyObject * obj1 = 0 ; | |
34760 | char *kwnames[] = { | |
34761 | (char *) "self",(char *) "window", NULL | |
34762 | }; | |
34763 | ||
34764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34769 | { |
34770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34771 | (arg1)->SetSizeHints(arg2); | |
34772 | ||
34773 | wxPyEndAllowThreads(__tstate); | |
34774 | if (PyErr_Occurred()) SWIG_fail; | |
34775 | } | |
34776 | Py_INCREF(Py_None); resultobj = Py_None; | |
34777 | return resultobj; | |
34778 | fail: | |
34779 | return NULL; | |
34780 | } | |
34781 | ||
34782 | ||
34783 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34784 | PyObject *resultobj; | |
34785 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34786 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34787 | PyObject * obj0 = 0 ; | |
34788 | PyObject * obj1 = 0 ; | |
34789 | char *kwnames[] = { | |
34790 | (char *) "self",(char *) "window", NULL | |
34791 | }; | |
34792 | ||
34793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34798 | { |
34799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34800 | (arg1)->SetVirtualSizeHints(arg2); | |
34801 | ||
34802 | wxPyEndAllowThreads(__tstate); | |
34803 | if (PyErr_Occurred()) SWIG_fail; | |
34804 | } | |
34805 | Py_INCREF(Py_None); resultobj = Py_None; | |
34806 | return resultobj; | |
34807 | fail: | |
34808 | return NULL; | |
34809 | } | |
34810 | ||
34811 | ||
34812 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34813 | PyObject *resultobj; | |
34814 | wxSizer *arg1 = (wxSizer *) 0 ; | |
423f194a | 34815 | bool arg2 = (bool) False ; |
d14a1e28 RD |
34816 | PyObject * obj0 = 0 ; |
34817 | PyObject * obj1 = 0 ; | |
34818 | char *kwnames[] = { | |
34819 | (char *) "self",(char *) "delete_windows", NULL | |
34820 | }; | |
34821 | ||
34822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34825 | if (obj1) { |
2f4c0a16 RD |
34826 | arg2 = (bool) SWIG_AsBool(obj1); |
34827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34828 | } |
34829 | { | |
34830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34831 | (arg1)->Clear(arg2); | |
34832 | ||
34833 | wxPyEndAllowThreads(__tstate); | |
34834 | if (PyErr_Occurred()) SWIG_fail; | |
34835 | } | |
34836 | Py_INCREF(Py_None); resultobj = Py_None; | |
34837 | return resultobj; | |
34838 | fail: | |
34839 | return NULL; | |
34840 | } | |
34841 | ||
34842 | ||
34843 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34844 | PyObject *resultobj; | |
34845 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34846 | PyObject * obj0 = 0 ; | |
34847 | char *kwnames[] = { | |
34848 | (char *) "self", NULL | |
34849 | }; | |
34850 | ||
34851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34854 | { |
34855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34856 | (arg1)->DeleteWindows(); | |
34857 | ||
34858 | wxPyEndAllowThreads(__tstate); | |
34859 | if (PyErr_Occurred()) SWIG_fail; | |
34860 | } | |
34861 | Py_INCREF(Py_None); resultobj = Py_None; | |
34862 | return resultobj; | |
34863 | fail: | |
34864 | return NULL; | |
34865 | } | |
34866 | ||
34867 | ||
34868 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34869 | PyObject *resultobj; | |
34870 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34871 | PyObject *result; | |
34872 | PyObject * obj0 = 0 ; | |
34873 | char *kwnames[] = { | |
34874 | (char *) "self", NULL | |
34875 | }; | |
34876 | ||
34877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
34878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34880 | { |
34881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34882 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
34883 | ||
34884 | wxPyEndAllowThreads(__tstate); | |
34885 | if (PyErr_Occurred()) SWIG_fail; | |
34886 | } | |
34887 | resultobj = result; | |
34888 | return resultobj; | |
34889 | fail: | |
34890 | return NULL; | |
34891 | } | |
34892 | ||
34893 | ||
34894 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34895 | PyObject *resultobj; | |
34896 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34897 | PyObject *arg2 = (PyObject *) 0 ; | |
423f194a | 34898 | bool arg3 = (bool) True ; |
d14a1e28 RD |
34899 | PyObject * obj0 = 0 ; |
34900 | PyObject * obj1 = 0 ; | |
34901 | PyObject * obj2 = 0 ; | |
34902 | char *kwnames[] = { | |
34903 | (char *) "self",(char *) "item",(char *) "show", NULL | |
34904 | }; | |
34905 | ||
34906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
34907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34909 | arg2 = obj1; |
34910 | if (obj2) { | |
2f4c0a16 RD |
34911 | arg3 = (bool) SWIG_AsBool(obj2); |
34912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34913 | } |
34914 | { | |
34915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34916 | wxSizer_Show(arg1,arg2,arg3); | |
34917 | ||
34918 | wxPyEndAllowThreads(__tstate); | |
34919 | if (PyErr_Occurred()) SWIG_fail; | |
34920 | } | |
34921 | Py_INCREF(Py_None); resultobj = Py_None; | |
34922 | return resultobj; | |
34923 | fail: | |
34924 | return NULL; | |
34925 | } | |
34926 | ||
34927 | ||
34928 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34929 | PyObject *resultobj; | |
34930 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34931 | PyObject *arg2 = (PyObject *) 0 ; | |
34932 | PyObject * obj0 = 0 ; | |
34933 | PyObject * obj1 = 0 ; | |
34934 | char *kwnames[] = { | |
34935 | (char *) "self",(char *) "item", NULL | |
34936 | }; | |
34937 | ||
34938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34941 | arg2 = obj1; |
34942 | { | |
34943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34944 | wxSizer_Hide(arg1,arg2); | |
34945 | ||
34946 | wxPyEndAllowThreads(__tstate); | |
34947 | if (PyErr_Occurred()) SWIG_fail; | |
34948 | } | |
34949 | Py_INCREF(Py_None); resultobj = Py_None; | |
34950 | return resultobj; | |
34951 | fail: | |
34952 | return NULL; | |
34953 | } | |
34954 | ||
34955 | ||
34956 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34957 | PyObject *resultobj; | |
34958 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34959 | PyObject *arg2 = (PyObject *) 0 ; | |
34960 | bool result; | |
34961 | PyObject * obj0 = 0 ; | |
34962 | PyObject * obj1 = 0 ; | |
34963 | char *kwnames[] = { | |
34964 | (char *) "self",(char *) "item", NULL | |
34965 | }; | |
34966 | ||
34967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34970 | arg2 = obj1; |
34971 | { | |
34972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34973 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
34974 | ||
34975 | wxPyEndAllowThreads(__tstate); | |
34976 | if (PyErr_Occurred()) SWIG_fail; | |
34977 | } | |
4f89f6a3 RD |
34978 | { |
34979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34980 | } | |
d14a1e28 RD |
34981 | return resultobj; |
34982 | fail: | |
34983 | return NULL; | |
34984 | } | |
34985 | ||
34986 | ||
34987 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34988 | PyObject *resultobj; | |
34989 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34990 | bool arg2 ; | |
34991 | PyObject * obj0 = 0 ; | |
34992 | PyObject * obj1 = 0 ; | |
34993 | char *kwnames[] = { | |
34994 | (char *) "self",(char *) "show", NULL | |
34995 | }; | |
34996 | ||
34997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
34998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35000 | arg2 = (bool) SWIG_AsBool(obj1); | |
35001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35002 | { |
35003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35004 | (arg1)->ShowItems(arg2); | |
35005 | ||
35006 | wxPyEndAllowThreads(__tstate); | |
35007 | if (PyErr_Occurred()) SWIG_fail; | |
35008 | } | |
35009 | Py_INCREF(Py_None); resultobj = Py_None; | |
35010 | return resultobj; | |
35011 | fail: | |
35012 | return NULL; | |
35013 | } | |
35014 | ||
35015 | ||
35016 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35017 | PyObject *obj; | |
35018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35019 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35020 | Py_INCREF(obj); | |
35021 | return Py_BuildValue((char *)""); | |
35022 | } | |
35023 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35024 | PyObject *resultobj; | |
35025 | wxPySizer *result; | |
35026 | char *kwnames[] = { | |
35027 | NULL | |
35028 | }; | |
35029 | ||
35030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35031 | { | |
35032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35033 | result = (wxPySizer *)new wxPySizer(); | |
35034 | ||
35035 | wxPyEndAllowThreads(__tstate); | |
35036 | if (PyErr_Occurred()) SWIG_fail; | |
35037 | } | |
2f4c0a16 | 35038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35039 | return resultobj; |
35040 | fail: | |
35041 | return NULL; | |
35042 | } | |
35043 | ||
35044 | ||
35045 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35046 | PyObject *resultobj; | |
35047 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35048 | PyObject *arg2 = (PyObject *) 0 ; | |
35049 | PyObject *arg3 = (PyObject *) 0 ; | |
35050 | PyObject * obj0 = 0 ; | |
35051 | PyObject * obj1 = 0 ; | |
35052 | PyObject * obj2 = 0 ; | |
35053 | char *kwnames[] = { | |
35054 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35055 | }; | |
35056 | ||
35057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
35058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35060 | arg2 = obj1; |
35061 | arg3 = obj2; | |
35062 | { | |
35063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35064 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35065 | ||
35066 | wxPyEndAllowThreads(__tstate); | |
35067 | if (PyErr_Occurred()) SWIG_fail; | |
35068 | } | |
35069 | Py_INCREF(Py_None); resultobj = Py_None; | |
35070 | return resultobj; | |
35071 | fail: | |
35072 | return NULL; | |
35073 | } | |
35074 | ||
35075 | ||
35076 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35077 | PyObject *obj; | |
35078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35079 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35080 | Py_INCREF(obj); | |
35081 | return Py_BuildValue((char *)""); | |
35082 | } | |
35083 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35084 | PyObject *resultobj; | |
35085 | int arg1 = (int) wxHORIZONTAL ; | |
35086 | wxBoxSizer *result; | |
8edf1c75 | 35087 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35088 | char *kwnames[] = { |
35089 | (char *) "orient", NULL | |
35090 | }; | |
35091 | ||
8edf1c75 RD |
35092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35093 | if (obj0) { | |
2f4c0a16 RD |
35094 | arg1 = (int) SWIG_AsInt(obj0); |
35095 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35096 | } |
d14a1e28 RD |
35097 | { |
35098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35099 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35100 | ||
35101 | wxPyEndAllowThreads(__tstate); | |
35102 | if (PyErr_Occurred()) SWIG_fail; | |
35103 | } | |
2f4c0a16 | 35104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35105 | return resultobj; |
35106 | fail: | |
35107 | return NULL; | |
35108 | } | |
35109 | ||
35110 | ||
35111 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35112 | PyObject *resultobj; | |
35113 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35114 | int result; | |
35115 | PyObject * obj0 = 0 ; | |
35116 | char *kwnames[] = { | |
35117 | (char *) "self", NULL | |
35118 | }; | |
35119 | ||
35120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35123 | { |
35124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35125 | result = (int)(arg1)->GetOrientation(); | |
35126 | ||
35127 | wxPyEndAllowThreads(__tstate); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
2f4c0a16 | 35130 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35131 | return resultobj; |
35132 | fail: | |
35133 | return NULL; | |
35134 | } | |
35135 | ||
35136 | ||
35137 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35138 | PyObject *resultobj; | |
35139 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35140 | int arg2 ; | |
35141 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35143 | char *kwnames[] = { |
35144 | (char *) "self",(char *) "orient", NULL | |
35145 | }; | |
35146 | ||
8edf1c75 | 35147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35150 | arg2 = (int) SWIG_AsInt(obj1); | |
35151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35152 | { |
35153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35154 | (arg1)->SetOrientation(arg2); | |
35155 | ||
35156 | wxPyEndAllowThreads(__tstate); | |
35157 | if (PyErr_Occurred()) SWIG_fail; | |
35158 | } | |
35159 | Py_INCREF(Py_None); resultobj = Py_None; | |
35160 | return resultobj; | |
35161 | fail: | |
35162 | return NULL; | |
35163 | } | |
35164 | ||
35165 | ||
35166 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35167 | PyObject *resultobj; | |
35168 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35169 | PyObject * obj0 = 0 ; | |
35170 | char *kwnames[] = { | |
35171 | (char *) "self", NULL | |
35172 | }; | |
35173 | ||
35174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35177 | { |
35178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35179 | (arg1)->RecalcSizes(); | |
35180 | ||
35181 | wxPyEndAllowThreads(__tstate); | |
35182 | if (PyErr_Occurred()) SWIG_fail; | |
35183 | } | |
35184 | Py_INCREF(Py_None); resultobj = Py_None; | |
35185 | return resultobj; | |
35186 | fail: | |
35187 | return NULL; | |
35188 | } | |
35189 | ||
35190 | ||
35191 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35192 | PyObject *resultobj; | |
35193 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35194 | wxSize result; | |
35195 | PyObject * obj0 = 0 ; | |
35196 | char *kwnames[] = { | |
35197 | (char *) "self", NULL | |
35198 | }; | |
35199 | ||
35200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35203 | { |
35204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35205 | result = (arg1)->CalcMin(); | |
35206 | ||
35207 | wxPyEndAllowThreads(__tstate); | |
35208 | if (PyErr_Occurred()) SWIG_fail; | |
35209 | } | |
35210 | { | |
35211 | wxSize * resultptr; | |
35212 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35213 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35214 | } |
35215 | return resultobj; | |
35216 | fail: | |
35217 | return NULL; | |
35218 | } | |
35219 | ||
35220 | ||
35221 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35222 | PyObject *obj; | |
35223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35224 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35225 | Py_INCREF(obj); | |
35226 | return Py_BuildValue((char *)""); | |
35227 | } | |
35228 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35229 | PyObject *resultobj; | |
35230 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35231 | int arg2 = (int) wxHORIZONTAL ; | |
35232 | wxStaticBoxSizer *result; | |
35233 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35234 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35235 | char *kwnames[] = { |
35236 | (char *) "box",(char *) "orient", NULL | |
35237 | }; | |
35238 | ||
8edf1c75 | 35239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
35241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 35242 | if (obj1) { |
2f4c0a16 RD |
35243 | arg2 = (int) SWIG_AsInt(obj1); |
35244 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35245 | } |
d14a1e28 RD |
35246 | { |
35247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35248 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35249 | ||
35250 | wxPyEndAllowThreads(__tstate); | |
35251 | if (PyErr_Occurred()) SWIG_fail; | |
35252 | } | |
2f4c0a16 | 35253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
35254 | return resultobj; |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
35260 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35261 | PyObject *resultobj; | |
35262 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35263 | wxStaticBox *result; | |
35264 | PyObject * obj0 = 0 ; | |
35265 | char *kwnames[] = { | |
35266 | (char *) "self", NULL | |
35267 | }; | |
35268 | ||
35269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35272 | { |
35273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35274 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35275 | ||
35276 | wxPyEndAllowThreads(__tstate); | |
35277 | if (PyErr_Occurred()) SWIG_fail; | |
35278 | } | |
35279 | { | |
35280 | resultobj = wxPyMake_wxObject(result); | |
35281 | } | |
35282 | return resultobj; | |
35283 | fail: | |
35284 | return NULL; | |
35285 | } | |
35286 | ||
35287 | ||
35288 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35289 | PyObject *resultobj; | |
35290 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35291 | PyObject * obj0 = 0 ; | |
35292 | char *kwnames[] = { | |
35293 | (char *) "self", NULL | |
35294 | }; | |
35295 | ||
35296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35299 | { |
35300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35301 | (arg1)->RecalcSizes(); | |
35302 | ||
35303 | wxPyEndAllowThreads(__tstate); | |
35304 | if (PyErr_Occurred()) SWIG_fail; | |
35305 | } | |
35306 | Py_INCREF(Py_None); resultobj = Py_None; | |
35307 | return resultobj; | |
35308 | fail: | |
35309 | return NULL; | |
35310 | } | |
35311 | ||
35312 | ||
35313 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35314 | PyObject *resultobj; | |
35315 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35316 | wxSize result; | |
35317 | PyObject * obj0 = 0 ; | |
35318 | char *kwnames[] = { | |
35319 | (char *) "self", NULL | |
35320 | }; | |
35321 | ||
35322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35325 | { |
35326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35327 | result = (arg1)->CalcMin(); | |
35328 | ||
35329 | wxPyEndAllowThreads(__tstate); | |
35330 | if (PyErr_Occurred()) SWIG_fail; | |
35331 | } | |
35332 | { | |
35333 | wxSize * resultptr; | |
35334 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35335 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35336 | } |
35337 | return resultobj; | |
35338 | fail: | |
35339 | return NULL; | |
35340 | } | |
35341 | ||
35342 | ||
35343 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35344 | PyObject *obj; | |
35345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35346 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35347 | Py_INCREF(obj); | |
35348 | return Py_BuildValue((char *)""); | |
35349 | } | |
35350 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35351 | PyObject *resultobj; | |
35352 | int arg1 = (int) 1 ; | |
35353 | int arg2 = (int) 0 ; | |
35354 | int arg3 = (int) 0 ; | |
35355 | int arg4 = (int) 0 ; | |
35356 | wxGridSizer *result; | |
8edf1c75 RD |
35357 | PyObject * obj0 = 0 ; |
35358 | PyObject * obj1 = 0 ; | |
35359 | PyObject * obj2 = 0 ; | |
35360 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35361 | char *kwnames[] = { |
35362 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35363 | }; | |
35364 | ||
8edf1c75 RD |
35365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35366 | if (obj0) { | |
2f4c0a16 RD |
35367 | arg1 = (int) SWIG_AsInt(obj0); |
35368 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35369 | } |
35370 | if (obj1) { | |
2f4c0a16 RD |
35371 | arg2 = (int) SWIG_AsInt(obj1); |
35372 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35373 | } |
35374 | if (obj2) { | |
2f4c0a16 RD |
35375 | arg3 = (int) SWIG_AsInt(obj2); |
35376 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35377 | } |
35378 | if (obj3) { | |
2f4c0a16 RD |
35379 | arg4 = (int) SWIG_AsInt(obj3); |
35380 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35381 | } |
d14a1e28 RD |
35382 | { |
35383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35384 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35385 | ||
35386 | wxPyEndAllowThreads(__tstate); | |
35387 | if (PyErr_Occurred()) SWIG_fail; | |
35388 | } | |
2f4c0a16 | 35389 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
35390 | return resultobj; |
35391 | fail: | |
35392 | return NULL; | |
35393 | } | |
35394 | ||
35395 | ||
35396 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35397 | PyObject *resultobj; | |
35398 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35399 | PyObject * obj0 = 0 ; | |
35400 | char *kwnames[] = { | |
35401 | (char *) "self", NULL | |
35402 | }; | |
35403 | ||
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35407 | { |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | (arg1)->RecalcSizes(); | |
35410 | ||
35411 | wxPyEndAllowThreads(__tstate); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | } | |
35414 | Py_INCREF(Py_None); resultobj = Py_None; | |
35415 | return resultobj; | |
35416 | fail: | |
35417 | return NULL; | |
35418 | } | |
35419 | ||
35420 | ||
35421 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35422 | PyObject *resultobj; | |
35423 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35424 | wxSize result; | |
35425 | PyObject * obj0 = 0 ; | |
35426 | char *kwnames[] = { | |
35427 | (char *) "self", NULL | |
35428 | }; | |
35429 | ||
35430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35433 | { |
35434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35435 | result = (arg1)->CalcMin(); | |
35436 | ||
35437 | wxPyEndAllowThreads(__tstate); | |
35438 | if (PyErr_Occurred()) SWIG_fail; | |
35439 | } | |
35440 | { | |
35441 | wxSize * resultptr; | |
35442 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35444 | } |
35445 | return resultobj; | |
35446 | fail: | |
35447 | return NULL; | |
35448 | } | |
35449 | ||
35450 | ||
35451 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35452 | PyObject *resultobj; | |
35453 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35454 | int arg2 ; | |
35455 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35457 | char *kwnames[] = { |
35458 | (char *) "self",(char *) "cols", NULL | |
35459 | }; | |
35460 | ||
8edf1c75 | 35461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35464 | arg2 = (int) SWIG_AsInt(obj1); | |
35465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35466 | { |
35467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35468 | (arg1)->SetCols(arg2); | |
35469 | ||
35470 | wxPyEndAllowThreads(__tstate); | |
35471 | if (PyErr_Occurred()) SWIG_fail; | |
35472 | } | |
35473 | Py_INCREF(Py_None); resultobj = Py_None; | |
35474 | return resultobj; | |
35475 | fail: | |
35476 | return NULL; | |
35477 | } | |
35478 | ||
35479 | ||
35480 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35481 | PyObject *resultobj; | |
35482 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35483 | int arg2 ; | |
35484 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35485 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35486 | char *kwnames[] = { |
35487 | (char *) "self",(char *) "rows", NULL | |
35488 | }; | |
35489 | ||
8edf1c75 | 35490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35493 | arg2 = (int) SWIG_AsInt(obj1); | |
35494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35495 | { |
35496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35497 | (arg1)->SetRows(arg2); | |
35498 | ||
35499 | wxPyEndAllowThreads(__tstate); | |
35500 | if (PyErr_Occurred()) SWIG_fail; | |
35501 | } | |
35502 | Py_INCREF(Py_None); resultobj = Py_None; | |
35503 | return resultobj; | |
35504 | fail: | |
35505 | return NULL; | |
35506 | } | |
35507 | ||
35508 | ||
35509 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35510 | PyObject *resultobj; | |
35511 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35512 | int arg2 ; | |
35513 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35514 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35515 | char *kwnames[] = { |
35516 | (char *) "self",(char *) "gap", NULL | |
35517 | }; | |
35518 | ||
8edf1c75 | 35519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35522 | arg2 = (int) SWIG_AsInt(obj1); | |
35523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35524 | { |
35525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35526 | (arg1)->SetVGap(arg2); | |
35527 | ||
35528 | wxPyEndAllowThreads(__tstate); | |
35529 | if (PyErr_Occurred()) SWIG_fail; | |
35530 | } | |
35531 | Py_INCREF(Py_None); resultobj = Py_None; | |
35532 | return resultobj; | |
35533 | fail: | |
35534 | return NULL; | |
35535 | } | |
35536 | ||
35537 | ||
35538 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35539 | PyObject *resultobj; | |
35540 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35541 | int arg2 ; | |
35542 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35543 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35544 | char *kwnames[] = { |
35545 | (char *) "self",(char *) "gap", NULL | |
35546 | }; | |
35547 | ||
8edf1c75 | 35548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35551 | arg2 = (int) SWIG_AsInt(obj1); | |
35552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35553 | { |
35554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35555 | (arg1)->SetHGap(arg2); | |
35556 | ||
35557 | wxPyEndAllowThreads(__tstate); | |
35558 | if (PyErr_Occurred()) SWIG_fail; | |
35559 | } | |
35560 | Py_INCREF(Py_None); resultobj = Py_None; | |
35561 | return resultobj; | |
35562 | fail: | |
35563 | return NULL; | |
35564 | } | |
35565 | ||
35566 | ||
35567 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35568 | PyObject *resultobj; | |
35569 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35570 | int result; | |
35571 | PyObject * obj0 = 0 ; | |
35572 | char *kwnames[] = { | |
35573 | (char *) "self", NULL | |
35574 | }; | |
35575 | ||
35576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35579 | { |
35580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35581 | result = (int)(arg1)->GetCols(); | |
35582 | ||
35583 | wxPyEndAllowThreads(__tstate); | |
35584 | if (PyErr_Occurred()) SWIG_fail; | |
35585 | } | |
2f4c0a16 | 35586 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35587 | return resultobj; |
35588 | fail: | |
35589 | return NULL; | |
35590 | } | |
35591 | ||
35592 | ||
35593 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35594 | PyObject *resultobj; | |
35595 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35596 | int result; | |
35597 | PyObject * obj0 = 0 ; | |
35598 | char *kwnames[] = { | |
35599 | (char *) "self", NULL | |
35600 | }; | |
35601 | ||
35602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35605 | { |
35606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35607 | result = (int)(arg1)->GetRows(); | |
35608 | ||
35609 | wxPyEndAllowThreads(__tstate); | |
35610 | if (PyErr_Occurred()) SWIG_fail; | |
35611 | } | |
2f4c0a16 | 35612 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35613 | return resultobj; |
35614 | fail: | |
35615 | return NULL; | |
35616 | } | |
35617 | ||
35618 | ||
35619 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35620 | PyObject *resultobj; | |
35621 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35622 | int result; | |
35623 | PyObject * obj0 = 0 ; | |
35624 | char *kwnames[] = { | |
35625 | (char *) "self", NULL | |
35626 | }; | |
35627 | ||
35628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35631 | { |
35632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35633 | result = (int)(arg1)->GetVGap(); | |
35634 | ||
35635 | wxPyEndAllowThreads(__tstate); | |
35636 | if (PyErr_Occurred()) SWIG_fail; | |
35637 | } | |
2f4c0a16 | 35638 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35639 | return resultobj; |
35640 | fail: | |
35641 | return NULL; | |
35642 | } | |
35643 | ||
35644 | ||
35645 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35646 | PyObject *resultobj; | |
35647 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35648 | int result; | |
35649 | PyObject * obj0 = 0 ; | |
35650 | char *kwnames[] = { | |
35651 | (char *) "self", NULL | |
35652 | }; | |
35653 | ||
35654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35657 | { |
35658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35659 | result = (int)(arg1)->GetHGap(); | |
35660 | ||
35661 | wxPyEndAllowThreads(__tstate); | |
35662 | if (PyErr_Occurred()) SWIG_fail; | |
35663 | } | |
2f4c0a16 | 35664 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35665 | return resultobj; |
35666 | fail: | |
35667 | return NULL; | |
35668 | } | |
35669 | ||
35670 | ||
35671 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
35672 | PyObject *obj; | |
35673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35674 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
35675 | Py_INCREF(obj); | |
35676 | return Py_BuildValue((char *)""); | |
35677 | } | |
35678 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35679 | PyObject *resultobj; | |
35680 | int arg1 = (int) 1 ; | |
35681 | int arg2 = (int) 0 ; | |
35682 | int arg3 = (int) 0 ; | |
35683 | int arg4 = (int) 0 ; | |
35684 | wxFlexGridSizer *result; | |
8edf1c75 RD |
35685 | PyObject * obj0 = 0 ; |
35686 | PyObject * obj1 = 0 ; | |
35687 | PyObject * obj2 = 0 ; | |
35688 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35689 | char *kwnames[] = { |
35690 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35691 | }; | |
35692 | ||
8edf1c75 RD |
35693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35694 | if (obj0) { | |
2f4c0a16 RD |
35695 | arg1 = (int) SWIG_AsInt(obj0); |
35696 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35697 | } |
35698 | if (obj1) { | |
2f4c0a16 RD |
35699 | arg2 = (int) SWIG_AsInt(obj1); |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35701 | } |
35702 | if (obj2) { | |
2f4c0a16 RD |
35703 | arg3 = (int) SWIG_AsInt(obj2); |
35704 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
35705 | } |
35706 | if (obj3) { | |
2f4c0a16 RD |
35707 | arg4 = (int) SWIG_AsInt(obj3); |
35708 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35709 | } |
d14a1e28 RD |
35710 | { |
35711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35712 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
35713 | ||
35714 | wxPyEndAllowThreads(__tstate); | |
35715 | if (PyErr_Occurred()) SWIG_fail; | |
35716 | } | |
2f4c0a16 | 35717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
35718 | return resultobj; |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
35724 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35725 | PyObject *resultobj; | |
35726 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35727 | PyObject * obj0 = 0 ; | |
35728 | char *kwnames[] = { | |
35729 | (char *) "self", NULL | |
35730 | }; | |
35731 | ||
35732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35735 | { |
35736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35737 | (arg1)->RecalcSizes(); | |
35738 | ||
35739 | wxPyEndAllowThreads(__tstate); | |
35740 | if (PyErr_Occurred()) SWIG_fail; | |
35741 | } | |
35742 | Py_INCREF(Py_None); resultobj = Py_None; | |
35743 | return resultobj; | |
35744 | fail: | |
35745 | return NULL; | |
35746 | } | |
35747 | ||
35748 | ||
35749 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35750 | PyObject *resultobj; | |
35751 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35752 | wxSize result; | |
35753 | PyObject * obj0 = 0 ; | |
35754 | char *kwnames[] = { | |
35755 | (char *) "self", NULL | |
35756 | }; | |
35757 | ||
35758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35761 | { |
35762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35763 | result = (arg1)->CalcMin(); | |
35764 | ||
35765 | wxPyEndAllowThreads(__tstate); | |
35766 | if (PyErr_Occurred()) SWIG_fail; | |
35767 | } | |
35768 | { | |
35769 | wxSize * resultptr; | |
35770 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 35771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35772 | } |
35773 | return resultobj; | |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
35779 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35780 | PyObject *resultobj; | |
35781 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35782 | size_t arg2 ; | |
35783 | int arg3 = (int) 0 ; | |
35784 | PyObject * obj0 = 0 ; | |
35785 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35786 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35787 | char *kwnames[] = { |
35788 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35789 | }; | |
35790 | ||
8edf1c75 | 35791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35794 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35795 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35796 | if (obj2) { |
2f4c0a16 RD |
35797 | arg3 = (int) SWIG_AsInt(obj2); |
35798 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35799 | } |
d14a1e28 RD |
35800 | { |
35801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35802 | (arg1)->AddGrowableRow(arg2,arg3); | |
35803 | ||
35804 | wxPyEndAllowThreads(__tstate); | |
35805 | if (PyErr_Occurred()) SWIG_fail; | |
35806 | } | |
35807 | Py_INCREF(Py_None); resultobj = Py_None; | |
35808 | return resultobj; | |
35809 | fail: | |
35810 | return NULL; | |
35811 | } | |
35812 | ||
35813 | ||
35814 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35815 | PyObject *resultobj; | |
35816 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35817 | size_t arg2 ; | |
35818 | PyObject * obj0 = 0 ; | |
35819 | PyObject * obj1 = 0 ; | |
35820 | char *kwnames[] = { | |
35821 | (char *) "self",(char *) "idx", NULL | |
35822 | }; | |
35823 | ||
35824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35827 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35829 | { |
35830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35831 | (arg1)->RemoveGrowableRow(arg2); | |
35832 | ||
35833 | wxPyEndAllowThreads(__tstate); | |
35834 | if (PyErr_Occurred()) SWIG_fail; | |
35835 | } | |
35836 | Py_INCREF(Py_None); resultobj = Py_None; | |
35837 | return resultobj; | |
35838 | fail: | |
35839 | return NULL; | |
35840 | } | |
35841 | ||
35842 | ||
35843 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35844 | PyObject *resultobj; | |
35845 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35846 | size_t arg2 ; | |
35847 | int arg3 = (int) 0 ; | |
35848 | PyObject * obj0 = 0 ; | |
35849 | PyObject * obj1 = 0 ; | |
8edf1c75 | 35850 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
35851 | char *kwnames[] = { |
35852 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
35853 | }; | |
35854 | ||
8edf1c75 | 35855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
35856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35858 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35859 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35860 | if (obj2) { |
2f4c0a16 RD |
35861 | arg3 = (int) SWIG_AsInt(obj2); |
35862 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 35863 | } |
d14a1e28 RD |
35864 | { |
35865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35866 | (arg1)->AddGrowableCol(arg2,arg3); | |
35867 | ||
35868 | wxPyEndAllowThreads(__tstate); | |
35869 | if (PyErr_Occurred()) SWIG_fail; | |
35870 | } | |
35871 | Py_INCREF(Py_None); resultobj = Py_None; | |
35872 | return resultobj; | |
35873 | fail: | |
35874 | return NULL; | |
35875 | } | |
35876 | ||
35877 | ||
35878 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35879 | PyObject *resultobj; | |
35880 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35881 | size_t arg2 ; | |
35882 | PyObject * obj0 = 0 ; | |
35883 | PyObject * obj1 = 0 ; | |
35884 | char *kwnames[] = { | |
35885 | (char *) "self",(char *) "idx", NULL | |
35886 | }; | |
35887 | ||
35888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
35889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35891 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35892 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35893 | { |
35894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35895 | (arg1)->RemoveGrowableCol(arg2); | |
35896 | ||
35897 | wxPyEndAllowThreads(__tstate); | |
35898 | if (PyErr_Occurred()) SWIG_fail; | |
35899 | } | |
35900 | Py_INCREF(Py_None); resultobj = Py_None; | |
35901 | return resultobj; | |
35902 | fail: | |
35903 | return NULL; | |
35904 | } | |
35905 | ||
35906 | ||
35907 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35908 | PyObject *resultobj; | |
35909 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35910 | int arg2 ; | |
35911 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35912 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35913 | char *kwnames[] = { |
35914 | (char *) "self",(char *) "direction", NULL | |
35915 | }; | |
35916 | ||
8edf1c75 | 35917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35920 | arg2 = (int) SWIG_AsInt(obj1); | |
35921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35922 | { |
35923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35924 | (arg1)->SetFlexibleDirection(arg2); | |
35925 | ||
35926 | wxPyEndAllowThreads(__tstate); | |
35927 | if (PyErr_Occurred()) SWIG_fail; | |
35928 | } | |
35929 | Py_INCREF(Py_None); resultobj = Py_None; | |
35930 | return resultobj; | |
35931 | fail: | |
35932 | return NULL; | |
35933 | } | |
35934 | ||
35935 | ||
35936 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35937 | PyObject *resultobj; | |
35938 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35939 | int result; | |
35940 | PyObject * obj0 = 0 ; | |
35941 | char *kwnames[] = { | |
35942 | (char *) "self", NULL | |
35943 | }; | |
35944 | ||
35945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
35946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35948 | { |
35949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35950 | result = (int)(arg1)->GetFlexibleDirection(); | |
35951 | ||
35952 | wxPyEndAllowThreads(__tstate); | |
35953 | if (PyErr_Occurred()) SWIG_fail; | |
35954 | } | |
2f4c0a16 | 35955 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35956 | return resultobj; |
35957 | fail: | |
35958 | return NULL; | |
35959 | } | |
35960 | ||
35961 | ||
35962 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35963 | PyObject *resultobj; | |
35964 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35965 | int arg2 ; | |
35966 | PyObject * obj0 = 0 ; | |
8edf1c75 | 35967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35968 | char *kwnames[] = { |
35969 | (char *) "self",(char *) "mode", NULL | |
35970 | }; | |
35971 | ||
8edf1c75 | 35972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
35973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35975 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
35976 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35977 | { |
35978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35979 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
35980 | ||
35981 | wxPyEndAllowThreads(__tstate); | |
35982 | if (PyErr_Occurred()) SWIG_fail; | |
35983 | } | |
35984 | Py_INCREF(Py_None); resultobj = Py_None; | |
35985 | return resultobj; | |
35986 | fail: | |
35987 | return NULL; | |
35988 | } | |
35989 | ||
35990 | ||
35991 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35992 | PyObject *resultobj; | |
35993 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35994 | int result; | |
35995 | PyObject * obj0 = 0 ; | |
35996 | char *kwnames[] = { | |
35997 | (char *) "self", NULL | |
35998 | }; | |
35999 | ||
36000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36003 | { |
36004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36005 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36006 | ||
36007 | wxPyEndAllowThreads(__tstate); | |
36008 | if (PyErr_Occurred()) SWIG_fail; | |
36009 | } | |
2f4c0a16 | 36010 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36011 | return resultobj; |
36012 | fail: | |
36013 | return NULL; | |
36014 | } | |
36015 | ||
36016 | ||
423f194a RD |
36017 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36018 | PyObject *resultobj; | |
36019 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36020 | wxArrayInt *result; | |
36021 | PyObject * obj0 = 0 ; | |
36022 | char *kwnames[] = { | |
36023 | (char *) "self", NULL | |
36024 | }; | |
36025 | ||
36026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
36029 | { |
36030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36031 | { | |
36032 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36033 | result = (wxArrayInt *) &_result_ref; | |
36034 | } | |
36035 | ||
36036 | wxPyEndAllowThreads(__tstate); | |
36037 | if (PyErr_Occurred()) SWIG_fail; | |
36038 | } | |
36039 | { | |
36040 | resultobj = PyList_New(0); | |
36041 | size_t idx; | |
36042 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36043 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36044 | PyList_Append(resultobj, val); | |
36045 | Py_DECREF(val); | |
36046 | } | |
36047 | } | |
36048 | return resultobj; | |
36049 | fail: | |
36050 | return NULL; | |
36051 | } | |
36052 | ||
36053 | ||
36054 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36055 | PyObject *resultobj; | |
36056 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36057 | wxArrayInt *result; | |
36058 | PyObject * obj0 = 0 ; | |
36059 | char *kwnames[] = { | |
36060 | (char *) "self", NULL | |
36061 | }; | |
36062 | ||
36063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
36066 | { |
36067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36068 | { | |
36069 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36070 | result = (wxArrayInt *) &_result_ref; | |
36071 | } | |
36072 | ||
36073 | wxPyEndAllowThreads(__tstate); | |
36074 | if (PyErr_Occurred()) SWIG_fail; | |
36075 | } | |
36076 | { | |
36077 | resultobj = PyList_New(0); | |
36078 | size_t idx; | |
36079 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36080 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36081 | PyList_Append(resultobj, val); | |
36082 | Py_DECREF(val); | |
36083 | } | |
36084 | } | |
36085 | return resultobj; | |
36086 | fail: | |
36087 | return NULL; | |
36088 | } | |
36089 | ||
36090 | ||
d14a1e28 RD |
36091 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36092 | PyObject *obj; | |
36093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36094 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36095 | Py_INCREF(obj); | |
36096 | return Py_BuildValue((char *)""); | |
36097 | } | |
36098 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36099 | PyObject *resultobj; | |
36100 | int arg1 = (int) 0 ; | |
36101 | int arg2 = (int) 0 ; | |
36102 | wxGBPosition *result; | |
8edf1c75 RD |
36103 | PyObject * obj0 = 0 ; |
36104 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36105 | char *kwnames[] = { |
36106 | (char *) "row",(char *) "col", NULL | |
36107 | }; | |
36108 | ||
8edf1c75 RD |
36109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36110 | if (obj0) { | |
2f4c0a16 RD |
36111 | arg1 = (int) SWIG_AsInt(obj0); |
36112 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36113 | } |
36114 | if (obj1) { | |
2f4c0a16 RD |
36115 | arg2 = (int) SWIG_AsInt(obj1); |
36116 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36117 | } |
d14a1e28 RD |
36118 | { |
36119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36120 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36121 | ||
36122 | wxPyEndAllowThreads(__tstate); | |
36123 | if (PyErr_Occurred()) SWIG_fail; | |
36124 | } | |
2f4c0a16 | 36125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36126 | return resultobj; |
36127 | fail: | |
36128 | return NULL; | |
36129 | } | |
36130 | ||
36131 | ||
36132 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36133 | PyObject *resultobj; | |
36134 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36135 | int result; | |
36136 | PyObject * obj0 = 0 ; | |
36137 | char *kwnames[] = { | |
36138 | (char *) "self", NULL | |
36139 | }; | |
36140 | ||
36141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36144 | { |
36145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36146 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36147 | ||
36148 | wxPyEndAllowThreads(__tstate); | |
36149 | if (PyErr_Occurred()) SWIG_fail; | |
36150 | } | |
2f4c0a16 | 36151 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36152 | return resultobj; |
36153 | fail: | |
36154 | return NULL; | |
36155 | } | |
36156 | ||
36157 | ||
36158 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36159 | PyObject *resultobj; | |
36160 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36161 | int result; | |
36162 | PyObject * obj0 = 0 ; | |
36163 | char *kwnames[] = { | |
36164 | (char *) "self", NULL | |
36165 | }; | |
36166 | ||
36167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36170 | { |
36171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36172 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36173 | ||
36174 | wxPyEndAllowThreads(__tstate); | |
36175 | if (PyErr_Occurred()) SWIG_fail; | |
36176 | } | |
2f4c0a16 | 36177 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36178 | return resultobj; |
36179 | fail: | |
36180 | return NULL; | |
36181 | } | |
36182 | ||
36183 | ||
36184 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36185 | PyObject *resultobj; | |
36186 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36187 | int arg2 ; | |
36188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36190 | char *kwnames[] = { |
36191 | (char *) "self",(char *) "row", NULL | |
36192 | }; | |
36193 | ||
8edf1c75 | 36194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36197 | arg2 = (int) SWIG_AsInt(obj1); | |
36198 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36199 | { |
36200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36201 | (arg1)->SetRow(arg2); | |
36202 | ||
36203 | wxPyEndAllowThreads(__tstate); | |
36204 | if (PyErr_Occurred()) SWIG_fail; | |
36205 | } | |
36206 | Py_INCREF(Py_None); resultobj = Py_None; | |
36207 | return resultobj; | |
36208 | fail: | |
36209 | return NULL; | |
36210 | } | |
36211 | ||
36212 | ||
36213 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36214 | PyObject *resultobj; | |
36215 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36216 | int arg2 ; | |
36217 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36219 | char *kwnames[] = { |
36220 | (char *) "self",(char *) "col", NULL | |
36221 | }; | |
36222 | ||
8edf1c75 | 36223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36226 | arg2 = (int) SWIG_AsInt(obj1); | |
36227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36228 | { |
36229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36230 | (arg1)->SetCol(arg2); | |
36231 | ||
36232 | wxPyEndAllowThreads(__tstate); | |
36233 | if (PyErr_Occurred()) SWIG_fail; | |
36234 | } | |
36235 | Py_INCREF(Py_None); resultobj = Py_None; | |
36236 | return resultobj; | |
36237 | fail: | |
36238 | return NULL; | |
36239 | } | |
36240 | ||
36241 | ||
36242 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36243 | PyObject *resultobj; | |
36244 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36245 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36246 | bool result; |
4f89f6a3 | 36247 | wxGBPosition temp2 ; |
d14a1e28 RD |
36248 | PyObject * obj0 = 0 ; |
36249 | PyObject * obj1 = 0 ; | |
36250 | char *kwnames[] = { | |
328fcd84 | 36251 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36252 | }; |
36253 | ||
36254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36257 | { |
36258 | arg2 = &temp2; | |
36259 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36260 | } | |
d14a1e28 RD |
36261 | { |
36262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36263 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36264 | |
36265 | wxPyEndAllowThreads(__tstate); | |
36266 | if (PyErr_Occurred()) SWIG_fail; | |
36267 | } | |
4f89f6a3 RD |
36268 | { |
36269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36270 | } | |
d14a1e28 RD |
36271 | return resultobj; |
36272 | fail: | |
36273 | return NULL; | |
36274 | } | |
36275 | ||
36276 | ||
36277 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36278 | PyObject *resultobj; | |
36279 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36280 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36281 | bool result; |
4f89f6a3 | 36282 | wxGBPosition temp2 ; |
d14a1e28 RD |
36283 | PyObject * obj0 = 0 ; |
36284 | PyObject * obj1 = 0 ; | |
36285 | char *kwnames[] = { | |
328fcd84 | 36286 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36287 | }; |
36288 | ||
36289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36292 | { |
36293 | arg2 = &temp2; | |
36294 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36295 | } | |
d14a1e28 RD |
36296 | { |
36297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36298 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36299 | |
36300 | wxPyEndAllowThreads(__tstate); | |
36301 | if (PyErr_Occurred()) SWIG_fail; | |
36302 | } | |
4f89f6a3 RD |
36303 | { |
36304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36305 | } | |
d14a1e28 RD |
36306 | return resultobj; |
36307 | fail: | |
36308 | return NULL; | |
36309 | } | |
36310 | ||
36311 | ||
423f194a RD |
36312 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36313 | PyObject *resultobj; | |
36314 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36315 | int arg2 = (int) 0 ; | |
36316 | int arg3 = (int) 0 ; | |
36317 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
36318 | PyObject * obj1 = 0 ; |
36319 | PyObject * obj2 = 0 ; | |
423f194a RD |
36320 | char *kwnames[] = { |
36321 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36322 | }; | |
36323 | ||
8edf1c75 | 36324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
36325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 36327 | if (obj1) { |
2f4c0a16 RD |
36328 | arg2 = (int) SWIG_AsInt(obj1); |
36329 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36330 | } |
36331 | if (obj2) { | |
2f4c0a16 RD |
36332 | arg3 = (int) SWIG_AsInt(obj2); |
36333 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36334 | } |
423f194a RD |
36335 | { |
36336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36337 | wxGBPosition_Set(arg1,arg2,arg3); | |
36338 | ||
36339 | wxPyEndAllowThreads(__tstate); | |
36340 | if (PyErr_Occurred()) SWIG_fail; | |
36341 | } | |
36342 | Py_INCREF(Py_None); resultobj = Py_None; | |
36343 | return resultobj; | |
36344 | fail: | |
36345 | return NULL; | |
36346 | } | |
36347 | ||
36348 | ||
36349 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36350 | PyObject *resultobj; |
36351 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36352 | PyObject *result; | |
36353 | PyObject * obj0 = 0 ; | |
36354 | char *kwnames[] = { | |
36355 | (char *) "self", NULL | |
36356 | }; | |
36357 | ||
423f194a | 36358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
36359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36361 | { |
36362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 36363 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36364 | |
36365 | wxPyEndAllowThreads(__tstate); | |
36366 | if (PyErr_Occurred()) SWIG_fail; | |
36367 | } | |
36368 | resultobj = result; | |
36369 | return resultobj; | |
36370 | fail: | |
36371 | return NULL; | |
36372 | } | |
36373 | ||
36374 | ||
36375 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36376 | PyObject *obj; | |
36377 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36378 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36379 | Py_INCREF(obj); | |
36380 | return Py_BuildValue((char *)""); | |
36381 | } | |
36382 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36383 | PyObject *resultobj; | |
36384 | int arg1 = (int) 1 ; | |
36385 | int arg2 = (int) 1 ; | |
36386 | wxGBSpan *result; | |
8edf1c75 RD |
36387 | PyObject * obj0 = 0 ; |
36388 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36389 | char *kwnames[] = { |
36390 | (char *) "rowspan",(char *) "colspan", NULL | |
36391 | }; | |
36392 | ||
8edf1c75 RD |
36393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36394 | if (obj0) { | |
2f4c0a16 RD |
36395 | arg1 = (int) SWIG_AsInt(obj0); |
36396 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36397 | } |
36398 | if (obj1) { | |
2f4c0a16 RD |
36399 | arg2 = (int) SWIG_AsInt(obj1); |
36400 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36401 | } |
d14a1e28 RD |
36402 | { |
36403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36404 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36405 | ||
36406 | wxPyEndAllowThreads(__tstate); | |
36407 | if (PyErr_Occurred()) SWIG_fail; | |
36408 | } | |
2f4c0a16 | 36409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36410 | return resultobj; |
36411 | fail: | |
36412 | return NULL; | |
36413 | } | |
36414 | ||
36415 | ||
36416 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36417 | PyObject *resultobj; | |
36418 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36419 | int result; | |
36420 | PyObject * obj0 = 0 ; | |
36421 | char *kwnames[] = { | |
36422 | (char *) "self", NULL | |
36423 | }; | |
36424 | ||
36425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36428 | { |
36429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36430 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36431 | ||
36432 | wxPyEndAllowThreads(__tstate); | |
36433 | if (PyErr_Occurred()) SWIG_fail; | |
36434 | } | |
2f4c0a16 | 36435 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36436 | return resultobj; |
36437 | fail: | |
36438 | return NULL; | |
36439 | } | |
36440 | ||
36441 | ||
36442 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36443 | PyObject *resultobj; | |
36444 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36445 | int result; | |
36446 | PyObject * obj0 = 0 ; | |
36447 | char *kwnames[] = { | |
36448 | (char *) "self", NULL | |
36449 | }; | |
36450 | ||
36451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36454 | { |
36455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36456 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
36457 | ||
36458 | wxPyEndAllowThreads(__tstate); | |
36459 | if (PyErr_Occurred()) SWIG_fail; | |
36460 | } | |
2f4c0a16 | 36461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36462 | return resultobj; |
36463 | fail: | |
36464 | return NULL; | |
36465 | } | |
36466 | ||
36467 | ||
36468 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36469 | PyObject *resultobj; | |
36470 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36471 | int arg2 ; | |
36472 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36474 | char *kwnames[] = { |
36475 | (char *) "self",(char *) "rowspan", NULL | |
36476 | }; | |
36477 | ||
8edf1c75 | 36478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36481 | arg2 = (int) SWIG_AsInt(obj1); | |
36482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36483 | { |
36484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36485 | (arg1)->SetRowspan(arg2); | |
36486 | ||
36487 | wxPyEndAllowThreads(__tstate); | |
36488 | if (PyErr_Occurred()) SWIG_fail; | |
36489 | } | |
36490 | Py_INCREF(Py_None); resultobj = Py_None; | |
36491 | return resultobj; | |
36492 | fail: | |
36493 | return NULL; | |
36494 | } | |
36495 | ||
36496 | ||
36497 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36498 | PyObject *resultobj; | |
36499 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36500 | int arg2 ; | |
36501 | PyObject * obj0 = 0 ; | |
8edf1c75 | 36502 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36503 | char *kwnames[] = { |
36504 | (char *) "self",(char *) "colspan", NULL | |
36505 | }; | |
36506 | ||
8edf1c75 | 36507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
36508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36510 | arg2 = (int) SWIG_AsInt(obj1); | |
36511 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36512 | { |
36513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36514 | (arg1)->SetColspan(arg2); | |
36515 | ||
36516 | wxPyEndAllowThreads(__tstate); | |
36517 | if (PyErr_Occurred()) SWIG_fail; | |
36518 | } | |
36519 | Py_INCREF(Py_None); resultobj = Py_None; | |
36520 | return resultobj; | |
36521 | fail: | |
36522 | return NULL; | |
36523 | } | |
36524 | ||
36525 | ||
36526 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36527 | PyObject *resultobj; | |
36528 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36529 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36530 | bool result; |
4f89f6a3 | 36531 | wxGBSpan temp2 ; |
d14a1e28 RD |
36532 | PyObject * obj0 = 0 ; |
36533 | PyObject * obj1 = 0 ; | |
36534 | char *kwnames[] = { | |
328fcd84 | 36535 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36536 | }; |
36537 | ||
36538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36541 | { |
36542 | arg2 = &temp2; | |
36543 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36544 | } | |
d14a1e28 RD |
36545 | { |
36546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36547 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36548 | |
36549 | wxPyEndAllowThreads(__tstate); | |
36550 | if (PyErr_Occurred()) SWIG_fail; | |
36551 | } | |
4f89f6a3 RD |
36552 | { |
36553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36554 | } | |
d14a1e28 RD |
36555 | return resultobj; |
36556 | fail: | |
36557 | return NULL; | |
36558 | } | |
36559 | ||
36560 | ||
36561 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36562 | PyObject *resultobj; | |
36563 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36564 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36565 | bool result; |
4f89f6a3 | 36566 | wxGBSpan temp2 ; |
d14a1e28 RD |
36567 | PyObject * obj0 = 0 ; |
36568 | PyObject * obj1 = 0 ; | |
36569 | char *kwnames[] = { | |
328fcd84 | 36570 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36571 | }; |
36572 | ||
36573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36576 | { |
36577 | arg2 = &temp2; | |
36578 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36579 | } | |
d14a1e28 RD |
36580 | { |
36581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36582 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36583 | |
36584 | wxPyEndAllowThreads(__tstate); | |
36585 | if (PyErr_Occurred()) SWIG_fail; | |
36586 | } | |
4f89f6a3 RD |
36587 | { |
36588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36589 | } | |
d14a1e28 RD |
36590 | return resultobj; |
36591 | fail: | |
36592 | return NULL; | |
36593 | } | |
36594 | ||
36595 | ||
423f194a RD |
36596 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36597 | PyObject *resultobj; | |
36598 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36599 | int arg2 = (int) 1 ; | |
36600 | int arg3 = (int) 1 ; | |
36601 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
36602 | PyObject * obj1 = 0 ; |
36603 | PyObject * obj2 = 0 ; | |
423f194a RD |
36604 | char *kwnames[] = { |
36605 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
36606 | }; | |
36607 | ||
8edf1c75 | 36608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
36609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 36611 | if (obj1) { |
2f4c0a16 RD |
36612 | arg2 = (int) SWIG_AsInt(obj1); |
36613 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
36614 | } |
36615 | if (obj2) { | |
2f4c0a16 RD |
36616 | arg3 = (int) SWIG_AsInt(obj2); |
36617 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 36618 | } |
423f194a RD |
36619 | { |
36620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36621 | wxGBSpan_Set(arg1,arg2,arg3); | |
36622 | ||
36623 | wxPyEndAllowThreads(__tstate); | |
36624 | if (PyErr_Occurred()) SWIG_fail; | |
36625 | } | |
36626 | Py_INCREF(Py_None); resultobj = Py_None; | |
36627 | return resultobj; | |
36628 | fail: | |
36629 | return NULL; | |
36630 | } | |
36631 | ||
36632 | ||
36633 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36634 | PyObject *resultobj; |
36635 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36636 | PyObject *result; | |
36637 | PyObject * obj0 = 0 ; | |
36638 | char *kwnames[] = { | |
36639 | (char *) "self", NULL | |
36640 | }; | |
36641 | ||
423f194a | 36642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
36643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36645 | { |
36646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 36647 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
36648 | |
36649 | wxPyEndAllowThreads(__tstate); | |
36650 | if (PyErr_Occurred()) SWIG_fail; | |
36651 | } | |
36652 | resultobj = result; | |
36653 | return resultobj; | |
36654 | fail: | |
36655 | return NULL; | |
36656 | } | |
36657 | ||
36658 | ||
36659 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
36660 | PyObject *obj; | |
36661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36662 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
36663 | Py_INCREF(obj); | |
36664 | return Py_BuildValue((char *)""); | |
36665 | } | |
2f4c0a16 | 36666 | static int _wrap_DefaultSpan_set(PyObject *_val) { |
d14a1e28 RD |
36667 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
36668 | return 1; | |
36669 | } | |
36670 | ||
36671 | ||
36672 | static PyObject *_wrap_DefaultSpan_get() { | |
36673 | PyObject *pyobj; | |
36674 | ||
2f4c0a16 | 36675 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
36676 | return pyobj; |
36677 | } | |
36678 | ||
36679 | ||
36680 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36681 | PyObject *resultobj; | |
36682 | wxGBSizerItem *result; | |
36683 | char *kwnames[] = { | |
36684 | NULL | |
36685 | }; | |
36686 | ||
36687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
36688 | { | |
36689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36690 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
36691 | ||
36692 | wxPyEndAllowThreads(__tstate); | |
36693 | if (PyErr_Occurred()) SWIG_fail; | |
36694 | } | |
2f4c0a16 | 36695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36696 | return resultobj; |
36697 | fail: | |
36698 | return NULL; | |
36699 | } | |
36700 | ||
36701 | ||
36702 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36703 | PyObject *resultobj; | |
36704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36705 | wxGBPosition *arg2 = 0 ; | |
36706 | wxGBSpan *arg3 = 0 ; | |
36707 | int arg4 ; | |
36708 | int arg5 ; | |
36709 | wxObject *arg6 = (wxObject *) 0 ; | |
36710 | wxGBSizerItem *result; | |
36711 | wxGBPosition temp2 ; | |
36712 | wxGBSpan temp3 ; | |
36713 | PyObject * obj0 = 0 ; | |
36714 | PyObject * obj1 = 0 ; | |
36715 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36716 | PyObject * obj3 = 0 ; |
36717 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36718 | PyObject * obj5 = 0 ; |
36719 | char *kwnames[] = { | |
36720 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36721 | }; | |
36722 | ||
8edf1c75 | 36723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
36725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36726 | { |
36727 | arg2 = &temp2; | |
36728 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36729 | } | |
36730 | { | |
36731 | arg3 = &temp3; | |
36732 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36733 | } | |
2f4c0a16 RD |
36734 | arg4 = (int) SWIG_AsInt(obj3); |
36735 | if (PyErr_Occurred()) SWIG_fail; | |
36736 | arg5 = (int) SWIG_AsInt(obj4); | |
36737 | if (PyErr_Occurred()) SWIG_fail; | |
36738 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36740 | { |
36741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36742 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36743 | ||
36744 | wxPyEndAllowThreads(__tstate); | |
36745 | if (PyErr_Occurred()) SWIG_fail; | |
36746 | } | |
2f4c0a16 | 36747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36748 | return resultobj; |
36749 | fail: | |
36750 | return NULL; | |
36751 | } | |
36752 | ||
36753 | ||
36754 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36755 | PyObject *resultobj; | |
36756 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36757 | wxGBPosition *arg2 = 0 ; | |
36758 | wxGBSpan *arg3 = 0 ; | |
36759 | int arg4 ; | |
36760 | int arg5 ; | |
36761 | wxObject *arg6 = (wxObject *) 0 ; | |
36762 | wxGBSizerItem *result; | |
36763 | wxGBPosition temp2 ; | |
36764 | wxGBSpan temp3 ; | |
36765 | PyObject * obj0 = 0 ; | |
36766 | PyObject * obj1 = 0 ; | |
36767 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
36768 | PyObject * obj3 = 0 ; |
36769 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36770 | PyObject * obj5 = 0 ; |
36771 | char *kwnames[] = { | |
36772 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36773 | }; | |
36774 | ||
8edf1c75 | 36775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
36776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36778 | { |
36779 | arg2 = &temp2; | |
36780 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36781 | } | |
36782 | { | |
36783 | arg3 = &temp3; | |
36784 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36785 | } | |
2f4c0a16 RD |
36786 | arg4 = (int) SWIG_AsInt(obj3); |
36787 | if (PyErr_Occurred()) SWIG_fail; | |
36788 | arg5 = (int) SWIG_AsInt(obj4); | |
36789 | if (PyErr_Occurred()) SWIG_fail; | |
36790 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36792 | { |
36793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36794 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36795 | ||
36796 | wxPyEndAllowThreads(__tstate); | |
36797 | if (PyErr_Occurred()) SWIG_fail; | |
36798 | } | |
2f4c0a16 | 36799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36800 | return resultobj; |
36801 | fail: | |
36802 | return NULL; | |
36803 | } | |
36804 | ||
36805 | ||
36806 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36807 | PyObject *resultobj; | |
36808 | int arg1 ; | |
36809 | int arg2 ; | |
36810 | wxGBPosition *arg3 = 0 ; | |
36811 | wxGBSpan *arg4 = 0 ; | |
36812 | int arg5 ; | |
36813 | int arg6 ; | |
36814 | wxObject *arg7 = (wxObject *) 0 ; | |
36815 | wxGBSizerItem *result; | |
36816 | wxGBPosition temp3 ; | |
36817 | wxGBSpan temp4 ; | |
8edf1c75 RD |
36818 | PyObject * obj0 = 0 ; |
36819 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36820 | PyObject * obj2 = 0 ; |
36821 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
36822 | PyObject * obj4 = 0 ; |
36823 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
36824 | PyObject * obj6 = 0 ; |
36825 | char *kwnames[] = { | |
36826 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36827 | }; | |
36828 | ||
8edf1c75 | 36829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
36830 | arg1 = (int) SWIG_AsInt(obj0); |
36831 | if (PyErr_Occurred()) SWIG_fail; | |
36832 | arg2 = (int) SWIG_AsInt(obj1); | |
36833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36834 | { |
36835 | arg3 = &temp3; | |
36836 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
36837 | } | |
36838 | { | |
36839 | arg4 = &temp4; | |
36840 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
36841 | } | |
2f4c0a16 RD |
36842 | arg5 = (int) SWIG_AsInt(obj4); |
36843 | if (PyErr_Occurred()) SWIG_fail; | |
36844 | arg6 = (int) SWIG_AsInt(obj5); | |
36845 | if (PyErr_Occurred()) SWIG_fail; | |
36846 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
36847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36848 | { |
36849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36850 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
36851 | ||
36852 | wxPyEndAllowThreads(__tstate); | |
36853 | if (PyErr_Occurred()) SWIG_fail; | |
36854 | } | |
2f4c0a16 | 36855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36856 | return resultobj; |
36857 | fail: | |
36858 | return NULL; | |
36859 | } | |
36860 | ||
36861 | ||
36862 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36863 | PyObject *resultobj; | |
36864 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36865 | wxGBPosition result; | |
36866 | PyObject * obj0 = 0 ; | |
36867 | char *kwnames[] = { | |
36868 | (char *) "self", NULL | |
36869 | }; | |
36870 | ||
36871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36874 | { |
36875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36876 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
36877 | ||
36878 | wxPyEndAllowThreads(__tstate); | |
36879 | if (PyErr_Occurred()) SWIG_fail; | |
36880 | } | |
36881 | { | |
36882 | wxGBPosition * resultptr; | |
36883 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 36884 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36885 | } |
36886 | return resultobj; | |
36887 | fail: | |
36888 | return NULL; | |
36889 | } | |
36890 | ||
36891 | ||
36892 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36893 | PyObject *resultobj; | |
36894 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36895 | wxGBSpan result; | |
36896 | PyObject * obj0 = 0 ; | |
36897 | char *kwnames[] = { | |
36898 | (char *) "self", NULL | |
36899 | }; | |
36900 | ||
36901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
36902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36904 | { |
36905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36906 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
36907 | ||
36908 | wxPyEndAllowThreads(__tstate); | |
36909 | if (PyErr_Occurred()) SWIG_fail; | |
36910 | } | |
36911 | { | |
36912 | wxGBSpan * resultptr; | |
36913 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 36914 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36915 | } |
36916 | return resultobj; | |
36917 | fail: | |
36918 | return NULL; | |
36919 | } | |
36920 | ||
36921 | ||
36922 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36923 | PyObject *resultobj; | |
36924 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36925 | wxGBPosition *arg2 = 0 ; | |
36926 | bool result; | |
36927 | wxGBPosition temp2 ; | |
36928 | PyObject * obj0 = 0 ; | |
36929 | PyObject * obj1 = 0 ; | |
36930 | char *kwnames[] = { | |
36931 | (char *) "self",(char *) "pos", NULL | |
36932 | }; | |
36933 | ||
36934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36937 | { |
36938 | arg2 = &temp2; | |
36939 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36940 | } | |
36941 | { | |
36942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36943 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
36944 | ||
36945 | wxPyEndAllowThreads(__tstate); | |
36946 | if (PyErr_Occurred()) SWIG_fail; | |
36947 | } | |
4f89f6a3 RD |
36948 | { |
36949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36950 | } | |
d14a1e28 RD |
36951 | return resultobj; |
36952 | fail: | |
36953 | return NULL; | |
36954 | } | |
36955 | ||
36956 | ||
36957 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36958 | PyObject *resultobj; | |
36959 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36960 | wxGBSpan *arg2 = 0 ; | |
36961 | bool result; | |
36962 | wxGBSpan temp2 ; | |
36963 | PyObject * obj0 = 0 ; | |
36964 | PyObject * obj1 = 0 ; | |
36965 | char *kwnames[] = { | |
36966 | (char *) "self",(char *) "span", NULL | |
36967 | }; | |
36968 | ||
36969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
36970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
36971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36972 | { |
36973 | arg2 = &temp2; | |
36974 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36975 | } | |
36976 | { | |
36977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36978 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
36979 | ||
36980 | wxPyEndAllowThreads(__tstate); | |
36981 | if (PyErr_Occurred()) SWIG_fail; | |
36982 | } | |
4f89f6a3 RD |
36983 | { |
36984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36985 | } | |
d14a1e28 RD |
36986 | return resultobj; |
36987 | fail: | |
36988 | return NULL; | |
36989 | } | |
36990 | ||
36991 | ||
36992 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
36993 | PyObject *resultobj; | |
36994 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
36995 | wxGBSizerItem *arg2 = 0 ; | |
36996 | bool result; | |
36997 | PyObject * obj0 = 0 ; | |
36998 | PyObject * obj1 = 0 ; | |
36999 | ||
37000 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37005 | SWIG_fail; | |
d14a1e28 | 37006 | if (arg2 == NULL) { |
2f4c0a16 RD |
37007 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37008 | SWIG_fail; | |
d14a1e28 RD |
37009 | } |
37010 | { | |
37011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37012 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37013 | ||
37014 | wxPyEndAllowThreads(__tstate); | |
37015 | if (PyErr_Occurred()) SWIG_fail; | |
37016 | } | |
4f89f6a3 RD |
37017 | { |
37018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37019 | } | |
d14a1e28 RD |
37020 | return resultobj; |
37021 | fail: | |
37022 | return NULL; | |
37023 | } | |
37024 | ||
37025 | ||
37026 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37027 | PyObject *resultobj; | |
37028 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37029 | wxGBPosition *arg2 = 0 ; | |
37030 | wxGBSpan *arg3 = 0 ; | |
37031 | bool result; | |
37032 | wxGBPosition temp2 ; | |
37033 | wxGBSpan temp3 ; | |
37034 | PyObject * obj0 = 0 ; | |
37035 | PyObject * obj1 = 0 ; | |
37036 | PyObject * obj2 = 0 ; | |
37037 | ||
37038 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37041 | { |
37042 | arg2 = &temp2; | |
37043 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37044 | } | |
37045 | { | |
37046 | arg3 = &temp3; | |
37047 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37048 | } | |
37049 | { | |
37050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37051 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37052 | ||
37053 | wxPyEndAllowThreads(__tstate); | |
37054 | if (PyErr_Occurred()) SWIG_fail; | |
37055 | } | |
4f89f6a3 RD |
37056 | { |
37057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37058 | } | |
d14a1e28 RD |
37059 | return resultobj; |
37060 | fail: | |
37061 | return NULL; | |
37062 | } | |
37063 | ||
37064 | ||
37065 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37066 | int argc; | |
37067 | PyObject *argv[4]; | |
37068 | int ii; | |
37069 | ||
37070 | argc = PyObject_Length(args); | |
37071 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37072 | argv[ii] = PyTuple_GetItem(args,ii); | |
37073 | } | |
37074 | if (argc == 2) { | |
37075 | int _v; | |
37076 | { | |
37077 | void *ptr; | |
2f4c0a16 | 37078 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37079 | _v = 0; |
37080 | PyErr_Clear(); | |
37081 | } else { | |
37082 | _v = 1; | |
37083 | } | |
37084 | } | |
37085 | if (_v) { | |
37086 | { | |
37087 | void *ptr; | |
2f4c0a16 | 37088 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37089 | _v = 0; |
37090 | PyErr_Clear(); | |
37091 | } else { | |
37092 | _v = 1; | |
37093 | } | |
37094 | } | |
37095 | if (_v) { | |
37096 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37097 | } | |
37098 | } | |
37099 | } | |
37100 | if (argc == 3) { | |
37101 | int _v; | |
37102 | { | |
37103 | void *ptr; | |
2f4c0a16 | 37104 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37105 | _v = 0; |
37106 | PyErr_Clear(); | |
37107 | } else { | |
37108 | _v = 1; | |
37109 | } | |
37110 | } | |
37111 | if (_v) { | |
37112 | { | |
37113 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37114 | } | |
37115 | if (_v) { | |
37116 | { | |
37117 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37118 | } | |
37119 | if (_v) { | |
37120 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
37121 | } | |
37122 | } | |
37123 | } | |
37124 | } | |
37125 | ||
37126 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
37127 | return NULL; | |
37128 | } | |
37129 | ||
37130 | ||
37131 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37132 | PyObject *resultobj; | |
37133 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37134 | int *arg2 = 0 ; | |
37135 | int *arg3 = 0 ; | |
37136 | PyObject * obj0 = 0 ; | |
37137 | PyObject * obj1 = 0 ; | |
37138 | PyObject * obj2 = 0 ; | |
37139 | char *kwnames[] = { | |
37140 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37141 | }; | |
37142 | ||
37143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
37147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37148 | SWIG_fail; | |
d14a1e28 | 37149 | if (arg2 == NULL) { |
2f4c0a16 RD |
37150 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37151 | SWIG_fail; | |
d14a1e28 | 37152 | } |
2f4c0a16 RD |
37153 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
37154 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37155 | SWIG_fail; | |
d14a1e28 | 37156 | if (arg3 == NULL) { |
2f4c0a16 RD |
37157 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37158 | SWIG_fail; | |
d14a1e28 RD |
37159 | } |
37160 | { | |
37161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37162 | (arg1)->GetEndPos(*arg2,*arg3); | |
37163 | ||
37164 | wxPyEndAllowThreads(__tstate); | |
37165 | if (PyErr_Occurred()) SWIG_fail; | |
37166 | } | |
37167 | Py_INCREF(Py_None); resultobj = Py_None; | |
37168 | return resultobj; | |
37169 | fail: | |
37170 | return NULL; | |
37171 | } | |
37172 | ||
37173 | ||
37174 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37175 | PyObject *resultobj; | |
37176 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37177 | wxGridBagSizer *result; | |
37178 | PyObject * obj0 = 0 ; | |
37179 | char *kwnames[] = { | |
37180 | (char *) "self", NULL | |
37181 | }; | |
37182 | ||
37183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37186 | { |
37187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37188 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37189 | ||
37190 | wxPyEndAllowThreads(__tstate); | |
37191 | if (PyErr_Occurred()) SWIG_fail; | |
37192 | } | |
2f4c0a16 | 37193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37194 | return resultobj; |
37195 | fail: | |
37196 | return NULL; | |
37197 | } | |
37198 | ||
37199 | ||
37200 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37201 | PyObject *resultobj; | |
37202 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37203 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37204 | PyObject * obj0 = 0 ; | |
37205 | PyObject * obj1 = 0 ; | |
37206 | char *kwnames[] = { | |
37207 | (char *) "self",(char *) "sizer", NULL | |
37208 | }; | |
37209 | ||
37210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37215 | { |
37216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37217 | (arg1)->SetGBSizer(arg2); | |
37218 | ||
37219 | wxPyEndAllowThreads(__tstate); | |
37220 | if (PyErr_Occurred()) SWIG_fail; | |
37221 | } | |
37222 | Py_INCREF(Py_None); resultobj = Py_None; | |
37223 | return resultobj; | |
37224 | fail: | |
37225 | return NULL; | |
37226 | } | |
37227 | ||
37228 | ||
37229 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37230 | PyObject *obj; | |
37231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37232 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37233 | Py_INCREF(obj); | |
37234 | return Py_BuildValue((char *)""); | |
37235 | } | |
37236 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37237 | PyObject *resultobj; | |
37238 | int arg1 = (int) 0 ; | |
37239 | int arg2 = (int) 0 ; | |
37240 | wxGridBagSizer *result; | |
8edf1c75 RD |
37241 | PyObject * obj0 = 0 ; |
37242 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37243 | char *kwnames[] = { |
37244 | (char *) "vgap",(char *) "hgap", NULL | |
37245 | }; | |
37246 | ||
8edf1c75 RD |
37247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37248 | if (obj0) { | |
2f4c0a16 RD |
37249 | arg1 = (int) SWIG_AsInt(obj0); |
37250 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
37251 | } |
37252 | if (obj1) { | |
2f4c0a16 RD |
37253 | arg2 = (int) SWIG_AsInt(obj1); |
37254 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37255 | } |
d14a1e28 RD |
37256 | { |
37257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37258 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37259 | ||
37260 | wxPyEndAllowThreads(__tstate); | |
37261 | if (PyErr_Occurred()) SWIG_fail; | |
37262 | } | |
2f4c0a16 | 37263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37264 | return resultobj; |
37265 | fail: | |
37266 | return NULL; | |
37267 | } | |
37268 | ||
37269 | ||
37270 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37271 | PyObject *resultobj; | |
37272 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37273 | PyObject *arg2 = (PyObject *) 0 ; | |
37274 | wxGBPosition *arg3 = 0 ; | |
37275 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37276 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37277 | int arg5 = (int) 0 ; | |
37278 | int arg6 = (int) 0 ; | |
37279 | PyObject *arg7 = (PyObject *) NULL ; | |
37280 | bool result; | |
37281 | wxGBPosition temp3 ; | |
37282 | wxGBSpan temp4 ; | |
37283 | PyObject * obj0 = 0 ; | |
37284 | PyObject * obj1 = 0 ; | |
37285 | PyObject * obj2 = 0 ; | |
37286 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
37287 | PyObject * obj4 = 0 ; |
37288 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37289 | PyObject * obj6 = 0 ; |
37290 | char *kwnames[] = { | |
37291 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37292 | }; | |
37293 | ||
8edf1c75 | 37294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
37295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37297 | arg2 = obj1; |
37298 | { | |
37299 | arg3 = &temp3; | |
37300 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37301 | } | |
37302 | if (obj3) { | |
37303 | { | |
37304 | arg4 = &temp4; | |
37305 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37306 | } | |
37307 | } | |
8edf1c75 | 37308 | if (obj4) { |
2f4c0a16 RD |
37309 | arg5 = (int) SWIG_AsInt(obj4); |
37310 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
37311 | } |
37312 | if (obj5) { | |
2f4c0a16 RD |
37313 | arg6 = (int) SWIG_AsInt(obj5); |
37314 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 37315 | } |
d14a1e28 RD |
37316 | if (obj6) { |
37317 | arg7 = obj6; | |
37318 | } | |
37319 | { | |
37320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37321 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37322 | ||
37323 | wxPyEndAllowThreads(__tstate); | |
37324 | if (PyErr_Occurred()) SWIG_fail; | |
37325 | } | |
4f89f6a3 RD |
37326 | { |
37327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37328 | } | |
d14a1e28 RD |
37329 | return resultobj; |
37330 | fail: | |
37331 | return NULL; | |
37332 | } | |
37333 | ||
37334 | ||
37335 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37336 | PyObject *resultobj; | |
37337 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37338 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37339 | bool result; | |
37340 | PyObject * obj0 = 0 ; | |
37341 | PyObject * obj1 = 0 ; | |
37342 | char *kwnames[] = { | |
37343 | (char *) "self",(char *) "item", NULL | |
37344 | }; | |
37345 | ||
37346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37349 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37351 | { |
37352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37353 | result = (bool)(arg1)->Add(arg2); | |
37354 | ||
37355 | wxPyEndAllowThreads(__tstate); | |
37356 | if (PyErr_Occurred()) SWIG_fail; | |
37357 | } | |
4f89f6a3 RD |
37358 | { |
37359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37360 | } | |
d14a1e28 RD |
37361 | return resultobj; |
37362 | fail: | |
37363 | return NULL; | |
37364 | } | |
37365 | ||
37366 | ||
37367 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37368 | PyObject *resultobj; | |
37369 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37370 | wxSize result; | |
37371 | PyObject * obj0 = 0 ; | |
37372 | char *kwnames[] = { | |
37373 | (char *) "self", NULL | |
37374 | }; | |
37375 | ||
37376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
37377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37379 | { |
37380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37381 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37382 | ||
37383 | wxPyEndAllowThreads(__tstate); | |
37384 | if (PyErr_Occurred()) SWIG_fail; | |
37385 | } | |
37386 | { | |
37387 | wxSize * resultptr; | |
37388 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 37389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37390 | } |
37391 | return resultobj; | |
37392 | fail: | |
37393 | return NULL; | |
37394 | } | |
37395 | ||
37396 | ||
37397 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37398 | PyObject *resultobj; | |
37399 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37400 | wxSize *arg2 = 0 ; | |
37401 | wxSize temp2 ; | |
37402 | PyObject * obj0 = 0 ; | |
37403 | PyObject * obj1 = 0 ; | |
37404 | char *kwnames[] = { | |
37405 | (char *) "self",(char *) "sz", NULL | |
37406 | }; | |
37407 | ||
37408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37411 | { |
37412 | arg2 = &temp2; | |
37413 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37414 | } | |
37415 | { | |
37416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37417 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37418 | ||
37419 | wxPyEndAllowThreads(__tstate); | |
37420 | if (PyErr_Occurred()) SWIG_fail; | |
37421 | } | |
37422 | Py_INCREF(Py_None); resultobj = Py_None; | |
37423 | return resultobj; | |
37424 | fail: | |
37425 | return NULL; | |
37426 | } | |
37427 | ||
37428 | ||
37429 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37430 | PyObject *resultobj; | |
37431 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37432 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37433 | wxGBPosition result; | |
37434 | PyObject * obj0 = 0 ; | |
37435 | PyObject * obj1 = 0 ; | |
37436 | ||
37437 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37442 | { |
37443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37444 | result = (arg1)->GetItemPosition(arg2); | |
37445 | ||
37446 | wxPyEndAllowThreads(__tstate); | |
37447 | if (PyErr_Occurred()) SWIG_fail; | |
37448 | } | |
37449 | { | |
37450 | wxGBPosition * resultptr; | |
37451 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37453 | } |
37454 | return resultobj; | |
37455 | fail: | |
37456 | return NULL; | |
37457 | } | |
37458 | ||
37459 | ||
37460 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37461 | PyObject *resultobj; | |
37462 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37463 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37464 | wxGBPosition result; | |
37465 | PyObject * obj0 = 0 ; | |
37466 | PyObject * obj1 = 0 ; | |
37467 | ||
37468 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37473 | { |
37474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37475 | result = (arg1)->GetItemPosition(arg2); | |
37476 | ||
37477 | wxPyEndAllowThreads(__tstate); | |
37478 | if (PyErr_Occurred()) SWIG_fail; | |
37479 | } | |
37480 | { | |
37481 | wxGBPosition * resultptr; | |
37482 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37483 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37484 | } |
37485 | return resultobj; | |
37486 | fail: | |
37487 | return NULL; | |
37488 | } | |
37489 | ||
37490 | ||
37491 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37492 | PyObject *resultobj; | |
37493 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37494 | size_t arg2 ; | |
37495 | wxGBPosition result; | |
37496 | PyObject * obj0 = 0 ; | |
37497 | PyObject * obj1 = 0 ; | |
37498 | ||
37499 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37502 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37504 | { |
37505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37506 | result = (arg1)->GetItemPosition(arg2); | |
37507 | ||
37508 | wxPyEndAllowThreads(__tstate); | |
37509 | if (PyErr_Occurred()) SWIG_fail; | |
37510 | } | |
37511 | { | |
37512 | wxGBPosition * resultptr; | |
37513 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
2f4c0a16 | 37514 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37515 | } |
37516 | return resultobj; | |
37517 | fail: | |
37518 | return NULL; | |
37519 | } | |
37520 | ||
37521 | ||
37522 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37523 | int argc; | |
37524 | PyObject *argv[3]; | |
37525 | int ii; | |
37526 | ||
37527 | argc = PyObject_Length(args); | |
37528 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37529 | argv[ii] = PyTuple_GetItem(args,ii); | |
37530 | } | |
37531 | if (argc == 2) { | |
37532 | int _v; | |
37533 | { | |
37534 | void *ptr; | |
2f4c0a16 | 37535 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37536 | _v = 0; |
37537 | PyErr_Clear(); | |
37538 | } else { | |
37539 | _v = 1; | |
37540 | } | |
37541 | } | |
37542 | if (_v) { | |
37543 | { | |
37544 | void *ptr; | |
2f4c0a16 | 37545 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37546 | _v = 0; |
37547 | PyErr_Clear(); | |
37548 | } else { | |
37549 | _v = 1; | |
37550 | } | |
37551 | } | |
37552 | if (_v) { | |
37553 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37554 | } | |
37555 | } | |
37556 | } | |
37557 | if (argc == 2) { | |
37558 | int _v; | |
37559 | { | |
37560 | void *ptr; | |
2f4c0a16 | 37561 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37562 | _v = 0; |
37563 | PyErr_Clear(); | |
37564 | } else { | |
37565 | _v = 1; | |
37566 | } | |
37567 | } | |
37568 | if (_v) { | |
37569 | { | |
37570 | void *ptr; | |
2f4c0a16 | 37571 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37572 | _v = 0; |
37573 | PyErr_Clear(); | |
37574 | } else { | |
37575 | _v = 1; | |
37576 | } | |
37577 | } | |
37578 | if (_v) { | |
37579 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
37580 | } | |
37581 | } | |
37582 | } | |
37583 | if (argc == 2) { | |
37584 | int _v; | |
37585 | { | |
37586 | void *ptr; | |
2f4c0a16 | 37587 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37588 | _v = 0; |
37589 | PyErr_Clear(); | |
37590 | } else { | |
37591 | _v = 1; | |
37592 | } | |
37593 | } | |
37594 | if (_v) { | |
2f4c0a16 | 37595 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37596 | if (_v) { |
37597 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
37598 | } | |
37599 | } | |
37600 | } | |
37601 | ||
37602 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
37603 | return NULL; | |
37604 | } | |
37605 | ||
37606 | ||
37607 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37608 | PyObject *resultobj; | |
37609 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37610 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37611 | wxGBPosition *arg3 = 0 ; | |
37612 | bool result; | |
37613 | wxGBPosition temp3 ; | |
37614 | PyObject * obj0 = 0 ; | |
37615 | PyObject * obj1 = 0 ; | |
37616 | PyObject * obj2 = 0 ; | |
37617 | ||
37618 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37623 | { |
37624 | arg3 = &temp3; | |
37625 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37626 | } | |
37627 | { | |
37628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37629 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37630 | ||
37631 | wxPyEndAllowThreads(__tstate); | |
37632 | if (PyErr_Occurred()) SWIG_fail; | |
37633 | } | |
4f89f6a3 RD |
37634 | { |
37635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37636 | } | |
d14a1e28 RD |
37637 | return resultobj; |
37638 | fail: | |
37639 | return NULL; | |
37640 | } | |
37641 | ||
37642 | ||
37643 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37644 | PyObject *resultobj; | |
37645 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37646 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37647 | wxGBPosition *arg3 = 0 ; | |
37648 | bool result; | |
37649 | wxGBPosition temp3 ; | |
37650 | PyObject * obj0 = 0 ; | |
37651 | PyObject * obj1 = 0 ; | |
37652 | PyObject * obj2 = 0 ; | |
37653 | ||
37654 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37659 | { |
37660 | arg3 = &temp3; | |
37661 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37662 | } | |
37663 | { | |
37664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37665 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37666 | ||
37667 | wxPyEndAllowThreads(__tstate); | |
37668 | if (PyErr_Occurred()) SWIG_fail; | |
37669 | } | |
4f89f6a3 RD |
37670 | { |
37671 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37672 | } | |
d14a1e28 RD |
37673 | return resultobj; |
37674 | fail: | |
37675 | return NULL; | |
37676 | } | |
37677 | ||
37678 | ||
37679 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37680 | PyObject *resultobj; | |
37681 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37682 | size_t arg2 ; | |
37683 | wxGBPosition *arg3 = 0 ; | |
37684 | bool result; | |
37685 | wxGBPosition temp3 ; | |
37686 | PyObject * obj0 = 0 ; | |
37687 | PyObject * obj1 = 0 ; | |
37688 | PyObject * obj2 = 0 ; | |
37689 | ||
37690 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
37691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37693 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37694 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37695 | { |
37696 | arg3 = &temp3; | |
37697 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37698 | } | |
37699 | { | |
37700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37701 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37702 | ||
37703 | wxPyEndAllowThreads(__tstate); | |
37704 | if (PyErr_Occurred()) SWIG_fail; | |
37705 | } | |
4f89f6a3 RD |
37706 | { |
37707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37708 | } | |
d14a1e28 RD |
37709 | return resultobj; |
37710 | fail: | |
37711 | return NULL; | |
37712 | } | |
37713 | ||
37714 | ||
37715 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
37716 | int argc; | |
37717 | PyObject *argv[4]; | |
37718 | int ii; | |
37719 | ||
37720 | argc = PyObject_Length(args); | |
37721 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37722 | argv[ii] = PyTuple_GetItem(args,ii); | |
37723 | } | |
37724 | if (argc == 3) { | |
37725 | int _v; | |
37726 | { | |
37727 | void *ptr; | |
2f4c0a16 | 37728 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37729 | _v = 0; |
37730 | PyErr_Clear(); | |
37731 | } else { | |
37732 | _v = 1; | |
37733 | } | |
37734 | } | |
37735 | if (_v) { | |
37736 | { | |
37737 | void *ptr; | |
2f4c0a16 | 37738 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37739 | _v = 0; |
37740 | PyErr_Clear(); | |
37741 | } else { | |
37742 | _v = 1; | |
37743 | } | |
37744 | } | |
37745 | if (_v) { | |
37746 | { | |
37747 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37748 | } | |
37749 | if (_v) { | |
37750 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
37751 | } | |
37752 | } | |
37753 | } | |
37754 | } | |
37755 | if (argc == 3) { | |
37756 | int _v; | |
37757 | { | |
37758 | void *ptr; | |
2f4c0a16 | 37759 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37760 | _v = 0; |
37761 | PyErr_Clear(); | |
37762 | } else { | |
37763 | _v = 1; | |
37764 | } | |
37765 | } | |
37766 | if (_v) { | |
37767 | { | |
37768 | void *ptr; | |
2f4c0a16 | 37769 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37770 | _v = 0; |
37771 | PyErr_Clear(); | |
37772 | } else { | |
37773 | _v = 1; | |
37774 | } | |
37775 | } | |
37776 | if (_v) { | |
37777 | { | |
37778 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37779 | } | |
37780 | if (_v) { | |
37781 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
37782 | } | |
37783 | } | |
37784 | } | |
37785 | } | |
37786 | if (argc == 3) { | |
37787 | int _v; | |
37788 | { | |
37789 | void *ptr; | |
2f4c0a16 | 37790 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37791 | _v = 0; |
37792 | PyErr_Clear(); | |
37793 | } else { | |
37794 | _v = 1; | |
37795 | } | |
37796 | } | |
37797 | if (_v) { | |
2f4c0a16 | 37798 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37799 | if (_v) { |
37800 | { | |
37801 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37802 | } | |
37803 | if (_v) { | |
37804 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
37805 | } | |
37806 | } | |
37807 | } | |
37808 | } | |
37809 | ||
37810 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
37811 | return NULL; | |
37812 | } | |
37813 | ||
37814 | ||
37815 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37816 | PyObject *resultobj; | |
37817 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37818 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37819 | wxGBSpan result; | |
37820 | PyObject * obj0 = 0 ; | |
37821 | PyObject * obj1 = 0 ; | |
37822 | ||
37823 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37828 | { |
37829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37830 | result = (arg1)->GetItemSpan(arg2); | |
37831 | ||
37832 | wxPyEndAllowThreads(__tstate); | |
37833 | if (PyErr_Occurred()) SWIG_fail; | |
37834 | } | |
37835 | { | |
37836 | wxGBSpan * resultptr; | |
37837 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37839 | } |
37840 | return resultobj; | |
37841 | fail: | |
37842 | return NULL; | |
37843 | } | |
37844 | ||
37845 | ||
37846 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
37847 | PyObject *resultobj; | |
37848 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37849 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37850 | wxGBSpan result; | |
37851 | PyObject * obj0 = 0 ; | |
37852 | PyObject * obj1 = 0 ; | |
37853 | ||
37854 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37859 | { |
37860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37861 | result = (arg1)->GetItemSpan(arg2); | |
37862 | ||
37863 | wxPyEndAllowThreads(__tstate); | |
37864 | if (PyErr_Occurred()) SWIG_fail; | |
37865 | } | |
37866 | { | |
37867 | wxGBSpan * resultptr; | |
37868 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37869 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37870 | } |
37871 | return resultobj; | |
37872 | fail: | |
37873 | return NULL; | |
37874 | } | |
37875 | ||
37876 | ||
37877 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
37878 | PyObject *resultobj; | |
37879 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37880 | size_t arg2 ; | |
37881 | wxGBSpan result; | |
37882 | PyObject * obj0 = 0 ; | |
37883 | PyObject * obj1 = 0 ; | |
37884 | ||
37885 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
37886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37888 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37889 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37890 | { |
37891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37892 | result = (arg1)->GetItemSpan(arg2); | |
37893 | ||
37894 | wxPyEndAllowThreads(__tstate); | |
37895 | if (PyErr_Occurred()) SWIG_fail; | |
37896 | } | |
37897 | { | |
37898 | wxGBSpan * resultptr; | |
37899 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
2f4c0a16 | 37900 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37901 | } |
37902 | return resultobj; | |
37903 | fail: | |
37904 | return NULL; | |
37905 | } | |
37906 | ||
37907 | ||
37908 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
37909 | int argc; | |
37910 | PyObject *argv[3]; | |
37911 | int ii; | |
37912 | ||
37913 | argc = PyObject_Length(args); | |
37914 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37915 | argv[ii] = PyTuple_GetItem(args,ii); | |
37916 | } | |
37917 | if (argc == 2) { | |
37918 | int _v; | |
37919 | { | |
37920 | void *ptr; | |
2f4c0a16 | 37921 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37922 | _v = 0; |
37923 | PyErr_Clear(); | |
37924 | } else { | |
37925 | _v = 1; | |
37926 | } | |
37927 | } | |
37928 | if (_v) { | |
37929 | { | |
37930 | void *ptr; | |
2f4c0a16 | 37931 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37932 | _v = 0; |
37933 | PyErr_Clear(); | |
37934 | } else { | |
37935 | _v = 1; | |
37936 | } | |
37937 | } | |
37938 | if (_v) { | |
37939 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
37940 | } | |
37941 | } | |
37942 | } | |
37943 | if (argc == 2) { | |
37944 | int _v; | |
37945 | { | |
37946 | void *ptr; | |
2f4c0a16 | 37947 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37948 | _v = 0; |
37949 | PyErr_Clear(); | |
37950 | } else { | |
37951 | _v = 1; | |
37952 | } | |
37953 | } | |
37954 | if (_v) { | |
37955 | { | |
37956 | void *ptr; | |
2f4c0a16 | 37957 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37958 | _v = 0; |
37959 | PyErr_Clear(); | |
37960 | } else { | |
37961 | _v = 1; | |
37962 | } | |
37963 | } | |
37964 | if (_v) { | |
37965 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
37966 | } | |
37967 | } | |
37968 | } | |
37969 | if (argc == 2) { | |
37970 | int _v; | |
37971 | { | |
37972 | void *ptr; | |
2f4c0a16 | 37973 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37974 | _v = 0; |
37975 | PyErr_Clear(); | |
37976 | } else { | |
37977 | _v = 1; | |
37978 | } | |
37979 | } | |
37980 | if (_v) { | |
2f4c0a16 | 37981 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37982 | if (_v) { |
37983 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
37984 | } | |
37985 | } | |
37986 | } | |
37987 | ||
37988 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
37989 | return NULL; | |
37990 | } | |
37991 | ||
37992 | ||
37993 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37994 | PyObject *resultobj; | |
37995 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37997 | wxGBSpan *arg3 = 0 ; | |
37998 | bool result; | |
37999 | wxGBSpan temp3 ; | |
38000 | PyObject * obj0 = 0 ; | |
38001 | PyObject * obj1 = 0 ; | |
38002 | PyObject * obj2 = 0 ; | |
38003 | ||
38004 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38009 | { |
38010 | arg3 = &temp3; | |
38011 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38012 | } | |
38013 | { | |
38014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38015 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38016 | ||
38017 | wxPyEndAllowThreads(__tstate); | |
38018 | if (PyErr_Occurred()) SWIG_fail; | |
38019 | } | |
4f89f6a3 RD |
38020 | { |
38021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38022 | } | |
d14a1e28 RD |
38023 | return resultobj; |
38024 | fail: | |
38025 | return NULL; | |
38026 | } | |
38027 | ||
38028 | ||
38029 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38030 | PyObject *resultobj; | |
38031 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38032 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38033 | wxGBSpan *arg3 = 0 ; | |
38034 | bool result; | |
38035 | wxGBSpan temp3 ; | |
38036 | PyObject * obj0 = 0 ; | |
38037 | PyObject * obj1 = 0 ; | |
38038 | PyObject * obj2 = 0 ; | |
38039 | ||
38040 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38045 | { |
38046 | arg3 = &temp3; | |
38047 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38048 | } | |
38049 | { | |
38050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38051 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38052 | ||
38053 | wxPyEndAllowThreads(__tstate); | |
38054 | if (PyErr_Occurred()) SWIG_fail; | |
38055 | } | |
4f89f6a3 RD |
38056 | { |
38057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38058 | } | |
d14a1e28 RD |
38059 | return resultobj; |
38060 | fail: | |
38061 | return NULL; | |
38062 | } | |
38063 | ||
38064 | ||
38065 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38066 | PyObject *resultobj; | |
38067 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38068 | size_t arg2 ; | |
38069 | wxGBSpan *arg3 = 0 ; | |
38070 | bool result; | |
38071 | wxGBSpan temp3 ; | |
38072 | PyObject * obj0 = 0 ; | |
38073 | PyObject * obj1 = 0 ; | |
38074 | PyObject * obj2 = 0 ; | |
38075 | ||
38076 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38079 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38080 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38081 | { |
38082 | arg3 = &temp3; | |
38083 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38084 | } | |
38085 | { | |
38086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38087 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38088 | ||
38089 | wxPyEndAllowThreads(__tstate); | |
38090 | if (PyErr_Occurred()) SWIG_fail; | |
38091 | } | |
4f89f6a3 RD |
38092 | { |
38093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38094 | } | |
d14a1e28 RD |
38095 | return resultobj; |
38096 | fail: | |
38097 | return NULL; | |
38098 | } | |
38099 | ||
38100 | ||
38101 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38102 | int argc; | |
38103 | PyObject *argv[4]; | |
38104 | int ii; | |
38105 | ||
38106 | argc = PyObject_Length(args); | |
38107 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38108 | argv[ii] = PyTuple_GetItem(args,ii); | |
38109 | } | |
38110 | if (argc == 3) { | |
38111 | int _v; | |
38112 | { | |
38113 | void *ptr; | |
2f4c0a16 | 38114 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38115 | _v = 0; |
38116 | PyErr_Clear(); | |
38117 | } else { | |
38118 | _v = 1; | |
38119 | } | |
38120 | } | |
38121 | if (_v) { | |
38122 | { | |
38123 | void *ptr; | |
2f4c0a16 | 38124 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38125 | _v = 0; |
38126 | PyErr_Clear(); | |
38127 | } else { | |
38128 | _v = 1; | |
38129 | } | |
38130 | } | |
38131 | if (_v) { | |
38132 | { | |
38133 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38134 | } | |
38135 | if (_v) { | |
38136 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38137 | } | |
38138 | } | |
38139 | } | |
38140 | } | |
38141 | if (argc == 3) { | |
38142 | int _v; | |
38143 | { | |
38144 | void *ptr; | |
2f4c0a16 | 38145 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38146 | _v = 0; |
38147 | PyErr_Clear(); | |
38148 | } else { | |
38149 | _v = 1; | |
38150 | } | |
38151 | } | |
38152 | if (_v) { | |
38153 | { | |
38154 | void *ptr; | |
2f4c0a16 | 38155 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38156 | _v = 0; |
38157 | PyErr_Clear(); | |
38158 | } else { | |
38159 | _v = 1; | |
38160 | } | |
38161 | } | |
38162 | if (_v) { | |
38163 | { | |
38164 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38165 | } | |
38166 | if (_v) { | |
38167 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38168 | } | |
38169 | } | |
38170 | } | |
38171 | } | |
38172 | if (argc == 3) { | |
38173 | int _v; | |
38174 | { | |
38175 | void *ptr; | |
2f4c0a16 | 38176 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38177 | _v = 0; |
38178 | PyErr_Clear(); | |
38179 | } else { | |
38180 | _v = 1; | |
38181 | } | |
38182 | } | |
38183 | if (_v) { | |
2f4c0a16 | 38184 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38185 | if (_v) { |
38186 | { | |
38187 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38188 | } | |
38189 | if (_v) { | |
38190 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38191 | } | |
38192 | } | |
38193 | } | |
38194 | } | |
38195 | ||
38196 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38197 | return NULL; | |
38198 | } | |
38199 | ||
38200 | ||
38201 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38202 | PyObject *resultobj; | |
38203 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38205 | wxGBSizerItem *result; | |
38206 | PyObject * obj0 = 0 ; | |
38207 | PyObject * obj1 = 0 ; | |
38208 | ||
38209 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38214 | { |
38215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38216 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38217 | ||
38218 | wxPyEndAllowThreads(__tstate); | |
38219 | if (PyErr_Occurred()) SWIG_fail; | |
38220 | } | |
2f4c0a16 | 38221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38222 | return resultobj; |
38223 | fail: | |
38224 | return NULL; | |
38225 | } | |
38226 | ||
38227 | ||
38228 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38229 | PyObject *resultobj; | |
38230 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38231 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38232 | wxGBSizerItem *result; | |
38233 | PyObject * obj0 = 0 ; | |
38234 | PyObject * obj1 = 0 ; | |
38235 | ||
38236 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38239 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38241 | { |
38242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38243 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38244 | ||
38245 | wxPyEndAllowThreads(__tstate); | |
38246 | if (PyErr_Occurred()) SWIG_fail; | |
38247 | } | |
2f4c0a16 | 38248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38249 | return resultobj; |
38250 | fail: | |
38251 | return NULL; | |
38252 | } | |
38253 | ||
38254 | ||
38255 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38256 | int argc; | |
38257 | PyObject *argv[3]; | |
38258 | int ii; | |
38259 | ||
38260 | argc = PyObject_Length(args); | |
38261 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38262 | argv[ii] = PyTuple_GetItem(args,ii); | |
38263 | } | |
38264 | if (argc == 2) { | |
38265 | int _v; | |
38266 | { | |
38267 | void *ptr; | |
2f4c0a16 | 38268 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38269 | _v = 0; |
38270 | PyErr_Clear(); | |
38271 | } else { | |
38272 | _v = 1; | |
38273 | } | |
38274 | } | |
38275 | if (_v) { | |
38276 | { | |
38277 | void *ptr; | |
2f4c0a16 | 38278 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38279 | _v = 0; |
38280 | PyErr_Clear(); | |
38281 | } else { | |
38282 | _v = 1; | |
38283 | } | |
38284 | } | |
38285 | if (_v) { | |
38286 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38287 | } | |
38288 | } | |
38289 | } | |
38290 | if (argc == 2) { | |
38291 | int _v; | |
38292 | { | |
38293 | void *ptr; | |
2f4c0a16 | 38294 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38295 | _v = 0; |
38296 | PyErr_Clear(); | |
38297 | } else { | |
38298 | _v = 1; | |
38299 | } | |
38300 | } | |
38301 | if (_v) { | |
38302 | { | |
38303 | void *ptr; | |
2f4c0a16 | 38304 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38305 | _v = 0; |
38306 | PyErr_Clear(); | |
38307 | } else { | |
38308 | _v = 1; | |
38309 | } | |
38310 | } | |
38311 | if (_v) { | |
38312 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38313 | } | |
38314 | } | |
38315 | } | |
38316 | ||
38317 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38318 | return NULL; | |
38319 | } | |
38320 | ||
38321 | ||
38322 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38323 | PyObject *resultobj; | |
38324 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38325 | wxGBPosition *arg2 = 0 ; | |
38326 | wxGBSizerItem *result; | |
38327 | wxGBPosition temp2 ; | |
38328 | PyObject * obj0 = 0 ; | |
38329 | PyObject * obj1 = 0 ; | |
38330 | char *kwnames[] = { | |
38331 | (char *) "self",(char *) "pos", NULL | |
38332 | }; | |
38333 | ||
38334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38337 | { |
38338 | arg2 = &temp2; | |
38339 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38340 | } | |
38341 | { | |
38342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38343 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38344 | ||
38345 | wxPyEndAllowThreads(__tstate); | |
38346 | if (PyErr_Occurred()) SWIG_fail; | |
38347 | } | |
2f4c0a16 | 38348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38349 | return resultobj; |
38350 | fail: | |
38351 | return NULL; | |
38352 | } | |
38353 | ||
38354 | ||
423f194a RD |
38355 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38356 | PyObject *resultobj; | |
38357 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38358 | wxPoint *arg2 = 0 ; | |
38359 | wxGBSizerItem *result; | |
38360 | wxPoint temp2 ; | |
38361 | PyObject * obj0 = 0 ; | |
38362 | PyObject * obj1 = 0 ; | |
38363 | char *kwnames[] = { | |
38364 | (char *) "self",(char *) "pt", NULL | |
38365 | }; | |
38366 | ||
38367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
38370 | { |
38371 | arg2 = &temp2; | |
38372 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38373 | } | |
38374 | { | |
38375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38376 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38377 | ||
38378 | wxPyEndAllowThreads(__tstate); | |
38379 | if (PyErr_Occurred()) SWIG_fail; | |
38380 | } | |
2f4c0a16 | 38381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
423f194a RD |
38382 | return resultobj; |
38383 | fail: | |
38384 | return NULL; | |
38385 | } | |
38386 | ||
38387 | ||
d14a1e28 RD |
38388 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
38389 | PyObject *resultobj; | |
38390 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38391 | wxObject *arg2 = (wxObject *) 0 ; | |
38392 | wxGBSizerItem *result; | |
38393 | PyObject * obj0 = 0 ; | |
38394 | PyObject * obj1 = 0 ; | |
38395 | char *kwnames[] = { | |
38396 | (char *) "self",(char *) "userData", NULL | |
38397 | }; | |
38398 | ||
38399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
38400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
38403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38404 | { |
38405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38406 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
38407 | ||
38408 | wxPyEndAllowThreads(__tstate); | |
38409 | if (PyErr_Occurred()) SWIG_fail; | |
38410 | } | |
2f4c0a16 | 38411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38412 | return resultobj; |
38413 | fail: | |
38414 | return NULL; | |
38415 | } | |
38416 | ||
38417 | ||
38418 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38419 | PyObject *resultobj; | |
38420 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38421 | PyObject * obj0 = 0 ; | |
38422 | char *kwnames[] = { | |
38423 | (char *) "self", NULL | |
38424 | }; | |
38425 | ||
38426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38429 | { |
38430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38431 | (arg1)->RecalcSizes(); | |
38432 | ||
38433 | wxPyEndAllowThreads(__tstate); | |
38434 | if (PyErr_Occurred()) SWIG_fail; | |
38435 | } | |
38436 | Py_INCREF(Py_None); resultobj = Py_None; | |
38437 | return resultobj; | |
38438 | fail: | |
38439 | return NULL; | |
38440 | } | |
38441 | ||
38442 | ||
38443 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38444 | PyObject *resultobj; | |
38445 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38446 | wxSize result; | |
38447 | PyObject * obj0 = 0 ; | |
38448 | char *kwnames[] = { | |
38449 | (char *) "self", NULL | |
38450 | }; | |
38451 | ||
38452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38455 | { |
38456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38457 | result = (arg1)->CalcMin(); | |
38458 | ||
38459 | wxPyEndAllowThreads(__tstate); | |
38460 | if (PyErr_Occurred()) SWIG_fail; | |
38461 | } | |
38462 | { | |
38463 | wxSize * resultptr; | |
38464 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 38465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38466 | } |
38467 | return resultobj; | |
38468 | fail: | |
38469 | return NULL; | |
38470 | } | |
38471 | ||
38472 | ||
38473 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
38474 | PyObject *resultobj; | |
38475 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38476 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38477 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38478 | bool result; | |
38479 | PyObject * obj0 = 0 ; | |
38480 | PyObject * obj1 = 0 ; | |
38481 | PyObject * obj2 = 0 ; | |
38482 | ||
38483 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
38484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38486 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 38488 | if (obj2) { |
2f4c0a16 RD |
38489 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
38490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38491 | } |
38492 | { | |
38493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38494 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38495 | ||
38496 | wxPyEndAllowThreads(__tstate); | |
38497 | if (PyErr_Occurred()) SWIG_fail; | |
38498 | } | |
4f89f6a3 RD |
38499 | { |
38500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38501 | } | |
d14a1e28 RD |
38502 | return resultobj; |
38503 | fail: | |
38504 | return NULL; | |
38505 | } | |
38506 | ||
38507 | ||
38508 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
38509 | PyObject *resultobj; | |
38510 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38511 | wxGBPosition *arg2 = 0 ; | |
38512 | wxGBSpan *arg3 = 0 ; | |
38513 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38514 | bool result; | |
38515 | wxGBPosition temp2 ; | |
38516 | wxGBSpan temp3 ; | |
38517 | PyObject * obj0 = 0 ; | |
38518 | PyObject * obj1 = 0 ; | |
38519 | PyObject * obj2 = 0 ; | |
38520 | PyObject * obj3 = 0 ; | |
38521 | ||
38522 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
38523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38525 | { |
38526 | arg2 = &temp2; | |
38527 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38528 | } | |
38529 | { | |
38530 | arg3 = &temp3; | |
38531 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38532 | } | |
38533 | if (obj3) { | |
2f4c0a16 RD |
38534 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38536 | } |
38537 | { | |
38538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38539 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38540 | ||
38541 | wxPyEndAllowThreads(__tstate); | |
38542 | if (PyErr_Occurred()) SWIG_fail; | |
38543 | } | |
4f89f6a3 RD |
38544 | { |
38545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38546 | } | |
d14a1e28 RD |
38547 | return resultobj; |
38548 | fail: | |
38549 | return NULL; | |
38550 | } | |
38551 | ||
38552 | ||
38553 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
38554 | int argc; | |
38555 | PyObject *argv[5]; | |
38556 | int ii; | |
38557 | ||
38558 | argc = PyObject_Length(args); | |
38559 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
38560 | argv[ii] = PyTuple_GetItem(args,ii); | |
38561 | } | |
38562 | if ((argc >= 2) && (argc <= 3)) { | |
38563 | int _v; | |
38564 | { | |
38565 | void *ptr; | |
2f4c0a16 | 38566 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38567 | _v = 0; |
38568 | PyErr_Clear(); | |
38569 | } else { | |
38570 | _v = 1; | |
38571 | } | |
38572 | } | |
38573 | if (_v) { | |
38574 | { | |
38575 | void *ptr; | |
2f4c0a16 | 38576 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38577 | _v = 0; |
38578 | PyErr_Clear(); | |
38579 | } else { | |
38580 | _v = 1; | |
38581 | } | |
38582 | } | |
38583 | if (_v) { | |
38584 | if (argc <= 2) { | |
38585 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38586 | } | |
38587 | { | |
38588 | void *ptr; | |
2f4c0a16 | 38589 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38590 | _v = 0; |
38591 | PyErr_Clear(); | |
38592 | } else { | |
38593 | _v = 1; | |
38594 | } | |
38595 | } | |
38596 | if (_v) { | |
38597 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38598 | } | |
38599 | } | |
38600 | } | |
38601 | } | |
38602 | if ((argc >= 3) && (argc <= 4)) { | |
38603 | int _v; | |
38604 | { | |
38605 | void *ptr; | |
2f4c0a16 | 38606 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38607 | _v = 0; |
38608 | PyErr_Clear(); | |
38609 | } else { | |
38610 | _v = 1; | |
38611 | } | |
38612 | } | |
38613 | if (_v) { | |
38614 | { | |
38615 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38616 | } | |
38617 | if (_v) { | |
38618 | { | |
38619 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38620 | } | |
38621 | if (_v) { | |
38622 | if (argc <= 3) { | |
38623 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38624 | } | |
38625 | { | |
38626 | void *ptr; | |
2f4c0a16 | 38627 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38628 | _v = 0; |
38629 | PyErr_Clear(); | |
38630 | } else { | |
38631 | _v = 1; | |
38632 | } | |
38633 | } | |
38634 | if (_v) { | |
38635 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38636 | } | |
38637 | } | |
38638 | } | |
38639 | } | |
38640 | } | |
38641 | ||
38642 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
38643 | return NULL; | |
38644 | } | |
38645 | ||
38646 | ||
38647 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
38648 | PyObject *obj; | |
38649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38650 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
38651 | Py_INCREF(obj); | |
38652 | return Py_BuildValue((char *)""); | |
38653 | } | |
38654 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38655 | PyObject *resultobj; | |
38656 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38657 | int arg2 ; | |
38658 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38659 | int arg4 ; | |
38660 | int arg5 = (int) 0 ; | |
38661 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
38662 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38663 | PyObject * obj1 = 0 ; |
d14a1e28 | 38664 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
38665 | PyObject * obj3 = 0 ; |
38666 | PyObject * obj4 = 0 ; | |
38667 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38668 | char *kwnames[] = { |
38669 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
38670 | }; | |
38671 | ||
8edf1c75 | 38672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
38673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38675 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38676 | if (PyErr_Occurred()) SWIG_fail; | |
38677 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38679 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
38680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38681 | if (obj4) { |
2f4c0a16 RD |
38682 | arg5 = (int) SWIG_AsInt(obj4); |
38683 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
38684 | } |
38685 | if (obj5) { | |
2f4c0a16 RD |
38686 | arg6 = (int) SWIG_AsInt(obj5); |
38687 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38688 | } |
d14a1e28 RD |
38689 | { |
38690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38691 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
38692 | ||
38693 | wxPyEndAllowThreads(__tstate); | |
38694 | if (PyErr_Occurred()) SWIG_fail; | |
38695 | } | |
38696 | Py_INCREF(Py_None); resultobj = Py_None; | |
38697 | return resultobj; | |
38698 | fail: | |
38699 | return NULL; | |
38700 | } | |
38701 | ||
38702 | ||
38703 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38704 | PyObject *resultobj; | |
38705 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38706 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38707 | int arg3 = (int) 0 ; | |
38708 | PyObject * obj0 = 0 ; | |
38709 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38710 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38711 | char *kwnames[] = { |
38712 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38713 | }; | |
38714 | ||
8edf1c75 | 38715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38720 | if (obj2) { |
2f4c0a16 RD |
38721 | arg3 = (int) SWIG_AsInt(obj2); |
38722 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38723 | } |
d14a1e28 RD |
38724 | { |
38725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38726 | (arg1)->LeftOf(arg2,arg3); | |
38727 | ||
38728 | wxPyEndAllowThreads(__tstate); | |
38729 | if (PyErr_Occurred()) SWIG_fail; | |
38730 | } | |
38731 | Py_INCREF(Py_None); resultobj = Py_None; | |
38732 | return resultobj; | |
38733 | fail: | |
38734 | return NULL; | |
38735 | } | |
38736 | ||
38737 | ||
38738 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38739 | PyObject *resultobj; | |
38740 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38741 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38742 | int arg3 = (int) 0 ; | |
38743 | PyObject * obj0 = 0 ; | |
38744 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38745 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38746 | char *kwnames[] = { |
38747 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38748 | }; | |
38749 | ||
8edf1c75 | 38750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38755 | if (obj2) { |
2f4c0a16 RD |
38756 | arg3 = (int) SWIG_AsInt(obj2); |
38757 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38758 | } |
d14a1e28 RD |
38759 | { |
38760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38761 | (arg1)->RightOf(arg2,arg3); | |
38762 | ||
38763 | wxPyEndAllowThreads(__tstate); | |
38764 | if (PyErr_Occurred()) SWIG_fail; | |
38765 | } | |
38766 | Py_INCREF(Py_None); resultobj = Py_None; | |
38767 | return resultobj; | |
38768 | fail: | |
38769 | return NULL; | |
38770 | } | |
38771 | ||
38772 | ||
38773 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38774 | PyObject *resultobj; | |
38775 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38776 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38777 | int arg3 = (int) 0 ; | |
38778 | PyObject * obj0 = 0 ; | |
38779 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38780 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38781 | char *kwnames[] = { |
38782 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38783 | }; | |
38784 | ||
8edf1c75 | 38785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38788 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38790 | if (obj2) { |
2f4c0a16 RD |
38791 | arg3 = (int) SWIG_AsInt(obj2); |
38792 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38793 | } |
d14a1e28 RD |
38794 | { |
38795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38796 | (arg1)->Above(arg2,arg3); | |
38797 | ||
38798 | wxPyEndAllowThreads(__tstate); | |
38799 | if (PyErr_Occurred()) SWIG_fail; | |
38800 | } | |
38801 | Py_INCREF(Py_None); resultobj = Py_None; | |
38802 | return resultobj; | |
38803 | fail: | |
38804 | return NULL; | |
38805 | } | |
38806 | ||
38807 | ||
38808 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38809 | PyObject *resultobj; | |
38810 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38811 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38812 | int arg3 = (int) 0 ; | |
38813 | PyObject * obj0 = 0 ; | |
38814 | PyObject * obj1 = 0 ; | |
8edf1c75 | 38815 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38816 | char *kwnames[] = { |
38817 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38818 | }; | |
38819 | ||
8edf1c75 | 38820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
38821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38823 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 38825 | if (obj2) { |
2f4c0a16 RD |
38826 | arg3 = (int) SWIG_AsInt(obj2); |
38827 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38828 | } |
d14a1e28 RD |
38829 | { |
38830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38831 | (arg1)->Below(arg2,arg3); | |
38832 | ||
38833 | wxPyEndAllowThreads(__tstate); | |
38834 | if (PyErr_Occurred()) SWIG_fail; | |
38835 | } | |
38836 | Py_INCREF(Py_None); resultobj = Py_None; | |
38837 | return resultobj; | |
38838 | fail: | |
38839 | return NULL; | |
38840 | } | |
38841 | ||
38842 | ||
38843 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38844 | PyObject *resultobj; | |
38845 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38846 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38847 | int arg3 ; | |
38848 | int arg4 = (int) 0 ; | |
38849 | PyObject * obj0 = 0 ; | |
38850 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38851 | PyObject * obj2 = 0 ; |
38852 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38853 | char *kwnames[] = { |
38854 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38855 | }; | |
38856 | ||
8edf1c75 | 38857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38862 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38863 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38864 | if (obj3) { |
2f4c0a16 RD |
38865 | arg4 = (int) SWIG_AsInt(obj3); |
38866 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 38867 | } |
d14a1e28 RD |
38868 | { |
38869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38870 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38871 | ||
38872 | wxPyEndAllowThreads(__tstate); | |
38873 | if (PyErr_Occurred()) SWIG_fail; | |
38874 | } | |
38875 | Py_INCREF(Py_None); resultobj = Py_None; | |
38876 | return resultobj; | |
38877 | fail: | |
38878 | return NULL; | |
38879 | } | |
38880 | ||
38881 | ||
38882 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38883 | PyObject *resultobj; | |
38884 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38885 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38886 | int arg3 ; | |
38887 | int arg4 ; | |
38888 | PyObject * obj0 = 0 ; | |
38889 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
38890 | PyObject * obj2 = 0 ; |
38891 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38892 | char *kwnames[] = { |
38893 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38894 | }; | |
38895 | ||
8edf1c75 | 38896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
38897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38901 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38902 | if (PyErr_Occurred()) SWIG_fail; | |
38903 | arg4 = (int) SWIG_AsInt(obj3); | |
38904 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38905 | { |
38906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38907 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38908 | ||
38909 | wxPyEndAllowThreads(__tstate); | |
38910 | if (PyErr_Occurred()) SWIG_fail; | |
38911 | } | |
38912 | Py_INCREF(Py_None); resultobj = Py_None; | |
38913 | return resultobj; | |
38914 | fail: | |
38915 | return NULL; | |
38916 | } | |
38917 | ||
38918 | ||
38919 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38920 | PyObject *resultobj; | |
38921 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38922 | int arg2 ; | |
38923 | PyObject * obj0 = 0 ; | |
8edf1c75 | 38924 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38925 | char *kwnames[] = { |
38926 | (char *) "self",(char *) "val", NULL | |
38927 | }; | |
38928 | ||
8edf1c75 | 38929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
38930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38932 | arg2 = (int) SWIG_AsInt(obj1); | |
38933 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38934 | { |
38935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38936 | (arg1)->Absolute(arg2); | |
38937 | ||
38938 | wxPyEndAllowThreads(__tstate); | |
38939 | if (PyErr_Occurred()) SWIG_fail; | |
38940 | } | |
38941 | Py_INCREF(Py_None); resultobj = Py_None; | |
38942 | return resultobj; | |
38943 | fail: | |
38944 | return NULL; | |
38945 | } | |
38946 | ||
38947 | ||
38948 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38949 | PyObject *resultobj; | |
38950 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38951 | PyObject * obj0 = 0 ; | |
38952 | char *kwnames[] = { | |
38953 | (char *) "self", NULL | |
38954 | }; | |
38955 | ||
38956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38959 | { |
38960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38961 | (arg1)->Unconstrained(); | |
38962 | ||
38963 | wxPyEndAllowThreads(__tstate); | |
38964 | if (PyErr_Occurred()) SWIG_fail; | |
38965 | } | |
38966 | Py_INCREF(Py_None); resultobj = Py_None; | |
38967 | return resultobj; | |
38968 | fail: | |
38969 | return NULL; | |
38970 | } | |
38971 | ||
38972 | ||
38973 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38974 | PyObject *resultobj; | |
38975 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38976 | PyObject * obj0 = 0 ; | |
38977 | char *kwnames[] = { | |
38978 | (char *) "self", NULL | |
38979 | }; | |
38980 | ||
38981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
38982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38984 | { |
38985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38986 | (arg1)->AsIs(); | |
38987 | ||
38988 | wxPyEndAllowThreads(__tstate); | |
38989 | if (PyErr_Occurred()) SWIG_fail; | |
38990 | } | |
38991 | Py_INCREF(Py_None); resultobj = Py_None; | |
38992 | return resultobj; | |
38993 | fail: | |
38994 | return NULL; | |
38995 | } | |
38996 | ||
38997 | ||
38998 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38999 | PyObject *resultobj; | |
39000 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39001 | wxWindow *result; | |
39002 | PyObject * obj0 = 0 ; | |
39003 | char *kwnames[] = { | |
39004 | (char *) "self", NULL | |
39005 | }; | |
39006 | ||
39007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39010 | { |
39011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39012 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39013 | ||
39014 | wxPyEndAllowThreads(__tstate); | |
39015 | if (PyErr_Occurred()) SWIG_fail; | |
39016 | } | |
39017 | { | |
39018 | resultobj = wxPyMake_wxObject(result); | |
39019 | } | |
39020 | return resultobj; | |
39021 | fail: | |
39022 | return NULL; | |
39023 | } | |
39024 | ||
39025 | ||
39026 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39027 | PyObject *resultobj; | |
39028 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39029 | int result; | |
39030 | PyObject * obj0 = 0 ; | |
39031 | char *kwnames[] = { | |
39032 | (char *) "self", NULL | |
39033 | }; | |
39034 | ||
39035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39038 | { |
39039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39040 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39041 | ||
39042 | wxPyEndAllowThreads(__tstate); | |
39043 | if (PyErr_Occurred()) SWIG_fail; | |
39044 | } | |
2f4c0a16 | 39045 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39046 | return resultobj; |
39047 | fail: | |
39048 | return NULL; | |
39049 | } | |
39050 | ||
39051 | ||
39052 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39053 | PyObject *resultobj; | |
39054 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39055 | int arg2 ; | |
39056 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39058 | char *kwnames[] = { |
39059 | (char *) "self",(char *) "which", NULL | |
39060 | }; | |
39061 | ||
8edf1c75 | 39062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39065 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39067 | { |
39068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39069 | (arg1)->SetEdge((wxEdge )arg2); | |
39070 | ||
39071 | wxPyEndAllowThreads(__tstate); | |
39072 | if (PyErr_Occurred()) SWIG_fail; | |
39073 | } | |
39074 | Py_INCREF(Py_None); resultobj = Py_None; | |
39075 | return resultobj; | |
39076 | fail: | |
39077 | return NULL; | |
39078 | } | |
39079 | ||
39080 | ||
39081 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39082 | PyObject *resultobj; | |
39083 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39084 | int arg2 ; | |
39085 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39087 | char *kwnames[] = { |
39088 | (char *) "self",(char *) "v", NULL | |
39089 | }; | |
39090 | ||
8edf1c75 | 39091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39094 | arg2 = (int) SWIG_AsInt(obj1); | |
39095 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39096 | { |
39097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39098 | (arg1)->SetValue(arg2); | |
39099 | ||
39100 | wxPyEndAllowThreads(__tstate); | |
39101 | if (PyErr_Occurred()) SWIG_fail; | |
39102 | } | |
39103 | Py_INCREF(Py_None); resultobj = Py_None; | |
39104 | return resultobj; | |
39105 | fail: | |
39106 | return NULL; | |
39107 | } | |
39108 | ||
39109 | ||
39110 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39111 | PyObject *resultobj; | |
39112 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39113 | int result; | |
39114 | PyObject * obj0 = 0 ; | |
39115 | char *kwnames[] = { | |
39116 | (char *) "self", NULL | |
39117 | }; | |
39118 | ||
39119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39122 | { |
39123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39124 | result = (int)(arg1)->GetMargin(); | |
39125 | ||
39126 | wxPyEndAllowThreads(__tstate); | |
39127 | if (PyErr_Occurred()) SWIG_fail; | |
39128 | } | |
2f4c0a16 | 39129 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39130 | return resultobj; |
39131 | fail: | |
39132 | return NULL; | |
39133 | } | |
39134 | ||
39135 | ||
39136 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39137 | PyObject *resultobj; | |
39138 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39139 | int arg2 ; | |
39140 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39141 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39142 | char *kwnames[] = { |
39143 | (char *) "self",(char *) "m", NULL | |
39144 | }; | |
39145 | ||
8edf1c75 | 39146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39149 | arg2 = (int) SWIG_AsInt(obj1); | |
39150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39151 | { |
39152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39153 | (arg1)->SetMargin(arg2); | |
39154 | ||
39155 | wxPyEndAllowThreads(__tstate); | |
39156 | if (PyErr_Occurred()) SWIG_fail; | |
39157 | } | |
39158 | Py_INCREF(Py_None); resultobj = Py_None; | |
39159 | return resultobj; | |
39160 | fail: | |
39161 | return NULL; | |
39162 | } | |
39163 | ||
39164 | ||
39165 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39166 | PyObject *resultobj; | |
39167 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39168 | int result; | |
39169 | PyObject * obj0 = 0 ; | |
39170 | char *kwnames[] = { | |
39171 | (char *) "self", NULL | |
39172 | }; | |
39173 | ||
39174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39177 | { |
39178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39179 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39180 | ||
39181 | wxPyEndAllowThreads(__tstate); | |
39182 | if (PyErr_Occurred()) SWIG_fail; | |
39183 | } | |
2f4c0a16 | 39184 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39185 | return resultobj; |
39186 | fail: | |
39187 | return NULL; | |
39188 | } | |
39189 | ||
39190 | ||
39191 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39192 | PyObject *resultobj; | |
39193 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39194 | int result; | |
39195 | PyObject * obj0 = 0 ; | |
39196 | char *kwnames[] = { | |
39197 | (char *) "self", NULL | |
39198 | }; | |
39199 | ||
39200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39203 | { |
39204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39205 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39206 | ||
39207 | wxPyEndAllowThreads(__tstate); | |
39208 | if (PyErr_Occurred()) SWIG_fail; | |
39209 | } | |
2f4c0a16 | 39210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39211 | return resultobj; |
39212 | fail: | |
39213 | return NULL; | |
39214 | } | |
39215 | ||
39216 | ||
39217 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39218 | PyObject *resultobj; | |
39219 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39220 | int result; | |
39221 | PyObject * obj0 = 0 ; | |
39222 | char *kwnames[] = { | |
39223 | (char *) "self", NULL | |
39224 | }; | |
39225 | ||
39226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39229 | { |
39230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39231 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39232 | ||
39233 | wxPyEndAllowThreads(__tstate); | |
39234 | if (PyErr_Occurred()) SWIG_fail; | |
39235 | } | |
2f4c0a16 | 39236 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39237 | return resultobj; |
39238 | fail: | |
39239 | return NULL; | |
39240 | } | |
39241 | ||
39242 | ||
39243 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39244 | PyObject *resultobj; | |
39245 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39246 | bool result; | |
39247 | PyObject * obj0 = 0 ; | |
39248 | char *kwnames[] = { | |
39249 | (char *) "self", NULL | |
39250 | }; | |
39251 | ||
39252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39255 | { |
39256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39257 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39258 | ||
39259 | wxPyEndAllowThreads(__tstate); | |
39260 | if (PyErr_Occurred()) SWIG_fail; | |
39261 | } | |
4f89f6a3 RD |
39262 | { |
39263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39264 | } | |
d14a1e28 RD |
39265 | return resultobj; |
39266 | fail: | |
39267 | return NULL; | |
39268 | } | |
39269 | ||
39270 | ||
39271 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39272 | PyObject *resultobj; | |
39273 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39274 | bool arg2 ; | |
39275 | PyObject * obj0 = 0 ; | |
39276 | PyObject * obj1 = 0 ; | |
39277 | char *kwnames[] = { | |
39278 | (char *) "self",(char *) "d", NULL | |
39279 | }; | |
39280 | ||
39281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39284 | arg2 = (bool) SWIG_AsBool(obj1); | |
39285 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39286 | { |
39287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39288 | (arg1)->SetDone(arg2); | |
39289 | ||
39290 | wxPyEndAllowThreads(__tstate); | |
39291 | if (PyErr_Occurred()) SWIG_fail; | |
39292 | } | |
39293 | Py_INCREF(Py_None); resultobj = Py_None; | |
39294 | return resultobj; | |
39295 | fail: | |
39296 | return NULL; | |
39297 | } | |
39298 | ||
39299 | ||
39300 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39301 | PyObject *resultobj; | |
39302 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39303 | int result; | |
39304 | PyObject * obj0 = 0 ; | |
39305 | char *kwnames[] = { | |
39306 | (char *) "self", NULL | |
39307 | }; | |
39308 | ||
39309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39312 | { |
39313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39314 | result = (int)(arg1)->GetRelationship(); | |
39315 | ||
39316 | wxPyEndAllowThreads(__tstate); | |
39317 | if (PyErr_Occurred()) SWIG_fail; | |
39318 | } | |
2f4c0a16 | 39319 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39320 | return resultobj; |
39321 | fail: | |
39322 | return NULL; | |
39323 | } | |
39324 | ||
39325 | ||
39326 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39327 | PyObject *resultobj; | |
39328 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39329 | int arg2 ; | |
39330 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39331 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39332 | char *kwnames[] = { |
39333 | (char *) "self",(char *) "r", NULL | |
39334 | }; | |
39335 | ||
8edf1c75 | 39336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
39337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39339 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39341 | { |
39342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39343 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39344 | ||
39345 | wxPyEndAllowThreads(__tstate); | |
39346 | if (PyErr_Occurred()) SWIG_fail; | |
39347 | } | |
39348 | Py_INCREF(Py_None); resultobj = Py_None; | |
39349 | return resultobj; | |
39350 | fail: | |
39351 | return NULL; | |
39352 | } | |
39353 | ||
39354 | ||
39355 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39356 | PyObject *resultobj; | |
39357 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39358 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39359 | bool result; | |
39360 | PyObject * obj0 = 0 ; | |
39361 | PyObject * obj1 = 0 ; | |
39362 | char *kwnames[] = { | |
39363 | (char *) "self",(char *) "otherW", NULL | |
39364 | }; | |
39365 | ||
39366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39371 | { |
39372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39373 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39374 | ||
39375 | wxPyEndAllowThreads(__tstate); | |
39376 | if (PyErr_Occurred()) SWIG_fail; | |
39377 | } | |
4f89f6a3 RD |
39378 | { |
39379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39380 | } | |
d14a1e28 RD |
39381 | return resultobj; |
39382 | fail: | |
39383 | return NULL; | |
39384 | } | |
39385 | ||
39386 | ||
39387 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39388 | PyObject *resultobj; | |
39389 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39390 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39391 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39392 | bool result; | |
39393 | PyObject * obj0 = 0 ; | |
39394 | PyObject * obj1 = 0 ; | |
39395 | PyObject * obj2 = 0 ; | |
39396 | char *kwnames[] = { | |
39397 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39398 | }; | |
39399 | ||
39400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
39401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39405 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39407 | { |
39408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39409 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39410 | ||
39411 | wxPyEndAllowThreads(__tstate); | |
39412 | if (PyErr_Occurred()) SWIG_fail; | |
39413 | } | |
4f89f6a3 RD |
39414 | { |
39415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39416 | } | |
d14a1e28 RD |
39417 | return resultobj; |
39418 | fail: | |
39419 | return NULL; | |
39420 | } | |
39421 | ||
39422 | ||
39423 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39424 | PyObject *resultobj; | |
39425 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39426 | int arg2 ; | |
39427 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39428 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39429 | int result; | |
39430 | PyObject * obj0 = 0 ; | |
8edf1c75 | 39431 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39432 | PyObject * obj2 = 0 ; |
39433 | PyObject * obj3 = 0 ; | |
39434 | char *kwnames[] = { | |
39435 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39436 | }; | |
39437 | ||
8edf1c75 | 39438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
39439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39441 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39442 | if (PyErr_Occurred()) SWIG_fail; | |
39443 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39445 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39447 | { |
39448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39449 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39450 | ||
39451 | wxPyEndAllowThreads(__tstate); | |
39452 | if (PyErr_Occurred()) SWIG_fail; | |
39453 | } | |
2f4c0a16 | 39454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39455 | return resultobj; |
39456 | fail: | |
39457 | return NULL; | |
39458 | } | |
39459 | ||
39460 | ||
39461 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39462 | PyObject *obj; | |
39463 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39464 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39465 | Py_INCREF(obj); | |
39466 | return Py_BuildValue((char *)""); | |
39467 | } | |
39468 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39469 | PyObject *resultobj; | |
39470 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39471 | wxIndividualLayoutConstraint *result; | |
39472 | PyObject * obj0 = 0 ; | |
39473 | char *kwnames[] = { | |
39474 | (char *) "self", NULL | |
39475 | }; | |
39476 | ||
39477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39480 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
39481 | ||
2f4c0a16 | 39482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39483 | return resultobj; |
39484 | fail: | |
39485 | return NULL; | |
39486 | } | |
39487 | ||
39488 | ||
39489 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39490 | PyObject *resultobj; | |
39491 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39492 | wxIndividualLayoutConstraint *result; | |
39493 | PyObject * obj0 = 0 ; | |
39494 | char *kwnames[] = { | |
39495 | (char *) "self", NULL | |
39496 | }; | |
39497 | ||
39498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39501 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
39502 | ||
2f4c0a16 | 39503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39504 | return resultobj; |
39505 | fail: | |
39506 | return NULL; | |
39507 | } | |
39508 | ||
39509 | ||
39510 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39511 | PyObject *resultobj; | |
39512 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39513 | wxIndividualLayoutConstraint *result; | |
39514 | PyObject * obj0 = 0 ; | |
39515 | char *kwnames[] = { | |
39516 | (char *) "self", NULL | |
39517 | }; | |
39518 | ||
39519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39522 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
39523 | ||
2f4c0a16 | 39524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39525 | return resultobj; |
39526 | fail: | |
39527 | return NULL; | |
39528 | } | |
39529 | ||
39530 | ||
39531 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39532 | PyObject *resultobj; | |
39533 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39534 | wxIndividualLayoutConstraint *result; | |
39535 | PyObject * obj0 = 0 ; | |
39536 | char *kwnames[] = { | |
39537 | (char *) "self", NULL | |
39538 | }; | |
39539 | ||
39540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39543 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39544 | ||
2f4c0a16 | 39545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39546 | return resultobj; |
39547 | fail: | |
39548 | return NULL; | |
39549 | } | |
39550 | ||
39551 | ||
39552 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39553 | PyObject *resultobj; | |
39554 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39555 | wxIndividualLayoutConstraint *result; | |
39556 | PyObject * obj0 = 0 ; | |
39557 | char *kwnames[] = { | |
39558 | (char *) "self", NULL | |
39559 | }; | |
39560 | ||
39561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39564 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39565 | ||
2f4c0a16 | 39566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39567 | return resultobj; |
39568 | fail: | |
39569 | return NULL; | |
39570 | } | |
39571 | ||
39572 | ||
39573 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39574 | PyObject *resultobj; | |
39575 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39576 | wxIndividualLayoutConstraint *result; | |
39577 | PyObject * obj0 = 0 ; | |
39578 | char *kwnames[] = { | |
39579 | (char *) "self", NULL | |
39580 | }; | |
39581 | ||
39582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39585 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39586 | ||
2f4c0a16 | 39587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39588 | return resultobj; |
39589 | fail: | |
39590 | return NULL; | |
39591 | } | |
39592 | ||
39593 | ||
39594 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39595 | PyObject *resultobj; | |
39596 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39597 | wxIndividualLayoutConstraint *result; | |
39598 | PyObject * obj0 = 0 ; | |
39599 | char *kwnames[] = { | |
39600 | (char *) "self", NULL | |
39601 | }; | |
39602 | ||
39603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39606 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39607 | ||
2f4c0a16 | 39608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39609 | return resultobj; |
39610 | fail: | |
39611 | return NULL; | |
39612 | } | |
39613 | ||
39614 | ||
39615 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39616 | PyObject *resultobj; | |
39617 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39618 | wxIndividualLayoutConstraint *result; | |
39619 | PyObject * obj0 = 0 ; | |
39620 | char *kwnames[] = { | |
39621 | (char *) "self", NULL | |
39622 | }; | |
39623 | ||
39624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39627 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39628 | ||
2f4c0a16 | 39629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39630 | return resultobj; |
39631 | fail: | |
39632 | return NULL; | |
39633 | } | |
39634 | ||
39635 | ||
39636 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39637 | PyObject *resultobj; | |
39638 | wxLayoutConstraints *result; | |
39639 | char *kwnames[] = { | |
39640 | NULL | |
39641 | }; | |
39642 | ||
39643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39644 | { | |
39645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39646 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
39647 | ||
39648 | wxPyEndAllowThreads(__tstate); | |
39649 | if (PyErr_Occurred()) SWIG_fail; | |
39650 | } | |
2f4c0a16 | 39651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
39652 | return resultobj; |
39653 | fail: | |
39654 | return NULL; | |
39655 | } | |
39656 | ||
39657 | ||
39658 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39659 | PyObject *resultobj; | |
39660 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39661 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39662 | int *arg3 = (int *) 0 ; | |
39663 | bool result; | |
39664 | int temp3 ; | |
39665 | PyObject * obj0 = 0 ; | |
39666 | PyObject * obj1 = 0 ; | |
39667 | char *kwnames[] = { | |
39668 | (char *) "self",(char *) "win", NULL | |
39669 | }; | |
39670 | ||
39671 | arg3 = &temp3; | |
39672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
39673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39675 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39677 | { |
39678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39679 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
39680 | ||
39681 | wxPyEndAllowThreads(__tstate); | |
39682 | if (PyErr_Occurred()) SWIG_fail; | |
39683 | } | |
4f89f6a3 RD |
39684 | { |
39685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39686 | } | |
d14a1e28 RD |
39687 | { |
39688 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
39689 | resultobj = t_output_helper(resultobj,o); | |
39690 | } | |
39691 | return resultobj; | |
39692 | fail: | |
39693 | return NULL; | |
39694 | } | |
39695 | ||
39696 | ||
39697 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39698 | PyObject *resultobj; | |
39699 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39700 | bool result; | |
39701 | PyObject * obj0 = 0 ; | |
39702 | char *kwnames[] = { | |
39703 | (char *) "self", NULL | |
39704 | }; | |
39705 | ||
39706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
39707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39709 | { |
39710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39711 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
39712 | ||
39713 | wxPyEndAllowThreads(__tstate); | |
39714 | if (PyErr_Occurred()) SWIG_fail; | |
39715 | } | |
4f89f6a3 RD |
39716 | { |
39717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39718 | } | |
d14a1e28 RD |
39719 | return resultobj; |
39720 | fail: | |
39721 | return NULL; | |
39722 | } | |
39723 | ||
39724 | ||
39725 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
39726 | PyObject *obj; | |
39727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39728 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
39729 | Py_INCREF(obj); | |
39730 | return Py_BuildValue((char *)""); | |
39731 | } | |
39732 | static PyMethodDef SwigMethods[] = { | |
39733 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
d03fd34d | 39734 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
39735 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
39736 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39737 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
39738 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39739 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39740 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39741 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39742 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
39744 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
39749 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
39750 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
39751 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39753 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39755 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39756 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
39757 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39758 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39759 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39760 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39761 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
39762 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39763 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
39764 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
39765 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
39766 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39767 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 39768 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39769 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
39770 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39771 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39772 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39773 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39774 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
39775 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
39776 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39777 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39778 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
39779 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39781 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39783 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39784 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
39785 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
39788 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
39791 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39792 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
39793 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39795 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39796 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39799 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39800 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 RD |
39801 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
39802 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39805 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
39806 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39808 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
39809 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
39810 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39813 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
39814 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
39825 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39826 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39828 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39829 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39830 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39834 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39835 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
39836 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
39837 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
39842 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39843 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39844 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
39849 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
39851 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39852 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
39855 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39856 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39857 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
39858 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 39862 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39863 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39864 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39865 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39866 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39870 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39871 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39872 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39876 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39878 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39882 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39884 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39885 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39886 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39887 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39890 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39892 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39893 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39898 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39899 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39900 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39901 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39902 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39903 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39905 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39910 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39913 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39915 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39916 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39921 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39922 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39923 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39924 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39927 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39929 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39931 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39935 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39937 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39938 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39941 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39944 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39945 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39947 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39951 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39955 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39958 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39959 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39964 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39965 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39966 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39967 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39970 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39976 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39993 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40001 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40013 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40014 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40015 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40016 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40017 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40021 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40024 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40025 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40026 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40027 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40028 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40030 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40031 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40032 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40034 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40036 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40038 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40040 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40042 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40044 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40046 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40047 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40048 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40050 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40051 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40052 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40056 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40058 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40066 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40068 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40070 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40071 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40073 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40076 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40079 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40082 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40084 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40094 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40099 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40104 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40105 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40108 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40109 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40110 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40111 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40118 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40119 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40120 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40121 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40122 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40123 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40124 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40125 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40126 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40128 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40130 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40138 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40139 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40140 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40151 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40153 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40156 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40157 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40160 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40161 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40162 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40167 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40173 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40174 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40180 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40215 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40219 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40223 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40225 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40233 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40235 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40237 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40239 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40242 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40243 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40246 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40247 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40248 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40249 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40252 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40254 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40259 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40260 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40267 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40270 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40271 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40274 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40276 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40280 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40282 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40288 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40297 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40299 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40302 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40304 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40308 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40311 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40312 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40320 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40322 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40323 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40326 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40328 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40330 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40331 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40337 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40342 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40345 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40347 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40367 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40368 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40375 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40376 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 40377 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40378 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40379 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40385 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40391 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 RD |
40399 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40400 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
40402 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40407 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40408 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40412 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40413 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40414 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40419 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40420 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 RD |
40426 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40427 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40428 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40429 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40437 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40460 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40461 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40466 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40472 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40476 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40478 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40479 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40480 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40481 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
40482 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40483 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40485 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40488 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
40489 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40492 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40496 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40498 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40505 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40517 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40520 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40529 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40532 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40533 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 | 40538 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40539 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
40540 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40543 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40558 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 40559 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40560 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40561 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40572 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40586 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
40598 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40612 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40615 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
40622 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
40637 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
40670 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
40697 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
40740 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
40747 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
40758 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
40764 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
40765 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
40800 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
40829 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
40832 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
40838 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
40843 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
40855 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40866 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40867 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40868 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40869 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40876 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40877 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40878 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40879 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
40886 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40887 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40888 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40889 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
40898 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40902 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40908 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40909 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40910 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40911 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40912 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
423f194a | 40913 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40914 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
40915 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
40918 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
40919 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40946 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40958 | { NULL, NULL } | |
40959 | }; | |
40960 | ||
40961 | ||
40962 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40963 | ||
40964 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40965 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40966 | } | |
40967 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40968 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40969 | } | |
40970 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40971 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40972 | } | |
40973 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40974 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40975 | } | |
40976 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40977 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40978 | } | |
40979 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40980 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40981 | } | |
40982 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40983 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40984 | } | |
40985 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40986 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40987 | } | |
40988 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40989 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40990 | } | |
40991 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40992 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40993 | } | |
40994 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40995 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
40996 | } | |
40997 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
40998 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
40999 | } | |
41000 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41001 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41002 | } | |
41003 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41004 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41005 | } | |
41006 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41007 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41008 | } | |
41009 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41010 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41011 | } | |
41012 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41013 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41014 | } | |
41015 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41016 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41017 | } | |
41018 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41019 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41020 | } | |
41021 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41022 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41023 | } | |
41024 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41025 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41026 | } | |
41027 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41028 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41029 | } | |
41030 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41031 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41032 | } | |
41033 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41034 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41035 | } | |
41036 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41037 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41038 | } | |
41039 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41040 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41041 | } | |
41042 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41043 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41044 | } | |
41045 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41046 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41047 | } | |
41048 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41049 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41050 | } | |
41051 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41052 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41053 | } | |
41054 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41055 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41056 | } | |
41057 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41058 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41059 | } | |
41060 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41061 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41062 | } | |
41063 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41064 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41065 | } | |
41066 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41067 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41068 | } | |
41069 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41070 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41071 | } | |
41072 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41073 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41074 | } | |
41075 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41076 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41077 | } | |
41078 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41079 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41080 | } | |
41081 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41082 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41083 | } | |
41084 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41085 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41086 | } | |
41087 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41088 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41089 | } | |
41090 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41091 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41092 | } | |
41093 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41094 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41095 | } | |
41096 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41097 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41098 | } | |
41099 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41100 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41101 | } | |
41102 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41103 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41104 | } | |
41105 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41106 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41107 | } | |
41108 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41109 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41110 | } | |
41111 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41112 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41113 | } | |
41114 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41115 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41116 | } | |
41117 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41118 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41119 | } | |
41120 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41121 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41122 | } | |
41123 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41124 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41125 | } | |
41126 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41127 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41128 | } | |
41129 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41130 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41131 | } | |
41132 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41133 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41134 | } | |
41135 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41136 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41137 | } | |
41138 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41139 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41140 | } | |
41141 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41142 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41143 | } | |
41144 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41145 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41146 | } | |
41147 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41148 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41149 | } | |
41150 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41151 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41152 | } | |
41153 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41154 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41155 | } | |
41156 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41157 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41158 | } | |
41159 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41160 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41161 | } | |
41162 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41163 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41164 | } | |
41165 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41166 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41167 | } | |
41168 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41169 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41170 | } | |
41171 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41172 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41173 | } | |
41174 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41175 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41176 | } | |
41177 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41178 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41179 | } | |
41180 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41181 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41182 | } | |
41183 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41184 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41185 | } | |
41186 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41187 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41188 | } | |
41189 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41190 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41191 | } | |
41192 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41193 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41194 | } | |
41195 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41196 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41197 | } | |
41198 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41199 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41200 | } | |
41201 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41202 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41203 | } | |
41204 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41205 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41206 | } | |
41207 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41208 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41209 | } | |
41210 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41211 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41212 | } | |
41213 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41214 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41215 | } | |
41216 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41217 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41218 | } | |
41219 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41220 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41221 | } | |
41222 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41223 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41224 | } | |
41225 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41226 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41227 | } | |
41228 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41229 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41230 | } | |
41231 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41232 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41233 | } | |
41234 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41235 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41236 | } | |
41237 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41238 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41239 | } | |
41240 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41241 | return (void *)((wxObject *) ((wxImage *) x)); | |
41242 | } | |
41243 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41244 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41245 | } | |
41246 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41247 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41248 | } | |
41249 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41250 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41251 | } | |
41252 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41253 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41254 | } | |
41255 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41256 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41257 | } | |
41f1cec7 RD |
41258 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41259 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41260 | } | |
d14a1e28 RD |
41261 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41262 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41263 | } | |
41264 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41265 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41266 | } | |
41267 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41268 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41269 | } | |
41270 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41271 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41272 | } | |
41273 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41274 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41275 | } | |
41276 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41277 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41278 | } | |
41279 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41280 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41281 | } | |
41282 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41283 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41284 | } | |
41285 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41286 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41287 | } | |
41288 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41289 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41290 | } | |
41291 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41292 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41293 | } | |
41294 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41295 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41296 | } | |
41297 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41298 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41299 | } | |
41300 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41301 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41302 | } | |
41303 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41304 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41305 | } | |
41306 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41307 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41308 | } | |
41309 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41310 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41311 | } | |
41312 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41313 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41314 | } | |
41315 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41316 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41317 | } | |
41318 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41319 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41320 | } | |
41321 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41322 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41323 | } | |
41324 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41325 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41326 | } | |
41327 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41328 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41329 | } | |
41330 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41331 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41332 | } | |
41333 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41334 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41335 | } | |
41336 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41337 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41338 | } | |
41339 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41340 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41341 | } | |
41342 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41343 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41344 | } | |
41345 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41346 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41347 | } | |
41348 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41349 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41350 | } | |
41351 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41352 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41353 | } | |
41354 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41355 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41356 | } | |
41357 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41358 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41359 | } | |
41360 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41361 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41362 | } | |
41363 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41364 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41365 | } | |
41366 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41367 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41368 | } | |
41369 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41370 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41371 | } | |
41372 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41373 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41374 | } | |
41375 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41376 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41377 | } | |
41378 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41379 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41380 | } | |
41381 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41382 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41383 | } | |
41384 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41385 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41386 | } | |
41387 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41388 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41389 | } | |
41390 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41391 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41392 | } | |
41393 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41394 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41395 | } | |
41396 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41397 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41398 | } | |
41399 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41400 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41401 | } | |
41402 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41403 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41404 | } | |
41405 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41406 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41407 | } | |
41408 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41409 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41410 | } | |
41411 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41412 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41413 | } | |
41414 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41415 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41416 | } | |
41417 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41418 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41419 | } | |
41420 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41421 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41422 | } | |
41423 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41424 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41425 | } | |
41426 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41427 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41428 | } | |
41429 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41430 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41431 | } | |
41432 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41433 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41434 | } | |
41435 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41436 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41437 | } | |
41438 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41439 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41440 | } | |
41441 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41442 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41443 | } | |
41444 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41445 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41446 | } | |
41447 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41448 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41449 | } | |
2f4c0a16 RD |
41450 | 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}}; |
41451 | 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}}; | |
41452 | 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}}; | |
41453 | 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}}; | |
41454 | 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}}; | |
41455 | 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}}; | |
41456 | 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}}; | |
41457 | 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}}; | |
41458 | 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}}; | |
41459 | 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}}; | |
41460 | 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}}; | |
41461 | 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}}; | |
41462 | 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}}; | |
41463 | 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}}; | |
41464 | 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}}; | |
41465 | 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}}; | |
41466 | 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}}; | |
41467 | 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}}; | |
41468 | 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}}; | |
41469 | 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}}; | |
41470 | 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}}; | |
41471 | 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}}; | |
41472 | 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}}; | |
41473 | 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}}; | |
41474 | 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}}; | |
41475 | 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}}; | |
41476 | 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}}; | |
41477 | 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}}; | |
41478 | 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}}; | |
41479 | 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}}; | |
41480 | 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}}; | |
41481 | 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}}; | |
41482 | 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}}; | |
41483 | 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}}; | |
41484 | 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}}; | |
41485 | 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}}; | |
41486 | 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}}; | |
41487 | 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}}; | |
41488 | 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}}; | |
41489 | 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}}; | |
41490 | 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}}; | |
41491 | 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}}; | |
41492 | 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}}; | |
41493 | 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}}; | |
41494 | 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}}; | |
41495 | 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}}; | |
41496 | 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}}; | |
41497 | 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}}; | |
41498 | 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}}; | |
41499 | 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}}; | |
41500 | 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}}; | |
41501 | 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}}; | |
41502 | 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}}; | |
41503 | 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}}; | |
41504 | 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}}; | |
41505 | 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}}; | |
41506 | 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}}; | |
41507 | 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}}; | |
41508 | 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}}; | |
41509 | 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}}; | |
41510 | 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}}; | |
41511 | 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}}; | |
41512 | 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}}; | |
41513 | 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}}; | |
41514 | 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}}; | |
41515 | 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}}; | |
41516 | 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}}; | |
41517 | 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}}; | |
41518 | 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}}; | |
41519 | 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}}; | |
41520 | 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}}; | |
41521 | 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}}; | |
41522 | 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}}; | |
41523 | 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}}; | |
41524 | 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}}; | |
41525 | 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}}; | |
41526 | 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}}; | |
41527 | 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}}; | |
41528 | 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}}; | |
41529 | 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}}; | |
41530 | 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}}; | |
41531 | 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}}; | |
41532 | 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}}; | |
41533 | 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}}; | |
41534 | 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}}; | |
41535 | 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}}; | |
41536 | 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}}; | |
41537 | 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}}; | |
41538 | 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}}; | |
41539 | 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}}; | |
41540 | 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}}; | |
41541 | 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}}; | |
41542 | 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}}; | |
41543 | 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}}; | |
41544 | 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}}; | |
41545 | 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}}; | |
41546 | 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}}; | |
41547 | 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}}; | |
41548 | 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}}; | |
41549 | 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}}; | |
41550 | 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}}; | |
41551 | 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}}; | |
41552 | 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}}; | |
41553 | 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}}; | |
41554 | 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}}; | |
41555 | 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}}; | |
41556 | 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}}; | |
41557 | 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}}; | |
41558 | 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}}; | |
41559 | 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}}; | |
41560 | 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}}; | |
41561 | 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}}; | |
41562 | 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}}; | |
41563 | 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 |
41564 | |
41565 | static swig_type_info *swig_types_initial[] = { | |
41566 | _swigt__p_wxLayoutConstraints, | |
41567 | _swigt__p_wxRealPoint, | |
41568 | _swigt__p_wxSizerItem, | |
41569 | _swigt__p_wxGBSizerItem, | |
41570 | _swigt__p_wxScrollEvent, | |
41571 | _swigt__p_wxIndividualLayoutConstraint, | |
41572 | _swigt__p_wxSizer, | |
41573 | _swigt__p_wxBoxSizer, | |
41574 | _swigt__p_wxStaticBoxSizer, | |
41575 | _swigt__p_wxGridBagSizer, | |
41576 | _swigt__p_wxAcceleratorEntry, | |
41577 | _swigt__p_wxUpdateUIEvent, | |
41578 | _swigt__p_wxMenu, | |
41579 | _swigt__p_wxEvent, | |
41580 | _swigt__p_wxGridSizer, | |
41581 | _swigt__p_wxFlexGridSizer, | |
41582 | _swigt__p_wxInitDialogEvent, | |
41583 | _swigt__p_wxItemContainer, | |
41584 | _swigt__p_wxNcPaintEvent, | |
41585 | _swigt__p_wxPaintEvent, | |
41586 | _swigt__p_wxSysColourChangedEvent, | |
41587 | _swigt__p_wxMouseCaptureChangedEvent, | |
41588 | _swigt__p_wxDisplayChangedEvent, | |
41589 | _swigt__p_wxPaletteChangedEvent, | |
41590 | _swigt__p_wxControl, | |
41591 | _swigt__p_wxFont, | |
41592 | _swigt__p_wxMenuBarBase, | |
41593 | _swigt__p_wxSetCursorEvent, | |
41594 | _swigt__p_wxFSFile, | |
41595 | _swigt__p_wxCaret, | |
41596 | _swigt__p_wxRegion, | |
41597 | _swigt__p_wxPoint2D, | |
41598 | _swigt__p_int, | |
41599 | _swigt__p_wxSize, | |
41600 | _swigt__p_wxDC, | |
41601 | _swigt__p_wxPySizer, | |
41602 | _swigt__p_wxNotifyEvent, | |
41603 | _swigt__p_wxPyEvent, | |
41604 | _swigt__p_wxPropagationDisabler, | |
41605 | _swigt__p_wxAppTraits, | |
41606 | _swigt__p_wxArrayString, | |
41607 | _swigt__p_wxShowEvent, | |
41608 | _swigt__p_wxToolTip, | |
4e760a36 | 41609 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41610 | _swigt__p_wxIconizeEvent, |
41611 | _swigt__p_wxActivateEvent, | |
41612 | _swigt__p_wxMoveEvent, | |
41613 | _swigt__p_wxSizeEvent, | |
41614 | _swigt__p_wxQueryNewPaletteEvent, | |
41615 | _swigt__p_wxWindowCreateEvent, | |
41616 | _swigt__p_wxIdleEvent, | |
41617 | _swigt__p_wxMenuItem, | |
41618 | _swigt__p_wxStaticBox, | |
41619 | _swigt__p_long, | |
41620 | _swigt__p_wxTIFFHandler, | |
41621 | _swigt__p_wxXPMHandler, | |
41622 | _swigt__p_wxPNMHandler, | |
41623 | _swigt__p_wxJPEGHandler, | |
41624 | _swigt__p_wxPCXHandler, | |
41625 | _swigt__p_wxGIFHandler, | |
41626 | _swigt__p_wxPNGHandler, | |
41627 | _swigt__p_wxANIHandler, | |
41628 | _swigt__p_wxMemoryFSHandler, | |
41629 | _swigt__p_wxEvtHandler, | |
41630 | _swigt__p_wxCURHandler, | |
41631 | _swigt__p_wxICOHandler, | |
41632 | _swigt__p_wxBMPHandler, | |
41633 | _swigt__p_wxImageHandler, | |
41634 | _swigt__p_wxFileSystemHandler, | |
41635 | _swigt__p_wxPyFileSystemHandler, | |
41636 | _swigt__p_wxInternetFSHandler, | |
4e760a36 | 41637 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
41638 | _swigt__p_wxRect, |
41639 | _swigt__p_wxGBSpan, | |
41640 | _swigt__p_wxPropagateOnce, | |
41641 | _swigt__p_wxAcceleratorTable, | |
8edf1c75 | 41642 | _swigt__p_char, |
d14a1e28 RD |
41643 | _swigt__p_wxGBPosition, |
41644 | _swigt__p_wxImage, | |
41645 | _swigt__p_wxFrame, | |
41646 | _swigt__p_wxScrollWinEvent, | |
41647 | _swigt__p_wxImageHistogram, | |
41648 | _swigt__p_byte, | |
41649 | _swigt__p_wxPoint, | |
41650 | _swigt__p_wxCursor, | |
41651 | _swigt__p_wxObject, | |
41652 | _swigt__p_wxPyInputStream, | |
41653 | _swigt__p_wxOutputStream, | |
41654 | _swigt__p_wxInputStream, | |
41655 | _swigt__p_wxDateTime, | |
41656 | _swigt__p_wxKeyEvent, | |
41657 | _swigt__p_wxNavigationKeyEvent, | |
41658 | _swigt__p_wxWindowDestroyEvent, | |
41659 | _swigt__p_wxWindow, | |
41660 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
41661 | _swigt__p_wxFileSystem, |
41662 | _swigt__p_wxBitmap, | |
41663 | _swigt__p_wxMenuEvent, | |
41664 | _swigt__p_wxContextMenuEvent, | |
41665 | _swigt__p_unsigned_char, | |
41666 | _swigt__p_wxCloseEvent, | |
41667 | _swigt__p_wxEraseEvent, | |
41668 | _swigt__p_wxMouseEvent, | |
41669 | _swigt__p_wxPyApp, | |
41670 | _swigt__p_wxCommandEvent, | |
41671 | _swigt__p_wxPyCommandEvent, | |
44127b65 | 41672 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
41673 | _swigt__p_wxChildFocusEvent, |
41674 | _swigt__p_wxFocusEvent, | |
41675 | _swigt__p_wxDropFilesEvent, | |
41676 | _swigt__p_wxControlWithItems, | |
41677 | _swigt__p_wxColour, | |
41678 | _swigt__p_wxValidator, | |
41679 | _swigt__p_wxPyValidator, | |
41680 | 0 | |
41681 | }; | |
41682 | ||
41683 | ||
41684 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41685 | ||
41686 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
41687 | {0}}; |
41688 | ||
41689 | #ifdef __cplusplus | |
41690 | } | |
41691 | #endif | |
41692 | ||
41693 | #ifdef __cplusplus | |
41694 | extern "C" | |
41695 | #endif | |
41696 | SWIGEXPORT(void) SWIG_init(void) { | |
41697 | static PyObject *SWIG_globals = 0; | |
41698 | static int typeinit = 0; | |
41699 | PyObject *m, *d; | |
41700 | int i; | |
41701 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
41702 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41703 | d = PyModule_GetDict(m); | |
41704 | ||
41705 | if (!typeinit) { | |
41706 | for (i = 0; swig_types_initial[i]; i++) { | |
41707 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
41708 | } | |
41709 | typeinit = 1; | |
41710 | } | |
41711 | SWIG_InstallConstants(d,swig_const_table); | |
41712 | ||
41713 | ||
41714 | #ifndef wxPyUSE_EXPORT | |
41715 | // Make our API structure a CObject so other modules can import it | |
41716 | // from this module. | |
41717 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
41718 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
41719 | Py_XDECREF(cobj); | |
41720 | #endif | |
41721 | ||
2f4c0a16 RD |
41722 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
41723 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
41724 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
41725 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
41726 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
41727 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
41728 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
41729 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
41730 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
41731 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
41732 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
41733 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
41734 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
41735 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
41736 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
41737 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
41738 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
41739 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
41740 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
41741 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
41742 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
41743 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
41744 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
41745 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
41746 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
41747 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
41748 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
41749 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
41750 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
41751 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
41752 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
41753 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
41754 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
41755 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
41756 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
41757 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
41758 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
41759 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
41760 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
41761 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
41762 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
41763 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
41764 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
41765 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
41766 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
41767 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
41768 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
41769 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
41770 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
41771 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
41772 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
41773 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
41774 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
41775 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
41776 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
41777 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
41778 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
41779 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
41780 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
41781 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
41782 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
41783 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
41784 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
41785 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
41786 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
41787 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
41788 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
41789 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
41790 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
41791 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
41792 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
41793 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
41794 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
41795 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
41796 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
41797 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
41798 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
41799 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
41800 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
41801 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
41802 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
41803 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
41804 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
41805 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
41806 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
41807 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
41808 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
41809 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
41810 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
41811 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
41812 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
41813 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
41814 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
41815 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
41816 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
41817 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
41818 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
41819 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
41820 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
41821 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
41822 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
41823 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
41824 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
41825 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
41826 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
41827 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
41828 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
41829 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
41830 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
41831 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
41832 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
41833 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
41834 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
41835 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
41836 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
41837 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
41838 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
41839 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
41840 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
41841 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
41842 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
41843 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
41844 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
41845 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
41846 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
41847 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
41848 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
41849 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
41850 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
41851 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
41852 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
41853 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
41854 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
41855 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
41856 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
41857 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
41858 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
41859 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
41860 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
41861 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
41862 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
41863 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
41864 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
41865 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
41866 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
41867 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
41868 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
41869 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
41870 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
41871 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
41872 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
41873 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
41874 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
41875 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
41876 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
41877 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
41878 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
41879 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
41880 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
41881 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
41882 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
41883 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
41884 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
41885 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
41886 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41887 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41888 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
41889 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
41890 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
41891 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41892 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41893 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
41894 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
41895 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
41896 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
41897 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
41898 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
41899 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
41900 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
41901 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
41902 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
41903 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
41904 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
41905 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
41906 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
41907 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
41908 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
41909 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
41910 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
41911 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
41912 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
41913 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
41914 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
41915 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
41916 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
41917 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
41918 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
41919 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
41920 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
41921 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
41922 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
41923 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
41924 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
41925 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
41926 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
41927 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
41928 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
41929 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
41930 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
41931 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
41932 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
41933 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
41934 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
41935 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
41936 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41937 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
41938 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41939 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41940 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
41941 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
41942 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41943 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41944 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
41945 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
41946 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41947 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41948 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
41949 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41950 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41951 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41952 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
41953 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
41954 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
41955 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
41956 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
41957 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
41958 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
41959 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
41960 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
41961 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
41962 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
41963 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
41964 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
41965 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
41966 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
41967 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
41968 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
41969 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
41970 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
41971 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
41972 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
41973 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
41974 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
41975 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
41976 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
41977 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
41978 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
41979 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41980 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41981 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
41982 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
41983 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
41984 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
41985 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41986 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41987 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
41988 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
41989 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
41990 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
41991 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
41992 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
41993 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
41994 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
41995 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
41996 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
41997 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
41998 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
41999 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42000 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42001 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42002 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42003 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42004 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42005 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42006 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42007 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42008 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42009 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42010 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42011 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42012 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42013 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42014 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42015 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42016 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42017 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42018 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42019 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42020 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42021 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42022 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42023 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42024 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42025 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42026 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42027 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42028 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42029 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42030 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42031 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42032 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42033 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42034 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42035 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42036 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42037 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42038 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42039 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42040 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42041 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42042 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42043 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42044 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42045 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42046 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42047 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42048 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42049 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42050 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42051 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42052 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42053 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42054 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42055 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42056 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42057 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42058 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42059 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42060 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42061 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42062 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42063 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42064 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42065 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42066 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42067 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42068 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42069 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42070 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42071 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42072 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42073 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42074 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42075 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42076 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42077 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42078 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42079 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42080 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42081 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42082 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42083 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42084 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42085 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42086 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42087 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42088 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42089 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42090 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42091 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42092 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42093 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42094 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42095 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42096 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42097 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42098 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42099 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42100 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42101 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42102 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42103 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42104 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42105 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42106 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42107 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42108 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42109 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42110 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42111 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42112 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42113 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42114 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42115 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42116 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42117 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42118 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42119 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42120 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42121 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42122 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42123 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42124 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42125 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42126 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42127 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42128 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42129 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42130 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42131 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42132 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42133 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42134 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42135 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42136 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42137 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42138 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42139 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42140 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42141 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42142 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42143 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42144 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42145 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42146 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42147 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42148 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42149 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42150 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42151 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42152 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42153 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42154 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42155 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42156 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42157 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42158 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42159 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42160 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42161 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42162 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42163 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42164 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42165 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42166 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42167 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42168 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42169 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42170 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42171 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42172 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42173 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42174 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42175 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42176 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42177 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42178 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42179 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42180 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42181 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42182 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42183 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42184 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42185 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42186 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42187 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42188 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42189 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42190 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42191 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42192 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42193 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42194 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42195 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42196 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42197 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42198 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42199 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42200 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42201 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42202 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42203 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42204 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42205 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42206 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42207 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42208 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42209 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42210 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42211 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42212 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42213 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42214 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42215 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42216 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42217 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42218 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42219 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42220 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42221 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42222 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42223 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42224 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42225 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42226 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42227 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42228 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42229 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42230 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42231 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42232 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42233 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42234 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42235 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42236 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42237 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42238 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42239 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42240 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42241 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42242 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42243 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42244 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42245 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42246 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42247 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42248 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42249 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42250 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42251 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42252 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42253 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42254 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42255 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42256 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42257 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42258 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42259 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42260 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
d03fd34d | 42261 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
2f4c0a16 RD |
42262 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42263 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42264 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42265 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42266 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42267 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42268 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42269 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42270 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42271 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42272 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42273 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42274 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42275 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42276 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42277 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42278 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42279 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42280 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42281 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42282 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42283 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42284 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42285 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42286 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42287 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42288 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42289 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42290 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42291 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42292 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42293 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42294 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42295 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42296 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42297 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42298 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42299 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42300 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42301 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42302 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42303 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42304 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42305 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42306 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42307 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42308 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42309 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42310 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42311 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42312 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42313 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42314 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
2f4c0a16 RD |
42315 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42316 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42317 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42318 | |
42319 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42320 | ||
42321 | ||
42322 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42323 | ||
42324 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42325 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42326 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42327 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42328 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42329 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
2f4c0a16 RD |
42330 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42331 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42332 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42333 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42334 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42335 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42336 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42337 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42338 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42339 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42340 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42341 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42342 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42343 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42344 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42345 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42346 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42347 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42348 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42349 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42350 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42351 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42352 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42353 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42354 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42355 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42356 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42357 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42358 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42359 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42360 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42361 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42362 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42363 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42364 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42365 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42366 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42367 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42368 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42369 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42370 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42371 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42372 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42373 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42374 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42375 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42376 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42377 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42378 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42379 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42380 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42381 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42382 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42383 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42384 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42385 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42386 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42387 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42388 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42389 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42390 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42391 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42392 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42393 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42394 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42395 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42396 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42397 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42398 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42399 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42400 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42401 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42402 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42403 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42404 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42405 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42406 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42407 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42408 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42409 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42410 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42411 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42412 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42413 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42414 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42415 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42416 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42417 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42418 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42419 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42420 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42421 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42422 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42423 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42424 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42425 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42426 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42427 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42428 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42429 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42430 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42431 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42432 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42433 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42434 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42435 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42436 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42437 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42438 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42439 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42440 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42441 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42442 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42443 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42444 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42445 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42446 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42447 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42448 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42449 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42450 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42451 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42452 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42453 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42454 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42455 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42456 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
2f4c0a16 RD |
42457 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42458 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42459 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42460 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42461 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42462 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42463 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42464 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42465 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42466 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42467 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42468 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42469 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42470 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42471 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
41f1cec7 | 42472 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
423f194a | 42473 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
fe763115 RD |
42474 | PyDict_SetItemString(d,"WINDOW_VARIANT_DEFAULT", SWIG_FromInt((int)wxWINDOW_VARIANT_DEFAULT)); |
42475 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
42476 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42477 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42478 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
d14a1e28 | 42479 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
d03fd34d | 42480 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
2f4c0a16 RD |
42481 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
42482 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42483 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 42484 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
2f4c0a16 RD |
42485 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
42486 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42487 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42488 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42489 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42490 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42491 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42492 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42493 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42494 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42495 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42496 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42497 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42498 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42499 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42500 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42501 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42502 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42503 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
42504 | |
42505 | // Initialize threading, some globals and such | |
42506 | __wxPyPreStart(d); | |
42507 | ||
42508 | ||
42509 | // Although these are defined in __version__ they need to be here too so | |
42510 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42511 | // versions match. | |
42512 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42513 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42514 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42515 | ||
42516 | } | |
42517 |